[U-Boot] [PATCH v2 0/2] x530: Enable watchdog

2019-02-15 Thread Chris Packham
s but even a reboot loop is better than a complete lockup. Changes in v2: - update commit message Chris Packham (2): watchdog: orion_wdt: support SPL usage arm: mvebu: x530: Enable watchdog in SPL and U-Boot arch/arm/dts/armada-385-atl-x530-u-boot.dtsi | 4 ++ board/alliedtelesis/x530/x

[U-Boot] [PATCH v2 2/2] arm: mvebu: x530: Enable watchdog in SPL and U-Boot

2019-02-15 Thread Chris Packham
Enable the hardware watchdog to guard against system lock ups when running in the SPL or U-Boot. Stop the watchdog just before booting so that the OS can re-enable it if needed. Signed-off-by: Chris Packham --- Changes in v2: - update commit message arch/arm/dts/armada-385-atl-x530-u

[U-Boot] [PATCH v2 1/2] watchdog: orion_wdt: support SPL usage

2019-02-15 Thread Chris Packham
When run from the SPL the mvebu targets are using the hardware default offset for the SoC peripherals. devfdt_get_addr_size_index() understands how to deal with this via dm_get_translation_offset() so use this instead of fdtdec_get_addr_size_auto_noparent(). Signed-off-by: Chris Packham Reviewed

[U-Boot] [PATCH v2 1/5] arm: sync armada-xp dts files from Linux 5.0

2019-02-15 Thread Chris Packham
Bring in the Armada 370/XP dts/dtsi files from Linux. As U-Boot hasn't got the new NAND driver the updating binding has not been included. Signed-off-by: Chris Packham --- Changes in v2: None arch/arm/dts/armada-370-xp.dtsi | 133 ++ arch/arm/dts/armada-xp-g

[U-Boot] [PATCH v2 2/5] arm: mvebu: Add Marvell's integrated CPUs

2019-02-15 Thread Chris Packham
re complex registers). Signed-off-by: Chris Packham --- Changes in v2: - use CONFIG_ARMADA_MSYS instead of just CONFIG_MSYS - Disable MBUS Error proagation arch/arm/mach-mvebu/Kconfig | 18 - arch/arm/mach-mvebu/Makefile | 1 + arch/arm/mach-m

[U-Boot] [PATCH v2 3/5] arm: mvebu: NAND clock support for MSYS devices

2019-02-15 Thread Chris Packham
One difference with the integrated CPUs is that they use a different clock control block to the Armada devices. Update mvebu_get_nand_clock() accordingly. Signed-off-by: Chris Packham --- This could probably be squashed into the previous change. I was trying to separate things to aid review but

[U-Boot] [PATCH v2 5/5] arm: mvebu: Add DB-XC3-24G4XG board

2019-02-15 Thread Chris Packham
From: Chris Packham The DB-XC3-24G4XG is a switch development board from Marvell. It can either use and external CPU card such as the db-88f6820-amc or the internal CPU that is integrated into the switch. Add support for running U-Boot on the internal CPU and enable the USB, SPI and NAND

[U-Boot] [PATCH v2 4/5] tools: kwbimage: don't adjust for image_header for Armada MSYS

2019-02-15 Thread Chris Packham
Signed-off-by: Chris Packham --- Changes in v2: - new, split out from Add DB-XC3-24G4XG board with a better explanation tools/Makefile | 4 tools/kwbimage.c | 4 2 files changed, 8 insertions(+) diff --git a/tools/Makefile b/tools/Makefile index 081383d7a790..d99098d6167a 100644 -

[U-Boot] [PATCH v2 0/5] Marvell DB-XC3-24G4XG board support

2019-02-15 Thread Chris Packham
tion - u-boot specific changes in u-boot.dtsi - remove unnecessary entries from board config.h - move some changes to earlier patches Chris Packham (5): arm: sync armada-xp dts files from Linux 5.0 arm: mvebu: Add Marvell's integrated CPUs arm: mvebu: NAND clock support for MSYS devices

[U-Boot] [PATCH v3 0/3] x530: Enable watchdog

2019-02-17 Thread Chris Packham
s but even a reboot loop is better than a complete lockup. Changes in v3: - new - specify timeout in milliseconds Changes in v2: - update commit message Chris Packham (3): watchdog: orion_wdt: support SPL usage watchdog: orion_wdt: take timeout value in ms arm: mvebu: x530: Enable watchdog i

[U-Boot] [PATCH v3 1/3] watchdog: orion_wdt: support SPL usage

2019-02-17 Thread Chris Packham
When run from the SPL the mvebu targets are using the hardware default offset for the SoC peripherals. devfdt_get_addr_size_index() understands how to deal with this via dm_get_translation_offset() so use this instead of fdtdec_get_addr_size_auto_noparent(). Signed-off-by: Chris Packham Reviewed

[U-Boot] [PATCH v3 3/3] arm: mvebu: x530: Enable watchdog in SPL and U-Boot

2019-02-17 Thread Chris Packham
Enable the hardware watchdog to guard against system lock ups when running in the SPL or U-Boot. Stop the watchdog just before booting so that the OS can re-enable it if needed. Signed-off-by: Chris Packham --- Changes in v3: - specify timeout in milliseconds Changes in v2: - update commit

[U-Boot] [PATCH v3 2/3] watchdog: orion_wdt: take timeout value in ms

2019-02-17 Thread Chris Packham
The generic wdt_start API expects to be called with the timeout in milliseconds. Update the orion_wdt driver to accept a timeout in milliseconds and use the clock rate specified in the dts to convert the timeout to an appropriate value for the timer reload register. Signed-off-by: Chris Packham

[U-Boot] [PATCH] dm: Fix typo 'Watchdot' -> 'Watchdog'

2019-02-17 Thread Chris Packham
Signed-off-by: Chris Packham --- include/dm/uclass-id.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/dm/uclass-id.h b/include/dm/uclass-id.h index f3bafb3c6353..86e59781b058 100644 --- a/include/dm/uclass-id.h +++ b/include/dm/uclass-id.h @@ -106,7 +106,7 @@ enum

[U-Boot] [PATCH v4 3/3] arm: mvebu: x530: Enable watchdog in SPL and U-Boot

2019-02-17 Thread Chris Packham
Enable the hardware watchdog to guard against system lock ups when running in the SPL or U-Boot. Stop the watchdog just before booting so that the OS can re-enable it if needed. Signed-off-by: Chris Packham --- Changes in v4: None Changes in v3: - specify timeout in milliseconds Changes in v2

[U-Boot] [PATCH v4 1/3] watchdog: orion_wdt: support SPL usage

2019-02-17 Thread Chris Packham
When run from the SPL the mvebu targets are using the hardware default offset for the SoC peripherals. devfdt_get_addr_size_index() understands how to deal with this via dm_get_translation_offset() so use this instead of fdtdec_get_addr_size_auto_noparent(). Signed-off-by: Chris Packham Reviewed

[U-Boot] [PATCH v4 2/3] watchdog: orion_wdt: take timeout value in ms

2019-02-17 Thread Chris Packham
The generic wdt_start API expects to be called with the timeout in milliseconds. Update the orion_wdt driver to accept a timeout in milliseconds and use the clock rate specified in the dts to convert the timeout to an appropriate value for the timer reload register. Signed-off-by: Chris Packham

[U-Boot] [PATCH v4 0/3] x530: Enable watchdog

2019-02-17 Thread Chris Packham
s but even a reboot loop is better than a complete lockup. Changes in v4: - use DIV_ROUND_UP to avoid setting the timeout to 0. Changes in v3: - new - specify timeout in milliseconds Changes in v2: - update commit message Chris Packham (3): watchdog: orion_wdt: support SPL usage wat

Re: [U-Boot] [PATCH v4 2/3] watchdog: orion_wdt: take timeout value in ms

2019-02-17 Thread Chris Packham
On Mon, Feb 18, 2019 at 10:31 AM Chris Packham wrote: > > The generic wdt_start API expects to be called with the timeout in > milliseconds. Update the orion_wdt driver to accept a timeout in > milliseconds and use the clock rate specified in the dts to convert the > timeout to

Re: [U-Boot] [PATCH v4 2/3] watchdog: orion_wdt: take timeout value in ms

2019-02-17 Thread Chris Packham
On Mon, Feb 18, 2019 at 10:41 AM Chris Packham wrote: > > On Mon, Feb 18, 2019 at 10:31 AM Chris Packham > wrote: > > > > The generic wdt_start API expects to be called with the timeout in > > milliseconds. Update the orion_wdt driver to accept a timeout in > &g

Re: [U-Boot] [PATCH v2 4/5] tools: kwbimage: don't adjust for image_header for Armada MSYS

2019-02-18 Thread Chris Packham
On Mon, Feb 18, 2019 at 8:13 PM Stefan Roese wrote: > > Hi Chris, > > On 15.02.19 23:49, Chris Packham wrote: > > For the time being the Armada MSYS SoCs need to use the bin_hdr from the > > Marvell U-Boot. Because of this the binary.0 does not contain the image > &g

[U-Boot] [PATCH v3] tools: kwbimage: don't adjust for image_header for Armada MSYS

2019-02-18 Thread Chris Packham
Signed-off-by: Chris Packham --- I'm just sending a v3 of this patch since the rest of the DB-XC3-24G4XG series is unchanged. Changes in v3: - use the filename binary.0 to determine if the destaddr needs to match execaddr. Changes in v2: - new, split out from Add DB-XC3-24G4XG boar

Re: [U-Boot] Commit "arm: kirkwood: configs: dreamplug: Convert to DM_SPI" breaks u-boot on Dreamplug

2019-02-27 Thread Chris Packham
the system. I bisected the issue to the following > commit: > > commit 6aaf76beb131c2ff2b7184c2d63c2c63e5ab339c > Author: Chris Packham > Date: Wed Nov 21 22:22:23 2018 +1300 > > arm: kirkwood: configs: dreamplug: Convert to DM_SPI > > Enable CONFIG_DM_SPI=

[U-Boot] [PATCH] ARM: kirkwood: add spi0 alias for dreamplug

2019-02-27 Thread Chris Packham
: Chris Packham --- Leigh, Could you test this on your system for me. I'm only able to compile test this myself. arch/arm/dts/kirkwood-dreamplug.dts | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/dts/kirkwood-dreamplug.dts b/arch/arm/dts/kirkwood-dreamplug.dts index a647a65

Re: [U-Boot] Commit "ARM: CPU: arm926ejs: Consolidate cache routines to common file" breaks u-boot on Dreamplug

2019-02-28 Thread Chris Packham
Hi Leigh, On Thu, Feb 28, 2019 at 1:11 AM Leigh Brown wrote: > > Hello, > > Vagrant Cascadian asked for people to test the version of u-boot > packaged > for Debian Buster. I tested u-boot on my Dreamplug and found it was not > working correctly. I raised a bug for Debian[1] but I have also tes

Re: [U-Boot] Marvell DDR training custom ODT configuration

2019-02-28 Thread Chris Packham
On Thu, 28 Feb 2019 22:45 Baruch Siach, wrote: > Hi Chris, > > Currently the value of g_odt_config is hard coded in Marvell SoC > platform headers. Some SolidRun A388 SOMs need a custom value. These > SOMs use both DDR chip-selects, but ODT0 alone is connected to both > chips. For that to work we

Re: [U-Boot] [PATCH] ARM: kirkwood: add spi0 alias for dreamplug

2019-02-28 Thread Chris Packham
; Loading Kernel Image ... OK > Loading Ramdisk to 0fd61000, end 07e4 ... OK > Loading Device Tree to 0fd5b000, end 0fd606dc ... OK > > Starting kernel ... > > On 2019-02-28 07:53, Chris Packham wrote: > > The conversion to DM_SPI managed to break accessing the e

[U-Boot] [PATCH 1/2] mv_ddr: ddr3: fix tRAS timimg parameter

2019-02-28 Thread Chris Packham
From: Chris Packham Based on the JEDEC standard JESD79-3F. The tRAS timings should include the highest speed bins at a given frequency. This is similar to commit 683c67b ("mv_ddr: ddr3: fix tfaw timimg parameter") where the wrong comparison was used in the initial implementation. Sig

[U-Boot] [PATCH 2/2] mv_ddr: ddr3: only use active chip-selects when tuning ODT

2019-02-28 Thread Chris Packham
From: Chris Packham Inactive chip-selects will give invalid values for read_sample so don't consider them when trying to determine the overall min/max read sample. Signed-off-by: Chris Packham [https://github.com/MarvellEmbeddedProcessors/mv-ddr-marvell/pull/18] Signed-off-by: Chris Pa

Re: [U-Boot] Marvell DDR training custom ODT configuration

2019-02-28 Thread Chris Packham
On Thu, Feb 28, 2019 at 10:45 PM Baruch Siach wrote: > > Hi Chris, > > Currently the value of g_odt_config is hard coded in Marvell SoC > platform headers. Some SolidRun A388 SOMs need a custom value. These > SOMs use both DDR chip-selects, but ODT0 alone is connected to both > chips. For that to

[U-Boot] db-88f6820-amc doesn't boot on latest u-boot/master

2019-02-28 Thread Chris Packham
Hi All, I was just testing out the db-88f6820-amc on u-boot#master and found that the SPL can't fetch then next stage from SPI. U-Boot SPL 2019.04-rc2-00139-g91c56ed98da7 (Mar 01 2019 - 10:26:26 +1300) High speed PHY - Version: 2.0 Detected Device ID 6820 board SerDes lanes topology details: | La

[U-Boot] [PATCH] ARM: mvebu: set CONFIG_SYS_MALLOC_F_LEN to 0x2000

2019-02-28 Thread Chris Packham
Set CONFIG_SYS_MALLOC_F_LEN to match the rest of the mvebu boards. The default of 0x400 is not enough when booting from SPI. Signed-off-by: Chris Packham --- configs/db-88f6820-amc_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/db-88f6820-amc_defconfig b/configs/db

Re: [U-Boot] db-88f6820-amc doesn't boot on latest u-boot/master

2019-02-28 Thread Chris Packham
On Fri, Mar 1, 2019 at 11:15 AM Chris Packham wrote: > > Hi All, > > I was just testing out the db-88f6820-amc on u-boot#master and found > that the SPL can't fetch then next stage from SPI. > > U-Boot SPL 2019.04-rc2-00139-g91c56ed98da7 (Mar 01 2019 - 10:26:26 +1300)

Re: [U-Boot] db-88f6820-amc doesn't boot on latest u-boot/master

2019-02-28 Thread Chris Packham
On Fri, Mar 1, 2019 at 5:12 PM Vignesh Raghavendra wrote: > > > > On 01/03/19 7:00 AM, Chris Packham wrote: > > On Fri, Mar 1, 2019 at 11:15 AM Chris Packham > > wrote: > >> > >> Hi All, > >> > >> I was just testing out the db-88f6820-

Re: [U-Boot] db-88f6820-amc doesn't boot on latest u-boot/master

2019-03-01 Thread Chris Packham
On Fri, Mar 1, 2019 at 8:40 PM Chris Packham wrote: > > On Fri, Mar 1, 2019 at 5:12 PM Vignesh Raghavendra wrote: > > > > > > > > On 01/03/19 7:00 AM, Chris Packham wrote: > > > On Fri, Mar 1, 2019 at 11:15 AM Chris Packham > > > wrote: > &

Re: [U-Boot] db-88f6820-amc doesn't boot on latest u-boot/master

2019-03-01 Thread Chris Packham
On Fri, Mar 1, 2019 at 9:35 PM Vignesh Raghavendra wrote: > > > > On 01/03/19 1:42 PM, Chris Packham wrote: > > On Fri, Mar 1, 2019 at 8:40 PM Chris Packham > > wrote: > >> > >> On Fri, Mar 1, 2019 at 5:12 PM Vignesh Raghavendra wrote: > >>>

[U-Boot] [PATCH] ARM: mvebu: db-88f6820-amc: enable SPI_FLASH_BAR

2019-03-01 Thread Chris Packham
This board uses Micron N25Q256A SPI flash. Enable SPI_FLASH_BAR to allow us to access the whole chip. Signed-off-by: Chris Packham Cc: Vignesh R --- configs/db-88f6820-amc_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/db-88f6820-amc_defconfig b/configs/db-88f6820

Re: [U-Boot] [PATCH v2 5/5] arm: mvebu: Add DB-XC3-24G4XG board

2019-04-11 Thread Chris Packham
On Thu, Apr 11, 2019 at 6:46 PM Stefan Roese wrote: > > Hi Chris, > > On 15.02.19 23:49, Chris Packham wrote: > > From: Chris Packham > > > > The DB-XC3-24G4XG is a switch development board from Marvell. It can > > either use and external CPU card such as th

Re: [U-Boot] [PATCH] arm: mvebu: Fix Kconfig dependency warnings

2019-04-11 Thread Chris Packham
gt; Selected by [y]: > - ARMADA_32BIT [=y] && ARM [=y] && ARCH_MVEBU [=y] > ... > > This patch fixes this issue and removes these warnings. > > Signed-off-by: Stefan Roese > Cc: Chris Packham Reviewed-by: Chris Packham > --- > arch/arm/mach-mvebu/Kconfig | 8 +

Re: [U-Boot] [PATCH v2 5/5] arm: mvebu: Add DB-XC3-24G4XG board

2019-04-11 Thread Chris Packham
On Thu, Apr 11, 2019 at 7:23 PM Chris Packham wrote: > > On Thu, Apr 11, 2019 at 6:46 PM Stefan Roese wrote: > > > > Hi Chris, > > > > On 15.02.19 23:49, Chris Packham wrote: > > > From: Chris Packham > > > > > > The DB-XC3-24G4XG is a s

Re: [U-Boot] [PATCH v2 5/5] arm: mvebu: Add DB-XC3-24G4XG board

2019-04-11 Thread Chris Packham
On Thu, Apr 11, 2019 at 8:35 PM Stefan Roese wrote: > > On 11.04.19 10:21, Chris Packham wrote: > > On Thu, Apr 11, 2019 at 7:23 PM Chris Packham > > wrote: > >> > >> On Thu, Apr 11, 2019 at 6:46 PM Stefan Roese wrote: > >>> > >>>

[U-Boot] [PATCH v3 0/4] Marvell DB-XC3-24G4XG board support

2019-04-11 Thread Chris Packham
output directories. Changes in v2: - use CONFIG_ARMADA_MSYS instead of just CONFIG_MSYS - Disable MBUS Error proagation - new, split out from Add DB-XC3-24G4XG board with a better explanation - u-boot specific changes in u-boot.dtsi - remove unnecessary entries from board config.h - move some cha

[U-Boot] [PATCH v3 1/4] arm: mvebu: Add Marvell's integrated CPUs

2019-04-11 Thread Chris Packham
re complex registers). Signed-off-by: Chris Packham --- Changes in v3: None Changes in v2: - use CONFIG_ARMADA_MSYS instead of just CONFIG_MSYS - Disable MBUS Error proagation arch/arm/mach-mvebu/Kconfig | 18 - arch/arm/mach-mvebu/Makefile | 1 + arch/arm/

[U-Boot] [PATCH v3 2/4] arm: mvebu: NAND clock support for MSYS devices

2019-04-11 Thread Chris Packham
One difference with the integrated CPUs is that they use a different clock control block to the Armada devices. Update mvebu_get_nand_clock() accordingly. Signed-off-by: Chris Packham --- This could probably be squashed into the previous change. I was trying to separate things to aid review but

[U-Boot] [PATCH v3 4/4] arm: mvebu: Add DB-XC3-24G4XG board

2019-04-11 Thread Chris Packham
From: Chris Packham The DB-XC3-24G4XG is a switch development board from Marvell. It can either use and external CPU card such as the db-88f6820-amc or the internal CPU that is integrated into the switch. Add support for running U-Boot on the internal CPU and enable the USB, SPI and NAND

[U-Boot] [PATCH v3 3/4] tools: kwbimage: don't adjust for image_header for Armada MSYS

2019-04-11 Thread Chris Packham
Signed-off-by: Chris Packham --- Changes in v3: - use the filename binary.0 to determine if the destaddr needs to match execaddr. Changes in v2: - new, split out from Add DB-XC3-24G4XG board with a better explanation tools/kwbimage.c | 7 +++ 1 file changed, 7 insertions(+) diff --g

[U-Boot] [PATCH v2 1/2] ARM: mvebu: rename armada-385-amc.dts to armada-385-db-88f6820-amc.dts

2019-04-11 Thread Chris Packham
This board was added to u-boot first but the Linux maintainers requested a more descriptive name. Rename the file to match the Linux usage and update the board defconfig. Signed-off-by: Chris Packham --- Changes in v2: - rebase against u-boot-marvell/master arch/arm/dts/Makefile

[U-Boot] [PATCH v2 2/2] ARM: mvebu: sync db-88f6820-amc.dts with Linux v5.0

2019-04-11 Thread Chris Packham
Sync armada-385-db-88f6820-amc.dts with Linux. Retain the u-boot,dm-pre-reloc and nand differences. Signed-off-by: Chris Packham --- Changes in v2: - rebase against u-boot-marvell/master arch/arm/dts/armada-385-db-88f6820-amc.dts | 184 + 1 file changed, 82 insertions

Re: [U-Boot] [PATCH 2/3] arm: kirkwood: openrd: Remove superfluous CONFIG_ENV_ADDR

2019-04-11 Thread Chris Packham
On Thu, 11 Apr 2019, 10:33 PM Stefan Roese, wrote: > Remove the superfluous CONFIG_ENV_ADDR definition. Its not needed > as CONFIG_ENV_OFFSET is also set to the same value. > > Signed-off-by: Stefan Roese > Cc: Chris Packham > Reviewed-by: Chris Packham > --- > incl

Re: [U-Boot] [PATCH 3/3] arm: kirkwood: openrd: Increase U-Boot size in flash to make it fit

2019-04-12 Thread Chris Packham
the environment location and potentially the > MTD partitioning, but I see no better fix for now. Especially since > this board does not have an active maintainer. > > Signed-off-by: Stefan Roese > Cc: Chris Packham One alternative option I looked at was trimming down the dtb to d

Re: [U-Boot] [PATCH 1/3] arm: kirkwood: dts: Add openrd-* dtb makefile build targets

2019-04-12 Thread Chris Packham
> Signed-off-by: Stefan Roese > Cc: Chris Packham > Reviewed-by: Chris Packham > --- > arch/arm/dts/Makefile | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile > index 4f05df1321..f36b801219 100644 > ---

Re: [U-Boot] doing anything about "bad" Kbuild configuration options?

2019-04-12 Thread Chris Packham
On Sat, 13 Apr 2019, 4:56 AM Robert P. J. Day, wrote: > one of the worst culprits appears to be CONFIG_SPL_BUILD, which > appears all over the tree, but one can see a recent commit that takes > that into account: > That's not quite right. CONFIG_SPL_BUILD is defined for the Makefile just not i

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

2019-04-12 Thread Chris Packham
> Baruch Siach (6): >ARM: mvebu: define board_ahci_enable() for A38x >ata: ahci_mvebu: add support for Armada 38x >git-mailrc: update the kirkwood entry >arm: mvebu: clearfog: document eMMC installation >mvebu: d

[U-Boot] [PATCH v4 1/2] ARM: kirkwood: add db-88f6281-bp board

2019-04-13 Thread Chris Packham
there are two defconfigs (one per boot media). Signed-off-by: Chris Packham --- Changes in v4: - Correctly handle external build output directories - Add entries to arch/arm/dts/Makefile Changes in v3: - incorporate review feedback (except for DM_SERIAL) from Stefan arch/arm/dts/Mak

[U-Boot] [PATCH v4 2/2] ARM: kirkwood: enable CONFIG_DM_USB on db-88f6281-bp

2019-04-13 Thread Chris Packham
Switch to the driver model for USB on the db-88f6281-bp board. CONFIG_BLK can't be enabled yet because mvebu_mmc.c needs converting. Signed-off-by: Chris Packham Reviewed-by: Stefan Roese --- In my original patch series having this separate made sense as this wouldn't be possible w

[U-Boot] [PATCH] ARM: imx: Fix typo in select option for ZMX25

2019-04-13 Thread Chris Packham
Correct CPU_ARM926EJS1 to CPU_ARM926EJS. Reported-by: Robert P. J. Day Signed-off-by: Chris Packham --- arch/arm/mach-imx/mx2/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-imx/mx2/Kconfig b/arch/arm/mach-imx/mx2/Kconfig index ea308fccab02

[U-Boot] [PATCH 1/2] sysreset: select DM_GPIO instead of GPIO

2019-04-13 Thread Chris Packham
CONFIG_GPIO does not exist. sysreset_gpio.c uses the DM gpio APIs so the correct option to select is DM_GPIO. Reported-by: Robert P. J. Day Signed-off-by: Chris Packham --- drivers/sysreset/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/sysreset/Kconfig b

[U-Boot] [PATCH 2/2] Remove whitelist entry for CONFIG_GPIO

2019-04-13 Thread Chris Packham
CONFIG_GPIO does not exist. There is one hit for it in tegra_gpio.c but it is a variable name. 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 fa98efc24c0b

Re: [U-Boot] very short list of "badref selects" in u-boot source

2019-04-13 Thread Chris Packham
On Sat, Apr 13, 2019 at 8:43 AM Robert P. J. Day wrote: > > > rather than go to the trouble of whipping up a wiki page, i can > present this in a short post to the list. here's the list of what my > script identified as "badref selects" -- those identifiers for which > there is a Kconfig line of

[U-Boot] [PATCH 0/4] Remove select CRC32 and CONFIG_CRC32

2019-04-13 Thread Chris Packham
spect some of this may have come in when code has been imported from Linux (particularly the UBI/UBIFS code). Chris Packham (4): cmd: ubifs: Remove select for non-existent option mtd: ubi: Remove select for non existent option Remove #define CONFIG_CRC32 Remove whitelist entry for CONFIG_

[U-Boot] [PATCH 1/4] cmd: ubifs: Remove select for non-existent option

2019-04-13 Thread Chris Packham
There is no 'config CRC32', remove the select that was attempting to use it. Reported-by: Robert P. J. Day Signed-off-by: Chris Packham --- cmd/Kconfig | 2 -- 1 file changed, 2 deletions(-) diff --git a/cmd/Kconfig b/cmd/Kconfig index 2bdbfcb3d091..71a7f1cc83c5 100644 --- a/c

[U-Boot] [PATCH 2/4] mtd: ubi: Remove select for non existent option

2019-04-13 Thread Chris Packham
There is no 'config CRC32' remove the select that was attempting to use it. Reported-by: Robert P. J. Day Signed-off-by: Chris Packham --- drivers/mtd/ubi/Kconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/mtd/ubi/Kconfig b/drivers/mtd/ubi/Kconfig index cf

[U-Boot] [PATCH 3/4] Remove #define CONFIG_CRC32

2019-04-13 Thread Chris Packham
There is no check for CONFIG_CRC32 so the #define in image.h does nothing. Remove it. Reported-by: Robert P. J. Day Signed-off-by: Chris Packham --- include/image.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/image.h b/include/image.h index 765ffecee0a7..6b2661ed0bd6 100644

[U-Boot] [PATCH 4/4] Remove whitelist entry for CONFIG_CRC32

2019-04-13 Thread Chris Packham
There are no longer any references to this in the code so this can be removed. 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 48622b12bb64..634bb8d53b57 100644

Re: [U-Boot] [PATCH 1/1] arm: mvebu: Add CRS305-1G-4S board

2019-05-03 Thread Chris Packham
On Fri, May 3, 2019 at 4:36 AM Luka Kovacic wrote: > > CRS305-1G-4S has a switch chip with an integrated CPU (98DX3236) and like > some of the > other simillar boards requires bin_hdr. bin_hdr (DDR3 init stage) is > currently retrieved > from the stock bootloader and compiled into the kwb image.

Re: [U-Boot] [PATCH 3/3] arm: mvebu: db-88f6820-gp: Enabel BLK and DM support

2019-05-05 Thread Chris Packham
removal. > See doc/driver-model/MIGRATION.txt for more info. > > > Signed-off-by: Stefan Roese > Typo in subject line. Other than that Reviewed-by: Chris Packham --- > configs/db-88f6820-gp_defconfig | 4 +++- > 1 file changed

Re: [U-Boot] [PATCH 1/1 v4] arm: mvebu: Add CRS305-1G-4S board

2019-05-08 Thread Chris Packham
ed into the kwb image. > > Adds support for U-Boot, enable UART, SPI, Winbond SPI flash chip > support and writing env to SPI flash. > > Signed-off-by: Luka Kovacic Reviewed-by: Chris Packham > --- > v1: >- arch/arm/dts: Remove unused parameters in DTS for crs305-1g

Re: [U-Boot] [PATCH 1/1] pci: pci_mvebu: ignore the local device

2019-05-10 Thread Chris Packham
ff-by: Marek Behún > Cc: Stefan Roese > Cc: Anton Schubert > Cc: Dirk Eibach > Cc: Mario Six > Cc: Chris Packham > Cc: Phil Sutter > Cc: VlaoMao On the Allied Telesis x530 before: => pci enum => pci Scanning PCI devices on bus 0 BusDevFun VendorId DeviceId

Re: [U-Boot] [PATCH u-boot-marvell 0/6] More fixes for Turris Omnia

2019-05-10 Thread Chris Packham
On Fri, May 10, 2019 at 8:23 PM Stefan Roese wrote: > > Hi Marek, > > (Added Chris to Cc) > > On 10.05.19 05:10, Marek Behún wrote: > > Hi Stefan, I am sending five another fixes for Turris Omnia. > > Thanks. I'll queue those once they are ready for the next merge > window. > > BTW: I'm currently

Re: [U-Boot] [PATCH] arm: mvebu: armada-370-xp.dtsi: Add "u-boot, dm-pre-reloc" to "internal-regs"

2019-05-10 Thread Chris Packham
runately. > > Signed-off-by: Stefan Roese > Cc: Chris Packham > Cc: Marek Behún > Thanks. Is this a regression from my last sync? The only Armada XP like platform I had access to was msys and that doesn't use SPL (yet). Reviewed-by: Chris Packham --- > arch/arm/dts/armad

Re: [U-Boot] [PATCH] arm: mvebu: armada-370-xp.dtsi: Add "u-boot, dm-pre-reloc" to "internal-regs"

2019-05-12 Thread Chris Packham
On Sun, May 12, 2019 at 10:09 PM Stefan Roese wrote: > > On 11.05.19 02:09, Chris Packham wrote: > > > > > > On Fri, 10 May 2019, 11:34 PM Stefan Roese, > <mailto:s...@denx.de>> wrote: > > > > Without this U-Boot specific property, booting on

Re: [U-Boot] [PATCH 1/1] pci: pci_mvebu: ignore the local device

2019-05-12 Thread Chris Packham
Hi Marek, On Fri, May 10, 2019 at 11:44 PM Marek Behun wrote: > > On Fri, 10 May 2019 10:15:25 +0200 > Stefan Roese wrote: > > > On 10.05.19 04:56, Marek Behún wrote: > > > The local device (host "bridge"?) on pci_mvebu controller reports > > > PCI_CLASS_MEMORY_OTHER in the class register. > > >

Re: [U-Boot] [PATCH 14/21] Add a simple script to remove boards

2019-05-15 Thread Chris Packham
On Wed, May 15, 2019 at 9:54 AM Simon Glass wrote: > > This script attempts to create a git commit which removes a single board. > It is quite fallible and everything it does needs checking. But it can > help speed up the process. > > Signed-off-by: Simon Glass > --- Did you mean to include this

Re: [U-Boot] [PATCH 00/21] patman: Update to support Python 3

2019-05-15 Thread Chris Packham
ements to functions > - Use the built-in set() class > - Fix up generation of repeated bytes > > A few patches for binman are included, but this still requires Python 2. > Couple of comments on 14/21 but the rest of the series Reviewed-by: Chris Packham > > Simon Glass (21):

Re: [U-Boot] [PATCH 5/9] arm: mvebu: fix ahci mbus config in SPL

2019-05-17 Thread Chris Packham
On Thu, May 16, 2019 at 10:09 PM Baruch Siach wrote: > > SPL does not initialize mbus_dram_info. Don't change the ahci mbus > settings of the ROM. This allows the ahci to work in SPL. > > Signed-off-by: Baruch Siach Reviewed-by: Chris Packham > --- > arch/arm/mach

Re: [U-Boot] [PATCH 6/9] arm: mvebu: add support for boot from SATA

2019-05-17 Thread Chris Packham
On Thu, May 16, 2019 at 10:09 PM Baruch Siach wrote: > > Add the required Kconfig and macro definitions to allow boot from SATA > on Armada 38x systems. > > Signed-off-by: Baruch Siach Reviewed-by: Chris Packham > --- > arch/arm/mach-mvebu/Kconfig| 5 + &

Re: [U-Boot] [PATCH 7/9] arm: mvebu: clearfog: enable SATA in SPL

2019-05-17 Thread Chris Packham
On Thu, May 16, 2019 at 10:12 PM Baruch Siach wrote: > > Enable SATA peripherals in SPL to allow boot from SATA. > > Signed-off-by: Baruch Siach Reviewed-by: Chris Packham > --- > arch/arm/dts/armada-388-clearfog-u-boot.dtsi | 8 > 1 file changed, 8 insertion

Re: [U-Boot] [PATCH 8/9] arm: mvebu: clearfog: set U-Boot offset for SATA boot

2019-05-17 Thread Chris Packham
. > > Signed-off-by: Baruch Siach With the typo fix above Reviewed-by: Chris Packham > --- > include/configs/clearfog.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/include/configs/clearfog.h b/include/configs/clearfog.h > index 4198ff051177.

Re: [U-Boot] [PATCH 9/9] arm: mvebu: clearfog: document boot from SATA

2019-05-17 Thread Chris Packham
On Thu, May 16, 2019 at 10:10 PM Baruch Siach wrote: > > Document the main U-Boot image offset when booting from SATA disk on the > Clearfog board. > > Signed-off-by: Baruch Siach Reviewed-by: Chris Packham > --- > board/solidrun/clearfog/README | 6 ++ > 1 fi

Re: [U-Boot] [PATCH v3] Add a simple script to remove boards

2019-05-20 Thread Chris Packham
On Sun, 19 May 2019, 4:07 AM Simon Glass, wrote: > This script attempts to create a git commit which removes a single board. > It is quite fallible and everything it does needs checking. But it can > help speed up the process. > > Signed-off-by: Simon Glass > Reviewed

[U-Boot] Getting the reboot/reset reason through to the kernel

2019-06-11 Thread Chris Packham
Hi List, Sorry for a vague general post. I know that a number of SoCs have a reset reason register so that they can distinguish between power-on reset vs reset line input vs watchdog timer etc. Is there any standard thing in u-boot that looks at these to "do stuff" e.g. to put peripherals throug

Re: [U-Boot] Getting the reboot/reset reason through to the kernel

2019-06-11 Thread Chris Packham
On Wed, Jun 12, 2019 at 11:18 AM Chris Packham wrote: > > Hi List, > > Sorry for a vague general post. > > I know that a number of SoCs have a reset reason register so that they > can distinguish between power-on reset vs reset line input vs watchdog > timer etc. > &g

Re: [U-Boot] [PATCH] arm: mvebu: set 38x and 39x AVS on lower frequency

2019-06-24 Thread Chris Packham
2013.01 revision 18.06. > > Signed-off-by: Baruch Siach I gave it a quick spin on DB-88F6820-AMC and x530. Both booted fine. Reviewed-by: Chris Packham Tested-by: Chris Packham > --- > arch/arm/mach-mvebu/include/mach/cpu.h| 3 +++ > arch/arm/mach-mvebu/serdes/a38x/sys_env_

Re: [U-Boot] [PATCH] arm: mvebu: set 38x and 39x AVS on lower frequency

2019-06-25 Thread Chris Packham
On Tue, Jun 25, 2019 at 5:50 PM Baruch Siach wrote: > > Hi Chris, > > On Tue, Jun 25 2019, Chris Packham wrote: > > On Mon, Jun 24, 2019 at 8:30 PM Baruch Siach wrote: > >> > >> Reduce Auto Voltage Scaling VDD limit when core frequency is lower than > >

Re: [U-Boot] Difference between _defconfig and _config make switches

2019-06-25 Thread Chris Packham
On Tue, Jun 25, 2019 at 9:49 AM Robert P. J. Day wrote: > > On Tue, 25 Jun 2019, Ahmad Ijaz wrote: > > > Hi Sir, > > > > I am trying to understand u-boot source code. As a starting point, I > > compiled u-boot for beaglebone black and successfully executed it on > > beaglebone hardware. > > My que

Re: [U-Boot] [PATCH] arm: mvebu: set 38x and 39x AVS on lower frequency

2019-06-25 Thread Chris Packham
On Tue, Jun 25, 2019 at 7:49 PM Chris Packham wrote: > > On Tue, Jun 25, 2019 at 5:50 PM Baruch Siach wrote: > > > > Hi Chris, > > > > On Tue, Jun 25 2019, Chris Packham wrote: > > > On Mon, Jun 24, 2019 at 8:30 PM Baruch Siach wrote: > > >>

[U-Boot] [PATCH] ARM: mvebu: Enable FIT support for db-xc3-24g4xg

2019-06-27 Thread Chris Packham
Signed-off-by: Chris Packham --- I had this locally but forgot to submit it when I send the initial board support. I find FIT images really useful to test a generic kernel on boards requiring different DTBs. configs/db-xc3-24g4xg_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a

[U-Boot] [PATCH v2 00/12] ARM: kirkwood: migrate to DM_USB

2019-03-07 Thread Chris Packham
This is my series to convert the kirkwood platforms to DM_USB. I've been testing on an old kirkwood eval board which patch 1 adds. I'd really appreciate some testing on other kirkwood platforms. Chris Packham (12): ARM: kirkwood: add db-88f6281-bp board ARM: kirkwood: rename KW_CP

[U-Boot] [PATCH v2 02/12] ARM: kirkwood: rename KW_CPU_WIN_BASE to MVEBU_CPU_WIN_BASE

2019-03-07 Thread Chris Packham
This will allow the kirkwood platforms to use more common code with the other mvebu SoCs. Signed-off-by: Chris Packham --- arch/arm/mach-kirkwood/cpu.c | 2 +- arch/arm/mach-kirkwood/include/mach/soc.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm

[U-Boot] [PATCH v2 01/12] ARM: kirkwood: add db-88f6281-bp board

2019-03-07 Thread Chris Packham
there are two defconfigs (one per boot media). Signed-off-by: Chris Packham --- arch/arm/dts/kirkwood-db-88f6281-spi.dts| 48 + arch/arm/dts/kirkwood-db-88f6281.dts| 26 + arch/arm/dts/kirkwood-db.dtsi | 94 + arch/arm/mach-kirkwood/Kc

[U-Boot] [PATCH v2 06/12] ARM: kirkwood: enable CONFIG_DM_USB on db-88f6281-bp

2019-03-07 Thread Chris Packham
Switch to the driver model for USB on the db-88f6281-bp board. CONFIG_BLK can't be enabled yet because mvebu_mmc.c needs converting. Signed-off-by: Chris Packham --- configs/db-88f6281-bp-nand_defconfig | 1 + configs/db-88f6281-bp-spi_defconfig | 1 + 2 files changed, 2 insertions(+)

[U-Boot] [PATCH v2 03/12] ARM: kirkwood: remove KW_DEFADR_PCI_IO_REMAP

2019-03-07 Thread Chris Packham
KW_DEFADR_PCI_IO_REMAP has the same value as KW_DEFADR_PCI_IO and is only used to set up a 1:1 mapping. Remove it and update the mapping to use KW_DEFADR_PCI_IO. Signed-off-by: Chris Packham --- arch/arm/mach-kirkwood/cpu.c | 2 +- arch/arm/mach-kirkwood/include/mach/cpu.h | 1

[U-Boot] [PATCH v2 05/12] ARM: kirkwood: remove kw_config_adr_windows

2019-03-07 Thread Chris Packham
Now that kirkwood is using the mvebu mbus this function is no longer needed. Signed-off-by: Chris Packham --- arch/arm/mach-kirkwood/cpu.c | 64 --- arch/arm/mach-kirkwood/include/mach/cpu.h | 1 - 2 files changed, 65 deletions(-) diff --git a/arch/arm/mach

[U-Boot] [PATCH v2 09/12] ARM: kirkwood: enable CONFIG_DM_USB for ds109

2019-03-07 Thread Chris Packham
Enable CONFIG_DM_USB and CONFIG_BLK. Signed-off-by: Chris Packham --- configs/ds109_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/ds109_defconfig b/configs/ds109_defconfig index 3e4e71bcbf4e..ce055f6f1608 100644 --- a/configs/ds109_defconfig +++ b/configs

[U-Boot] [PATCH v2 07/12] ARM: kirkwood: enable CONFIG_DM_USB for {dream, guru, sheeva}plug

2019-03-07 Thread Chris Packham
Enable CONFIG_DM_USB and where possible CONFIG_BLK. Signed-off-by: Chris Packham --- mvebu_mmc.c hasn't been converted to DM so it's not possible to use CONFIG_BLK when CONFIG_MMC is enabled. configs/dreamplug_defconfig | 2 ++ configs/guruplug_defconfig | 2 ++ configs/sheevaplug

[U-Boot] [PATCH v2 12/12] ARM: kirkwood: enable CONFIG_DM_USB for nas220

2019-03-07 Thread Chris Packham
Enable CONFIG_DM_USB and CONFIG_BLK. Signed-off-by: Chris Packham --- configs/nas220_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/nas220_defconfig b/configs/nas220_defconfig index 6bd308bb8264..a244b8d69168 100644 --- a/configs/nas220_defconfig +++ b/configs

[U-Boot] [PATCH v2 04/12] ARM: kirkwood: switch to using mvebu mbus

2019-03-07 Thread Chris Packham
The mvebu mbus code already had most of the support required for kirkwood. The only difference is that unlike the other mvebu targets kirkwood doesn't have a bridge control block so the code related to managing that needs to be compiled out. Signed-off-by: Chris Packham --- arch/arm

[U-Boot] [PATCH v2 08/12] ARM: kirkwood: enable CONFIG_DM_USB for dns325

2019-03-07 Thread Chris Packham
Enable CONFIG_DM_USB and CONFIG_BLK. Signed-off-by: Chris Packham --- configs/dns325_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/dns325_defconfig b/configs/dns325_defconfig index 5a766981603a..ba8b053680b9 100644 --- a/configs/dns325_defconfig +++ b/configs

[U-Boot] [PATCH v2 11/12] ARM: kirkwood: enable CONFIG_DM_USB for lschlv2 and lsxhl

2019-03-07 Thread Chris Packham
Enable CONFIG_DM_USB and CONFIG_BLK. Signed-off-by: Chris Packham --- configs/lschlv2_defconfig | 2 ++ configs/lsxhl_defconfig | 2 ++ 2 files changed, 4 insertions(+) diff --git a/configs/lschlv2_defconfig b/configs/lschlv2_defconfig index 8563abc1356b..7dadc3984efb 100644 --- a/configs

[U-Boot] [PATCH v2 10/12] ARM: kirkwood: enable CONFIG_DM_USB for goflexhome

2019-03-07 Thread Chris Packham
Enable CONFIG_DM_USB and CONFIG_BLK. Signed-off-by: Chris Packham --- configs/goflexhome_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/goflexhome_defconfig b/configs/goflexhome_defconfig index c04bf0ea5742..568b74fd8306 100644 --- a/configs/goflexhome_defconfig +++ b

<    3   4   5   6   7   8   9   10   11   >