[U-Boot] [PATCH 22/27] net: phy: marvell: Add a missing errno.h header

2016-06-12 Thread Simon Glass
This corrects a build error on zynqmp. Signed-off-by: Simon Glass Signed-off-by: Simon Glass --- drivers/net/phy/marvell.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/phy/marvell.c b/drivers/net/phy/marvell.c index d2e68d4..8de0574

[U-Boot] [PATCH 21/27] dm: dfu: mmc: Support CONFIG_BLK in DFU for MMC

2016-06-12 Thread Simon Glass
Update the method of accessing the block device so that it works with CONFIG_BLK enabled. Signed-off-by: Simon Glass --- drivers/dfu/dfu_mmc.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/dfu/dfu_mmc.c b/drivers/dfu/dfu_mmc.c index

[U-Boot] [PATCH 18/27] dm: mmc: Move dragonboard410c to use CONFIG_BLK and CONFIG_DM_MMC_OPS

2016-06-12 Thread Simon Glass
Update this board to use driver model for block devices and MMC operations. Signed-off-by: Simon Glass --- configs/dragonboard410c_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/dragonboard410c_defconfig b/configs/dragonboard410c_defconfig index

Re: [U-Boot] [PATCH] sunxi: Revert "sunxi: make SoC variant choice mandatory"

2016-06-12 Thread Ian Campbell
On Sun, 2016-06-12 at 13:03 +0200, Hans de Goede wrote: > This reverts commit 1a5f0de08e86("sunxi: make SoC variant choice > mandatory"). > > With the optional marking in the Kconfig "make savedefconfig" > will drop CONFIG_MACH_SUN4I=y from all the A10 boards, making it > hard to see at a glance

Re: [U-Boot] [PATCH] sunxi: Add defconfig and dts file for Polaroid MID2407PXE03 tablet

2016-06-12 Thread Ian Campbell
On Sat, 2016-06-11 at 15:54 +0200, Hans de Goede wrote: > The Polaroid MID2407PXE03 is an a23 based 7" tablet based on a M86_MB > V2.0 > PCB, featuring a 800x480 LCD, 512MB RAM, 4G NAND, esp8089 wifi, > gsl1680 > touchschreen, micro-sd slot, 3.5mm headphone jack and a micro-usb otg > connector

Re: [U-Boot] [PATCH] Kconfig: Add a new DISTRO_DEFAULTS Kconfig option

2016-06-12 Thread Tom Rini
On Sun, Jun 12, 2016 at 11:30:51AM +0200, Hans de Goede wrote: > Hi, > > On 12-06-16 01:13, Tom Rini wrote: > >On Sat, Jun 11, 2016 at 04:54:47PM +0200, Hans de Goede wrote: > > > >>DISTRO_DEFAULTS is intended to mirror / replace > >>include/config_distro_defaults.h. > >> > >>The intend is for

[U-Boot] [PATCH] imx_common: Return MMCSD_MODE_FS in spl_boot_mode() also for EXTFS

2016-06-12 Thread Petr Kulhavy
spl_boot_mode() returned MMCSD_MODE_RAW on MMC if CONFIG_SPL_EXT_SUPPORT was configured. EXTFS is the default filesystem selected in imx6_spl.h and the function should return MMCSD_MODE_FS instead. Fix this and return MMCSD_MODE_FS instead in such cases. Signed-off-by: Petr Kulhavy

Re: [U-Boot] [PATCH v2 0/5] Urgent fixes for misconverted CONFIG_BOOTDELAY

2016-06-12 Thread Tom Rini
On Sat, Jun 11, 2016 at 06:44:07PM +0900, Masahiro Yamada wrote: > > Masahiro Yamada (5): > ARM: stm32: remove unused CONFIG_AUTOBOOT > autoboot: follow-up cleanup after CONFIG_BOOTDELAY moves > tools: fix define2mk.sed to not add quotes around negative integers > autoboot: fix a bunch

[U-Boot] [PATCH] sunxi: Add defconfig and dts file for inet86dz board

2016-06-12 Thread Hans de Goede
The inet86dz board is a board used in 7" tablets from various oems. These tablets are a23 based 7" tablets featuring a 1024x600 LCD, 512MB RAM, 4G NAND, rtl8188etv usb wifi, gsl1680 touchschreen, micro-sd slot, 3.5mm headphone jack and a micro-usb otg connector which doubles as charging port.

Re: [U-Boot] [PATCH] sunxi: Revert "sunxi: make SoC variant choice mandatory"

2016-06-12 Thread Hans de Goede
Hi, On 12-06-16 14:25, Ian Campbell wrote: On Sun, 2016-06-12 at 13:03 +0200, Hans de Goede wrote: This reverts commit 1a5f0de08e86("sunxi: make SoC variant choice mandatory"). With the optional marking in the Kconfig "make savedefconfig" will drop CONFIG_MACH_SUN4I=y from all the A10 boards,

Re: [U-Boot] [PATCH] Use C locale when setting CC_VERSION_STRING and LD_VERSION_STRING.

2016-06-12 Thread Tom Rini
On Sun, Jun 12, 2016 at 06:07:07AM -0700, Vagrant Cascadian wrote: > The output reported may be locale-dependent, which results in > unreproducible builds. > > $ LANG=C ld --version | head -n 1 > GNU ld (GNU Binutils for Debian) 2.26 > > $ LANG=it_CH.UTF-8 ld --version | head -n 1 >

Re: [U-Boot] [PATCH v3 00/11] sunxi: PSCI implementation rewrite in C

2016-06-12 Thread Tom Rini
On Tue, Jun 07, 2016 at 12:04:20PM +0200, Hans de Goede wrote: > Hi, > > On 07-06-16 11:49, Marc Zyngier wrote: > >On Tue, 7 Jun 2016 10:54:23 +0800 > >Chen-Yu Tsai wrote: > > > >Hi Chen-Yu, > > > >>Hi everyone, > >> > >>This series rewrites the Allwinner/sunxi PSCI implementation

[U-Boot] [Patch v4 2/5] usb: xhci: fsl: code cleanup for device tree fixup for fsl usb controllers

2016-06-12 Thread Sriram Dash
Performs code cleanup for device tree fixup for fsl usb controllers by making functions to handle these similar errata checking code. Signed-off-by: Rajesh Bhagat Signed-off-by: Sriram Dash --- Changes in v4: - Removed parenthesis around

Re: [U-Boot] [PATCH 2/5] autoboot: follow-up cleanup after CONFIG_BOOTDELAY moves

2016-06-12 Thread Heiko Schocher
Hello Masahiro, Am 10.06.2016 um 17:20 schrieb Masahiro Yamada: Tidy up garbage left by commit bb597c0eeb7e ("common: bootdelay: move CONFIG_BOOTDELAY into a Kconfig option"). Signed-off-by: Masahiro Yamada --- include/configs/bfin_adi_common.h | 5 -

Re: [U-Boot] [PATCH 3/5] tools: fix define2mk.sed to not add quotes around negative integers

2016-06-12 Thread Heiko Schocher
Hello Masahiro, Am 10.06.2016 um 17:20 schrieb Masahiro Yamada: The sed script, tools/scripts/define2mk.sed, converts config defines from C headers into include/autoconf.mk for the use in Makefiles. I found the tool adds quotes around negative integer values. For example, at the point of the

[U-Boot] [PATCH 01/27] dm: mmc: dwmmc: Add comments to the dwmmc setup functions

2016-06-12 Thread Simon Glass
These comments were missed when the original code was written. Add them to help people port their drivers over. Signed-off-by: Simon Glass --- include/dwmmc.h | 64 + 1 file changed, 64 insertions(+) diff --git

[U-Boot] [PATCH 04/27] dm: mmc: Move CONFIG_BLK code into the mmc uclass

2016-06-12 Thread Simon Glass
Rather than having #ifdef in mmc.c, move this code into the uclass file. Signed-off-by: Simon Glass --- drivers/mmc/mmc-uclass.c | 80 + drivers/mmc/mmc.c| 85 ++-- 2 files

[U-Boot] [PATCH 03/27] mmc: Add function declarations for mmc_bread() and mmc_switch_part()

2016-06-12 Thread Simon Glass
These private functions are used both in the driver-model implementation and in the legacy code. Add them to the header. Signed-off-by: Simon Glass --- drivers/mmc/mmc.c | 9 - drivers/mmc/mmc_private.h | 17 + 2 files changed, 21

[U-Boot] [PATCH 07/27] dm: mmc: rockchip: Support only CONFIG_BLK

2016-06-12 Thread Simon Glass
Since all Rockchip boards use CONFIG_BLK, we can remove this old code. Signed-off-by: Simon Glass --- drivers/mmc/rockchip_dw_mmc.c | 11 --- 1 file changed, 11 deletions(-) diff --git a/drivers/mmc/rockchip_dw_mmc.c b/drivers/mmc/rockchip_dw_mmc.c index

[U-Boot] [PATCH 02/27] rockchip: Use 'select' instead of defaults in Kconfig

2016-06-12 Thread Simon Glass
Rockchip uses driver model for all subsystems. Specify this in the arm Kconfig rather than as defaults in the Rockchip Kconfig. This means that boards cannot turn these options off, which seems correct. Signed-off-by: Simon Glass --- arch/arm/Kconfig | 10

[U-Boot] [PATCH 06/27] mmc: Move MMC boot code into its own file

2016-06-12 Thread Simon Glass
Rather than having an #ifdef in the main mmc.c file, control this feature from the Makefile by moving the code into its own file. Signed-off-by: Simon Glass --- drivers/mmc/Makefile | 3 ++ drivers/mmc/mmc.c | 126 +---

[U-Boot] [PATCH 08/27] mmc: Move tracing code into separate functions

2016-06-12 Thread Simon Glass
Move this code into separate functions so that it can be used from the uclass also. Add static inline versions for when the option is disabled. Signed-off-by: Simon Glass --- drivers/mmc/mmc.c | 41 ++--- drivers/mmc/mmc_private.h

[U-Boot] [PATCH 12/27] dm: mmc: rockchip: Enable CONFIG_DM_MMC_OPS for all boards

2016-06-12 Thread Simon Glass
Enable this option to move rockchip over to use driver model for MMC operations. Signed-off-by: Simon Glass --- arch/arm/Kconfig | 1 + drivers/mmc/rockchip_dw_mmc.c | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm/Kconfig

[U-Boot] [PATCH 14/27] dm: sandbox: Convert to use CONFIG_CMD_MMC_OPS

2016-06-12 Thread Simon Glass
Update the sandbox MMC emulation to use driver model for MMC operations. Signed-off-by: Simon Glass --- arch/Kconfig | 1 + configs/sandbox_defconfig | 4 ++-- drivers/mmc/sandbox_mmc.c | 17 ++--- 3 files changed, 9 insertions(+), 13 deletions(-)

[U-Boot] [PATCH 16/27] dm: mmc: sdhci: Support CONFIG_BLK and CONFIG_DM_MMC_OPS

2016-06-12 Thread Simon Glass
Add support for using driver model for block devices and MMC operations in this driver. Signed-off-by: Simon Glass --- drivers/mmc/sdhci.c | 40 ++- include/sdhci.h | 80 + 2 files changed, 119

[U-Boot] [PATCH 05/27] dm: mmc: Move non-CONFIG_BLK code into mmc_legacy.c

2016-06-12 Thread Simon Glass
Rather than having #ifdef in mmc.c, move this code into the legacy file. Signed-off-by: Simon Glass --- drivers/mmc/mmc.c| 95 drivers/mmc/mmc_legacy.c | 91 ++ 2 files

[U-Boot] [PATCH 10/27] dm: mmc: Add a way to use driver model for MMC operations

2016-06-12 Thread Simon Glass
The driver model conversion for MMC has moved in small steps. The first step was to have an MMC device (CONFIG_DM_MMC). The second was to use a child block device (CONFIG_BLK). The final one is to use driver model for MMC operations (CONFIG_DM_MMC_OP). Add support for this. The immediate priority

[U-Boot] [PATCH 09/27] rockchip: Disable CONFIG_SDHCI

2016-06-12 Thread Simon Glass
This option is not actually needed for rockchip boards. Drop it, since it will not support driver-model MMC operation support. Signed-off-by: Simon Glass --- include/configs/rk3036_common.h | 1 - include/configs/rk3288_common.h | 1 - 2 files changed, 2 deletions(-) diff

[U-Boot] [PATCH 11/27] dm: mmc: dwmmc: Support CONFIG_DM_MMC_OPS

2016-06-12 Thread Simon Glass
Add support to dwmmc for using driver model for MMC operations. Signed-off-by: Simon Glass --- drivers/mmc/dw_mmc.c | 33 + include/dwmmc.h | 9 + 2 files changed, 42 insertions(+) diff --git a/drivers/mmc/dw_mmc.c

[U-Boot] [PATCH 19/27] dm: mmc: msmsdhic: Drop old MMC code

2016-06-12 Thread Simon Glass
Now that we have fully moved to driver model, drop the old code. Signed-off-by: Simon Glass --- drivers/mmc/Kconfig | 2 +- drivers/mmc/msm_sdhci.c | 15 --- 2 files changed, 1 insertion(+), 16 deletions(-) diff --git a/drivers/mmc/Kconfig

[U-Boot] [PATCH 13/27] rockchip: Add MAINTAINER files for kylin_rk3036, evb_rk3036

2016-06-12 Thread Simon Glass
These boards should have maintainer entries. Add them. Signed-off-by: Simon Glass --- board/evb_rk3036/evb_rk3036/MAINTAINERS | 6 ++ board/kylin/kylin_rk3036/MAINTAINERS| 6 ++ 2 files changed, 12 insertions(+) diff --git

[U-Boot] [PATCH v2 00/55] RFC: dm: rockchip: Add support for compiled-in platform data

2016-06-12 Thread Simon Glass
Note: This v2 series has some minor updates and improvements, mostly as new patches in the series. This series provides a way to compile in the contents of a device tree as C code into U-Boot, implementing an idea that Tom Rini came up with. It is intended to deal with extremely tight

[U-Boot] [PATCH 26/27] dm: mmc: Enable DM_MMC_OPS by default with DM_MMC

2016-06-12 Thread Simon Glass
These two options go together and it is best to do the conversion in one step. So enable DM_MMC_OPS by default if DM_MMC is enabled. Signed-off-by: Simon Glass --- drivers/mmc/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mmc/Kconfig

[U-Boot] [PATCH v2 01/55] sandbox: Don't print a warning for CONFIG_I2C_COMPAT

2016-06-12 Thread Simon Glass
Sandbox includes this code to provide build coverage. While we retain this feature we should have sandbox build it. Sandbox does not in fact use the I2C compatibility mode. Showing a warning for sandbox is just confusing, since no conversion is expected. Drop the warning for sandbox.

[U-Boot] [PATCH v2 04/55] Makefile: Allow the SPL final link rule to be overridden

2016-06-12 Thread Simon Glass
Overriding the final link rule is possible with U-Boot proper. It us used to create a sandbox image links with host libraries. To build a sandbox SPL image we need the same feature for SPL. To support this, update the SPL link rule so sandbox can override it. Signed-off-by: Simon Glass

[U-Boot] [PATCH 20/27] dm: spl: mmc: Support CONFIG_BLK in SPL MMC

2016-06-12 Thread Simon Glass
Update the method of accessing the block device so that it works with CONFIG_BLK enabled. Signed-off-by: Simon Glass --- common/spl/spl_mmc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/spl/spl_mmc.c b/common/spl/spl_mmc.c index

[U-Boot] [PATCH 15/27] dm: mmc: sdhci: Refactor configuration setup to support DM

2016-06-12 Thread Simon Glass
Move the configuration setting into a separate function which can be used by the driver-model code. Signed-off-by: Simon Glass --- drivers/mmc/sdhci.c | 107 +--- 1 file changed, 59 insertions(+), 48 deletions(-) diff --git

[U-Boot] [PATCH 27/27] dm: blk: Enable CONFIG_BLK if DM_MMC is enabled

2016-06-12 Thread Simon Glass
To speed up conversion to CONFIG_BLK, enable it by default when DM_MMC is enabled. Signed-off-by: Simon Glass --- drivers/block/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/block/Kconfig b/drivers/block/Kconfig index 80eea84..fe5aa07 100644 ---

[U-Boot] [PATCH v2 10/55] sandbox: Don't include the main loop in SPL

2016-06-12 Thread Simon Glass
SPL does not have a command interface so we should not include the main loop code. Signed-off-by: Simon Glass --- Changes in v2: None arch/sandbox/cpu/start.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/sandbox/cpu/start.c b/arch/sandbox/cpu/start.c index

[U-Boot] [PATCH v2 02/55] README: Remove CONFIG_SYS_MALLOC_F_LEN comment

2016-06-12 Thread Simon Glass
This option is now widely available, so remove the comment that it is only available on ARM and sandbox. Signed-off-by: Simon Glass --- Changes in v2: None README | 3 --- 1 file changed, 3 deletions(-) diff --git a/README b/README index 1d0b946..c3dcfbd 100644 ---

[U-Boot] [PATCH v2 07/55] sandbox: Correct header file order in cpu.c

2016-06-12 Thread Simon Glass
The dm/ file should go at the end. Move it. Signed-off-by: Simon Glass --- Changes in v2: None arch/sandbox/cpu/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/sandbox/cpu/cpu.c b/arch/sandbox/cpu/cpu.c index 196f3e1..7a622c8 100644 ---

[U-Boot] [PATCH v2 11/55] sandbox: Add basic SPL implementation

2016-06-12 Thread Simon Glass
Add an sandbox implementation for the generic SPL framework. This supports locating and running U-Boot proper. Signed-off-by: Simon Glass --- Changes in v2: None arch/sandbox/cpu/Makefile | 1 + arch/sandbox/cpu/spl.c | 51

[U-Boot] [PATCH v2 05/55] sandbox: Allow chaining from SPL to U-Boot proper

2016-06-12 Thread Simon Glass
SPL is expected to load and run U-Boot. This needs to work with sandbox also. Provide a function to locate the U-Boot image, and another to start it. This allows SPL to function on sandbox as it does on other archs. Signed-off-by: Simon Glass --- Changes in v2: None

[U-Boot] [PATCH v2 03/55] spl: Drop include of i2c.h

2016-06-12 Thread Simon Glass
This file does not appear to use I2C, so drop this include. Signed-off-by: Simon Glass --- Changes in v2: None common/spl/spl.c | 1 - 1 file changed, 1 deletion(-) diff --git a/common/spl/spl.c b/common/spl/spl.c index 840910a..5fbf101 100644 --- a/common/spl/spl.c +++

[U-Boot] [PATCH v2 14/55] sandbox: Add a new sandbox_spl board

2016-06-12 Thread Simon Glass
It is useful to be able to build SPL for sandbox. It provides additional build coverage and allows SPL features to be tested in sandbox. However it does not need worthwhile to always create an SPL build. It nearly doubles the build time and the feature is (so far) seldom used. So for now, create

[U-Boot] [PATCH v2 18/55] dm: core: Don't use device tree with of-platdata

2016-06-12 Thread Simon Glass
When CONFIG_SPL_OF_PLATDATA is enabled we should not access the device tree. Remove all references to this in the core driver-model code. Signed-off-by: Simon Glass --- Changes in v2: None drivers/core/device.c | 2 +- drivers/core/lists.c | 2 +- drivers/core/root.c | 4

[U-Boot] [PATCH v2 23/55] dm: clk: Add support for of-platdata

2016-06-12 Thread Simon Glass
Add support for this feature in the core clock code. Signed-off-by: Simon Glass --- Changes in v2: None drivers/clk/clk-uclass.c | 20 drivers/clk/clk_fixed_rate.c | 2 ++ include/clk.h| 4 3 files changed, 26 insertions(+)

[U-Boot] [PATCH v2 15/55] sandbox: Add a test device that uses of-platdata

2016-06-12 Thread Simon Glass
Add a simple test device that provides a check that the of-platdata feature is working correctly. Signed-off-by: Simon Glass --- Changes in v2: None arch/sandbox/cpu/spl.c| 9 + arch/sandbox/dts/sandbox.dts | 13 + include/configs/sandbox_spl.h

[U-Boot] [PATCH v2 12/55] sandbox: Don't use IDE and iotrace in SPL

2016-06-12 Thread Simon Glass
These functions are not supported in SPL, so drop them. Signed-off-by: Simon Glass --- Changes in v2: None include/configs/sandbox.h | 4 1 file changed, 4 insertions(+) diff --git a/include/configs/sandbox.h b/include/configs/sandbox.h index 23a0c40..4de89f8 100644

[U-Boot] [PATCH v2 13/55] sandbox: serial: Don't sync video in SPL

2016-06-12 Thread Simon Glass
SPL does not support an LCD display so there is no need to sync the video when there is serial output. Signed-off-by: Simon Glass --- Changes in v2: None drivers/serial/sandbox.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/serial/sandbox.c

[U-Boot] [PATCH v2 16/55] dm: spl: Don't set up device tree with of-platdata

2016-06-12 Thread Simon Glass
When this feature is enabled, we should not access the device tree. Signed-off-by: Simon Glass --- Changes in v2: None common/spl/spl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/spl/spl.c b/common/spl/spl.c index 5fbf101..59f41a1 100644 ---

[U-Boot] [PATCH v2 06/55] sandbox: Support building an SPL image

2016-06-12 Thread Simon Glass
When building an SPL image, override the link flags so that it uses the system libraries. This is similar to the way the non-SPL image is built. Signed-off-by: Simon Glass --- Changes in v2: None arch/sandbox/config.mk | 5 + 1 file changed, 5 insertions(+) diff --git

[U-Boot] [PATCH v2 09/55] sandbox: Don't use PCI in SPL

2016-06-12 Thread Simon Glass
PCI is not supported in SPL for sandbox, so avoid using it. Signed-off-by: Simon Glass --- Changes in v2: None arch/sandbox/cpu/cpu.c| 2 +- arch/sandbox/lib/Makefile | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/sandbox/cpu/cpu.c

[U-Boot] [PATCH v2 08/55] sandbox: Add some missing headers in cpu.c

2016-06-12 Thread Simon Glass
These headers are needed in case they are not transitively included. Signed-off-by: Simon Glass --- Changes in v2: None arch/sandbox/cpu/cpu.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/sandbox/cpu/cpu.c b/arch/sandbox/cpu/cpu.c index 7a622c8..4975eb2 100644

[U-Boot] [PATCH v2 17/55] dm: Makefile: Build of-platdata before SPL

2016-06-12 Thread Simon Glass
Since SPL needs the of-platdata structures, build these before starting to build any SPL components. Signed-off-by: Simon Glass --- Changes in v2: None Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 5b03095..edefc0b

[U-Boot] [PATCH v2 19/55] dm: regmap: Add a dummy implementation for of-platdata

2016-06-12 Thread Simon Glass
Add a placeholder for now so that this code will compile. It currently does nothing. Signed-off-by: Simon Glass --- Changes in v2: None drivers/core/regmap.c | 9 + include/regmap.h | 3 +++ 2 files changed, 12 insertions(+) diff --git a/drivers/core/regmap.c

[U-Boot] [PATCH v2 42/55] rockchip: serial: Add an of-platdata driver for rockchip

2016-06-12 Thread Simon Glass
Add a driver that works with of-platdata. It sets up the platform data and calls the standard ns16550 driver. Signed-off-by: Simon Glass --- Changes in v2: None drivers/serial/Kconfig | 9 + drivers/serial/Makefile | 3 +++

[U-Boot] [PATCH v2 25/55] dm: Don't include fdtdec functions when of-platdata is enabled

2016-06-12 Thread Simon Glass
We cannot access the device tree in this case, so avoid compiling in the various device-tree helper functions. Signed-off-by: Simon Glass --- Changes in v2: None lib/Makefile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/Makefile

[U-Boot] [PATCH v2 31/55] dm: Add a more efficient libfdt library

2016-06-12 Thread Simon Glass
Add a Python version of the libfdt library which contains enough features to support the dtoc tool. This is only a very bare-bones implementation. It requires the 'swig' to build. Signed-off-by: Simon Glass --- Changes in v2: None lib/libfdt/libfdt.swig| 81

[U-Boot] [PATCH v2 21/55] dm: sandbox: Add a simple driver to test of-platdata

2016-06-12 Thread Simon Glass
Add a driver which uses of-platdata to obtain its platform data. This can be used to test the feature in sandbox. Signed-off-by: Simon Glass --- Changes in v2: None drivers/misc/Makefile | 5 + drivers/misc/spltest_sandbox.c | 28

[U-Boot] [PATCH v2 43/55] rockchip: Update the sdram-channel property to support of-platdata

2016-06-12 Thread Simon Glass
Add an extra byte so that this data is not byteswapped. Add a comment to the code to explain the purpose. Signed-off-by: Simon Glass --- Changes in v2: None arch/arm/dts/rk3288-firefly.dts| 3 ++- arch/arm/include/asm/arch-rockchip/sdram.h | 6 ++ 2 files

[U-Boot] [PATCH v2 36/55] dtoc: Ignore the u-boot, dm-pre-reloc property

2016-06-12 Thread Simon Glass
This property is not useful for of-platdata, so omit it. Signed-off-by: Simon Glass --- Changes in v2: None tools/dtoc/dtoc.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/dtoc/dtoc.py b/tools/dtoc/dtoc.py index 6a2f6ef..9f14e3f 100755 --- a/tools/dtoc/dtoc.py

[U-Boot] [PATCH v2 40/55] dm: core: Add an implementation of regmap_init_mem_platdata()

2016-06-12 Thread Simon Glass
Add an implementation of this function which mirrors the functions of the automatic device-tree implementation. This can be used with of-platdata to create regmaps. Signed-off-by: Simon Glass --- Changes in v2: None drivers/core/regmap.c | 18 --

[U-Boot] [PATCH v2 27/55] dm: Add a README for of-platdata

2016-06-12 Thread Simon Glass
Add documentation on how this works, including the benefits and drawbacks. Signed-off-by: Simon Glass --- Changes in v2: None doc/driver-model/of-plat.txt | 268 +++ 1 file changed, 268 insertions(+) create mode 100644

Re: [U-Boot] [PATCH v2] configs: Fixup afet BOOTDELAY migration

2016-06-12 Thread Heiko Schocher
Hello Hans, Am 11.06.2016 um 13:36 schrieb Hans de Goede: Hi, On 10-06-16 21:43, Tom Rini wrote: A number of config files were not correctly migrated for BOOTDELAY moving over to Kconfig. Update these configs which were not done correctly. Signed-off-by: Tom Rini ---

[U-Boot] [PATCH v2 49/55] rockchip: Move the MMC setup check earlier

2016-06-12 Thread Simon Glass
When the boot ROM sets up MMC we don't need to do it again. Remove the MMC setup code entirely. Signed-off-by: Simon Glass --- Changes in v2: None arch/arm/mach-rockchip/rk3288-board-spl.c | 23 --- 1 file changed, 12 insertions(+), 11 deletions(-) diff

[U-Boot] [PATCH v2 22/55] dm: Add a header that provides access to the of-platdata structs

2016-06-12 Thread Simon Glass
This header can be included from anywhere, but will only pull in the of-platdata struct definitions when this feature is enabled (and only in SPL). Signed-off-by: Simon Glass --- Changes in v2: None include/dt-structs.h | 19 +++ 1 file changed, 19

[U-Boot] [PATCH v2 54/55] rockchip: Use of-platdata for firefly-rk3288

2016-06-12 Thread Simon Glass
As an experiment, move this board over to use of-platdata. This means that its SPL configuration will come from C structures generated at build-time from the device tree, instead of coming from the device tree at run-time. Signed-off-by: Simon Glass --- Changes in v2: None

Re: [U-Boot] [PATCH] sunxi: Add INITIAL_USB_SCAN_DELAY to Mele_A1000G_quad_defconfig

2016-06-12 Thread Ian Campbell
On Sun, 2016-06-05 at 14:50 +0200, Hans de Goede wrote: > The Mele_A1000G_quad has an onboard usb <-> sata conversion which > needs > longer then the usb-spec allows to connect after getting power. > > Signed-off-by: Hans de Goede Acked-by: Ian Campbell

Re: [U-Boot] [PATCH 2/2] sunxi: Select USE_TINY_PRINTF

2016-06-12 Thread Ian Campbell
On Fri, 2016-06-10 at 21:04 +0200, Hans de Goede wrote: > This gives us a bit more breathing room wrt our SPL size. > > Signed-off-by: Hans de Goede Acked-by: Ian Campbell (and the first one too, FWIW) > --- >  arch/arm/Kconfig | 1 + >  1 file

Re: [U-Boot] [PATCH] sunxi: musb: Properly turn of musb controller before booting

2016-06-12 Thread Ian Campbell
On Sun, 2016-06-05 at 16:54 +0200, Hans de Goede wrote: > Turn of the clock and assert the reset when musb_stop gets called, so > that > the os gets the musb controller in a pristine state. This fixes a > spurious > VBus error interrupt triggering as soon as the Linux musb driver > loads. > >

Re: [U-Boot] [PATCH] sunxi: Enable ALDO3 and ALDO4 in Wobo_i5_defconfig

2016-06-12 Thread Ian Campbell
On Fri, 2016-06-03 at 20:11 +0200, Hans de Goede wrote: > These are used for the usb wifi and if we leave the enabling up to the > kernel, we get hit by the axp209 issues with enabling ldo3 or 4 post boot > and the systems hangs as soon as it is enabled. > > Signed-off-by: Hans de Goede

Re: [U-Boot] [PATCH v2 4/9] libfdt: Add new headers and defines

2016-06-12 Thread David Gibson
On Fri, Jun 10, 2016 at 05:03:36PM +0300, Pantelis Antoniou wrote: > Hi Maxime, > > > On May 27, 2016, at 12:13 , Maxime Ripard > > wrote: > > > > The libfdt overlay support introduces a bunch of new includes and > > functions. > > > > Make sure we are able

[U-Boot] [PATCH] Use C locale when setting CC_VERSION_STRING and LD_VERSION_STRING.

2016-06-12 Thread Vagrant Cascadian
The output reported may be locale-dependent, which results in unreproducible builds. $ LANG=C ld --version | head -n 1 GNU ld (GNU Binutils for Debian) 2.26 $ LANG=it_CH.UTF-8 ld --version | head -n 1 ld di GNU (GNU Binutils for Debian) 2.26 Forcing LC_ALL=C ensures the output is

Re: [U-Boot] [PATCH v2 1/2] configs: gxbb: Introduce a common config header file

2016-06-12 Thread Beniamino Galvani
On Fri, Jun 10, 2016 at 08:18:22PM +0200, Carlo Caione wrote: > From: Carlo Caione > > Introduce a meson-gxbb-common.h header file and derive the > configuration for Hardkernel Odroid-C2 board from that. Acked-by: Beniamino Galvani

Re: [U-Boot] [U-Boot, v2, 06/18] net: macb: Flush correct cache portion when sending

2016-06-12 Thread Andreas Bießmann
Dear Simon Glass, Simon Glass writes: >The end address of the cache flush must be cache-line-aligned since >otherwise (at least on ARM926-EJS) the request is ignored. When the cache >is enabled this means that packets are not sent. > >Signed-off-by: Simon Glass

Re: [U-Boot] gpio: at91: Fix pullup/pulldown configuration on PIO3

2016-06-12 Thread Andreas Bießmann
Dear Marek Vasut, Marek Vasut writes: >On systems with PIO3 (SAMA5D3/D4/..), the pullup and pulldown configuration >is mutualy exclusive. This patch assures that the opposite pull resistor gets >disabled before the requested pull resistor is enabled. This changes behavior >of

Re: [U-Boot] [U-Boot, v2, 01/18] at91: Add support for the AT91 slow clock controller

2016-06-12 Thread Andreas Bießmann
Dear Simon Glass, Simon Glass writes: >From: Andre Renaud > >This is available on AT91SAM9G45. Add the peripheral address and flag >definitions. > >Signed-off-by: Andre Renaud >Signed-off-by: Simon Glass

Re: [U-Boot] [U-Boot, v2, 05/18] net: macb: Prepare for driver-model conversion

2016-06-12 Thread Andreas Bießmann
Dear Simon Glass, Simon Glass writes: >Adjust this driver to avoid using struct netdev in functions that driver >model will call. Also refactor the receive function to be compatible with >driver model. > >Signed-off-by: Simon Glass >Reviewed-by: Heiko

Re: [U-Boot] [U-Boot, v2, 09/18] arm: at91: Add a header file for the real-time clock

2016-06-12 Thread Andreas Bießmann
Dear Simon Glass, Simon Glass writes: >From: Andre Renaud > >Add register definitions for the AT91 RTC so that this can potentially be >used in U-Boot. > >Signed-off-by: Andre Renaud >Signed-off-by: Simon Glass

Re: [U-Boot] [U-Boot, v2, 16/18] at91: video: Support driver-model for the LCD driver

2016-06-12 Thread Andreas Bießmann
Dear Simon Glass, Simon Glass writes: >Add driver-model support to this driver. Most features can be controlled >from the device tree. > >Signed-off-by: Simon Glass >Reviewed-by: Andreas Bießmann >--- > >Changes in v2: None > >

Re: [U-Boot] ARM: at91: Fix PMC bit definitions

2016-06-12 Thread Andreas Bießmann
Dear Marek Vasut, Marek Vasut writes: >Add missing parenthesis around the variable into the macro. > >Signed-off-by: Marek Vasut >Cc: Andreas Bießmann >--- > arch/arm/mach-at91/include/mach/at91_pmc.h | 16 > 1 file

Re: [U-Boot] [U-Boot, v2, 08/18] arm: at91: dts: Bring in device tree file for AT91SAM9G45

2016-06-12 Thread Andreas Bießmann
Dear Simon Glass, Simon Glass writes: >Add this file from Linux v4.5. > >Signed-off-by: Simon Glass >Reviewed-by: Heiko Schocher >Tested-on: smartweb, corvus, taurus, axm >Tested-by: Heiko Schocher >Reviewed-by: Andreas

Re: [U-Boot] [U-Boot, v2, 15/18] at91: video: Prepare for driver-model conversion

2016-06-12 Thread Andreas Bießmann
Dear Simon Glass, Simon Glass writes: >Adjust the driver to use struct display_timing for its display timing. >This is what is used by driver-model and allows the LCD init code to be >common. > >Signed-off-by: Simon Glass >Reviewed-by: Andreas Bießmann

Re: [U-Boot] [U-Boot, v2, 13/18] at91: Add driver-model GPIO devices for AT91SAM9G45

2016-06-12 Thread Andreas Bießmann
Dear Simon Glass, Simon Glass writes: >Add these definitions so that GPIOs can be used with driver model. > >Signed-off-by: Simon Glass >Reviewed-by: Heiko Schocher >Tested-on: smartweb, corvus, taurus, axm >Tested-by: Heiko Schocher

Re: [U-Boot] [U-Boot, v2] serial: atmel_usart: Add device tree support

2016-06-12 Thread Andreas Bießmann
Dear Wenyou Yang, Wenyou Yang writes: >Add device tree support. > >Signed-off-by: Wenyou Yang >Reviewed-by: Andreas Bießmann >Reviewed-by: Simon Glass >--- > >Changes in v2: > - Add conditional for device

Re: [U-Boot] [PATCH] common: Pass the boot device into spl_boot_mode()

2016-06-12 Thread Andreas Bießmann
On 14.05.16 23:42, Marek Vasut wrote: > The SPL code already knows which boot device it calls the spl_boot_mode() > on, so pass that information into the function. This allows the code of > spl_boot_mode() avoid invokind spl_boot_device() again, but it also lets > board_boot_order() correctly

Re: [U-Boot] [RFC PATCH V2] common: image: minimal android image iminfo support

2016-06-12 Thread Simon Glass
On 10 June 2016 at 11:54, Michael Trimarchi wrote: > We already support iminfo for other images. The idea > of this patch is start to have a minimal support for > android image format. We still need to print id[] array > > Signed-off-by: Michael Trimarchi

Re: [U-Boot] BOOT_DELAY broken

2016-06-12 Thread Ladislav Michl
On Sun, Jun 12, 2016 at 02:19:50PM -0700, Sergey Kubushyn wrote: > OK, it is broken in last commit. Totally broken. > > I can NOT get my custom board to stop at all. "CONFIG_BOOTDELAY=3" added > to my board defconfig doesn't change anything. Even changing default to > 3 from 0 in common/Kconfig

Re: [U-Boot] [PATCH 00/21] tools: moveconfig: many fixes, improvements, code clean-ups

2016-06-12 Thread Masahiro Yamada
2016-05-24 10:27 GMT+09:00 Masahiro Yamada : > 2016-05-24 7:13 GMT+09:00 Tom Rini : >> On Thu, May 19, 2016 at 03:51:48PM +0900, Masahiro Yamada wrote: >> >>> Masahiro Yamada (21): >>> tools: moveconfig: fix --dry-run option >>> tools:

Re: [U-Boot] [PATCH v3 1/4] tools: moveconfig: Fix another typo

2016-06-12 Thread Masahiro Yamada
2016-06-12 0:05 GMT+09:00 Masahiro Yamada : > 2016-06-11 4:53 GMT+09:00 Joe Hershberger : >> Signed-off-by: Joe Hershberger >> --- > > > Reviewed-by: Masahiro Yamada Applied, thanks!

Re: [U-Boot] [PATCH v3 4/4] tools: moveconfig: Add a new --git-ref option

2016-06-12 Thread Masahiro Yamada
2016-06-12 0:09 GMT+09:00 Masahiro Yamada : > 2016-06-11 4:53 GMT+09:00 Joe Hershberger : >> This option allows the 'make autoconf.mk' step to run against a former >> repo state, while the savedefconfig step runs against the current repo >>

Re: [U-Boot] [PATCH v3 2/4] tools: moveconfig: New color used for changed defconfig

2016-06-12 Thread Masahiro Yamada
2016-06-12 0:06 GMT+09:00 Masahiro Yamada : > 2016-06-11 4:53 GMT+09:00 Joe Hershberger : >> The old color blends in with similar messages and makes them not stand >> out. >> >> Signed-off-by: Joe Hershberger > >

Re: [U-Boot] [PATCH] ARM: at91: sama5: Extend boot device autodetection

2016-06-12 Thread Andreas Bießmann
On 14.05.16 23:43, Marek Vasut wrote: > Extend the boot device autodetection from SAMA5D2 only to the entire > SAMA5Dx family of microcontrollers. > > Signed-off-by: Marek Vasut > Cc: Andreas Bießmann > Cc: Wenyou Yang

Re: [U-Boot] [PATCH] ARM: at91: Fix PMC bit definitions

2016-06-12 Thread Andreas Bießmann
On 14.05.16 23:43, Marek Vasut wrote: > Add missing parenthesis around the variable into the macro. > > Signed-off-by: Marek Vasut > Cc: Andreas Bießmann Reviewed-by: Andreas Bießmann > --- >

Re: [U-Boot] [PATCH] sunxi: Add defconfig and dts file for inet86dz board

2016-06-12 Thread Ian Campbell
On Sun, 2016-06-12 at 19:50 +0200, Hans de Goede wrote: > The inet86dz board is a board used in 7" tablets from various oems. > > These tablets are a23 based 7" tablets featuring a 1024x600 LCD, > 512MB RAM, 4G NAND, rtl8188etv usb wifi, gsl1680 touchschreen, > micro-sd slot, 3.5mm headphone jack

[U-Boot] BOOT_DELAY broken

2016-06-12 Thread Sergey Kubushyn
OK, it is broken in last commit. Totally broken. I can NOT get my custom board to stop at all. "CONFIG_BOOTDELAY=3" added to my board defconfig doesn't change anything. Even changing default to 3 from 0 in common/Kconfig doesn't help. Putting "CONFIG_BOOTDELAY 3" in my board config in

Re: [U-Boot] [U-Boot,v2,07/18] net: macb: Convert to driver model

2016-06-12 Thread Andreas Bießmann
Dear Simon Glass, Simon Glass writes: >Add driver-model support to this driver. The old code remains for now so >that we can convert boards one at a time. > >Signed-off-by: Simon Glass >Reviewed-by: Heiko Schocher >Tested-on: smartweb,

Re: [U-Boot] [U-Boot, v2, 04/18] net: Handle an empty bootp extension section

2016-06-12 Thread Andreas Bießmann
Dear Simon Glass, Simon Glass writes: >From: Andre Renaud > >Avoid generating this section if there is nothing in it. > >Signed-off-by: Andre Renaud >Signed-off-by: Simon Glass >Acked-by: Joe

Re: [U-Boot] [U-Boot, v2, 02/18] arm: Allow skipping of low-level init with I-cache on

2016-06-12 Thread Andreas Bießmann
Dear Simon Glass, Simon Glass writes: >At present CONFIG_SKIP_LOWLEVEL_INIT prevents U-Boot from calling >lowlevel_init(). This means that the instruction cache is not enabled and >the board runs very slowly. > >What is really needed in many cases is to skip the call to

  1   2   >