Re: [U-Boot] [PATCH v2 01/24] Makefile: move MTD-related lines in coherent Makefiles

2018-11-28 Thread Miquel Raynal
Hi Boris, Boris Brezillon wrote on Thu, 29 Nov 2018 00:46:23 +0100: > On Thu, 29 Nov 2018 00:07:37 +0100 > Miquel Raynal wrote: > > > > --- a/drivers/Makefile > > +++ b/drivers/Makefile > > @@ -6,7 +6,7 @@ obj-$(CONFIG_$(SPL_TPL_)DRIVERS_MISC_SUPPORT) += misc/ > > sysreset/ firmware/ > > ob

Re: [U-Boot] [PATCH] configs: am335x_hs_evm_uart: Add YMODEM SPL support for UART boot

2018-11-28 Thread Lokesh Vutla
On 28/11/18 10:26 PM, Andrew F. Davis wrote: UART booting requires YMODEM support. Add this here. Signed-off-by: Andrew F. Davis Reviewed-by: Lokesh Vutla Thanks and regards, Lokesh ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx

Re: [U-Boot] [PATCH V2 05/15] imx: rename mx8m,MX8M to imx8m,IMX8M

2018-11-28 Thread Jon Nettleton
On Tue, Nov 20, 2018 at 11:21 AM Peng Fan wrote: > > Rename mx8m,MX8M to imx8m,IMX8M > > Signed-off-by: Peng Fan > --- > > V2: > None > > arch/arm/Kconfig | 4 ++-- > arch/arm/Makefile | 4 ++-- > arch/arm/include/asm/

[U-Boot] [PATCH 0/1] ARM: mvebu: Armada-38x DDR training update

2018-11-28 Thread Chris Packham
Hi All, I had a faulty board to debug at $dayjob. Part of that involved trying the latest DDR training code from Marvell. That didn't fix by problem (I suspect a manufacturing issue with that board). Since I've done the work anyway I figured I'd send this out. Most of the delta is code movement a

[U-Boot] [PATCH v2] rockchip: rk3188: use board_debug_uart_init() for UART io init

2018-11-28 Thread Kever Yang
Sync with other rockchip SoCs, use board_debug_uart_init() to init default UART iomux. Signed-off-by: Kever Yang --- Changes in v2: - rebase on uboot-rockchip/master arch/arm/mach-rockchip/Kconfig| 1 + arch/arm/mach-rockchip/rk3188-board-spl.c | 28 ++- 2 file

[U-Boot] [PATCH] rockchp: rock_defconfig: remove TPL_TINY_MEMSET

2018-11-28 Thread Kever Yang
The rk3188 rock board does not need TPL, remove relate MACRO. Signed-off-by: Kever Yang --- configs/rock_defconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/configs/rock_defconfig b/configs/rock_defconfig index 28dcd5bccc..0c41ac9f20 100644 --- a/configs/rock_defconfig +++ b/configs/ro

Re: [U-Boot] [PATCH] rockchip: rk3188: use board_debug_uart_init() for UART io init

2018-11-28 Thread Kever Yang
Hi Philipp, On 11/28/2018 05:21 PM, Philipp Tomsich wrote: > >> On 28.11.2018, at 06:01, Kever Yang wrote: >> >> Sync with other rockchip SoCs, use board_debug_uart_init() to >> init default UART iomux. >> >> Signed-off-by: Kever Yang > Is this different from commit d32f40ce262c584e25a0838840c8

Re: [U-Boot] [RESENT PATCH v3] rockchip: update emmc/sd index for distro boot order

2018-11-28 Thread Kever Yang
On 11/28/2018 05:15 PM, Philipp Tomsich wrote: > Kever, > >> On 28.11.2018, at 03:06, Kever Yang wrote: >> >> According to the emmc/sdcard index in dts alias, emmc is always 0 and >> sdcard index is 1, let's update to using correct mmc number for distro >> boot order in common header. >> >> SD c

Re: [U-Boot] [PATCH 1/3] buildman/toolchain.py: update versions

2018-11-28 Thread Daniel Schwierzeck
Am 21.11.18 um 09:31 schrieb Trevor Woerner: > On kernel.org, a newer 8.1.0 version of the toolchains is available. Also, > update the kernel.org version list to include some of the older versions so > more architectures can be supported. > > Signed-off-by: Trevor Woerner > --- > tools/buildma

Re: [U-Boot] [RESENT PATCH 1/2] rockchip: rk3128: use ROCKCHIP_BOOT_MODE_REG to update reboot flag

2018-11-28 Thread Kever Yang
Hi Philipp, On 11/28/2018 05:07 PM, Philipp Tomsich wrote: > Kever, > >> On 28.11.2018, at 03:04, Kever Yang wrote: >> >> Use ROCKCHIP_BOOT_MODE_REG instead of grf structure so that >> we can re-use the source code later. >> >> Signed-off-by: Kever Yang > NAK, as there are still pending changes

Re: [U-Boot] [PATCH v3 0/9] Stop AXP from crashing when enabling LDO3

2018-11-28 Thread Andy Yan
Hi : Priit Laes 于2018年11月28日周三 下午10:23写道: > On Wed, Nov 28, 2018 at 08:23:37PM +0800, Andy Yan wrote: > > Hi : > > Andy Yan 于2018年11月28日周三 下午7:10写道: > > > > > Hi: > > > Priit Laes 于2018年11月22日周四 上午2:06写道: > > > > > >> This is a resend/v2 of a "Stop AXP from crashing when enabling LDO3" > > >> s

Re: [U-Boot] [PATCH v9 18/28] net: add support for bcm6368-enet

2018-11-28 Thread Daniel Schwierzeck
Am 28.11.18 um 19:23 schrieb Álvaro Fernández Rojas: > Signed-off-by: Álvaro Fernández Rojas > --- > v9: introduce flow control improvements from bcm6348-eth: > - introduce rx packets caching functionality from bcm6348-eth to fix flow >control issues. > - code style fixes. > v8: introd

Re: [U-Boot] [PATCH v2 24/24] mtd: drop CONFIG_MTD_PARTITIONS

2018-11-28 Thread Boris Brezillon
On Thu, 29 Nov 2018 00:08:00 +0100 Miquel Raynal wrote: > There is no point in compiling mtdparts.c only in certain > circumstances. Whether MTD is needed and it will be built, or MTD is > not needed and the file will be ignored. You're overlooking the image size constraint. Some might want to h

Re: [U-Boot] [PATCH v2 22/24] cmd: make all MTD commands depend on MTD

2018-11-28 Thread Boris Brezillon
On Thu, 29 Nov 2018 00:07:58 +0100 Miquel Raynal wrote: > Defconfigs have been fixed, now we can add proper dependencies in > Kconfig. > > Signed-off-by: Miquel Raynal > --- > cmd/Kconfig | 8 +++- > drivers/mtd/Kconfig | 1 + > 2 files changed, 8 insertions(+), 1 deletion(-) > >

Re: [U-Boot] [PATCH v9 10/28] net: add support for bcm6348-enet

2018-11-28 Thread Daniel Schwierzeck
Am 28.11.18 um 19:23 schrieb Álvaro Fernández Rojas: > Signed-off-by: Álvaro Fernández Rojas > --- > v9: use dma_prepare_rcv_buf and remove dma rx channel reset: > - bcm6348_eth_recv: clear dirty dma descriptors only when packets are copied >from rx dma. > - bcm6348_eth_send: remove dma

Re: [U-Boot] [PATCH v2 18/24] mtd: rawnand: compile-in the NAND core

2018-11-28 Thread Boris Brezillon
On Thu, 29 Nov 2018 00:07:54 +0100 Miquel Raynal wrote: > The NAND core should be selected by both SPI NAND and raw NAND > drivers. > > Signed-off-by: Miquel Raynal > --- > drivers/mtd/nand/raw/Kconfig | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/mtd/nand/raw/Kconfig b/d

Re: [U-Boot] [PATCH v2 07/24] mtd: ensure MTD is compiled when there is a SPI NOR flash

2018-11-28 Thread Boris Brezillon
On Thu, 29 Nov 2018 00:07:43 +0100 Miquel Raynal wrote: > MTD must be enabled when there is a SPI NOR flash. Not sure this is required, as the SF layer is mostly independent from the MTD layer, except for the sf_mtd.c portion. It's probably safer to only enable CONFIG_MTD when CONFIG_SPI_FLASH_M

Re: [U-Boot] [PATCH v2 04/24] mtd: rename CONFIG_MTD_DEVICE -> CONFIG_MTD

2018-11-28 Thread Boris Brezillon
On Thu, 29 Nov 2018 00:07:40 +0100 Miquel Raynal wrote: > Like in Linux, just use CONFIG_MTD to copile the MTD stack. ^ compile > > Signed-off-by: Miquel Raynal ___ U-Boot mailing list U-Boot@lists.denx.de htt

Re: [U-Boot] [PATCH v9 02/28] bmips: bcm6338: add bcm6348-iudma support

2018-11-28 Thread Daniel Schwierzeck
Am 28.11.18 um 19:23 schrieb Álvaro Fernández Rojas: > Signed-off-by: Álvaro Fernández Rojas > --- > v9: no changes > v8: no changes > v5: no changes > v4: no changes > v3: no changes > v2: no changes > > arch/mips/dts/brcm,bcm6338.dtsi | 14 ++ > include/dt-bindings/dm

Re: [U-Boot] [PATCH v2 01/24] Makefile: move MTD-related lines in coherent Makefiles

2018-11-28 Thread Boris Brezillon
On Thu, 29 Nov 2018 00:07:37 +0100 Miquel Raynal wrote: > --- a/drivers/Makefile > +++ b/drivers/Makefile > @@ -6,7 +6,7 @@ obj-$(CONFIG_$(SPL_TPL_)DRIVERS_MISC_SUPPORT) += misc/ > sysreset/ firmware/ > obj-$(CONFIG_$(SPL_TPL_)I2C_SUPPORT) += i2c/ > obj-$(CONFIG_$(SPL_TPL_)LED) += led/ > obj

Re: [U-Boot] [PATCH v9 01/28] dma: add bcm6348-iudma support

2018-11-28 Thread Daniel Schwierzeck
Am 28.11.18 um 19:23 schrieb Álvaro Fernández Rojas: > BCM6348 IUDMA controller is present on multiple BMIPS (BCM63xx) SoCs. > > Signed-off-by: Álvaro Fernández Rojas > --- > v9: introduce dma_prepare_rcv_buf dma op: > - bcm6348_iudma_chan_stop: switch to mdelay when resetting channel. > -

[U-Boot] [PATCH v2 6/6] cmd: adc: Use the sub-command infrastructure

2018-11-28 Thread Boris Brezillon
And you get sub-command auto-completion for free. Signed-off-by: Boris Brezillon --- cmd/adc.c | 31 --- 1 file changed, 4 insertions(+), 27 deletions(-) diff --git a/cmd/adc.c b/cmd/adc.c index c8857ed147e7..5f06f361b642 100644 --- a/cmd/adc.c +++ b/cmd/adc.c @@ -86

[U-Boot] [PATCH v2 5/6] cmd: mtd: Use the subcmd infrastructure to declare mtd sub-commands

2018-11-28 Thread Boris Brezillon
It's way simpler this way, and we also gain auto-completion support for free (MTD name auto-completion has been added with do_mtd_name_complete()) Signed-off-by: Boris Brezillon --- Changes in v2: - Drop maxargs arg --- cmd/mtd.c | 476 -- 1 fi

[U-Boot] [PATCH v2 4/6] command: commands: Add macros to declare commands with subcmds

2018-11-28 Thread Boris Brezillon
Most cmd/xxx.c source files expose several commands through a single entry point. Some of them are doing the sub-command parsing manually in their do_() function, others are declaring a table of sub-commands and then use find_cmd_tbl() to delegate the request to the sub command handler. In both ca

[U-Boot] [PATCH v2 3/6] common: command: Rework the 'cmd is repeatable' logic

2018-11-28 Thread Boris Brezillon
The repeatable property is currently attached to the main command and sub-commands have no way to change the repeatable value (the ->repeatable field in sub-command entries is ignored). Replace the ->repeatable field by an extended ->cmd() hook (called ->cmd_rep()) which takes a new int pointer to

[U-Boot] [PATCH v2 2/6] common: command: Expose a generic helper to auto-complete sub commands

2018-11-28 Thread Boris Brezillon
Some commands have a table of sub-commands. With a minor adjustments, complete_cmdv() is able to provide auto-completion for sub-commands (it's just about passing the table of commands instead of taking the global one). We rename this function into complete_subcmd() and implement complete_cmdv() as

[U-Boot] [PATCH v2 1/6] common: command: Fix command auto-completion

2018-11-28 Thread Boris Brezillon
When auto-completing command arguments, the last argument is not necessarily the one we need to auto-complete. When the last character is a space, a tab or '\0' what we want instead is list all possible values, or if there's only one possible value, place this value on the command line instead of t

[U-Boot] [PATCH v2 0/6] cmd: Simplify support for sub-commands

2018-11-28 Thread Boris Brezillon
Hello, Here is the 2nd version of the sub-cmd patchset. This version simplifies the sub-cmd declaration syntax and allows per sub-cmd maxargs and repeatable check. I also added a patch showing how simple it is to convert an existing command to this infrastructure. I converting a bunch of other cm

[U-Boot] [PATCH v2 22/24] cmd: make all MTD commands depend on MTD

2018-11-28 Thread Miquel Raynal
Defconfigs have been fixed, now we can add proper dependencies in Kconfig. Signed-off-by: Miquel Raynal --- cmd/Kconfig | 8 +++- drivers/mtd/Kconfig | 1 + 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/cmd/Kconfig b/cmd/Kconfig index e2973b3c51..717e814c56 100644 ---

[U-Boot] [PATCH v2 17/24] mtd: nand: add includes in NAND core to avoid warnings

2018-11-28 Thread Miquel Raynal
Because of the include's game, when some files are compiled for a SPI NAND device, no warning appears. But when it is for a raw NAND device, GCC complains. Fix these warning by including . Signed-off-by: Miquel Raynal --- drivers/mtd/nand/bbt.c | 1 + drivers/mtd/nand/core.c | 1 + 2 files chan

[U-Boot] [PATCH v2 20/24] mtd: nand: remove dependency on commands in Kconfig

2018-11-28 Thread Miquel Raynal
Now that the defconfigs have been fixed, remove the dependencies on commands in Kconfig. The necessary symbols are enabled so this will not break anything. Signed-off-by: Miquel Raynal --- drivers/mtd/nand/Makefile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/mt

[U-Boot] [PATCH v2 16/24] configs: remove MTD support from bcm11130 and M54418TWR defconfigs

2018-11-28 Thread Miquel Raynal
While the right Kconfig entries were selected, because of the missing CMD_NAND symbol the raw NAND core was never compiled. Remove it from the defconfigs otherwise the build will fail. Signed-off-by: Miquel Raynal --- configs/M54418TWR_nand_mii_defconfig | 1 - configs/M54418TWR_nand_rm

[U-Boot] [PATCH v2 15/24] configs: remove raw NAND core from k2g defconfigs

2018-11-28 Thread Miquel Raynal
Due to previous Makefile organization, the raw NAND subdirectory was not compiled in if CMD_NAND was not enabled. Because the Denali driver does not compile with these boards (undefined environment offset), remove the dependency within the defconfig over the controller driver (was ignored anyway in

[U-Boot] [PATCH v2 14/24] mtd: ensure CMD_NAND is compiled when its options are selected

2018-11-28 Thread Miquel Raynal
In some files, options of CMD_NAND are selected but not the command itself. Fix this inconsistency. Signed-off-by: Miquel Raynal --- configs/apf27_defconfig | 1 + configs/aristainetos2_defconfig | 1 + configs/aristainetos2b_defconfig |

[U-Boot] [PATCH v2 23/24] mtd: simplify Makefile

2018-11-28 Thread Miquel Raynal
Now that we do not rely on the command enabled to compile core files, let's simplify the MTD root Makefile. Signed-off-by: Miquel Raynal --- drivers/mtd/Makefile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/mtd/Makefile b/drivers/mtd/Makefile index 68b1029734..f

[U-Boot] [PATCH v2 18/24] mtd: rawnand: compile-in the NAND core

2018-11-28 Thread Miquel Raynal
The NAND core should be selected by both SPI NAND and raw NAND drivers. Signed-off-by: Miquel Raynal --- drivers/mtd/nand/raw/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mtd/nand/raw/Kconfig b/drivers/mtd/nand/raw/Kconfig index a1fd476b0d..5624e47d65 100644 --- a/driver

[U-Boot] [PATCH v2 19/24] dfu: add dependency on the NAND core

2018-11-28 Thread Miquel Raynal
CONFIG_DFU_NAND needs the NAND core being compiled. Also fix the colibri_vf defconfig to reflect this dependency. Signed-off-by: Miquel Raynal --- configs/colibri_vf_defconfig | 1 + drivers/dfu/Kconfig | 1 + 2 files changed, 2 insertions(+) diff --git a/configs/colibri_vf_defconfig

[U-Boot] [PATCH v2 24/24] mtd: drop CONFIG_MTD_PARTITIONS

2018-11-28 Thread Miquel Raynal
There is no point in compiling mtdparts.c only in certain circumstances. Whether MTD is needed and it will be built, or MTD is not needed and the file will be ignored. Signed-off-by: Miquel Raynal --- cmd/Kconfig | 3 --- drivers/mtd/Kconfig |

[U-Boot] [PATCH v2 21/24] mtd: ubi: remove dependency on command in Kconfig

2018-11-28 Thread Miquel Raynal
Now that the defconfigs have been fixed, remove the dependencies on commands in Kconfig. The necessary symbols are enabled so this will not break anything. Signed-off-by: Miquel Raynal --- drivers/mtd/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/Makefi

[U-Boot] [PATCH v2 12/24] mtd: ensure MTD_RAW_NAND is compiled when ENV_IS_IN_NAND is selected

2018-11-28 Thread Miquel Raynal
Raw NAND support must be enabled when the environment is in NAND. Signed-off-by: Miquel Raynal --- configs/bk4r1_defconfig | 1 + configs/harmony_defconfig | 1 + 2 files changed, 2 insertions(+) diff --git a/configs/bk4r1_defconfig b/configs/bk4r1_defconfig index 7836a9935c..1df498bff1 10064

[U-Boot] [PATCH v2 11/24] mtd: ensure UBI is compiled when ENV_IS_IN_UBI is selected

2018-11-28 Thread Miquel Raynal
UBI must be enabled when the environment is in UBI. Signed-off-by: Miquel Raynal --- configs/CHIP_pro_defconfig | 2 ++ env/Kconfig| 2 ++ 2 files changed, 4 insertions(+) diff --git a/configs/CHIP_pro_defconfig b/configs/CHIP_pro_defconfig index 7f8bd0f00e..5c2880c960 100644 --

[U-Boot] [PATCH v2 13/24] mtd: ensure MTD is compiled when ENV_IS_IN_FLASH is selected

2018-11-28 Thread Miquel Raynal
MTD support must be enabled when the environment is in NOR. Signed-off-by: Miquel Raynal --- configs/armadillo-800eva_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/armadillo-800eva_defconfig b/configs/armadillo-800eva_defconfig index b1d923c069..45736a9b01 100644 --- a/c

[U-Boot] [PATCH v2 10/24] mtd: ensure UBI is compiled when CMD_UBI is selected

2018-11-28 Thread Miquel Raynal
UBI must be enabled when CMD_UBI is used, this is mandatory and will later be reflected thanks to a "depends on" in Kconfig. But first, defconfigs needs to be fixed. Signed-off-by: Miquel Raynal --- configs/am335x_baltos_defconfig| 1 + configs/am3517_evm_defconfig

[U-Boot] [PATCH v2 09/24] mtd: ensure MTD is compiled when UBI is used

2018-11-28 Thread Miquel Raynal
MTD must be enabled when UBI is used, this is mandatory and will later be reflected thanks to a "depends on" in Kconfig. But first, defconfigs needs to be fixed. Signed-off-by: Miquel Raynal --- configs/gardena-smart-gateway-mt7688-ram_defconfig | 1 + configs/gardena-smart-gateway-mt7688_defcon

[U-Boot] [PATCH v2 08/24] mtd: ensure UBI is compiled when using fastmap

2018-11-28 Thread Miquel Raynal
UBI must be enabled when using fastmap, reflect this is defconfigs. Signed-off-by: Miquel Raynal --- configs/am335x_igep003x_defconfig | 1 + configs/aristainetos2_defconfig | 1 + configs/aristainetos2b_defconfig | 1 + configs/aristainetos_defconfig| 1 + configs/colibri

[U-Boot] [PATCH v2 06/24] mtd: ensure MTD/the raw NAND core are compiled when there is a NAND flash

2018-11-28 Thread Miquel Raynal
Both symbols must be enabled when there is a raw NAND driver selected. Also enable them when CONFIG_CMD_NAND is selected to do not break any build during later cleanup. Signed-off-by: Miquel Raynal --- configs/at91sam9m10g45ek_nandflash_defconfig | 2 ++ configs/at91sam9n12ek_nandflash_d

[U-Boot] [PATCH v2 04/24] mtd: rename CONFIG_MTD_DEVICE -> CONFIG_MTD

2018-11-28 Thread Miquel Raynal
Like in Linux, just use CONFIG_MTD to copile the MTD stack. Signed-off-by: Miquel Raynal --- configs/10m50_defconfig | 2 +- configs/TQM834x_defconfig| 2 +- configs/TWR-P1025_defconfig | 2 +- configs/alt_defconfig

[U-Boot] [PATCH v2 03/24] mtd: rename CONFIG_MTD -> CONFIG_DM_MTD

2018-11-28 Thread Miquel Raynal
CONFIG_MTD must be reserved for the MTD core. Like any other subsystem, prefix the symbol by DM when it comes to DM support. Signed-off-by: Miquel Raynal --- configs/10m50_defconfig| 2 +- configs/3c120_defconfig| 2 +- configs/adp-ae3xx_de

[U-Boot] [PATCH v2 01/24] Makefile: move MTD-related lines in coherent Makefiles

2018-11-28 Thread Miquel Raynal
Move MTD-related lines out of the root Makefile. Put them in their respective directories. Enclose some of these new lines to skip them when building the SPL (the SPL directly points to what is needed). CONFIG_CMD_NAND is the symbol indicating support for raw NAND devices. This logic is broken an

[U-Boot] [PATCH v2 00/24] MTD defconfigs/Kconfigs/Makefiles heavy cleanup

2018-11-28 Thread Miquel Raynal
Hello, During my last project about SPI-NAND support in U-Boot, I discovered when modifying Makefiles a confusing organization where: * Sub-directories/files are compiled from the root Makefile * Commands are at the root of everything I sent a fist series a few weeks ago to move Makefile entries

Re: [U-Boot] [PATCH 2/3] mips: mt76xx: gardena-smart-gateway: Misc updates to defconfig

2018-11-28 Thread Daniel Schwierzeck
Am 28.11.18 um 08:40 schrieb Stefan Roese: > The following changes are made: > - Add default bootcmd which can be used for initial start-up > - Setup necessary MTD parts for Linux compatibility > > Signed-off-by: Stefan Roese > Cc: Daniel Schwierzeck > --- > configs/gardena-smart-gateway-mt76

Re: [U-Boot] [PATCH 1/3] mips: mt7628: Change compatible property of the ethernet DT node

2018-11-28 Thread Daniel Schwierzeck
Am 28.11.18 um 08:40 schrieb Stefan Roese: > As the driver has been changed to be more specific, the DT compatible > property also needs to be adapted. > > Signed-off-by: Stefan Roese > Cc: Daniel Schwierzeck > --- > arch/mips/dts/mt7628a.dtsi | 2 +- > 1 file changed, 1 insertion(+), 1 delet

Re: [U-Boot] [PATCH 3/3] mips: mt76xx: gardena-smart-gateway: Add factory data variable handling

2018-11-28 Thread Daniel Schwierzeck
Am 28.11.18 um 08:40 schrieb Stefan Roese: > Some factory data is stored in the SPI NOR and needs to get extracted > from there into U-Boot environment variables. > > This patch also includes a board-specific command "fd_write" to > provide some dummy / default values for this factory-data in th

[U-Boot] u-boot bringup on bbb with spi-nor-flash

2018-11-28 Thread C Michael Sundius
HI guys Please help I've been working on this waaay too long. I have been able to get the most recent u-boot to build with the standard am335x_evm_spiboot_defconfig configuration and it runs on my box... I just changed out the CONFIG_SPI_FLASH_WINBOND with the CONFIG_SPI_FLASH_ISSI to match the f

Re: [U-Boot] [RFC PATCH 4/6] porter_defconfig: Enable tiny printf

2018-11-28 Thread Marek Vasut
On 11/28/2018 09:34 PM, Simon Goldschmidt wrote: > On 28.11.2018 18:52, Marek Vasut wrote: >> On 11/28/2018 06:26 PM, Vignesh R wrote: >>> Enable tiny printf to reduce SPL foot print >> This should be enabled already on Gen2, no ? >> Anyway, what's the size growth on Gen2 with the new Linux SF fram

Re: [U-Boot] [PATCH] ARM: rmobile: Convert to bootm_size

2018-11-28 Thread Simon Goldschmidt
On Wed, Nov 28, 2018 at 1:19 PM Tom Rini wrote: > > On Wed, Nov 28, 2018 at 09:46:43AM +0100, Simon Goldschmidt wrote: > > On Wed, Nov 28, 2018 at 2:31 AM Tom Rini wrote: > > > > > > On Tue, Nov 27, 2018 at 07:31:24PM +0100, Simon Goldschmidt wrote: > > > > On Tue, Nov 27, 2018 at 4:47 PM Marek V

[U-Boot] [PATCH v2] spl: implement CRC check on U-Boot uImage

2018-11-28 Thread Simon Goldschmidt
SPL currently does not check uImage CRCs when loading U-Boot. This patch adds checking the uImage CRC when SPL loads U-Boot. It does this by reusing the existing config option SPL_CRC32_SUPPORT to allow leaving out the CRC check on boards where the additional code size or boot time is a problem (a

Re: [U-Boot] [RFC PATCH 4/6] porter_defconfig: Enable tiny printf

2018-11-28 Thread Simon Goldschmidt
On 28.11.2018 18:52, Marek Vasut wrote: On 11/28/2018 06:26 PM, Vignesh R wrote: Enable tiny printf to reduce SPL foot print This should be enabled already on Gen2, no ? Anyway, what's the size growth on Gen2 with the new Linux SF framework ? After downloading the missing patch 1/6 from githu

Re: [U-Boot] [RFC PATCH 0/6] SF: Migrate to Linux SPI NOR framework

2018-11-28 Thread Simon Goldschmidt
On 28.11.2018 18:26, Vignesh R wrote: U-Boot SPI NOR support (sf layer) is quite outdated as it does not support 4 byte addressing opcodes, SFDP table and different types of quad mode enable sequences. Many newer flashes no longer support BANK registers use by sf layer to a access >16MB space. Al

Re: [U-Boot] [PATCH 3/3] buildman/toolchain.py: handle inconsistent tarball names

2018-11-28 Thread Trevor Woerner
On Wed, Nov 28, 2018 at 2:38 PM Simon Glass wrote: > Hi Trevor, > > On Tue, 27 Nov 2018 at 17:51, Trevor Woerner wrote: > > > > On Mon, Nov 26, 2018 at 8:06 PM Simon Glass wrote: > >> > >> Reviewed-by: Simon Glass > >> But please use single quotes for strings. > > > > > > I can send a v2 if yo

Re: [U-Boot] [PATCH 3/3] buildman/toolchain.py: handle inconsistent tarball names

2018-11-28 Thread Simon Glass
Hi Trevor, On Tue, 27 Nov 2018 at 17:51, Trevor Woerner wrote: > > On Mon, Nov 26, 2018 at 8:06 PM Simon Glass wrote: >> >> Reviewed-by: Simon Glass >> But please use single quotes for strings. > > > I can send a v2 if you like? If you like, but I can fix it up when applying. - Simon

Re: [U-Boot] [PATCH 3/7] arm: mvebu: helios4: Enable I2C

2018-11-28 Thread Dennis Gilmore
El jue, 29-11-2018 a las 00:42 +0700, Aditya Prayoga escribió: > On Wed, Nov 28, 2018 at 8:44 PM Dennis Gilmore > wrote: > > On Wed, 2018-11-28 at 16:59 +0800, Aditya Prayoga wrote: > > > Enable Marvell I2C driver and set default bus to external I2C > > > bus. > > > Define I2C aliases in device tr

[U-Boot] [PATCH v9 17/28] bmips: enable nb4-ser enet support

2018-11-28 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas --- v9: no changes v8: no changes v5: no changes v4: no changes v3: no changes v2: no changes arch/mips/dts/sfr,nb4-ser.dts | 24 configs/sfr_nb4-ser_ram_defconfig | 8 +++- 2 files changed, 31 insertions(+), 1 deletio

[U-Boot] [PATCH v9 18/28] net: add support for bcm6368-enet

2018-11-28 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas --- v9: introduce flow control improvements from bcm6348-eth: - introduce rx packets caching functionality from bcm6348-eth to fix flow control issues. - code style fixes. v8: introduce bcm6368-enet driver drivers/net/Kconfig | 8 + drivers/

[U-Boot] [PATCH v9 26/28] bmips: enable vr-3032u enet support

2018-11-28 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas --- v9: no changes v8: introduce bcm6368-enet driver arch/mips/dts/comtrend,vr-3032u.dts| 32 configs/comtrend_vr3032u_ram_defconfig | 7 ++- 2 files changed, 38 insertions(+), 1 deletion(-) diff --git a/arch/mips

[U-Boot] [PATCH v9 21/28] bmips: bcm6328: add support for bcm6368-enet

2018-11-28 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas --- v9: no changes v8: introduce bcm6368-enet driver arch/mips/dts/brcm,bcm6328.dtsi | 17 + 1 file changed, 17 insertions(+) diff --git a/arch/mips/dts/brcm,bcm6328.dtsi b/arch/mips/dts/brcm,bcm6328.dtsi index 6fa49e22bb..50beed4171 10064

[U-Boot] [PATCH v9 09/28] bmips: bcm6318: add bcm6348-iudma support

2018-11-28 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas --- v9: no changes v8: introduce bcm6368-enet driver arch/mips/dts/brcm,bcm6318.dtsi | 19 +++ include/dt-bindings/dma/bcm6318-dma.h | 15 +++ 2 files changed, 34 insertions(+) create mode 100644 include/dt-bindings/dma/b

[U-Boot] [PATCH v9 23/28] bmips: bcm6362: add support for bcm6368-enet

2018-11-28 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas --- v9: no changes v8: introduce bcm6368-enet driver arch/mips/dts/brcm,bcm6362.dtsi | 19 +++ 1 file changed, 19 insertions(+) diff --git a/arch/mips/dts/brcm,bcm6362.dtsi b/arch/mips/dts/brcm,bcm6362.dtsi index 94e7de096d..c77b80a4cc 100

[U-Boot] [PATCH v9 02/28] bmips: bcm6338: add bcm6348-iudma support

2018-11-28 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas --- v9: no changes v8: no changes v5: no changes v4: no changes v3: no changes v2: no changes arch/mips/dts/brcm,bcm6338.dtsi | 14 ++ include/dt-bindings/dma/bcm6338-dma.h | 15 +++ 2 files changed, 29 insertions(+) crea

[U-Boot] [PATCH v9 08/28] bmips: bcm63268: add bcm6348-iudma support

2018-11-28 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas --- v9: no changes v8: introduce bcm6368-enet driver arch/mips/dts/brcm,bcm63268.dtsi | 13 + include/dt-bindings/dma/bcm63268-dma.h | 15 +++ 2 files changed, 28 insertions(+) create mode 100644 include/dt-bindings/dma/bcm63

[U-Boot] [PATCH v9 14/28] bmips: enable ct-5361 enet support

2018-11-28 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas --- v9: no changes v8: no changes v5: no changes v4: no changes v3: no changes v2: no changes arch/mips/dts/comtrend,ct-5361.dts| 12 configs/comtrend_ct5361_ram_defconfig | 8 +++- 2 files changed, 19 insertions(+), 1 deletion(-)

[U-Boot] [PATCH v9 11/28] bmips: bcm6338: add support for bcm6348-enet

2018-11-28 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas --- v9: no changes v8: no changes v5: no changes v4: no changes v3: no changes v2: no changes arch/mips/dts/brcm,bcm6338.dtsi | 15 +++ 1 file changed, 15 insertions(+) diff --git a/arch/mips/dts/brcm,bcm6338.dtsi b/arch/mips/dts/brcm,bcm6

[U-Boot] [PATCH v9 19/28] bmips: bcm6368: add support for bcm6368-enet

2018-11-28 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas --- v9: no changes v8: introduce bcm6368-enet driver arch/mips/dts/brcm,bcm6368.dtsi | 19 +++ 1 file changed, 19 insertions(+) diff --git a/arch/mips/dts/brcm,bcm6368.dtsi b/arch/mips/dts/brcm,bcm6368.dtsi index 30047f6360..89590d6ff9 100

[U-Boot] [PATCH v9 16/28] bmips: enable hg556a enet support

2018-11-28 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas --- v9: no changes v8: no changes v5: no changes v4: no changes v3: no changes v2: no changes arch/mips/dts/huawei,hg556a.dts | 12 configs/huawei_hg556a_ram_defconfig | 8 +++- 2 files changed, 19 insertions(+), 1 deletion(-) di

[U-Boot] [PATCH v9 25/28] bmips: bcm63268: add support for bcm6368-enet

2018-11-28 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas --- v9: no changes v8: introduce bcm6368-enet driver arch/mips/dts/brcm,bcm63268.dtsi | 25 + 1 file changed, 25 insertions(+) diff --git a/arch/mips/dts/brcm,bcm63268.dtsi b/arch/mips/dts/brcm,bcm63268.dtsi index c7ad83c306..f8a72

[U-Boot] [PATCH v9 07/28] bmips: bcm6362: add bcm6348-iudma support

2018-11-28 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas --- v9: no changes v8: introduce bcm6368-enet driver arch/mips/dts/brcm,bcm6362.dtsi | 13 + include/dt-bindings/dma/bcm6362-dma.h | 15 +++ 2 files changed, 28 insertions(+) create mode 100644 include/dt-bindings/dma/bcm6362

[U-Boot] [PATCH v9 10/28] net: add support for bcm6348-enet

2018-11-28 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas --- v9: use dma_prepare_rcv_buf and remove dma rx channel reset: - bcm6348_eth_recv: clear dirty dma descriptors only when packets are copied from rx dma. - bcm6348_eth_send: remove dma rx channel reset when sending packet. v8: Introduce changes from

[U-Boot] [PATCH v9 15/28] bmips: bcm6358: add support for bcm6348-enet

2018-11-28 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas --- v9: no changes v8: no changes v5: no changes v4: no changes v3: no changes v2: no changes arch/mips/dts/brcm,bcm6358.dtsi | 28 1 file changed, 28 insertions(+) diff --git a/arch/mips/dts/brcm,bcm6358.dtsi b/arch/mips/

[U-Boot] [PATCH v9 22/28] bmips: enable ar-5387un enet support

2018-11-28 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas --- v9: no changes v8: introduce bcm6368-enet driver arch/mips/dts/comtrend,ar-5387un.dts| 32 configs/comtrend_ar5387un_ram_defconfig | 7 ++- 2 files changed, 38 insertions(+), 1 deletion(-) diff --git a/arch/mi

[U-Boot] [PATCH v9 06/28] bmips: bcm6328: add bcm6348-iudma support

2018-11-28 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas --- v9: no changes v8: introduce bcm6368-enet driver arch/mips/dts/brcm,bcm6328.dtsi | 13 + include/dt-bindings/dma/bcm6328-dma.h | 15 +++ 2 files changed, 28 insertions(+) create mode 100644 include/dt-bindings/dma/bcm6328

[U-Boot] [PATCH v9 20/28] bmips: enable wap-5813n enet support

2018-11-28 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas --- v9: no changes v8: introduce bcm6368-enet driver arch/mips/dts/comtrend,wap-5813n.dts| 14 ++ configs/comtrend_wap5813n_ram_defconfig | 8 +++- 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/arch/mips/dts/comtrend,w

[U-Boot] [PATCH v9 12/28] bmips: enable f@st1704 enet support

2018-11-28 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas --- v9: no changes v8: no changes v5: no changes v4: no changes v3: no changes v2: no changes arch/mips/dts/sagem,f...@st1704.dts | 12 configs/sagem_f@st1704_ram_defconfig | 8 +++- 2 files changed, 19 insertions(+), 1 deletion(-

[U-Boot] [PATCH v9 28/28] bmips: enable ar-5315u enet support

2018-11-28 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas --- v9: no changes v8: introduce bcm6368-enet driver arch/mips/dts/comtrend,ar-5315u.dts| 32 configs/comtrend_ar5315u_ram_defconfig | 7 ++- 2 files changed, 38 insertions(+), 1 deletion(-) diff --git a/arch/mips

[U-Boot] [PATCH v9 24/28] bmips: enable dgnd3700v2 enet support

2018-11-28 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas --- v9: no changes v8: introduce bcm6368-enet driver arch/mips/dts/netgear,dgnd3700v2.dts | 14 ++ configs/netgear_dgnd3700v2_ram_defconfig | 8 +++- 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/arch/mips/dts/netgear,

[U-Boot] [PATCH v9 01/28] dma: add bcm6348-iudma support

2018-11-28 Thread Álvaro Fernández Rojas
BCM6348 IUDMA controller is present on multiple BMIPS (BCM63xx) SoCs. Signed-off-by: Álvaro Fernández Rojas --- v9: introduce dma_prepare_rcv_buf dma op: - bcm6348_iudma_chan_stop: switch to mdelay when resetting channel. - bcm6348_iudma_receive: track dirty dma descriptors and no longer tri

[U-Boot] [PATCH v9 13/28] bmips: bcm6348: add support for bcm6348-enet

2018-11-28 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas --- v9: no changes v8: no changes v5: no changes v4: no changes v3: no changes v2: no changes arch/mips/dts/brcm,bcm6348.dtsi | 26 ++ 1 file changed, 26 insertions(+) diff --git a/arch/mips/dts/brcm,bcm6348.dtsi b/arch/mips/dt

[U-Boot] [PATCH v9 05/28] bmips: bcm6368: add bcm6348-iudma support

2018-11-28 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas --- v9: no changes v8: introduce bcm6368-enet driver arch/mips/dts/brcm,bcm6368.dtsi | 13 + include/dt-bindings/dma/bcm6368-dma.h | 15 +++ 2 files changed, 28 insertions(+) create mode 100644 include/dt-bindings/dma/bcm6368

[U-Boot] [PATCH v9 04/28] bmips: bcm6358: add bcm6348-iudma support

2018-11-28 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas --- v9: no changes v8: no changes v5: no changes v4: no changes v3: no changes v2: no changes arch/mips/dts/brcm,bcm6358.dtsi | 18 ++ include/dt-bindings/dma/bcm6358-dma.h | 17 + 2 files changed, 35 insertions(+)

[U-Boot] [PATCH v9 27/28] bmips: bcm6318: add support for bcm6368-enet

2018-11-28 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas --- v9: no changes v8: introduce bcm6368-enet driver arch/mips/dts/brcm,bcm6318.dtsi | 19 +++ include/dt-bindings/clock/bcm6318-clock.h | 11 +++ 2 files changed, 30 insertions(+) diff --git a/arch/mips/dts/brcm,bcm6318.

[U-Boot] [PATCH v9 03/28] bmips: bcm6348: add bcm6348-iudma support

2018-11-28 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas --- v9: no changes v8: no changes v5: no changes v4: no changes v3: no changes v2: no changes arch/mips/dts/brcm,bcm6348.dtsi | 16 include/dt-bindings/dma/bcm6348-dma.h | 17 + 2 files changed, 33 insertions(+)

[U-Boot] [PATCH v9 00/28] bmips: add iudma/enet support

2018-11-28 Thread Álvaro Fernández Rojas
In order to add bcm6348-enet support, dma-uclass must be extended to support dma channels and reworked to operate like the other dm uclass (clk, reset...). v9: Separate generic dma channels support from bmips enet support bcm6348-iudma: - bcm6348_iudma_chan_stop: switch to mdelay when resetting

[U-Boot] [PATCH v9 2/3] dma: add channels support

2018-11-28 Thread Álvaro Fernández Rojas
This adds channels support for dma controllers that have multiple channels which can transfer data to/from different devices (enet, usb...). DMA channle API: dma_get_by_index() dma_get_by_name() dma_request() dma_free() dma_enable() dma_disable() dma_prepare_rcv_buf() dma_receive() dma_se

[U-Boot] [PATCH v9 3/3] test: dma: add dma-uclass test

2018-11-28 Thread Álvaro Fernández Rojas
From: Grygorii Strashko Add a sandbox DMA driver implementation (provider) and corresponding DM test. Reviewed-by: Tom Rini Signed-off-by: Grygorii Strashko Reviewed-by: Simon Glass Acked-by: Álvaro Fernández Rojas --- v9: no changes v8: sync with latest u-boot v7: no changes v6: From Gr

[U-Boot] [PATCH v9 1/3] dma: move dma_ops to dma-uclass.h

2018-11-28 Thread Álvaro Fernández Rojas
Move dma_ops to a separate header file, following other uclass implementations. While doing so, this patch also improves dma_ops documentation. Reviewed-by: Tom Rini Reviewed-by: Simon Glass Signed-off-by: Álvaro Fernández Rojas Signed-off-by: Grygorii Strashko --- v9: no changes v8: no chan

[U-Boot] [PATCH v9 0/3] dma: add channels support

2018-11-28 Thread Álvaro Fernández Rojas
In order to add bcm6348-enet support, dma-uclass must be extended to support dma channels and reworked to operate like the other dm uclass (clk, reset...). === A DMA is a feature of computer systems that allows certain hardware subsystems to access main system memory, independent of the CPU. DMA

Re: [U-Boot] [PATCH 6/7] arm: mvebu: helios4: Enable SPI flash support

2018-11-28 Thread Aditya Prayoga
On Wed, Nov 28, 2018 at 9:10 PM Baruch Siach wrote: > > Hi Dennis, > > On Wed, Nov 28, 2018 at 07:53:44AM -0600, Dennis Gilmore wrote: > > On Wed, 2018-11-28 at 17:00 +0800, Aditya Prayoga wrote: > > > Enable SPI flash support under U-Boot and SPL. The ENV size and > > > offset, > > > ported from

Re: [U-Boot] [PATCH 6/7] arm: mvebu: helios4: Enable SPI flash support

2018-11-28 Thread Aditya Prayoga
On Wed, Nov 28, 2018 at 8:53 PM Dennis Gilmore wrote: > > On Wed, 2018-11-28 at 17:00 +0800, Aditya Prayoga wrote: > > Enable SPI flash support under U-Boot and SPL. The ENV size and > > offset, > > ported from U-Boot 2013.01 Marvell version: 2015_T1.0p16 > > > > To create U-Boot image for SPI fla

Re: [U-Boot] F2FS support

2018-11-28 Thread Marek Vasut
On 11/28/2018 06:41 PM, Gerasimov, Anton wrote: > Hi Lukasz, hi Marek, > > thank you for your feedbacks. I'm looking for a solution to improve the > resilience of our system against a sudden power loss under extensive > write load. Some tests [1] show that F2FS might be more robust than > ext4, so

Re: [U-Boot] [PATCH 1/9] ARM: socfpga: Description on FPGA bitstream type and file name for Arria 10

2018-11-28 Thread Marek Vasut
On 11/28/2018 05:17 PM, Chee, Tien Fong wrote: > On Wed, 2018-11-28 at 16:10 +0100, Marek Vasut wrote: >> On 11/28/2018 03:49 PM, Chee, Tien Fong wrote: >>> >>> On Tue, 2018-11-27 at 13:07 +0100, Marek Vasut wrote: On 11/27/2018 09:45 AM, Chee, Tien Fong wrote: > > > On Mon, 2

Re: [U-Boot] [RFC PATCH 4/6] porter_defconfig: Enable tiny printf

2018-11-28 Thread Marek Vasut
On 11/28/2018 06:26 PM, Vignesh R wrote: > Enable tiny printf to reduce SPL foot print This should be enabled already on Gen2, no ? Anyway, what's the size growth on Gen2 with the new Linux SF framework ? > Signed-off-by: Vignesh R > --- > configs/porter_defconfig | 1 + > 1 file changed, 1 ins

  1   2   >