Re: [U-Boot] DDR training code for Armada 38x

2017-09-20 Thread Chris Packham
On Wed, Sep 20, 2017 at 5:31 PM, Stefan Roese wrote: > Hi Chris, > > On 19.09.2017 20:58, Chris Packham wrote: >> >> When you did the port from Marvell's source did you script any of the >> tidy-up that you did along the way? > > > Not really. At leas

[U-Boot] [PATCH] ARM: mvebu: handle unused DRAM banks with ECC enabled

2017-09-22 Thread Chris Packham
. Put the -1 where it is needed for scrubbing via the xor engine. Reported-by: Joshua Scott Signed-off-by: Chris Packham --- arch/arm/mach-mvebu/dram.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm/mach-mvebu/dram.c b/arch/arm/mach-mvebu/dram.c index e3f304c366

Re: [U-Boot] [PATCH] ARM: mvebu: add SAR frequency values for 1.8/2.0GHz

2017-09-25 Thread Chris Packham
On Tue, Sep 5, 2017 at 5:03 PM, Chris Packham wrote: > The Armada-38x has 1.8GHz and 2.0GHz variants. Add entries for these > variants to the sar_freq_tab. > > Signed-off-by: Chris Packham > --- > > arch/arm/mach-mvebu/cpu.c | 16 +--- > 1 file changed, 9 in

Re: [U-Boot] DDR training code for Armada 38x

2017-09-25 Thread Chris Packham
For the internet historians, On Thu, Sep 21, 2017 at 4:25 PM, Chris Packham wrote: > On Wed, Sep 20, 2017 at 5:31 PM, Stefan Roese wrote: >> Hi Chris, >> >> On 19.09.2017 20:58, Chris Packham wrote: >>> >>> When you did the port from Marvell's sourc

Re: [U-Boot] [PATCH v4 4/7] drivers/i2c/muxes/pca954x: Add pca9547 I2C mux support

2017-09-28 Thread Chris Packham
Hi All, On Sat, Jun 10, 2017 at 5:28 AM, Marek Behún wrote: > This I2C mux is found, for example, on the Turris Omnia board. > > Signed-off-by: Marek Behun > Reviewed-by: Heiko Schocher > > diff --git a/drivers/i2c/muxes/pca954x.c b/drivers/i2c/muxes/pca954x.c > index 1a6761858c..383f72f552 100

[U-Boot] [PATCH] i2c: muxes: pca954x: look up width from chip_desc

2017-09-28 Thread Chris Packham
ned-off-by: Chris Packham --- drivers/i2c/muxes/pca954x.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/i2c/muxes/pca954x.c b/drivers/i2c/muxes/pca954x.c index 01ca1ff48db9..2b70ff82bdd0 100644 --- a/drivers/i2c/muxes/pca954x.c +++ b/drivers/i2c/muxes/pca954x.

Re: [U-Boot] Patman - Submitting to mailing list

2017-09-29 Thread Chris Packham
Hi Duncan, On Fri, Sep 29, 2017 at 10:05 AM, Duncan Hare wrote: > Get the following message from running tools/patman/pathan.py > git: 'send-email' is not a git command. See 'git --help'. > > What do I need to do? Duncan Hare (I'm assuming your using some variant of GNU/Linux) For Ubuntu (not s

Re: [U-Boot] [PATCH] i2c: muxes: pca954x: look up width from chip_desc

2017-09-29 Thread Chris Packham
On 30/09/2017 2:43 AM, "Marek Behún" wrote: On Fri, 29 Sep 2017 10:53:36 +1300 Chris Packham wrote: > struct pca954x_priv { > @@ -39,14 +40,17 @@ static const struct chip_desc chips[] = { > [PCA9544] = { > .enable = 0x4, >

[U-Boot] [PATCH] spi: kirkwood_spi: implement workaround for FE-9144572

2017-10-12 Thread Chris Packham
. Implement the workaround by setting the TMISO_SAMPLE value to 0x2 in the timing1 register. Signed-off-by: Chris Packham --- arch/arm/include/asm/arch-mvebu/spi.h | 6 drivers/spi/kirkwood_spi.c| 62 +-- 2 files changed, 65 insertions(+), 3 deletions

Re: [U-Boot] [PATCH] spi: kirkwood_spi: implement workaround for FE-9144572

2017-10-12 Thread Chris Packham
On Fri, Oct 13, 2017 at 2:05 PM, Chris Packham wrote: > Erratum NO. FE-9144572: The device SPI interface supports frequencies of > up to 50 MHz. However, due to this erratum, when the device core clock > is 250 MHz and the SPI interfaces is configured for 50MHz SPI clock and > CPOL=

[U-Boot] Silencing SPL output

2017-10-15 Thread Chris Packham
This is probably something of a foot-gun but here we go... I was wondering if it's worth providing the ability to silence the output from the SPL. CONFIG_SILENT_CONSOLE exist for u-boot proper but the SPL preloader_console_init bypasses anything that would set GD_FLG_SILENT. Even if it didn't the

Re: [U-Boot] [PATCH] spi: kirkwood_spi: implement workaround for FE-9144572

2017-10-16 Thread Chris Packham
On Tue, Oct 17, 2017 at 6:04 AM, Jagan Teki wrote: > On Fri, Oct 13, 2017 at 6:35 AM, Chris Packham > wrote: >> Erratum NO. FE-9144572: The device SPI interface supports frequencies of >> up to 50 MHz. However, due to this erratum, when the device core clock >>

Re: [U-Boot] Silencing SPL output

2017-10-16 Thread Chris Packham
Hi Heiko, On Mon, Oct 16, 2017 at 5:24 PM, Heiko Schocher wrote: > Hello Chris, > > Am 16.10.2017 um 02:38 schrieb Chris Packham: >> >> This is probably something of a foot-gun but here we go... >> >> I was wondering if it's worth providing the ability

[U-Boot] [PATCH v2] spi: kirkwood_spi: implement workaround for FE-9144572

2017-10-16 Thread Chris Packham
. Implement the workaround by setting the TMISO_SAMPLE value to 0x2 in the timing1 register. Signed-off-by: Chris Packham Reviewed-by: Stefan Roese --- I've based this as much as I can on the equivalent implementation in the Linux kernel[1], but there are differences in the u-boot spi infrastru

Re: [U-Boot] [PATCH v2] spi: kirkwood_spi: implement workaround for FE-9144572

2017-10-16 Thread Chris Packham
On Tue, Oct 17, 2017 at 10:46 AM, Jagan Teki wrote: > On Tue, Oct 17, 2017 at 3:07 AM, Chris Packham > wrote: >> Erratum NO. FE-9144572: The device SPI interface supports frequencies of >> up to 50 MHz. However, due to this erratum, when the device core clock >>

Re: [U-Boot] [RFC PATCH v3 01/10] mtd: nand: pxa3xx_nand: Increase initial buffer size

2017-12-05 Thread Chris Packham
DEC param page is 512 bytes, and there are also three > redundant copies to be read. Hence this buffer should be at least > 512 x 3. This commits rounds the buffer size to 2048. > > [ Linux commit c16340973fcb6461474a9f811f7f3ff2f946b24c ] > > Cc: Ezequiel Garcia > Signed-

Re: [U-Boot] Anyone using recentish u-boot on a GuruPlug?

2017-12-18 Thread Chris Packham
Hi Martin, On Mon, Dec 18, 2017 at 8:35 AM, Martin Husemann wrote: > I tested the RAM version now and indeed it does not work either. > > With my old u-boot I get: > > U-Boot 2013.10 (Oct 21 2013 - 20:54:41) > Marvell-GuruPlug > > SoC: Kirkwood 88F6281_A1 > DRAM: 512 MiB > WARNING: Caches not

[U-Boot] [PATCH] ARM: mvebu: correct reference for "ethernet1" on DB-88F6820-AMC

2018-01-07 Thread Chris Packham
#x27; Signed-off-by: Chris Packham --- arch/arm/dts/armada-385-amc.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/dts/armada-385-amc.dts b/arch/arm/dts/armada-385-amc.dts index 5e1588d57438..d4d127fa024b 100644 --- a/arch/arm/dts/armada-385-amc.dts +++ b/arc

Re: [U-Boot] [PATCH v4 1/7] driver/ddr: Add support for setting timing in hws_topology_map

2018-01-09 Thread Chris Packham
Hi Marek, On Sat, Jun 10, 2017 at 5:28 AM, Marek Behún wrote: > The DDR3 training code for Marvell A38X currently computes 1t timing > when given board topology map of the Turris Omnia, but Omnia needs 2t. > > This patch adds support for enforcing the 2t timing in struct > hws_topology_map, throu

[U-Boot] [PATCH] ddr: marvell: only assert M_ODT[0] on write for a single CS

2018-01-09 Thread Chris Packham
When using only a single DDR chip select only assert M_ODT[0] on write. Do not assert it on read and do not assert M_ODT[1] at all. Signed-off-by: Chris Packham --- I have a custom board that sees correctable ECC errors (when running memtester[1] from Linux). When I used Marvell's bootloa

Re: [U-Boot] [PATCH 2/2] spi: kirkwood: Full dm conversion

2018-05-02 Thread Chris Packham
Hi All, On Wed, May 2, 2018 at 10:53 PM Stefan Roese wrote: > Hi Simon, > On 01.05.2018 12:54, Simon Guinot wrote: > > On Mon, Apr 30, 2018 at 11:28:28AM +0530, Jagan Teki wrote: > >> On Fri, Apr 27, 2018 at 2:21 PM, Simon Guinot < simon.gui...@sequanux.org> wrote: > >>> On Thu, Apr 26, 2018 at

Re: [U-Boot] u-boot Marvell ethernet switch development

2018-05-02 Thread Chris Packham
Hi Dennis, On Thu, May 3, 2018 at 3:21 AM Dennis Jacobs < dennis.jaco...@prodrive-technologies.com> wrote: > Dear U-boot mailing list, > Its the first time I make use of this U-boot mailing list. I am here for a problem I am having recently with u-boot which is part of my graduation project. We

Re: [U-Boot] [PATCH 2/2] net: bootp: Fix compile error processing ntpserver option

2018-05-03 Thread Chris Packham
On Thu, May 3, 2018 at 12:23 PM Joe Hershberger wrote: > On Fri, Apr 27, 2018 at 4:55 AM, Chris Packham wrote: > > When the following configuration is set > > > > # CONFIG_CMD_DHCP is not set > > CONFIG_CMD_BOOTP=y > > CONFIG_BOOTP_NTPSERVER=y >

[U-Boot] [PATCH v2 1/2] net: Add Kconfig option for BOOTP_NTPSERVER

2018-05-03 Thread Chris Packham
Add a Kconfig option for BOOTP_NTPSERVER to enable the DHCP/BOOTP option to configure the sntp server address. Signed-off-by: Chris Packham --- Changes in v2: - update devkit8000 config - remove from config_whitelist.txt cmd/Kconfig | 4 configs/devkit8000_defconfig | 1

[U-Boot] [PATCH v2 2/2] net: bootp: Fix compile error processing ntpserver option

2018-05-03 Thread Chris Packham
net_ntp_server.s_addr instead. Signed-off-by: Chris Packham Acked-by: Joe Hershberger --- Changes in v2: - collect Ack from Joe net/bootp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/bootp.c b/net/bootp.c index efa959971c27..9d7cb5d30c14 100644 --- a/net/bootp.c +++ b/net

[U-Boot] [PATCH 1/2] net: mvgbe: remove CONFIG_DOVE

2018-05-03 Thread Chris Packham
Nothing defines CONFIG_DOVE so remove the code that uses it. Signed-off-by: Chris Packham --- drivers/net/mvgbe.c | 2 -- drivers/net/mvgbe.h | 7 --- 2 files changed, 9 deletions(-) diff --git a/drivers/net/mvgbe.c b/drivers/net/mvgbe.c index f833efbe6779..47148e526008 100644 --- a

[U-Boot] [PATCH 2/2] net: add Kconfig for MVGBE

2018-05-03 Thread Chris Packham
Add Kconfig for MVGBE and update boards to select this. Signed-off-by: Chris Packham --- arch/arm/mach-kirkwood/include/mach/config.h | 1 - configs/d2net_v2_defconfig | 2 ++ configs/dns325_defconfig | 2 ++ configs/dockstar_defconfig

Re: [U-Boot] [PATCH 2/2] net: add Kconfig for MVGBE

2018-05-03 Thread Chris Packham
On Fri, May 4, 2018 at 9:36 AM Joe Hershberger wrote: > On Thu, May 3, 2018 at 6:00 AM, Chris Packham wrote: > > Add Kconfig for MVGBE and update boards to select this. > > > > Signed-off-by: Chris Packham > > --- > > > > arch/arm/mach-kirkwood/i

Re: [U-Boot] [PATCH 2/5] ARM: arm926ejs: fix lowlevel_init call

2018-05-07 Thread Chris Packham
Hi Mans, Stefano, On Fri, Apr 27, 2018 at 9:00 PM Stefano Babic wrote: > On 21/04/2018 17:11, Mans Rullgard wrote: > > The code attempts to preserve the value of LR by storing it in R12/IP > > across the lowevel_init() call. However, this register is not saved > > by the callee. Use a register

Re: [U-Boot] [PATCH 2/5] ARM: arm926ejs: fix lowlevel_init call

2018-05-07 Thread Chris Packham
On Mon, May 7, 2018 at 10:11 PM Måns Rullgård wrote: > Chris Packham writes: > > Hi Mans, Stefano, > > > > On Fri, Apr 27, 2018 at 9:00 PM Stefano Babic wrote: > > > >> On 21/04/2018 17:11, Mans Rullgard wrote: > >> > The code attempts to

Re: [U-Boot] [PATCH 2/5] ARM: arm926ejs: fix lowlevel_init call

2018-05-07 Thread Chris Packham
Hi Klaus, On Mon, May 7, 2018 at 8:48 PM wrote: > > On 07.05.2018, at 10:25, Chris Packham wrote: > > > > Hi Mans, Stefano, > > > > On Fri, Apr 27, 2018 at 9:00 PM Stefano Babic wrote: > > > >> On 21/04/2018 17:11, Mans Rullgard wrote: > >

Re: [U-Boot] [UNTESTED PATCH] ARM: orion5x: fix use of callee-saved registers in lowloevel_init

2018-05-07 Thread Chris Packham
gt; cmp r1, #MSAR_ARMDDRCLCK_400_200_1 > beq 3f > cmp r1, #MSAR_ARMDDRCLCK_400_200 > @@ -265,21 +265,21 @@ lowlevel_init: > cmp r1, #MSAR_ARMDDRCLCK_800_200 > beq 3f > - ldr r6, =0 > + ldr r0,

[U-Boot] [PATCH] spi: kirkwood: add orion-spi compatible string

2018-05-07 Thread Chris Packham
This matches the compatible string used by the Linux kernel. This will allow u-boot to use the same device tree files. Signed-off-by: Chris Packham --- This applies on top of Jagan's series http://patchwork.ozlabs.org/project/uboot/list/?series=33927 drivers/spi/kirkwood_spi.c | 8 ++

Re: [U-Boot] [PATCH 2/2] spi: kirkwood: Full dm conversion

2018-05-07 Thread Chris Packham
On Thu, May 3, 2018 at 11:21 PM Stefan Roese wrote: > Hi Chris, > On 02.05.2018 23:56, Chris Packham wrote: > > Hi All, > > On Wed, May 2, 2018 at 10:53 PM Stefan Roese wrote: > > > >> Hi Simon, > > > >> On 01.05.2018 12:54, Simon Guinot wrote

[U-Boot] [PATCH 02/12] ARM: kirkwood: Add device-tree for dns325

2018-05-08 Thread Chris Packham
Import the dts files from Linux 4.17 and enable CONFIG_OF_CONTROL. Signed-off-by: Chris Packham --- arch/arm/dts/kirkwood-dns325.dts | 63 + arch/arm/dts/kirkwood-dnskw.dtsi | 235 +++ configs/dns325_defconfig | 3 +- 3 files changed, 300

[U-Boot] [PATCH 03/12] ARM: kirkwood: Add device-tree for dockstar

2018-05-08 Thread Chris Packham
Import the dts files from Linux 4.17 and enable CONFIG_OF_CONTROL. Signed-off-by: Chris Packham --- arch/arm/dts/kirkwood-dockstar.dts | 110 + configs/dockstar_defconfig | 3 +- 2 files changed, 112 insertions(+), 1 deletion(-) create mode 100644 arch

[U-Boot] [PATCH 01/12] ARM: add devicetree files for kirkwood SoC

2018-05-08 Thread Chris Packham
These files are taken verbatim from the Linux kernel 4.17 Signed-off-by: Chris Packham --- arch/arm/dts/kirkwood-6192.dtsi | 88 +++ arch/arm/dts/kirkwood-6281.dtsi | 90 +++ arch/arm/dts/kirkwood-98dx4122.dtsi | 53 arch/arm/dts/kirkwood.dtsi | 393

[U-Boot] [PATCH 00/12] kirkwood: device tree support

2018-05-08 Thread Chris Packham
This is an initial series to bring in the device tree files for kirkwood boards from Linux. All the patches are fairly mechanical matching up the device trees based on the defconfig name (and some educated guesses in a few places). Chris Packham (12): ARM: add devicetree files for kirkwood SoC

[U-Boot] [PATCH 06/12] ARM: kirkwood: Add device-tree for ib62x0

2018-05-08 Thread Chris Packham
Import the dts files from Linux 4.17 and enable CONFIG_OF_CONTROL. Signed-off-by: Chris Packham --- arch/arm/dts/kirkwood-ib62x0.dts | 146 +++ configs/ib62x0_defconfig | 3 +- 2 files changed, 148 insertions(+), 1 deletion(-) create mode 100644 arch/arm

[U-Boot] [PATCH 12/12] ARM: kirkwood: Add device-tree for sheevaplug

2018-05-08 Thread Chris Packham
Import the dts files from Linux 4.17 and enable device tree control in u-boot. Signed-off-by: Chris Packham --- arch/arm/dts/kirkwood-sheevaplug-common.dtsi | 104 +++ arch/arm/dts/kirkwood-sheevaplug.dts | 42 configs/sheevaplug_defconfig

[U-Boot] [PATCH 11/12] ARM: kirkwood: Add device-tree for pogo_e02

2018-05-08 Thread Chris Packham
Import the dts files from Linux 4.17 and enable CONFIG_OF_CONTROL. Signed-off-by: Chris Packham --- arch/arm/dts/kirkwood-pogo_e02.dts | 132 + configs/pogo_e02_defconfig | 3 +- 2 files changed, 134 insertions(+), 1 deletion(-) create mode 100644 arch

[U-Boot] [PATCH 04/12] ARM: kirkwood: Add device-tree for goflexhome

2018-05-08 Thread Chris Packham
Import the dts files from Linux 4.17 and enable CONFIG_OF_CONTROL. Signed-off-by: Chris Packham --- arch/arm/dts/kirkwood-goflexnet.dts | 190 configs/goflexhome_defconfig| 3 +- 2 files changed, 192 insertions(+), 1 deletion(-) create mode 100644 arch

[U-Boot] [PATCH 07/12] ARM: kirkwood: Add device-tree for iconnect

2018-05-08 Thread Chris Packham
Import the dts files from Linux 4.17 and enable CONFIG_OF_CONTROL. Signed-off-by: Chris Packham --- arch/arm/dts/kirkwood-iconnect.dts | 195 + configs/iconnect_defconfig | 3 +- 2 files changed, 197 insertions(+), 1 deletion(-) create mode 100644 arch

[U-Boot] [PATCH 05/12] ARM: kirkwood: Add device-tree for guruplug

2018-05-08 Thread Chris Packham
Import the dts files from Linux 4.17 and enable CONFIG_OF_CONTROL. Signed-off-by: Chris Packham --- .../arm/dts/kirkwood-guruplug-server-plus.dts | 133 ++ configs/guruplug_defconfig| 3 +- 2 files changed, 135 insertions(+), 1 deletion(-) create mode

[U-Boot] [PATCH 08/12] ARM: kirkwood: Add device-tree for nas220

2018-05-08 Thread Chris Packham
Import the dts file from Linux 4.17 and enable CONFIG_OF_CONTROL. Signed-off-by: Chris Packham --- arch/arm/dts/kirkwood-blackarmor-nas220.dts | 172 configs/nas220_defconfig| 3 +- 2 files changed, 174 insertions(+), 1 deletion(-) create mode 100644

[U-Boot] [PATCH 09/12] ARM: kirkwood: Add device-tree for nsa310s

2018-05-08 Thread Chris Packham
Import the dts files from Linux 4.17 and enable CONFIG_OF_CONTROL. Signed-off-by: Chris Packham --- arch/arm/dts/kirkwood-nsa310.dts | 139 arch/arm/dts/kirkwood-nsa3x0-common.dtsi | 158 +++ configs/nsa310s_defconfig| 3 +- 3

[U-Boot] [PATCH 10/12] ARM: kirkwood: Add device-tree for openrd

2018-05-08 Thread Chris Packham
Import the dts files from Linux 4.17 and enable CONFIG_OF_CONTROL. Signed-off-by: Chris Packham --- arch/arm/dts/kirkwood-openrd-base.dts | 39 +++ arch/arm/dts/kirkwood-openrd-client.dts | 73 + arch/arm/dts/kirkwood-openrd-ultimate.dts | 55 ++ arch/arm/dts

Re: [U-Boot] [PATCH 09/12] ARM: kirkwood: Add device-tree for nsa310s

2018-05-09 Thread Chris Packham
good guess. For now I'll just drop this conversion from the series. > Regards > bodhi > On Tue, May 8, 2018 at 3:34 AM, Chris Packham wrote: >> Import the dts files from Linux 4.17 and enable CONFIG_OF_CONTROL. >> Signed-off-by: Chris Packham >> ---

[U-Boot] [PATCH v3 0/6] ARM: mvebu: a38x: updates to ddr training code

2018-05-09 Thread Chris Packham
). I've also build tested the other a38x boards. More testing on actual hardware would be greatly appreciated. This version is rebased against master to mop up the SPDX changes. Changes in v3: - Update to current SPDX style Changes in v2: - remove unused #include Chris Packham (6): ARM: m

[U-Boot] [PATCH v3 1/6] ARM: mvebu: a38x: move definition of PEX_CFG_DIRECT_ACCESS

2018-05-09 Thread Chris Packham
-by: Chris Packham --- Changes in v3: None Changes in v2: None arch/arm/mach-mvebu/serdes/a38x/ctrl_pex.h | 1 + drivers/ddr/marvell/a38x/ddr3_hws_hw_training_def.h | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/arm/mach-mvebu/serdes/a38x/ctrl_pex.h b/arch/arm

[U-Boot] [PATCH v3 3/6] ARM: mvebu: a38x: remove some unused code

2018-05-09 Thread Chris Packham
No in-tree code defines SUPPORT_STATIC_DUNIT_CONFIG or STATIC_ALGO_SUPPORT. Remove ddr3_a38x_mc_static.h and use unifdef to remove unused sections in the rest of the ddr/marvell/a38x code. Signed-off-by: Chris Packham --- Much of this code is moved/removed in the updated DDR code so this commit

[U-Boot] [PATCH v3 6/6] ARM: mvebu: a38x: use non-zero size for ddr scrubbing

2018-05-09 Thread Chris Packham
From: Chris Packham Make ddr3_calc_mem_cs_size() global scope and use it in ddr3_new_tip_ecc_scrub to correctly initialize all of DDR memory. Signed-off-by: Chris Packham --- Changes in v3: None Changes in v2: None drivers/ddr/marvell/a38x/mv_ddr_plat.c | 2 +- drivers/ddr/marvell/a38x

[U-Boot] [PATCH v3 2/6] ARM: mvebu: a38x: move sys_env_device_rev_get

2018-05-09 Thread Chris Packham
Move sys_env_device_rev_get() from the ddr training code to sys_env_lib.c (which currently resides with the serdes code). This brings sys_env_device_rev_get() into line with sys_env_device_id_get() and sys_env_model_get(). Signed-off-by: Chris Packham --- Changes in v3: None Changes in v2

[U-Boot] [PATCH v3 5/6] ARM: mvebu: a38x: restore support for setting timing

2018-05-09 Thread Chris Packham
This restores support for configuring the timing mode based on the ddr_topology. This was originally implemented in commit 90bcc3d38d2b ("driver/ddr: Add support for setting timing in hws_topology_map") but was removed as part of the upstream sync. Signed-off-by: Chris Packham --- Cha

Re: [U-Boot] Please pull u-boot-marvell/master

2018-05-14 Thread Chris Packham
Hi Tom, Stefan, On Tue, May 15, 2018 at 3:16 AM Stefan Roese wrote: > Hi Tom, > (Cc'ing Chris) > On 14.05.2018 17:11, Tom Rini wrote: > > On Mon, May 14, 2018 at 01:58:59PM +0200, Stefan Roese wrote: > > > >> Hi Tom, > >> > >> please pull the following MVEBU related patches from Marek and > >>

[U-Boot] [PATCH] ARM: mvebu: a38x: Add missing SPDX license identfier

2018-05-14 Thread Chris Packham
mv_ddr_build_message.c is generated in Marvell's standalone mv_ddr code. When imported into u-boot we need to add the appropriate SPDX tag and re-format it slightly. Signed-off-by: Chris Packham --- drivers/ddr/marvell/a38x/mv_ddr_build_message.c | 4 +++- 1 file changed, 3 insertions(

Re: [U-Boot] [PATCH 09/12] ARM: kirkwood: Add device-tree for nsa310s

2018-05-16 Thread Chris Packham
(adding back list and cc, my bad replied from a mobile device) On Wed, May 16, 2018 at 8:10 PM Stefan Roese wrote: > Hi Chris, > On 16.05.2018 09:58, Chris Packham wrote: > > Hi Stefan, > > > > On Wed, 16 May 2018, 12:09 AM Stefan Roese, > <mailto:s...@denx.de

[U-Boot] [PATCH] ARM: re-enable MVGBE for edminiv2

2018-05-16 Thread Chris Packham
This was unintentionally disabled when moving MVGBE to Kconfig. Fixes: commit ed52ea507f12 ("net: add Kconfig for MVGBE") Signed-off-by: Chris Packham --- configs/edminiv2_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/edminiv2_defconfig b/configs/edminiv2

[U-Boot] [PATCH] Remove CONFIG_MVGBE from config_whitelist.txt

2018-05-16 Thread Chris Packham
Now that there are more boards defining this it can be removed from the whitelist. Signed-off-by: Chris Packham --- scripts/config_whitelist.txt | 1 - 1 file changed, 1 deletion(-) diff --git a/scripts/config_whitelist.txt b/scripts/config_whitelist.txt index 71df6dbebde6..19b573c3d3f3

Re: [U-Boot] Please pull u-boot-marvell/master

2018-05-17 Thread Chris Packham
On Thu, May 17, 2018 at 3:37 AM Tom Rini wrote: > On Wed, May 16, 2018 at 02:05:03PM +0200, Stefan Roese wrote: > > Hi Tom, > > > > please pull the Kirkwood DT patches from Chris. > > > > Thanks, > > Stefan > > > > The following changes since commit 0315d6959fdd9d2a4d89016c311e9c8c8d239a10: > >

Re: [U-Boot] Please pull u-boot-marvell/master

2018-05-17 Thread Chris Packham
On Thu, May 17, 2018 at 8:36 PM Chris Packham wrote: > On Thu, May 17, 2018 at 3:37 AM Tom Rini wrote: > > > > On Wed, May 16, 2018 at 02:05:03PM +0200, Stefan Roese wrote: > > > > > Hi Tom, > > > > > > please pull the Kirkwood DT patc

[U-Boot] [PATCH] net: MVGBE don't automatically select PHYLIB

2018-05-17 Thread Chris Packham
Not all users of MVGBE need PHYLIB and it increases the size of the openrd images too much. Fixes: commit ed52ea507f12 ("net: add Kconfig for MVGBE") Signed-off-by: Chris Packham Cc: Tom Rini Cc: Stefan Roese --- drivers/net/Kconfig | 1 - 1 file changed, 1 deletion(-) diff --git

Re: [U-Boot] Please pull u-boot-marvell/master

2018-05-17 Thread Chris Packham
On Thu, May 17, 2018 at 8:48 PM Stefan Roese wrote: > Hi Chris, > On 17.05.2018 10:45, Chris Packham wrote: > > On Thu, May 17, 2018 at 8:36 PM Chris Packham > > wrote: > > > > > >> On Thu, May 17, 2018 at 3:37 AM Tom Rini wrote: > >>> >

Re: [U-Boot] [PATCH] arm: kirkwood: openrd: Change environment location

2018-05-17 Thread Chris Packham
dd DM support etc). > Signed-off-by: Stefan Roese > Cc: Tom Rini > Cc: Chris Packham > Cc: Albert ARIBAUD > Cc: Clint Adams > --- Reviewed-by: Chris Packham Do we need to worry about a migration path for old -> new? > include/configs/openrd.h | 4 ++-- >

[U-Boot] [PATCH 0/6] ARM: kirkwood: dts conversion round 2

2018-05-17 Thread Chris Packham
This is the second round of updating kirkwood boards to OF_CONTROL. Most of these boards use spi flash so I've added the u-boot specific "spi-flash" compatible string where appropriate. Chris Packham (6): ARM: kirkwood: Add device-tree for d2net_v2 & net2big_v2 ARM: kirkwo

[U-Boot] [PATCH 2/6] ARM: kirkwood: Add device-tree for dreamplug

2018-05-17 Thread Chris Packham
Import the dts file from Linux 4.17 and enable CONFIG_OF_CONTROL. Signed-off-by: Chris Packham --- arch/arm/dts/kirkwood-dreamplug.dts | 127 configs/dreamplug_defconfig | 3 +- 2 files changed, 129 insertions(+), 1 deletion(-) create mode 100644 arch

[U-Boot] [PATCH 1/6] ARM: kirkwood: Add device-tree for d2net_v2 & net2big_v2

2018-05-17 Thread Chris Packham
Import the dts files from Linux 4.17 and enable CONFIG_OF_CONTROL. Signed-off-by: Chris Packham --- arch/arm/dts/kirkwood-d2net.dts | 45 + arch/arm/dts/kirkwood-net2big.dts | 63 +++ arch/arm/dts/kirkwood-netxbig.dtsi | 232 configs

[U-Boot] [PATCH 3/6] ARM: kirkwood: Add device-tree for ds109

2018-05-17 Thread Chris Packham
Import the dts files from Linux 4.17 and enable CONFIG_OF_CONTROL. Signed-off-by: Chris Packham --- arch/arm/dts/kirkwood-ds109.dts | 40 ++ arch/arm/dts/kirkwood-synology.dtsi | 855 configs/ds109_defconfig | 2 + 3 files changed, 897 insertions

[U-Boot] [PATCH 5/6] ARM: kirkwood: Add device-tree for netspace & inetspace

2018-05-17 Thread Chris Packham
Import the dts files from Linux 4.17 and enable CONFIG_OF_CONTROL. Signed-off-by: Chris Packham --- arch/arm/dts/kirkwood-is2.dts | 40 +++ arch/arm/dts/kirkwood-ns2-common.dtsi | 97 +++ arch/arm/dts/kirkwood-ns2.dts | 40 +++ arch/arm

[U-Boot] [PATCH 4/6] ARM: kirkwood: Add device-tree for lschlv2 & lsxhl

2018-05-17 Thread Chris Packham
Import the dts files from Linux 4.17 and enable CONFIG_OF_CONTROL. Signed-off-by: Chris Packham --- arch/arm/dts/kirkwood-lschlv2.dts | 20 +++ arch/arm/dts/kirkwood-lsxhl.dts | 20 +++ arch/arm/dts/kirkwood-lsxl.dtsi | 237 ++ configs/lschlv2_defconfig

[U-Boot] [PATCH 6/6] ARM: kirkwood: Add device-tree for keymile

2018-05-17 Thread Chris Packham
Import the dts files from Linux 4.17 and enable CONFIG_OF_CONTROL. Signed-off-by: Chris Packham --- arch/arm/dts/kirkwood-km_common.dtsi | 47 +++ arch/arm/dts/kirkwood-km_kirkwood.dts | 31 ++ configs/km_kirkwood_128m16_defconfig | 3 +- configs

Re: [U-Boot] [PATCH] net: MVGBE don't automatically select PHYLIB

2018-05-17 Thread Chris Packham
On Thu, 17 May 2018, 11:09 PM Tom Rini, wrote: > On Thu, May 17, 2018 at 09:03:15PM +1200, Chris Packham wrote: > > Not all users of MVGBE need PHYLIB and it increases the size of the > > openrd images too much. > > > > Fixes: commit ed52ea507f12 ("net: add Kconf

[U-Boot] [PATCH v2] net: MVGBE don't automatically select PHYLIB

2018-05-17 Thread Chris Packham
PHYLIB the openrd configs increased in size. Remove the automatic selection of PHYLIB, boards that need it will have already enabled it in their config header file. Fixes: commit ed52ea507f12 ("net: add Kconfig for MVGBE") Signed-off-by: Chris Packham --- Changes in v2: - reword commit

Re: [U-Boot] [PATCH] net: MVGBE don't automatically select PHYLIB

2018-05-17 Thread Chris Packham
On Fri, May 18, 2018 at 12:02 AM Tom Rini wrote: > On Thu, May 17, 2018 at 01:59:36PM +0200, Stefan Roese wrote: > > On 17.05.2018 13:53, Chris Packham wrote: > > > > > > > > >On Thu, 17 May 2018, 11:09 PM Tom Rini, > ><mailto:tr...@konsulko.com>

Re: [U-Boot] U-Boot thumb interlink patches

2018-05-26 Thread Chris Packham
Hi Tom, On Sat, May 26, 2018 at 12:54 AM Tom Rini wrote: > On Fri, May 25, 2018 at 01:17:45PM +0100, Måns Rullgård wrote: > > Tom Rini writes: > > > > > And then: > > > https://patchwork.ozlabs.org/patch/909652/ > > > > > > has been reviewed and could be applied. Is there anything else I'm > >

[U-Boot] [PATCH] Remove CONFIG_MVGBE from config_whitelist.txt

2018-05-26 Thread Chris Packham
Now that there are more boards defining this it can be removed from the whitelist. Signed-off-by: Chris Packham --- scripts/config_whitelist.txt | 1 - 1 file changed, 1 deletion(-) diff --git a/scripts/config_whitelist.txt b/scripts/config_whitelist.txt index c5cb23dbf170..705ed89a659f

[U-Boot] [PATCH] configs: remove empty #ifdef block from mv-common.h

2018-05-26 Thread Chris Packham
The last option guarded by this ifdef was removed in commit 68d534201733 ("sf: Move SPI flash drivers to defconfig"). Remove the now empty ifdef/endif block and the associated comment. Signed-off-by: Chris Packham --- include/configs/mv-common.h | 6 -- 1 file changed, 6 deletion

[U-Boot] [PATCH 1/2] configs: remove redundant comment sections

2018-05-26 Thread Chris Packham
mv-common.h and mv-plug-common.h still had comments delimiting sections of configuration options that have all been moved to Kconfig by previous treewide efforts. Remove the redundant comment sections. Signed-off-by: Chris Packham --- include/configs/mv-common.h | 4 include/configs

[U-Boot] [PATCH 2/2] configs: remove CONFIG_SYS_MVFS

2018-05-26 Thread Chris Packham
CONFIG_SYS_MVFS. Signed-off-by: Chris Packham --- README | 5 - include/configs/dns325.h | 3 ++- include/configs/ds414.h | 3 ++- include/configs/goflexhome.h | 3 ++- include/configs/guruplug.h | 4 +++- include/configs/ib62x0.h | 3

[U-Boot] [PATCH v2] Remove CONFIG_MVGBE from config_whitelist.txt

2018-05-26 Thread Chris Packham
Now that there are no more boards defining this it can be removed from the whitelist. Signed-off-by: Chris Packham --- Changes in v2: - fix typo (s/more/no more/) in commit message. scripts/config_whitelist.txt | 1 - 1 file changed, 1 deletion(-) diff --git a/scripts/config_whitelist.txt b

[U-Boot] [PATCH] patman: add option for limiting the Cc list

2018-05-26 Thread Chris Packham
any known bouncing addresses. By default no limit is applied. Signed-off-by: Chris Packham --- I've fallen foul of the u-boot ML Cc limit a few times recently. I'm not sure what the actual limit is so I've left patman's default behaviour unlimited. tools/patman/patman.py |

Re: [U-Boot] [RFC] arm: mvebu: Add Helios4 Armada 38x initial support

2018-05-26 Thread Chris Packham
Hi Dennis, Comments below On Sun, 27 May 2018, 9:36 AM , wrote: > From: Dennis Gilmore > > The helios4 is built on the SolidRun Armada 38x SOM. > The port os based on the ClearFog board, using information from > https://github.com/helios-4/u-boot-marvell as well as dtb input > from https://git

Re: [U-Boot] [PATCH] patman: add option for limiting the Cc list

2018-05-27 Thread Chris Packham
On Sun, 27 May 2018, 12:53 PM Simon Glass, wrote: > Hi Chris, > > On 26 May 2018 at 17:10, Chris Packham wrote: > > Many mailing-lists consider a long Cc list a sign of spam and will > > either drop the message or mark it for moderation. Because patman >

[U-Boot] [PATCH v2] patman: add option for limiting the Cc list

2018-05-27 Thread Chris Packham
any known bouncing addresses. By default no limit is applied. Signed-off-by: Chris Packham --- I've fallen foul of the u-boot ML Cc limit a few times recently. I'm not sure what the actual limit is so I've left patman's default behaviour unlimited. Changes in v2: - make d

Re: [U-Boot] [PATCH] arm: mvebu: move i2c slave disable to generic SPL code

2018-05-28 Thread Chris Packham
On Mon, May 28, 2018 at 3:27 AM Baruch Siach wrote: > The hidden i2c slave that interferes the i2c bus is not board specific. > All Armada 38x SoCs are affected. Move the code disabling this slave to > generic code to make it work on all affected hardware. I can't find a definition of this but t

Re: [U-Boot] [PATCH] arm: mvebu: move i2c slave disable to generic SPL code

2018-05-28 Thread Chris Packham
Hi Baruch, On Mon, May 28, 2018 at 8:22 PM Baruch Siach wrote: > Hi Chris, > On Mon, May 28, 2018 at 08:11:39PM +1200, Chris Packham wrote: > > On Mon, May 28, 2018 at 3:27 AM Baruch Siach wrote: > > > The hidden i2c slave that interferes the i2c bus is not board speci

[U-Boot] [PATCH 1/2] ARM: kirkwood: remove automatic I2C config if DM_I2C is enabled

2018-05-28 Thread Chris Packham
this once all kirkwood boards are migrated to DM. Signed-off-by: Chris Packham --- arch/arm/mach-kirkwood/include/mach/config.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-kirkwood/include/mach/config.h b/arch/arm/mach-kirkwood/include/mach/config.h

[U-Boot] [PATCH 2/2] ARM: add SBx81LIFKW board

2018-05-28 Thread Chris Packham
This is a series of line cards for Allied Telesis's SBx8100 chassis switch. The CPU block is common to the SBx81GS24a, SBx81XS6, SBx81XS16 and SBx81GT40 cards collectively referred to as SBx81LIFKW in u-boot. Signed-off-by: Chris Packham --- This is the board I've been using for t

[U-Boot] [PATCH 1/2] drivers/rtc: prepare mvrtc for DM conversion

2018-05-28 Thread Chris Packham
Split the rtc_{get,set,reset} functions so that the bodies can be used in a DM driver. Signed-off-by: Chris Packham --- drivers/rtc/mvrtc.c | 57 +++-- 1 file changed, 39 insertions(+), 18 deletions(-) diff --git a/drivers/rtc/mvrtc.c b/drivers/rtc

[U-Boot] [PATCH 2/2] drivers/rtc: convert mvrtc to DM

2018-05-28 Thread Chris Packham
Add DM support for the Marvell RTC driver. Signed-off-by: Chris Packham --- drivers/rtc/Kconfig | 7 ++ drivers/rtc/mvrtc.c | 56 + drivers/rtc/mvrtc.h | 5 3 files changed, 68 insertions(+) diff --git a/drivers/rtc/Kconfig b/drivers/rtc

[U-Boot] [PATCH v2 0/4] ddr: marvell: update DDR driver

2018-01-17 Thread Chris Packham
haviour against Marvell's bootloader. The changes for this series have been derived by comparing scope captures and register output between the same system running stock u-boot and Marvell's USP. Changes in v2: - Update tODT_OFF_WR as well - Added patches 2-4 Chris Packham (4): ddr: mar

[U-Boot] [PATCH v2 2/4] ddr: marvell: use correct TREFI value

2018-01-17 Thread Chris Packham
The ternary operation had the HIGH/LOW values the wrong way round. Update it to use the correct value. Signed-off-by: Chris Packham --- Changes in v2: - new drivers/ddr/marvell/a38x/ddr3_training.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/ddr/marvell/a38x

[U-Boot] [PATCH v2 4/4] ddr: marvell: update ddr controller init and freq

2018-01-17 Thread Chris Packham
Update the calculation for tWR and tPD. This improves the DDR refresh interval and brings the initialization into line with the binary blobs currently being supplied by Marvell. Signed-off-by: Chris Packham --- Changes in v2: - new drivers/ddr/marvell/a38x/ddr3_topology_def.h | 3

[U-Boot] [PATCH v2 1/4] ddr: marvell: only assert M_ODT[0] on write for a single CS

2018-01-17 Thread Chris Packham
etter results when ODT is active during writes. Signed-off-by: Chris Packham --- Changes in v2: - Update tODT_OFF_WR as well drivers/ddr/marvell/a38x/ddr3_init.h| 3 ++- drivers/ddr/marvell/a38x/ddr3_training.c| 15 +-- drivers/ddr/marvell/a38x/ddr3_training_sta

[U-Boot] [PATCH v2 3/4] ddr: marvell: update additional ODT setting

2018-01-17 Thread Chris Packham
read_sample is the same as the max_read_sample. Signed-off-by: Chris Packham --- Changes in v2: - new drivers/ddr/marvell/a38x/ddr3_training_hw_algo.c | 22 ++ 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/drivers/ddr/marvell/a38x/ddr3_training_hw_algo.c b

[U-Boot] [PATCH v4] spi: kirkwood_spi: implement workaround for FE-9144572

2018-01-22 Thread Chris Packham
. Implement the workaround by setting the TMISO_SAMPLE value to 0x2 in the timing1 register. Signed-off-by: Chris Packham Reviewed-by: Stefan Roese Reviewed-by: Jagan Teki --- I've based this as much as I can on the equivalent implementation in the Linux kernel[1], but there are differences in

Re: [U-Boot] SquashFS and FIT images

2018-01-25 Thread Chris Packham
Hi Mark, On 26/01/2018 10:12, "Mathew McBride" wrote: On 26/01/2018 8:01 AM, Bishop, Mark (STRT) wrote: > Is it possible to specify squashFS images in an .its file? If so, anyone > have an example or a pointer to the docs I've been searching for? > Hi Mark, > It is possible, here is an example

[U-Boot] [PATCH v2 1/2] lib: net_utils: make string_to_ip stricter

2017-01-03 Thread Chris Packham
.0, which for the purposes of IP addresses can be considered an error. Signed-off-by: Chris Packham --- This was part of my long running IPv6 patchset (which I promise I'll get back to someday). But I feel this stands on it's own merits. Changes in v2: - split into 2 patches lib/net_u

[U-Boot] [PATCH v2 2/2] lib: net_utils: enforce '.' as octet separator in string_to_ip

2017-01-03 Thread Chris Packham
Ensure '.' is used to separate octets. If another character is seen reject the string outright and return 0.0.0.0. Signed-off-by: Chris Packham --- Changes in v2: - new END lib/net_utils.c | 4 1 file changed, 4 insertions(+) diff --git a/lib/net_utils.c b/lib/net_uti

Re: [U-Boot] [PATCH v2 1/2] lib: net_utils: make string_to_ip stricter

2017-01-04 Thread Chris Packham
Hi Wolfgang, On Wed, Jan 4, 2017 at 11:04 PM, Wolfgang Denk wrote: > Dear Chris, > > In message <20170104003626.4211-1-judge.pack...@gmail.com> you wrote: >> >> With the input "1234192.168.1.1" the old behaviour would truncate the >> address to 192.168.1.1. New behaviour rejects the string outrig

<    4   5   6   7   8   9   10   11   >