Re: [U-Boot] BOOT_DELAY broken

2016-06-12 Thread Wolfgang Denk
Dear Sergey, In message you wrote: > OK, it is broken in last commit. Totally broken. So what? Shit happens. Calm down, it's only ones and zeroes. > I do NOT have time chasing this -- I'm in firefighting mode now with 14 > hours workdays because of this Tuesday deadline -- but guys, WTF!? No

[U-Boot] [PATCH v2 29/55] dm: Add a tool to generate C code from a device tree

2016-06-12 Thread Simon Glass
This tool can produce C struct definitions and C platform data tables. This is used to support the of-platdata feature. Signed-off-by: Simon Glass --- Changes in v2: None tools/dtoc/dtoc| 1 + tools/dtoc/dtoc.py | 365 + 2 files changed

[U-Boot] [PATCH v2 37/55] dm: Don't attach the device tree to SPL with of-platdata

2016-06-12 Thread Simon Glass
When of-platdata is used in SPL we don't use the device tree. So there is no point in attaching it. Adjust the Makefile to skip attaching the device tree when of-platdata is enabled. Signed-off-by: Simon Glass --- Changes in v2: None scripts/Makefile.spl | 2 +- 1 file changed, 1 insertion(+),

[U-Boot] [PATCH v2 55/55] dm: Update the of-platdata README for the new features

2016-06-12 Thread Simon Glass
Revise the content based on the v2 additions. This is kept as a separate patch to avoid confusing those who have already reviewed the v1 series. Signed-off-by: Simon Glass Suggested-by: Tom Rini --- Changes in v2: - Add support for rockchip - Various minor enhancements to the v1 implementation

Re: [U-Boot] [PATCH] i2c_eeprom: Add reading support

2016-06-12 Thread Mario Six
Hi Simon, On Fri, Jun 10, 2016 at 2:35 AM, Simon Glass wrote: > Hi Mario, > > On 2 June 2016 at 07:07, Mario Six wrote: >> This patch implements the reading functionality for the generic I2C >> EEPROM driver, which was just a non-functional stub until now. >> >> Since the page size will be of im

[U-Boot] [PATCH v2 52/55] rockchip: sdram: Move all DT decoding to ofdata_to_platdata()

2016-06-12 Thread Simon Glass
It is more correct to avoid touching the device tree in the probe() method. Update the driver to work this way. Note that only SPL needs to fiddle with the SDRAM registers, so decoding the platform data fully is not necessary in U-Boot proper. Signed-off-by: Simon Glass --- Changes in v2: None

[U-Boot] [PATCH v2 44/55] rockchip: mmc: Move all DT decoding to ofdata_to_platdata()

2016-06-12 Thread Simon Glass
It is more correct to avoid touching the device tree in the probe() method. Update the driver to work this way. Signed-off-by: Simon Glass --- Changes in v2: None drivers/mmc/rockchip_dw_mmc.c | 34 ++ 1 file changed, 18 insertions(+), 16 deletions(-) diff --gi

[U-Boot] [PATCH v2 38/55] dm: core: Expand platdata for of-platdata devices

2016-06-12 Thread Simon Glass
Devices which use of-platdata have their own platdata. However, in many cases the driver will have its own auto-alloced platdata, for use with the device tree. The ofdata_to_platdata() method converts the device tree settings to platdata. With of-platdata we would not normally allocate the platdat

[U-Boot] [PATCH v2 34/55] dm: spl: Bind in all devices in SPL with of-platdata

2016-06-12 Thread Simon Glass
When CONFIG_OF_PLATDATA is enabled, we cannot use the u-boot,dm-pre-reloc device tree property since the device tree is not available. However, dt-platdata.c only includes devices which would have been present in the device tree, and we can assume that all such devices are needed for SPL. If they w

[U-Boot] [PATCH v2 28/55] dm: Add a library to provide simple device-tree access

2016-06-12 Thread Simon Glass
This Python library provides a way to access the contents of the device tree. It uses fdtget, so is inefficient for larger device tree files. Signed-off-by: Simon Glass --- Changes in v2: None tools/dtoc/.gitignore | 1 + tools/dtoc/fdt_fallback.py | 207

[U-Boot] [PATCH v2 26/55] dm: Add an option to enable the of-platdata feature

2016-06-12 Thread Simon Glass
Add a Kconfig option to enable this feature. Signed-off-by: Simon Glass --- Changes in v2: None dts/Kconfig | 21 + 1 file changed, 21 insertions(+) diff --git a/dts/Kconfig b/dts/Kconfig index c56c129..4b7d8b1 100644 --- a/dts/Kconfig +++ b/dts/Kconfig @@ -85,4 +85,25 @@

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

2016-06-12 Thread Simon Glass
Provide a new function which can cope with obtaining information from of-platdata instead of the device tree. Signed-off-by: Simon Glass --- Changes in v2: - Add a comment to the effect that 64-bit machines are not supported drivers/core/syscon-uclass.c | 13 + include/syscon.h

[U-Boot] [PATCH v2 50/55] rockchip: Don't use spl_boot_device() with of-platdata

2016-06-12 Thread Simon Glass
This function cannot look at the device tree when of-platdata is used. Update the code to handle this. Signed-off-by: Simon Glass --- Changes in v2: None arch/arm/mach-rockchip/rk3288-board-spl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/mach-rockchip/rk3288-board-spl.c b

[U-Boot] [PATCH v2 47/55] rockchip: clk: Update the rk3288 driver to support of-platdata

2016-06-12 Thread Simon Glass
Add support for of-platdata with rk3288. This requires decoding the of-platdata struct and setting up the devices from that. Also the driver needs to be renamed to match the string that of-platdata will search for. Signed-off-by: Simon Glass --- Changes in v2: None drivers/clk/clk_rk3288.c | 1

[U-Boot] [PATCH v2 35/55] dm: core: Rename DM_NAME_ALLOCED to DM_FLAG_NAME_ALLOCED

2016-06-12 Thread Simon Glass
This is a flag. Adjust the name to be consistent with the other flags. Signed-off-by: Simon Glass --- Changes in v2: None drivers/core/device-remove.c | 2 +- drivers/core/device.c| 2 +- include/dm/device.h | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --gi

[U-Boot] [PATCH v2 53/55] rockchip: sdram: Update the driver to support of-platdata

2016-06-12 Thread Simon Glass
Add support for of-platdata with rk3288 SDRAM initr. This requires decoding the of-platdata struct and setting up the device from that. Also the driver needs to be renamed to match the string that of-platdata will search for. The platform data is copied from the of-platdata structure to the one us

[U-Boot] [PATCH v2 30/55] dm: Makefile: Build of-platdata files when the feature is enabled

2016-06-12 Thread Simon Glass
Update the Makefile to call dtoc to create the C header and source files, then build these into the image. Signed-off-by: Simon Glass --- Changes in v2: None scripts/Makefile.spl | 39 --- 1 file changed, 36 insertions(+), 3 deletions(-) diff --git a/script

[U-Boot] [PATCH v2 45/55] rockchip: mmc: Update the driver to support of-platdata

2016-06-12 Thread Simon Glass
Add support for of-platdata with rk3288. This requires decoding the of-platdata struct and setting up the device from that. Also the driver needs to be renamed to match the string that of-platdata will search for. Signed-off-by: Simon Glass --- Changes in v2: None drivers/mmc/rockchip_dw_mmc.c

[U-Boot] [PATCH v2 39/55] dm: core: Move regmap allocation into a separate function

2016-06-12 Thread Simon Glass
We plan to add a new way of creating a regmap for of-platdata. Move the allocation code into a separate function so that it can be shared. Signed-off-by: Simon Glass --- Changes in v2: None drivers/core/regmap.c | 34 ++ 1 file changed, 22 insertions(+), 12 dele

[U-Boot] [PATCH v2 32/55] Only build the libfdt python module if 'swig' is available

2016-06-12 Thread Simon Glass
When swig is not available, we can still build correctly. So make this optional. Add a comment about how to enable this build. Signed-off-by: Simon Glass --- Changes in v2: None tools/Makefile | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/Makefile b/tools/Makefi

[U-Boot] [PATCH v2 48/55] rockchip: pinctrl: Update the rk3288 driver to support of-platdata

2016-06-12 Thread Simon Glass
Add support for of-platdata with rk3288. This requires disabling access to the device tree and renaming the driver to match the string that of-platdata will search for. Signed-off-by: Simon Glass --- Changes in v2: None drivers/pinctrl/rockchip/pinctrl_rk3288.c | 8 +++- 1 file changed, 7

[U-Boot] [PATCH v2 51/55] rockchip: syscon: Update to work with of-platdata

2016-06-12 Thread Simon Glass
The syscon devices all end up having diffent driver names with of-platdata, since the driver name comes from the first string in the compatible list. Add separate device declarations for each one, and add a bind method to set up driver_data correctly. Signed-off-by: Simon Glass --- Changes in v2

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

2016-06-12 Thread Simon Glass
When this feature is enabled, we cannot access the device tree to find out which serial device to use. Just use the first serial driver we find. Signed-off-by: Simon Glass --- Changes in v2: None drivers/serial/serial-uclass.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff

[U-Boot] [PATCH v2 46/55] rockchip: clk: Move all DT decoding to ofdata_to_platdata()

2016-06-12 Thread Simon Glass
It is more correct to avoid touching the device tree in the probe() method. Update the driver to work this way. Also add an error check on grf since if that fails then we should not use it. Signed-off-by: Simon Glass --- Changes in v2: None drivers/clk/clk_rk3288.c | 20 +++- 1

[U-Boot] [PATCH v2 33/55] tiny-printf: Support assert()

2016-06-12 Thread Simon Glass
At present assert() is not supported with tiny-printf, so when DEBUG is enabled a build error is generated for each assert(). Add an __assert_fail() function to correct this. It prints a message and then hangs. Signed-off-by: Simon Glass --- Changes in v2: None lib/tiny-printf.c | 9 +

[U-Boot] [PATCH v2 41/55] dm: serial: ns16550: Update to support of-platdata

2016-06-12 Thread Simon Glass
With of-platdata this driver cannot know the format of the of-platdata struct, so we cannot use generic code for accessing the of-platdata. Each SoC that uses this driver will need to set up ns16550's platdata for it. So don't compile in the generic code. Signed-off-by: Simon Glass --- Changes i

[U-Boot] [PATCH 23/27] zynq: Increase the early malloc() size

2016-06-12 Thread Simon Glass
This is needed to support driver-model conversion of USB and block devices. Signed-off-by: Simon Glass --- arch/arm/cpu/armv8/zynqmp/Kconfig | 4 arch/arm/mach-zynq/Kconfig| 3 +++ 2 files changed, 7 insertions(+) diff --git a/arch/arm/cpu/armv8/zynqmp/Kconfig b/arch/arm/cpu/armv

[U-Boot] [PATCH 17/27] dm: mmc: msm_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/msm_sdhci.c | 51 +++-- 1 file changed, 49 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/msm_sdhci.c b/drivers

[U-Boot] [PATCH 25/27] dm: mmc: zynq: Convert zynq to use driver model for MMC

2016-06-12 Thread Simon Glass
Move zynq to the latest driver model support by enabling CONFIG_DM_MMC, CONFIG_DM_MMC_OPS and CONFIG_BLK. Signed-off-by: Simon Glass --- arch/arm/Kconfig | 5 + drivers/mmc/zynq_sdhci.c | 39 ++- 2 files changed, 39 insertions(+), 5 deletions(-)

[U-Boot] [PATCH 24/27] dm: zynq: usb: Convert to CONFIG_DM_USB

2016-06-12 Thread Simon Glass
Convert zynq USB to driver model. It does not actually work, but the error is similar. Before: Zynq> dm tree Class Probed Name root[ + ]root_driver rsa_mod_exp [ ]|-- mod_exp_sw simple_bus [ + ]`-- amba gpio[ ]

[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 100644 --- a/drivers/net/phy/marvell.c +++

[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 78724e4..926ccbd 100

[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 37c5ea77..ad2e8b8 10064

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 --- Changes in v2: - I rege

[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 insertions(+) create mode 10

[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 configs/firefly-rk32

[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 -- include/regmap.h | 15

[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 doc/driver-model/of-plat.txt diff

[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 --git a/arch/arm/ma

[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 changed, 8 insertions(

[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 b/lib/Makefile index f77befe..2fc

[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 + lib/libf

[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 +++ b/tools/dtoc/dto

[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 b/drivers/core/regma

[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 +++ drivers/serial/serial_rockchip.c | 43 +++

[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 2 files changed, 33

[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 --- a/common/spl/spl.c +

[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 100644 --- a/Makefil

[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(+) diff --git a/drivers/

[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 a

[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 | 2 ++ 3 files ch

[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 ++-- 3 files chang

[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 --- a/include/configs

[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 b/drivers/serial/sandbox.c index 58f

[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 a/arch/sandbox/confi

[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 --- a/arch/sandbox/

[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 --- a/arch/sandbox/cpu/cpu.c +

[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 b/arch/sandbox/cpu/cpu.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 --- a/README +++ b/README @@ -3

[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 arch/sandbox/cpu/os.c | 51

[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 ++ arch/sandbox/

[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 +++ b/common/spl/spl.c @@

[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 environments

[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 969618e..6e4ec01 100644

[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. Signed-off-b

[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 --- Chan

[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 --- a/drivers/block/Kconfig +++

[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 b/drivers/mmc/Kconfig index 79cf18f..b1

[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 b/drivers/mmc/Kconfig index b9662f9..

[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 a/board/evb_rk3036/evb_rk3036/MAINTAINERS b/board/evb_rk30

[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 ef8583a..4c60bf6 100644 --- a

[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 a/drivers/mmc/sdhci.c

[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(-) diff --git a/arch/K

[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 insertions(+), 1 dele

[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 --git a/include/confi

[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 b/drivers/mmc/dw_mmc.c index 74a2

[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 b/arch/arm/Kconfig index 85b

[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 | 19 +++

[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 changed, 91 insertions(+)

[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 +--- drivers/mmc/mmc_boot

[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 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 insertions(+), 5 deletions(-)

[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 750ab9f..d928b0b 100644 --- a/d

[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 ++ arch/arm/mach

[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 a/include/dwmmc.h b/include

[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 changed, 83 insertions(+),

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 v

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 - include/configs/mx6_common.h

[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 has_erratum(). - Made USB controllers macros local to

[U-Boot] [Patch v4 5/5] usb: xhci: fsl: Add workaround for USB erratum A-008751

2016-06-12 Thread Sriram Dash
This patch is doing the following: 1. Implementing the errata for LS2080. 2. Adding fixup for fdt for LS2080. Signed-off-by: Sriram Dash Signed-off-by: Rajesh Bhagat --- Changes in v4: - Reworked for changes done in errata checking code. Changes in v3: - Reworked for changes done in errata

[U-Boot] [Patch v4 3/5] fsl: usb: make errata function common for PPC and ARM

2016-06-12 Thread Sriram Dash
This patch does the following things: 1. Makes the errata checking code common for PPC and ARM 2. Moves all these static inline functions into a dedicated C file Signed-off-by: Sriram Dash Signed-off-by: Rajesh Bhagat --- Changes in v4: - Rework done according to previous patches. Changes in

[U-Boot] [Patch v4 4/5] armv8/ls2080: Remove workaround for erratum A008751

2016-06-12 Thread Sriram Dash
This errata a008751 is applied on Soc specific file currently.This will be moved to a file where all the errata implementation will take place for usb for fsl. This patch removes the errata workaround from soc specific file for LS2080. Signed-off-by: Sriram Dash Signed-off-by: Rajesh Bhagat ---

[U-Boot] [Patch v4 1/5] arm64: fsl-layerscape: add get_svr and IS_SVR_REV helper

2016-06-12 Thread Sriram Dash
Adds get_svr and IS_SVR_REV helpers for ARMv8 platforms, similar to PPC and ARMv7. Signed-off-by: Sriram Dash Signed-off-by: Rajesh Bhagat --- Changes in v4: - Parenthesis around all the macro args. Changes in v3: - Added commit message Changes in v2: - No update arch/arm/cpu/armv8

[U-Boot] [Patch v4 0/5] Supporting ARM v8 USB errata for FSL

2016-06-12 Thread Sriram Dash
The patch-set does the following : 1. Adds support for ARM for USB Erratum Checking code for implementing the USB Erratum for fsl. 2. Performs code cleanup to reduce redundancy when adding fsl device tree fixup. 3. Implements Erratum A008751 for LS2 platform. Sriram Dash (5): arm64: fsl-layersc

[U-Boot] [Patch V2 3/3] armv8: ls1043aqds: print FPGA info early for QSPI boot

2016-06-12 Thread Gong Qianyu
Now I2C is initialized early enough to access FPGA so it supports to show board info as early as other boot methods. Signed-off-by: Gong Qianyu --- include/configs/ls1043aqds.h | 4 1 file changed, 4 deletions(-) diff --git a/include/configs/ls1043aqds.h b/include/configs/ls1043aqds.h inde

[U-Boot] [PATCH v5 2/2] common: usb_storage : Implement logic to calculate optimal usb maximum trasfer blocks

2016-06-12 Thread Rajesh Bhagat
From: Rajesh Bhagat Implements the logic to calculate the optimal usb maximum trasfer blocks instead of sending USB_MAX_XFER_BLK blocks which is 65535 and 20 in case of EHCI and other USB protocols respectively. It defines USB_MIN_XFER_BLK/USB_MAX_XFER_BLK trasfer blocks that should be checked f

[U-Boot] [PATCH v5 1/2] common: usb_storage: Make common function for usb_stor_read/usb_stor_write

2016-06-12 Thread Rajesh Bhagat
Performs code cleanup by making common function for usb_stor_read/ usb_stor_write. Currently only difference in these fucntions is call to usb_read_10/usb_write_10 scsi commands. Signed-off-by: Rajesh Bhagat --- Changes in v5: - Converts USB_STOR_OPERATION_FUNC macro to a function - Corrects th

[U-Boot] [PATCH v5 0/2] common: usb_storage : Implement logic to calculate optimal

2016-06-12 Thread Rajesh Bhagat
Performs code cleanup by making common function for usb_stor_read/write and implements the logic to calculate the optimal usb maximum trasfer blocks instead of sending USB_MAX_XFER_BLK blocks which is 65535 and 20 in case of EHCI and other USB protocols respectively. Rajesh Bhagat (2): common: u

Re: [U-Boot] [PATCH] net: Allow setenv to set net global variables

2016-06-12 Thread Chris Packham
Hi Joe, On 06/11/2016 03:56 AM, Joe Hershberger wrote: > On Thu, Jun 9, 2016 at 8:40 PM, Matthew Bright > wrote: >> The patch fd3056337e6fcc introduces env callbacks to several of the net >> related env variables. These callbacks are responsible for updating the >> corresponding global variables

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

2016-06-12 Thread Masahiro Yamada
Hi Tom, 2016-06-13 1:50 GMT+09:00 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

  1   2   >