Re: [U-Boot] Wandboard: u-boot.img is getting too large

2016-07-04 Thread Alexey Brodkin
Hi Wolfgang, On Tue, 2016-07-05 at 08:11 +0200, Wolfgang Denk wrote: Dear Alexey, In message <1467694422.3144.32.ca...@synopsys.com> you wrote: According to http://wiki.wandboard.org/index.php/Boot-process#sdcard_boot_data_layout Wandboard's SD-c

Re: [U-Boot] Wandboard: u-boot.img is getting too large

2016-07-04 Thread Wolfgang Denk
Dear Alexey, In message <1467694422.3144.32.ca...@synopsys.com> you wrote: > > According to  > http://wiki.wandboard.org/index.php/Boot-process#sdcard_boot_data_layout > Wandboard's SD-card layout is as follows: > -->8--- > #  Offset (hex) (dec)

[U-Boot] [PATCH] sf: sf_params: Add AT25DF321 flash support

2016-07-04 Thread Wenyou Yang
Add AT25DF321 flash support. Fix AT25DF321A device name. Signed-off-by: Wenyou Yang --- drivers/mtd/spi/sf_params.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/mtd/spi/sf_params.c b/drivers/mtd/spi/sf_params.c index c577d9e..8336c48 100644 --- a/drivers/mtd/spi

Re: [U-Boot] [PATCH] armv8: Enable CPUECTLR.SMPEN for data coherency

2016-07-04 Thread Prabhakar Kushwaha
> -Original Message- > From: Edward L Swarthout > Sent: Saturday, July 02, 2016 3:14 AM > To: Prabhakar Kushwaha ; york sun > ; Qianyu Gong ; > albert.u.b...@aribaud.net; u-boot@lists.denx.de; > s.temerkha...@gmail.com; yamada.masah...@socionext.com > Cc: Mingkai Hu > Subject: RE: [U-Boot

Re: [U-Boot] [PATCH] powerpc/mpc85xx: Fix SPL_BUILD compilation by adding CONFIG_USB_EHCI_FSL flag

2016-07-04 Thread Sriram Dash
>From: Marek Vasut [mailto:ma...@denx.de] >On 07/04/2016 01:11 PM, Sriram Dash wrote: >> Commit 9262367 moved USB errata workaround to a C file but didn't >> build it for SPL targets. The EHCI errata should be applied/checked >> only when EHCI is defined. >> >> Signed-off-by: Rajesh Bhagat >> Sign

[U-Boot] Wandboard: u-boot.img is getting too large

2016-07-04 Thread Alexey Brodkin
Hello, Recently I started to notice that u-boot.img built for Wandboard by some toolchains becomes so large that it basically overlaps with U-Boot environment area on SD-card. According to  http://wiki.wandboard.org/index.php/Boot-process#sdcard_boot_data_layout Wandboard's SD-card layout is as f

[U-Boot] [mips][cfi] Unable to write into flash under qemu

2016-07-04 Thread Alon Bar-Lev
Hello, I am using malta board within qemu. I tried recent releases and master of both. Two years ago in qemu-1.5 and qemu-1.6 I could use erase and cp.b in order to erase and write to the flash. Now when I try to erase flash I get an error suggesting the erase failed, however, I do see 0xff all ov

Re: [U-Boot] Please pull ARC changes

2016-07-04 Thread Tom Rini
On Mon, Jul 04, 2016 at 08:49:40AM +, Alexey Brodkin wrote: > Hi Tom, > > These are 2 very subtle changes from which one accommodates the most recent > ARC tools > where "-marchs" is no longer accepted and the second one is a minor fixup > that might > benefit in the future once "global_dat

Re: [U-Boot] [PULL] u-boot-usb/master

2016-07-04 Thread Tom Rini
On Sat, Jul 02, 2016 at 03:43:39AM +0200, Marek Vasut wrote: > The following changes since commit b66a5c03a0870db3045be2967b85684b1887ca18: > > Merge branch 'master' of git://git.denx.de/u-boot-uniphier (2016-06-21 > 20:43:21 -0400) > > are available in the git repository at: > > git://git.

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

2016-07-04 Thread Tom Rini
On Sat, Jul 02, 2016 at 09:51:20PM +0200, Hans de Goede wrote: > Hi Tom, > > Here is hopefully the last sunxi pull-req for v2016.07, > it contains 2 misc. fixes and 1 new board. > > The following changes since commit 0e1e587ff4fc2d81ad4f6313f02c5ca4c8ceea01: > > Prepare v2016.07-rc3 (2016-07-

Re: [U-Boot] [PULL] u-boot-socfpga/master

2016-07-04 Thread Tom Rini
On Sat, Jul 02, 2016 at 03:42:29AM +0200, Marek Vasut wrote: > The following changes since commit b66a5c03a0870db3045be2967b85684b1887ca18: > > Merge branch 'master' of git://git.denx.de/u-boot-uniphier (2016-06-21 > 20:43:21 -0400) > > are available in the git repository at: > > git://git.

Re: [U-Boot] [PATCH v5 0/8] ARMv7: PSCI: add PSCI v1.0 support

2016-07-04 Thread Hongbo Zhang
On Mon, Jul 4, 2016 at 9:11 PM, Hans de Goede wrote: > Hi, > > On 04-07-16 09:20, Hongbo Zhang wrote: >> >> I said I would send a new iteration of this series, but there are code >> dependencies/conflicts with Chenyu's work, so I'd like to wait for a >> few more days to see his v2 sent out or even

[U-Boot] [PATCH v2 2/3] usb: dwc2-otg: re-define fifo-size for Rockchip SoCs

2016-07-04 Thread Ziyuan Xu
From: Xu Ziyuan The total FIFO size of dwc2 on Rockchip SoCs is shorter than the existen, so re-define them to fit Rockchip SoCs. Signed-off-by: Ziyuan Xu --- Changes in v2: - Update detailed commit message - Modify the macro's values drivers/usb/gadget/dwc2_udc_otg_regs.h | 6 ++ 1 fil

[U-Boot] [PATCH v2 1/3] usb: rockchip-phy: implement USB2.0 phy control for Synopsys

2016-07-04 Thread Ziyuan Xu
From: Xu Ziyuan So far, Rockchip SoCs have two kinds of USB2.0 phy, like Synopsys and Innosilicon. This patch applys dwc2 usb driver framework to implement phy_init and phy_off for Synopsys phy on Rockchip platform. Signed-off-by: Ziyuan Xu --- Changes in v2: - Rename rk3288_usb_phy.c to rock

[U-Boot] [PATCH v2 3/3] rockchip: rk3288: add fastboot support

2016-07-04 Thread Ziyuan Xu
From: Xu Ziyuan Enable fastboot feature on rk3288. This path doesn't support the fastboot flash function command entirely. We will hit "cannot find partition" assertion without specified partition environment. Define gpt partition layout in specified board such as firefly-rk3288, then enjoy it!

[U-Boot] [PATCH v2 0/3] rockchip: rk3288: add fastboot support

2016-07-04 Thread Ziyuan Xu
This patchset add the fastboot support for rk3288, and I have tested on firefly-rk3288 board. Summary of changes in this series: - Rework the behaviour in otg_phy_init() and otg_phy_off() - Achieve the regs_phy from DT - Update comments a little Xu Ziyuan (3): usb: rockchip-phy: implement USB2.

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

2016-07-04 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 v3: None Changes in v2: - Add a comment to the effect that 64-bit machines are not supported drivers/core/syscon-uclass.c | 13 +

[U-Boot] [PATCH v3 56/62] rockchip: Use of-platdata for firefly-rk3288

2016-07-04 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 v3: None Changes in v2: None

[U-Boot] [PATCH v3 40/62] dm: sandbox: Enable of-platdata for sandbox_spl

2016-07-04 Thread Simon Glass
Enable this feature so that we can use it for testing in sandbox_spl. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None configs/sandbox_spl_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/sandbox_spl_defconfig b/configs/sandbox_spl_defconfig index d92

[U-Boot] [PATCH v3 61/62] dm: Add a test for of-platdata

2016-07-04 Thread Simon Glass
Add a simple test which checks that the of-platdata system is working correctly. The sequence is as follows: - SPL starts up and probes all the UCLASS_MISC drivers - There are 3 of these in sandbox.dts - Therefore there should be 3 U_BOOT_DEVICE() declarations in dt-platdata.c - These should produ

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

2016-07-04 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 v3: None Changes in v2: None lib/Makefile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/Makefile b/lib/Makefil

[U-Boot] [PATCH v3 44/62] rockchip: serial: Add an of-platdata driver for rockchip

2016-07-04 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 v3: None Changes in v2: None drivers/serial/Kconfig | 9 + drivers/serial/Makefile | 3 +++ drivers/serial/serial

[U-Boot] [PATCH v3 46/62] rockchip: mmc: Move all DT decoding to ofdata_to_platdata()

2016-07-04 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 v3: None Changes in v2: None drivers/mmc/rockchip_dw_mmc.c | 32 +--- 1 file changed, 17 insertions(+), 15 delet

[U-Boot] [PATCH v3 58/62] test/py: Note which console produced unexpected output

2016-07-04 Thread Simon Glass
At present the SPL and U-Boot consoles both present the same error message when the expected console output does not appear. Add "SPL" to the SPL error message to resolve this ambiguity. Signed-off-by: Simon Glass --- Changes in v3: - Add new patch to note which console produced unexpected outpu

[U-Boot] [PATCH v3 52/62] rockchip: Don't use spl_boot_device() with of-platdata

2016-07-04 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 v3: None 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/r

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

2016-07-04 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 v3: - Update comments a little - Add GetEmpty() to obtain an empty/zero value of a given type Changes in v2: No

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

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

[U-Boot] [PATCH v3 42/62] dm: core: Add an implementation of regmap_init_mem_platdata()

2016-07-04 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 v3: None Changes in v2: None drivers/core/regmap.c | 18 -- include/reg

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

2016-07-04 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 v3: None Changes in v2: None tools/Makefile | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/Mak

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

2016-07-04 Thread Simon Glass
Add a Kconfig option to enable this feature. Signed-off-by: Simon Glass --- Changes in v3: None 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

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

2016-07-04 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. It displays the contents of its platform data. Signed-off-by: Simon Glass --- Changes in v3: - Print out the of-platdata contents for testing Changes in v2: None drivers/misc/Make

[U-Boot] [PATCH v3 45/62] rockchip: Update the sdram-channel property to support of-platdata

2016-07-04 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 v3: None Changes in v2: None arch/arm/dts/rk3288-firefly.dts| 3 ++- arch/arm/include/asm/arch-rockchip/sdram.h | 6 ++ 2 files ch

[U-Boot] [PATCH v3 43/62] dm: serial: ns16550: Update to support of-platdata

2016-07-04 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 v3 59/62] test/py: Provide a way to get early console output

2016-07-04 Thread Simon Glass
Some tests want to check the console output from SPL or U-Boot proper. Provide a means to do this. Signed-off-by: Simon Glass --- Changes in v3: - Add new patch to provide a way to get early console output Changes in v2: None test/py/u_boot_console_base.py | 10 ++ test/py/u_boot_spaw

[U-Boot] [PATCH v3 47/62] rockchip: mmc: Update the driver to support of-platdata

2016-07-04 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 v3: None Changes in v2: None drivers/m

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

2016-07-04 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 v3: None Changes in v2: None scripts/Makefile.spl | 39 --- 1 file changed, 36 insertions(+), 3 deletions(-)

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

2016-07-04 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 v3: None Changes in v2: None include/dt-structs.h | 19 +++ 1 file changed, 19 insertion

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

2016-07-04 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 v3: None 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 v3 24/62] dm: serial: Add support for of-platdata

2016-07-04 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 v3: None Changes in v2: None drivers/serial/serial-uclass.c | 8 +++- 1 file changed, 7 insertions(+),

[U-Boot] [PATCH v3 53/62] rockchip: syscon: Update to work with of-platdata

2016-07-04 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 v3

[U-Boot] [PATCH v3 41/62] dm: core: Move regmap allocation into a separate function

2016-07-04 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 v3: None Changes in v2: None drivers/core/regmap.c | 34 ++ 1 file changed, 22 in

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

2016-07-04 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 v3 51/62] rockchip: Move the MMC setup check earlier

2016-07-04 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 v3: None Changes in v2: None arch/arm/mach-rockchip/rk3288-board-spl.c | 23 --- 1 file changed, 12 insertions(+), 11 deletions(-) diff

[U-Boot] [PATCH v3 33/62] tiny-printf: Support assert()

2016-07-04 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 v3: None Changes in v2: None lib/tiny-pr

[U-Boot] [PATCH v3 54/62] rockchip: sdram: Move all DT decoding to ofdata_to_platdata()

2016-07-04 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 v3: None C

[U-Boot] [PATCH v3 49/62] rockchip: clk: Update the rk3288 driver to support of-platdata

2016-07-04 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 v3: - Rebase to master Changes in v2:

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

2016-07-04 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 v3: - Add a test for of-platdata Changes in v2: - Add support for rockchip - Various

[U-Boot] [PATCH v3 48/62] rockchip: clk: Move all DT decoding to ofdata_to_platdata()

2016-07-04 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 v3: - Rebase to master Changes in v2: None drivers/clk/clk_rk

[U-Boot] [PATCH v3 60/62] test/py: Start sandbox SPL when enabled

2016-07-04 Thread Simon Glass
When sandbox SPL is enabled we want to start that rather than U-Boot proper, since some tests may rely on running it first. Signed-off-by: Simon Glass --- Changes in v3: - Add new patch to start sandbox SPL when enabled Changes in v2: None test/py/u_boot_console_sandbox.py | 6 +- 1 file

[U-Boot] [PATCH v3 57/62] test/py: Handle testing with the sandbox_spl board

2016-07-04 Thread Simon Glass
This board can sometimes be used for tests. Handle it the same way as sandbox. Note: I plan to drop the sandbox_spl board at some point and merge its features into sandbox. So this commit may not be necessary. Signed-off-by: Simon Glass --- Changes in v3: - Add new patch to handle testing with

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

2016-07-04 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 v3 50/62] rockchip: pinctrl: Update the rk3288 driver to support of-platdata

2016-07-04 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 v3: None Changes in v2: None drivers/pinctrl/rockchip/pinctrl_rk3288.c | 8 +++-

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

2016-07-04 Thread Simon Glass
This property is not useful for of-platdata, so omit it. Signed-off-by: Simon Glass --- Changes in v3: None 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 24f3858..374ad1c 100755 --- a/tools/dtoc/dtoc.py

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

2016-07-04 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 v3: None Changes in v2: None scripts/Makefile.spl | 2 +- 1 file chan

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

2016-07-04 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 v3 18/62] dm: core: Don't use device tree with of-platdata

2016-07-04 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 v3: None Changes in v2: None drivers/core/device.c | 2 +- drivers/core/lists.c | 2 +- drivers/core/root.c | 4

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

2016-07-04 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 v3: - Process the structs in a first pass, to correct bugs in widening Changes in v2: None tools/dtoc/dtoc| 1 + tools/dtoc/d

[U-Boot] [PATCH v3 39/62] sandbox: Don't bring in the eeprom emulator in SPL

2016-07-04 Thread Simon Glass
This driver should not be used in SPL since we do not have I2C support enabled in SPL on sandbox. Signed-off-by: Simon Glass --- Changes in v3: - Add new patch to avoid bringing in the eeprom emulator in SPL Changes in v2: None drivers/misc/Makefile | 2 ++ 1 file changed, 2 insertions(+) di

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

2016-07-04 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 v3: None Changes in v2: None Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index aff78f0..b571f07

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

2016-07-04 Thread Simon Glass
Add support for this feature in the core clock code. Signed-off-by: Simon Glass --- Changes in v3: - Update to the new clock API Changes in v2: None drivers/clk/clk-uclass.c | 22 -- drivers/clk/clk_fixed_rate.c | 2 ++ include/clk.h| 4 3 files

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

2016-07-04 Thread Simon Glass
When this feature is enabled, we should not access the device tree. Signed-off-by: Simon Glass --- Changes in v3: None 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 v3 15/62] sandbox: Add a test device that uses of-platdata

2016-07-04 Thread Simon Glass
Start up the test devices. These print out of-platdata contents, providing a check that the of-platdata feature is working correctly. The device-tree changes are made to sandbox.dts rather than test.dts. since the former controls the of-platdata generation. Signed-off-by: Simon Glass --- Change

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

2016-07-04 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 v3: - Fix handling of boolean value (no impact, but it is more correct) -

[U-Boot] [PATCH v3 14/62] sandbox: Add a new sandbox_spl board

2016-07-04 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 v3 12/62] sandbox: Don't use IDE and iotrace in SPL

2016-07-04 Thread Simon Glass
These functions are not supported in SPL, so drop them. Signed-off-by: Simon Glass --- Changes in v3: None 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 v3 35/62] dm: core: Rename DM_NAME_ALLOCED to DM_FLAG_NAME_ALLOCED

2016-07-04 Thread Simon Glass
This is a flag. Adjust the name to be consistent with the other flags. Signed-off-by: Simon Glass --- Changes in v3: None 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 del

[U-Boot] [PATCH v3 11/62] sandbox: Add basic SPL implementation

2016-07-04 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 v3: None Changes in v2: None arch/sandbox/cpu/Makefile | 1 + arch/sandbox/cpu/spl.c | 51 +

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

2016-07-04 Thread Simon Glass
These headers are needed in case they are not transitively included. Signed-off-by: Simon Glass --- Changes in v3: None 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 v3 13/62] sandbox: serial: Don't sync video in SPL

2016-07-04 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 v3: None Changes in v2: None drivers/serial/sandbox.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/serial/sandbox.c b/drivers/serial

[U-Boot] [PATCH v3 06/62] sandbox: Support building an SPL image

2016-07-04 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 v3: None Changes in v2: None arch/sandbox/config.mk | 5 + 1 file changed, 5 insertions(+) diff --git

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

2016-07-04 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 v3: None 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 969

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

2016-07-04 Thread Simon Glass
The dm/ file should go at the end. Move it. Signed-off-by: Simon Glass --- Changes in v3: None 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

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

2016-07-04 Thread Simon Glass
PCI is not supported in SPL for sandbox, so avoid using it. Signed-off-by: Simon Glass --- Changes in v3: None 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/san

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

2016-07-04 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 v3: None Changes in v2: None arch/sa

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

2016-07-04 Thread Simon Glass
This file does not appear to use I2C, so drop this include. Signed-off-by: Simon Glass --- Changes in v3: None 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/

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

2016-07-04 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 v3 02/62] README: Remove CONFIG_SYS_MALLOC_F_LEN comment

2016-07-04 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 v3: None Changes in v2: None README | 3 --- 1 file changed, 3 deletions(-) diff --git a/README b/README index 26d5ad2..e906253 100644 --- a/READM

[U-Boot] [PATCH v3 00/62] dm: rockchip: sandbox: Add support for compiled-in platform data

2016-07-04 Thread Simon Glass
Note: This v3 series adds a test and fixes a few bugs found in generation of of-platdata. 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 where th

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

2016-07-04 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

Re: [U-Boot] [PATCH] net: rtl8169: Fix return value for rtl_send_common

2016-07-04 Thread Simon Glass
Hi, On 4 July 2016 at 11:10, Oleksandr Tymoshenko wrote: > >> On Jul 4, 2016, at 8:40 AM, Simon Glass wrote: >> >> On 1 July 2016 at 14:22, Oleksandr Tymoshenko wrote: >>> Return value of rtl_send_common propogates unmodified all the way >>> up to eth_send and further to API consumer if CONFIG_

Re: [U-Boot] [PATCH] SPL: tiny-printf: avoid any BSS usage

2016-07-04 Thread Tom Rini
On Mon, Jul 04, 2016 at 02:30:20PM +0200, Marek Vasut wrote: > On 07/04/2016 01:56 AM, Andre Przywara wrote: > >As printf calls may be executed quite early, we should avoid using any > >BSS stored variables, since some boards put BSS in DRAM, which may not > >have been initialised yet. > >Explicitl

Re: [U-Boot] [PATCH] net: rtl8169: Fix return value for rtl_send_common

2016-07-04 Thread Oleksandr Tymoshenko
> On Jul 4, 2016, at 8:40 AM, Simon Glass wrote: > > On 1 July 2016 at 14:22, Oleksandr Tymoshenko wrote: >> Return value of rtl_send_common propogates unmodified all the way >> up to eth_send and further to API consumer if CONFIG_API is enabled. >> Previously rtl_send_common returned number of

Re: [U-Boot] [PATCH] net: rtl8169: Fix return value for rtl_send_common

2016-07-04 Thread Simon Glass
On 1 July 2016 at 14:22, Oleksandr Tymoshenko wrote: > Return value of rtl_send_common propogates unmodified all the way > up to eth_send and further to API consumer if CONFIG_API is enabled. > Previously rtl_send_common returned number of bytes sent on success > which was erroneouly detected as e

Re: [U-Boot] Logging SPL output with test/py

2016-07-04 Thread Simon Glass
Hi Stephen, On 3 July 2016 at 22:14, Simon Glass wrote: > Hi Stephen, > > I'd like to get access to SPL output from a test. It seems that only > the output from U-Boot proper is logged, although I cannot see why. > > For background, I have a new sandbox_spl target which includes SPL > code. I wil

[U-Boot] [PATCH] powerpc/mpc85xx: Fix SPL_BUILD compilation by adding CONFIG_USB_EHCI_FSL flag

2016-07-04 Thread Sriram Dash
Commit 9262367 moved USB errata workaround to a C file but didn't build it for SPL targets. The EHCI errata should be applied/checked only when EHCI is defined. Signed-off-by: Rajesh Bhagat Signed-off-by: Sriram Dash --- arch/powerpc/include/asm/config_mpc85xx.h | 32 +++

Re: [U-Boot] [PATCH v5 0/8] ARMv7: PSCI: add PSCI v1.0 support

2016-07-04 Thread Hans de Goede
Hi, On 04-07-16 09:20, Hongbo Zhang wrote: I said I would send a new iteration of this series, but there are code dependencies/conflicts with Chenyu's work, so I'd like to wait for a few more days to see his v2 sent out or even been merged. During this stage, any review comments are still apprec

Re: [U-Boot] [PATCH v2 2/4] usb: dwc3: Add helper functions to enable snooping and burst settings

2016-07-04 Thread Rajesh Bhagat
> -Original Message- > From: Lukasz Majewski [mailto:l.majew...@samsung.com] > Sent: Thursday, June 23, 2016 8:23 PM > To: Rajat Srivastava > Cc: u-boot@lists.denx.de; s...@chromium.org; ma...@denx.de; > albert.u.b...@aribaud.net; prabha...@freescale.com; york sun > ; Mingkai Hu ; Rajesh

[U-Boot] Stepping down as sunxi u-boot custodian

2016-07-04 Thread Hans de Goede
Hi All, Between my $dayjob, linux-sunxi, other foss projects and last but not least spending time with my wife and children I'm way too busy lately. So I've decided to seriously scale back my involvement in linux-sunxi, as such I'm going to step down as u-boot sunxi custodian. I've asked Ian if

Re: [U-Boot] [PATCH 2/2] usb: dm: Make "usb info" use usb_for_each_root_dev()

2016-07-04 Thread Marek Vasut
On 07/03/2016 08:22 PM, Hans de Goede wrote: The old dm "usb info" implementation has several issues: 1) NULL pointer deref when a bus has no children 2) Not showing usb devices on busses without an emulated root-hub (otg host) 3) Attempting to show devices on inactive busses 4) "usb info" Would

Re: [U-Boot] [PATCH] SPL: tiny-printf: avoid any BSS usage

2016-07-04 Thread Marek Vasut
On 07/04/2016 01:56 AM, Andre Przywara wrote: As printf calls may be executed quite early, we should avoid using any BSS stored variables, since some boards put BSS in DRAM, which may not have been initialised yet. Explicitly mark those "static global" variables as belonging to the .data section,

Re: [U-Boot] [PATCH 1/2] usb: dm: Add a usb_for_each_root_dev() helper function

2016-07-04 Thread Marek Vasut
On 07/03/2016 08:22 PM, Hans de Goede wrote: Iterating over usb-root devs and doing something for all of them is a bit tricky with dm, factor out the proven usb_show_tree() for this into a helper function. Signed-off-by: Hans de Goede Applied, thanks. --- cmd/usb.c | 15 --- 1

Re: [U-Boot] [PATCH] powerpc/mpc85xx: Fix SPL_BUILD compilation by adding CONFIG_USB_EHCI_FSL flag

2016-07-04 Thread Marek Vasut
On 07/04/2016 01:11 PM, Sriram Dash wrote: Commit 9262367 moved USB errata workaround to a C file but didn't build it for SPL targets. The EHCI errata should be applied/checked only when EHCI is defined. Signed-off-by: Rajesh Bhagat Signed-off-by: Sriram Dash --- arch/powerpc/include/asm/conf

Re: [U-Boot] [PATCH 4/9] mx7: set soc environment according to exact SoC type

2016-07-04 Thread Fabio Estevam
Hi Stefan, On Sun, Jul 3, 2016 at 4:33 PM, Stefan Agner wrote: > +#ifdef CONFIG_ARCH_MISC_INIT > +int arch_misc_init(void) > +{ > + if (is_mx7d()) > + setenv("soc", "imx7d"); > + else > + setenv("soc", "imx7s"); > + > + return 0; > +} > +#endif For

[U-Boot] Please pull ARC changes

2016-07-04 Thread Alexey Brodkin
Hi Tom, These are 2 very subtle changes from which one accommodates the most recent ARC tools where "-marchs" is no longer accepted and the second one is a minor fixup that might benefit in the future once "global_data.h" gets included in assembly files (note that might easily happen because th

Re: [U-Boot] [PATCH] net: designware: Make driver independent from DM_GPIO again

2016-07-04 Thread Alexey Brodkin
Hi Joe, On Mon, 2016-06-27 at 13:17 +0300, Alexey Brodkin wrote: > Commit 90b7fc924adf "net: designware: support phy reset device-tree > bindings" made DW GMAC driver dependent on DM_GPIO by unconditional > usage of purely DM_GPIO stuff like: >  * dm_gpio_XXX() >  * gpio_request_by_name() > > But

[U-Boot] [PATCH 1/5] fsl: serdes: ensure accessing the initialized maps of serdes protocol

2016-07-04 Thread Zhiqiang Hou
From: Hou Zhiqiang Up to now, the function is_serdes_configed() doesn't check if the map of serdes protocol is initialized before accessing it. The function is_serdes_configed() will get wrong result when it was called before the serdes protocol maps initialized. As the first eliment of the map i

Re: [U-Boot] [PATCH v2 3/4] armv8/fsl-layerscape: add dwc3 gadget driver support

2016-07-04 Thread Rajesh Bhagat
> -Original Message- > From: Lukasz Majewski [mailto:l.majew...@samsung.com] > Sent: Thursday, June 23, 2016 8:27 PM > To: Rajat Srivastava > Cc: u-boot@lists.denx.de; s...@chromium.org; ma...@denx.de; > albert.u.b...@aribaud.net; prabha...@freescale.com; york sun > ; Mingkai Hu ; Rajesh

Re: [U-Boot] [PATCH 05/15] ARM: PSCI: Add fallback value for CONFIG_ARMV7_PSCI_NR_CPUS

2016-07-04 Thread Hongbo Zhang
On Sat, Jul 2, 2016 at 5:17 PM, Chen-Yu Tsai wrote: > On Fri, Jul 1, 2016 at 6:39 PM, Hongbo Zhang wrote: >> On Sun, Jun 19, 2016 at 12:38 PM, Chen-Yu Tsai wrote: >>> The original PSCI implementation assumed CONFIG_ARMV7_PSCI_NR_CPUS=4. >>> Add this as a fallback value in case platforms have not

[U-Boot] [PATCH] dm: mmc: Add the function for getting current device number

2016-07-04 Thread Jaehoon Chung
get_mmc_num can be returned 0. Then if you use the "mmcinfo" command, it can't print the mmc information. If get_mmc_num is 0, it means that there is not mmc device. So it added the get_mmc_curr_num() function for getting current device number(index). And get_mmc_num() is returned the number of dev

Re: [U-Boot] [PATCH v5 0/8] ARMv7: PSCI: add PSCI v1.0 support

2016-07-04 Thread Hongbo Zhang
I said I would send a new iteration of this series, but there are code dependencies/conflicts with Chenyu's work, so I'd like to wait for a few more days to see his v2 sent out or even been merged. During this stage, any review comments are still appreciated, I am always looking at this. Thanks. O

  1   2   >