[U-Boot] [PATCH] ARM64: zynqmp: Enable SPL for all zynqmp boards

2016-07-14 Thread Michal Simek
Compile SPL for all boards even psu_init.c/h files are not in the tree yet. But this change enables covering SPL issues in mainline. Signed-off-by: Michal Simek --- configs/xilinx_zynqmp_ep_defconfig | 5 + configs/xilinx_zynqmp_zc1751_xm015_dc1_defconfig | 5 + configs/xi

[U-Boot] [PATCH] spl: Fix compilation warnings for arm64

2016-07-14 Thread Michal Simek
Make code 64bit aware. Warnings: +../arch/arm/lib/spl.c: In function ‘jump_to_image_linux’: +../arch/arm/lib/spl.c:63:3: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] +../common/spl/spl_fat.c: In function ‘spl_load_image_fat’: +../common/spl/spl_fat.c:91:33: warni

Re: [U-Boot] [PATCH] dm: clk: Remove simple version of clk_get_by_index()

2016-07-14 Thread Michal Simek
On 14.7.2016 20:17, Stephen Warren wrote: > On 07/14/2016 05:24 AM, Michal Simek wrote: >> Simple version of clk_get_by_index() added by: >> "dm: clk: Add a simple version of clk_get_by_index()" >> (sha1: a4b10c088c4f6ef2e2bba33e8cfea369bcbbce44) >> is not sufficient if you use multiple clocks in t

Re: [U-Boot] [PATCH 8/9] power: pmic: add Ricoh RN5T567 PMIC support

2016-07-14 Thread Stefan Agner
Hi Simon, On 2016-07-14 20:19, Simon Glass wrote: > Hi Stefan, > > On 13 July 2016 at 00:10, Stefan Agner wrote: >> On 2016-07-03 16:18, Simon Glass wrote: >>> Hi, >>> >>> On 3 July 2016 at 13:33, Stefan Agner wrote: From: Stefan Agner Add power driver for Ricoh PMIC used on Col

[U-Boot] please pull u-boot-samsung master

2016-07-14 Thread Minkyu Kang
Dear Tom, The following changes since commit 19ce924ff914f315dc2fdf79f357825c513aed6e: Prepare v2016.07 (2016-07-11 15:01:01 -0400) are available in the git repository at: git://git.denx.de/u-boot-samsung master for you to fetch changes up to 3537ee879e0428587621a2cafbad2d9982bc082b: mm

Re: [U-Boot] [PATCH] Add a power domain framework/uclass

2016-07-14 Thread Simon Glass
Hi Stephen, On 13 July 2016 at 13:45, Stephen Warren wrote: > From: Stephen Warren > > Many SoCs allow power to be applied to or removed from portions of the SoC > (power domains). This may be used to save power. This API provides the > means to control such power management hardware. > > Signed

[U-Boot] Please pull u-boot-dm

2016-07-14 Thread Simon Glass
Hi Tom, Here is the of-platdata implementation, including the introduction of sandbox_spl. The following changes since commit 3a592a1349ac3961b0f4f2db0a8d9f128225d897: Revert "armv8: Enable CPUECTLR.SMPEN for coherency" (2016-07-14 17:36:18 -0400) are available in the git repository at: g

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

2016-07-14 Thread Simon Glass
On 4 July 2016 at 11:58, Simon Glass wrote: > 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_DEV

Re: [U-Boot] [PATCH v3 59/62] test/py: Provide a way to get early console output

2016-07-14 Thread Simon Glass
On 4 July 2016 at 11:58, Simon Glass wrote: > 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 > > te

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

2016-07-14 Thread Simon Glass
On 4 July 2016 at 11:58, Simon Glass wrote: > 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-

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

2016-07-14 Thread Simon Glass
On 4 July 2016 at 11:58, Simon Glass wrote: > 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

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

2016-07-14 Thread Simon Glass
On 4 July 2016 at 11:58, Simon Glass wrote: > 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 >

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

2016-07-14 Thread Simon Glass
On 4 July 2016 at 11:58, Simon Glass wrote: > 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

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

2016-07-14 Thread Simon Glass
On 4 July 2016 at 11:58, Simon Glass wrote: > 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 corre

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

2016-07-14 Thread Simon Glass
On 4 July 2016 at 11:58, Simon Glass wrote: > 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

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

2016-07-14 Thread Simon Glass
On 4 July 2016 at 11:58, Simon Glass wrote: > 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. >

Re: [U-Boot] [PATCH v3 51/62] rockchip: Move the MMC setup check earlier

2016-07-14 Thread Simon Glass
On 4 July 2016 at 11:58, Simon Glass wrote: > 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 --

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

2016-07-14 Thread Simon Glass
On 4 July 2016 at 11:58, Simon Glass wrote: > 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

Re: [U-Boot] [PATCH v3 50/62] rockchip: pinctrl: Update the rk3288 driver to support of-platdata

2016-07-14 Thread Simon Glass
On 4 July 2016 at 11:58, Simon Glass wrote: > 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:

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

2016-07-14 Thread Simon Glass
On 4 July 2016 at 11:58, Simon Glass wrote: > 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: >

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

2016-07-14 Thread Simon Glass
On 4 July 2016 at 11:58, Simon Glass wrote: > 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 >

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

2016-07-14 Thread Simon Glass
On 4 July 2016 at 11:58, Simon Glass wrote: > 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 >

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

2016-07-14 Thread Simon Glass
On 4 July 2016 at 11:58, Simon Glass wrote: > 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 ++

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

2016-07-14 Thread Simon Glass
On 4 July 2016 at 11:58, Simon Glass wrote: > 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 + >

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

2016-07-14 Thread Simon Glass
On 4 July 2016 at 11:58, Simon Glass wrote: > 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 ++- > a

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

2016-07-14 Thread Simon Glass
On 4 July 2016 at 11:58, Simon Glass wrote: > 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(+) Applied to u-boot-dm _

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

2016-07-14 Thread Simon Glass
On 4 July 2016 at 11:58, Simon Glass wrote: > 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 > >

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

2016-07-14 Thread Simon Glass
On 4 July 2016 at 11:58, Simon Glass wrote: > 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

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

2016-07-14 Thread Simon Glass
On 4 July 2016 at 11:58, Simon Glass wrote: > 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 > C

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

2016-07-14 Thread Simon Glass
On 4 July 2016 at 11:58, Simon Glass wrote: > 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 gene

Re: [U-Boot] [PATCH v3 35/62] dm: core: Rename DM_NAME_ALLOCED to DM_FLAG_NAME_ALLOCED

2016-07-14 Thread Simon Glass
On 4 July 2016 at 11:58, Simon Glass wrote: > 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/dev

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

2016-07-14 Thread Simon Glass
On 4 July 2016 at 11:58, Simon Glass wrote: > 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

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

2016-07-14 Thread Simon Glass
On 4 July 2016 at 11:58, Simon Glass wrote: > 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. > > Wit

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

2016-07-14 Thread Simon Glass
On 4 July 2016 at 11:58, Simon Glass wrote: > 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(+) Applied to u-boot-dm _

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

2016-07-14 Thread Simon Glass
On 4 July 2016 at 11:58, Simon Glass wrote: > 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 assum

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

2016-07-14 Thread Simon Glass
On 4 July 2016 at 11:58, Simon Glass wrote: > 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

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

2016-07-14 Thread Simon Glass
On 4 July 2016 at 11:58, Simon Glass wrote: > 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 >

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

2016-07-14 Thread Simon Glass
On 4 July 2016 at 11:58, Simon Glass wrote: > 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 han

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

2016-07-14 Thread Simon Glass
On 4 July 2016 at 11:58, Simon Glass wrote: > 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

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

2016-07-14 Thread Simon Glass
On 4 July 2016 at 11:58, Simon Glass wrote: > 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

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

2016-07-14 Thread Simon Glass
On 4 July 2016 at 11:58, Simon Glass wrote: > 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 > >

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

2016-07-14 Thread Simon Glass
On 4 July 2016 at 11:58, Simon Glass wrote: > 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 f

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

2016-07-14 Thread Simon Glass
On 4 July 2016 at 11:58, Simon Glass wrote: > 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(+) Applied to u-boot-dm _

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

2016-07-14 Thread Simon Glass
On 4 July 2016 at 11:58, Simon Glass wrote: > 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

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

2016-07-14 Thread Simon Glass
On 4 July 2016 at 11:58, Simon Glass wrote: > 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-

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

2016-07-14 Thread Simon Glass
On 4 July 2016 at 11:58, Simon Glass wrote: > 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

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

2016-07-14 Thread Simon Glass
On 4 July 2016 at 11:58, Simon Glass wrote: > 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 insert

Re: [U-Boot] [PATCH v3 24/62] dm: serial: Add support for of-platdata

2016-07-14 Thread Simon Glass
On 4 July 2016 at 11:58, Simon Glass wrote: > 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/s

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

2016-07-14 Thread Simon Glass
On 4 July 2016 at 11:58, Simon Glass wrote: > 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

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

2016-07-14 Thread Simon Glass
On 4 July 2016 at 11:57, Simon Glass wrote: > 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 |

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

2016-07-14 Thread Simon Glass
On 4 July 2016 at 11:57, Simon Glass wrote: > 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(-) Applied to u-boot-dm

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

2016-07-14 Thread Simon Glass
On 4 July 2016 at 11:57, Simon Glass wrote: > 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 fi

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

2016-07-14 Thread Simon Glass
On 4 July 2016 at 11:57, Simon Glass wrote: > 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 delet

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

2016-07-14 Thread Simon Glass
On 4 July 2016 at 11:57, Simon Glass wrote: > 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 f

Re: [U-Boot] [PATCH v3 13/62] sandbox: serial: Don't sync video in SPL

2016-07-14 Thread Simon Glass
On 4 July 2016 at 11:57, Simon Glass wrote: > 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 inser

Re: [U-Boot] [PATCH v3 15/62] sandbox: Add a test device that uses of-platdata

2016-07-14 Thread Simon Glass
On 4 July 2016 at 11:57, Simon Glass wrote: > 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-platdat

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

2016-07-14 Thread Simon Glass
On 4 July 2016 at 11:57, Simon Glass wrote: > 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/sand

Re: [U-Boot] [PATCH v3 12/62] sandbox: Don't use IDE and iotrace in SPL

2016-07-14 Thread Simon Glass
On 4 July 2016 at 11:57, Simon Glass wrote: > 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(+) Applied to u-boot-dm ___

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

2016-07-14 Thread Simon Glass
On 4 July 2016 at 11:57, Simon Glass wrote: > 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(-) Applied to u-boot-dm __

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

2016-07-14 Thread Simon Glass
On 4 July 2016 at 11:57, Simon Glass wrote: > 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(+) Applied to

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

2016-07-14 Thread Simon Glass
On 4 July 2016 at 11:57, Simon Glass wrote: > 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(+

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

2016-07-14 Thread Simon Glass
On 4 July 2016 at 11:57, Simon Glass wrote: > 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(+) Applied to u-boot-dm ___

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

2016-07-14 Thread Simon Glass
On 4 July 2016 at 11:57, Simon Glass wrote: > 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/con

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

2016-07-14 Thread Simon Glass
On 4 July 2016 at 11:57, Simon Glass wrote: > 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

Re: [U-Boot] [PATCH v3 02/62] README: Remove CONFIG_SYS_MALLOC_F_LEN comment

2016-07-14 Thread Simon Glass
On 4 July 2016 at 11:57, Simon Glass wrote: > 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(-) Applie

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

2016-07-14 Thread Simon Glass
On 4 July 2016 at 11:57, Simon Glass wrote: > 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 c

Re: [U-Boot] [PATCH v4 4/4] usb: dwc2 : invalidate dcache before starting DMA

2016-07-14 Thread Simon Glass
On 14 July 2016 at 21:20, Simon Glass wrote: > On 14 July 2016 at 00:52, Ziyuan Xu wrote: >> From: Xu Ziyuan >> >> Invalidate dcache before starting the DMA to ensure coherency. In case >> there are any dirty lines from the DMA buffer in the cache, subsequent >> cache-line replacements may corru

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

2016-07-14 Thread Simon Glass
On 4 July 2016 at 11:57, Simon Glass wrote: > 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 e

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

2016-07-14 Thread Simon Glass
On 4 July 2016 at 11:57, Simon Glass wrote: > 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(-) Applied to u-boot-dm _

Re: [U-Boot] [PATCH v3 4/4] usb: dwc2: invalidate dcache before starting DMA

2016-07-14 Thread Simon Glass
On 14 July 2016 at 21:20, Simon Glass wrote: > Hi Ziyuan, > > On 14 July 2016 at 09:43, Ziyuan Xu wrote: >> Hi Simon, >> >> >> On 2016年07月14日 23:00, Simon Glass wrote: >>> >>> On 12 July 2016 at 19:06, Ziyuan Xu wrote: On 2016年07月12日 20:59, Simon Glass wrote: > > Hi Ziyuan

Re: [U-Boot] [PATCH] rockchip: Clean up CPU selection

2016-07-14 Thread Simon Glass
On 14 July 2016 at 21:20, Simon Glass wrote: > On 13 July 2016 at 21:09, Andreas Färber wrote: >> In preparation for RK3368 and RK3399, which need to select ARM64, don't >> select CPU_V7 at the ARCH_ROCKCHIP level but at the SoC level instead. >> >> Cc: Kever Yang >> Signed-off-by: Andreas Färbe

Re: [U-Boot] [PATCH v4 2/4] usb: dwc2-otg: adjust fifo size via platform data

2016-07-14 Thread Simon Glass
On 14 July 2016 at 21:20, Simon Glass wrote: > On 14 July 2016 at 00:52, Ziyuan Xu wrote: >> From: Xu Ziyuan >> >> The total FIFO size of some SoCs may be different from the existen, this >> patch supports fifo size setting from platform data. >> >> Signed-off-by: Ziyuan Xu >> >> --- >> >> Chan

Re: [U-Boot] [PATCH v4 1/4] usb: rockchip-phy: implement USB2.0 phy control

2016-07-14 Thread Simon Glass
On 14 July 2016 at 21:20, Simon Glass wrote: > On 14 July 2016 at 00:52, Ziyuan Xu wrote: >> From: Xu Ziyuan >> >> So far, Rockchip SoCs have two kinds of USB2.0 phy, such as Synopsys and >> Innosilicon. This patch applys dwc2 usb driver framework to implement >> phy_init() and phy_off() methods

Re: [U-Boot] [PATCH] rockchip: Exclude rk_timer for ARM64

2016-07-14 Thread Simon Glass
On 14 July 2016 at 21:20, Simon Glass wrote: > On 13 July 2016 at 22:22, Andreas Färber wrote: >> It conflicts with the generic_timer. >> >> Cc: Kever Yang >> Signed-off-by: Andreas Färber >> --- >> arch/arm/mach-rockchip/Makefile | 2 ++ >> 1 file changed, 2 insertions(+) > > Acked-by: Simon

Re: [U-Boot] [PATCH] mkimage: rockchip: add suport for rk33 serial

2016-07-14 Thread Simon Glass
On 14 July 2016 at 21:20, Simon Glass wrote: > On 13 July 2016 at 21:51, Kever Yang wrote: >> Add support for rockchip rk33 series Soc like rk3368 and rk3399 >> >> Signed-off-by: Kever Yang >> --- >> >> tools/rkcommon.c | 1 + >> 1 file changed, 1 insertion(+) >> >> diff --git a/tools/rkcommon.

Re: [U-Boot] [PATCH v4.1 3/4] rockchip: rk3288: add fastboot support

2016-07-14 Thread Simon Glass
On 14 July 2016 at 10:26, Ziyuan Xu wrote: > From: Xu Ziyuan > > Enable fastboot feature on rk3288. > > This path doesn't support the fastboot flash function command entirely. patch? > We will hit "cannot find partition" assertion without specified > partition environment. Define gpt partition

Re: [U-Boot] [PATCH] mkimage: rockchip: add suport for rk33 serial

2016-07-14 Thread Simon Glass
On 13 July 2016 at 21:51, Kever Yang wrote: > Add support for rockchip rk33 series Soc like rk3368 and rk3399 > > Signed-off-by: Kever Yang > --- > > tools/rkcommon.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/tools/rkcommon.c b/tools/rkcommon.c > index 72621fd..9ec7eb2 100644 > --

Re: [U-Boot] [PATCH v4 2/4] usb: dwc2-otg: adjust fifo size via platform data

2016-07-14 Thread Simon Glass
On 14 July 2016 at 00:52, Ziyuan Xu wrote: > From: Xu Ziyuan > > The total FIFO size of some SoCs may be different from the existen, this > patch supports fifo size setting from platform data. > > Signed-off-by: Ziyuan Xu > > --- > > Changes in v4: > - Rework fifo size getting and setting > - Up

Re: [U-Boot] [PATCH v3 4/4] usb: dwc2: invalidate dcache before starting DMA

2016-07-14 Thread Simon Glass
Hi Ziyuan, On 14 July 2016 at 09:43, Ziyuan Xu wrote: > Hi Simon, > > > On 2016年07月14日 23:00, Simon Glass wrote: >> >> On 12 July 2016 at 19:06, Ziyuan Xu wrote: >>> >>> >>> On 2016年07月12日 20:59, Simon Glass wrote: Hi Ziyuan, On 6 July 2016 at 03:34, Ziyuan Xu wrote: > >

Re: [U-Boot] [PATCH v4 1/4] usb: rockchip-phy: implement USB2.0 phy control

2016-07-14 Thread Simon Glass
On 14 July 2016 at 00:52, Ziyuan Xu wrote: > From: Xu Ziyuan > > So far, Rockchip SoCs have two kinds of USB2.0 phy, such as Synopsys and > Innosilicon. This patch applys dwc2 usb driver framework to implement > phy_init() and phy_off() methods for Synopsys phy on Rockchip platform. > > Signed-of

Re: [U-Boot] [PATCH v4 4/4] usb: dwc2 : invalidate dcache before starting DMA

2016-07-14 Thread Simon Glass
On 14 July 2016 at 00:52, Ziyuan Xu wrote: > From: Xu Ziyuan > > Invalidate dcache before starting the DMA to ensure coherency. In case > there are any dirty lines from the DMA buffer in the cache, subsequent > cache-line replacements may corrupt the buffer in memory while the DMA > is still goin

Re: [U-Boot] [PATCH 4/5] mmc: rockchip: add SDHCI driver support for rockchip soc

2016-07-14 Thread Simon Glass
Hi Kever, On 13 July 2016 at 23:08, Kever Yang wrote: > Rockchip rk3399 using arasan sdhci-5.1 controller. > This patch add the controller support to enable mmc device and tested on > rk3399 evb board. > > Signed-off-by: Kever Yang > --- > > drivers/mmc/Kconfig | 6 + > drivers/mm

Re: [U-Boot] [PATCH 2/5] ARM64: rockchip: add support for rk3399 SoC based evb-board

2016-07-14 Thread Simon Glass
Hi Kever, On 13 July 2016 at 23:08, Kever Yang wrote: > RK3399 is a SoC from Rockchip with dual-core Cortex-A72 > and qual-core Cortex-A53 CPU. It supports two USB3.0 > type-C ports and two USB2.0 EHCI ports. Other interfaces > are very like RK3288, the DRAM are 32bit width address > and support

Re: [U-Boot] [PATCH 0/5]

2016-07-14 Thread Simon Glass
Hi Kever, On 13 July 2016 at 23:08, Kever Yang wrote: > This patchset add support for rk3399 with ATF based on > Rockchip miniloader as secondary bootloader instead of > u-boot SPL. U-Boot > > Rockchip miniloader init the DRAM and load the ATF and > u-boot to runing address, and then jump to AT

Re: [U-Boot] [PATCH 3/5] config: add config file for evb-rk3399

2016-07-14 Thread Simon Glass
On 13 July 2016 at 23:08, Kever Yang wrote: > This patch add basic config option for evb-rk3399 board. > > Signed-off-by: Kever Yang > --- > > configs/evb-rk3399_defconfig | 32 > 1 file changed, 32 insertions(+) > create mode 100644 configs/evb-rk3399_defconfig

Re: [U-Boot] [PATCH v5] rockchip: add option to change method of loading u-boot

2016-07-14 Thread Simon Glass
On 12 July 2016 at 18:42, Ziyuan Xu wrote: > hi Simon, > > > On 2016年07月12日 21:28, Simon Glass wrote: >> >> On 12 July 2016 at 05:09, Ziyuan Xu wrote: >>> >>> From: Xu Ziyuan >>> >>> If we would like to boot from SD card, we have to implement mmc driver >>> in SPL stage, and get a slightly large

Re: [U-Boot] [PATCH 1/5] dts: add support for rkchichip rk3399 soc

2016-07-14 Thread Simon Glass
On 13 July 2016 at 23:08, Kever Yang wrote: > These files are from kernel upstream with some modification > need by uboot: > - chosen with stdout-path to uart2. > > Signed-off-by: Kever Yang > --- > > arch/arm/dts/Makefile |3 +- > arch/arm/dts/rk3399-evb.dts| 1

Re: [U-Boot] [PATCH] rockchip: Exclude rk_timer for ARM64

2016-07-14 Thread Simon Glass
On 13 July 2016 at 22:22, Andreas Färber wrote: > It conflicts with the generic_timer. > > Cc: Kever Yang > Signed-off-by: Andreas Färber > --- > arch/arm/mach-rockchip/Makefile | 2 ++ > 1 file changed, 2 insertions(+) Acked-by: Simon Glass ___ U-B

Re: [U-Boot] [PATCH 8/9] power: pmic: add Ricoh RN5T567 PMIC support

2016-07-14 Thread Simon Glass
Hi Stefan, On 13 July 2016 at 00:10, Stefan Agner wrote: > On 2016-07-03 16:18, Simon Glass wrote: >> Hi, >> >> On 3 July 2016 at 13:33, Stefan Agner wrote: >>> From: Stefan Agner >>> >>> Add power driver for Ricoh PMIC used on Colibri iMX7. >>> >>> Signed-off-by: Stefan Agner >>> Acked-by: Ma

Re: [U-Boot] [PATCH] rockchip: Clean up CPU selection

2016-07-14 Thread Simon Glass
On 13 July 2016 at 21:09, Andreas Färber wrote: > In preparation for RK3368 and RK3399, which need to select ARM64, don't > select CPU_V7 at the ARCH_ROCKCHIP level but at the SoC level instead. > > Cc: Kever Yang > Signed-off-by: Andreas Färber > --- > arch/arm/Kconfig | 1 - > a

Re: [U-Boot] xHCI on x86

2016-07-14 Thread Simon Glass
Hi, On 13 July 2016 at 00:20, Stefan Roese wrote: > Hi! > > I'm currently trying to get xHCI working on some BayTrail based > x86 boards. For this I've added DM support to xhci-pci and made a > small change to cache.h to enable compilation of the xhci driver on > x86 (please find those 2 patches

Re: [U-Boot] [RFC PATCH 2/7] net: dm: Ignore unknown env_op_* constants

2016-07-14 Thread Simon Glass
Hi Bernhard, On 11 July 2016 at 12:14, Bernhard Nortmann wrote: > This prevents a possible compiler warning similar to > "net/eth-uclass.c::: warning: enumeration value > 'env_op_*' not handled in switch [-Wswitch]". > > Signed-off-by: Bernhard Nortmann > --- > > net/eth-uclass.c | 2 ++ > 1 fi

Re: [U-Boot] [PATCH] armv8: spl: Call board_init_r from crt0_64 in SPL

2016-07-14 Thread Simon Glass
Hi Jeremy, On 11 July 2016 at 16:55, Jeremy Hunt wrote: > As part of the startup process for boards using the SPL, the > meaning of board_init_f changed such that it should return normally > rather than calling board_init_r directly. > (see db910353a126d84fe8dff7a694ea792f50fcfb6a) > This was fix

Re: [U-Boot] [PATCH 0/4] Ability to load linux kernel on rock2 RK3288

2016-07-14 Thread Simon Glass
HI Sandy, On 13 July 2016 at 11:51, Sandy Patterson wrote: > I did a little more on this, and talked to someone else here. It seems that > my problem with loading the kernel including these patches is specific to > our kernel and after applying a local patch we have, it appears to load > fine. >

Re: [U-Boot] Please investigate T2080QDS U-Boot

2016-07-14 Thread york sun
I went back to last several releases and saw the same. Do we have it in SDK U-Boot? York Original Message From: Prabhakar Kushwaha Sent: Thursday, July 14, 2016 06:40 PM To: york sun ,Shengzhou Liu Subject: RE: Please investigate T2080QDS U-Boot CC: u-boot@lists.denx.de Hi

Re: [U-Boot] Please investigate T2080QDS U-Boot

2016-07-14 Thread Prabhakar Kushwaha
Hi York, I am just curious about this issue. Was it coming earlier on this board or started coming now. I guess you can still access NAND flash on the board. Regards, Prabhakar > -Original Message- > From: york sun > Sent: Thursday, July 14, 2016 10:33 PM > To: Shengzhou Liu > Cc: P

Re: [U-Boot] [PATCH] mkimage: rockchip: add suport for rk33 serial

2016-07-14 Thread Kever Yang
Hi Andreas, On 07/14/2016 12:26 PM, Andreas Färber wrote: Am 14.07.2016 um 05:51 schrieb Kever Yang: Add support for rockchip rk33 series Soc like rk3368 and rk3399 Signed-off-by: Kever Yang --- tools/rkcommon.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/rkcommon.c b/tools/

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

2016-07-14 Thread Jaehoon Chung
On 07/13/2016 06:57 AM, Simon Glass wrote: > Hi Jaehoon, > > On 4 July 2016 at 01:40, Jaehoon Chung wrote: >> 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

Re: [U-Boot] [PATCH 6/8] net/ethoc: support private memory configurations

2016-07-14 Thread Simon Glass
Hi Max, On 14 July 2016 at 17:34, Max Filippov wrote: > Hi Simon, > > On Tue, Jul 12, 2016 at 03:56:54PM -0600, Simon Glass wrote: >> On 8 July 2016 at 09:42, Max Filippov wrote: >> > From: Chris Zankel >> > >> > The 'ethoc' device could also be configured to have a private memory >> > region i

Re: [U-Boot] [PATCH 3/8] xtensa: add core information for the dc232b processor

2016-07-14 Thread Simon Glass
Hi Max, On 14 July 2016 at 17:15, Max Filippov wrote: > Hi Simon, > > On Tue, Jul 12, 2016 at 03:56:46PM -0600, Simon Glass wrote: >> On 8 July 2016 at 09:42, Max Filippov wrote: >> > From: Chris Zankel >> >> Commit message? > > Ok, will add. > >> > >> > Signed-off-by: Chris Zankel >> > Signed

  1   2   >