Re: [U-Boot] [PATCH v1 0/2] Add CONFIG_SYS_GENERIC_BOARD to all gdsys boards

2014-07-23 Thread Dirk Eibach
Ping. 2014-06-30 13:05 GMT+02:00 dirk.eib...@gdsys.cc: From: Dirk Eibach dirk.eib...@gdsys.cc Dirk Eibach (2): ppc: Make ppc4xx ready for CONFIG_SYS_GENERIC_BOARD board: Add CONFIG_SYS_GENERIC_BOARD to all gdsys boards arch/powerpc/cpu/ppc4xx/cpu_init.c | 2 ++

Re: [U-Boot] [PATCH 3/3] ahci: provide sunxi SATA driver using AHCI platform framework

2014-07-23 Thread Ian Campbell
On Tue, 2014-07-22 at 18:01 -0400, Tom Rini wrote: On Fri, Jul 18, 2014 at 08:38:41PM +0100, Ian Campbell wrote: This enables the necessary clocks, in AHB0 and in PLL6_CFG. This is done for sun7i only since I don't have access to any other sunxi platforms with sata included. The PHY

Re: [U-Boot] enabling ecc on P2041 and QoreIQ familly not valid for memory = 4GB

2014-07-23 Thread Benoit Sansoni
Hi York, That what I saw in the code. Also to test it you need to have the hardware, but the evaluation board P2041rdb for example does not have some ECC signals rooted for DIMM slot. I validated the patch that I sent on a board based on P2041 with 8GB of memory. Obviously it works with 2GB

Re: [U-Boot] A way to change the status of the whole series on Patchwork ?

2014-07-23 Thread Ian Campbell
On Tue, 2014-07-22 at 12:45 -0700, Brian Norris wrote: Then some sort of grepping/regex/etc. can get you the patchwork ID from the Message-ID. e.g.: pwclient list -m $MESSAGEID | awk '{print $1;}' | grep '[0-9][0-9]*' Which version of pwclient do you use? The one from

Re: [U-Boot] [PATCH 3/3] ahci: provide sunxi SATA driver using AHCI platform framework

2014-07-23 Thread Ian Campbell
On Wed, 2014-07-23 at 07:59 +0100, Ian Campbell wrote: On Tue, 2014-07-22 at 18:01 -0400, Tom Rini wrote: On Fri, Jul 18, 2014 at 08:38:41PM +0100, Ian Campbell wrote: This enables the necessary clocks, in AHB0 and in PLL6_CFG. This is done for sun7i only since I don't have access to

[U-Boot] [PATCH] board/freescale: use generic board architecture for t2080qds and t2080rdb

2014-07-23 Thread Shengzhou Liu
Tested with NOR boot and NAND boot on T2080QDS and T2080RDB. Signed-off-by: Shengzhou Liu shengzhou@freescale.com --- based on 'next' branch. include/configs/T208xQDS.h | 2 ++ include/configs/T208xRDB.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/include/configs/T208xQDS.h

[U-Boot] [PATCH 1/2] powerpc/mpc85xx: Make boot flag effective

2014-07-23 Thread Yuantian.Tang
From: Tang Yuantian yuantian.t...@freescale.com bootflag as a parameter is passed to board_init_f(). But it is not actually used in this function. Make it effective by assigned it to gd-flags. Signed-off-by: Tang Yuantian yuantian.t...@freescale.com --- arch/powerpc/lib/board.c | 2 ++ 1 file

Re: [U-Boot] Hi, Problem about verify uboot

2014-07-23 Thread Simon Glass
(copying the mailing list - but please do this yourself from now on - note you will need to join it first if you have not already) Hi, On 23 July 2014 03:20, Duxiaoqiang duxiaoqi...@huawei.com wrote: Hi Simon When I verified secure UBOOT with FIT image, I found a problem about it, and

[U-Boot] [PATCH 2/2] powerpc/t104xrdb: support deep sleep in SPI/SD boot

2014-07-23 Thread Yuantian.Tang
From: Tang Yuantian yuantian.t...@freescale.com Add deep sleep support in SPI/SD boot. The destination address second stage uboot image is loaded to is changed because currently this address will be used by kernel which means we can't reserve it for resume. Entry point to kernel is still placed

Re: [U-Boot] [PATCH] Makefile: use $(shell ...) for determining file_size

2014-07-23 Thread Simon Glass
On 22 July 2014 18:08, Chris Packham judge.pack...@gmail.com wrote: file_size was being calculated using back-ticks but map_size uses $(shell ...). Update the file_size calculation to use $(shell ...). Signed-off-by: Chris Packham judge.pack...@gmail.com Acked-by: Simon Glass

Re: [U-Boot] [PATCH] board_r: Add missing return to initr_doc

2014-07-23 Thread Simon Glass
On 21 July 2014 12:21, Ian Campbell i...@hellion.org.uk wrote: I happened to spot this while working in the area. Signed-off-by: Ian Campbell i...@hellion.org.uk Cc: Simon Glass s...@chromium.org Acked-by: Simon Glass s...@chromium.org (we normally add a blank line before return but I don't

Re: [U-Boot] [PATCH] embestmx6boards: convert to generic board

2014-07-23 Thread Stefano Babic
Hi Iain, On 10/06/2014 00:09, Iain Paton wrote: Enable CONFIG_SYS_GENERIC_BOARD to remove warning on boot. Signed-off-by: Iain Paton ipat...@gmail.com --- Applied to u-boot-imx, thanks ! Best regards, Stefano Babic -- =

Re: [U-Boot] [PATCH 1/2] mx6: soc: Do not apply the PFD erratum for mx6solox

2014-07-23 Thread Stefano Babic
On 09/07/2014 21:13, Fabio Estevam wrote: From: Fabio Estevam fabio.este...@freescale.com The PFD issue is not present on mx6solox, so skip it in this case. Signed-off-by: Fabio Estevam fabio.este...@freescale.com --- Applied to u-boot-imx, thanks ! Best regards, Stefano Babic --

Re: [U-Boot] [PATCH 2/2] mx6sxsabresd: Add PFUZE100 PMIC support

2014-07-23 Thread Stefano Babic
On 09/07/2014 21:13, Fabio Estevam wrote: From: Fabio Estevam fabio.este...@freescale.com Signed-off-by: Fabio Estevam fabio.este...@freescale.com --- Applied to u-boot-imx, thanks ! Best regards, Stefano Babic -- = DENX

Re: [U-Boot] [PATCH 1/2] mx6: Remove duplication of iomuxc structure

2014-07-23 Thread Stefano Babic
On 09/07/2014 22:59, Fabio Estevam wrote: From: Fabio Estevam fabio.este...@freescale.com There is no need to keep iomuxc_base_regs structure as it serves the exact same purpose of the iomuxc structure, which is to provide access to the GPR registers. The additional fields of

Re: [U-Boot] [PATCH 2/2] mx6: Adjust the GPR offset for mx6solox

2014-07-23 Thread Stefano Babic
On 09/07/2014 22:59, Fabio Estevam wrote: From: Fabio Estevam fabio.este...@freescale.com On mx6solox there is an additional 0x4000 offset for the GPR registers. Signed-off-by: Fabio Estevam fabio.este...@freescale.com --- Applied to u-boot-imx, thanks ! Best regards, Stefano Babic --

Re: [U-Boot] [PATCH] arm: mxs: Scrub useless ifdef

2014-07-23 Thread Stefano Babic
On 12/07/2014 15:39, Marek Vasut wrote: As a result of 0defddc851edfc34bcf3c3379fe74b11dc01a493 , which did a consolidation of the prompt string, this ifdef became empty. Remove it. Signed-off-by: Marek Vasut ma...@denx.de Cc: Tom Rini tr...@ti.com Cc: Stefano Babic sba...@denx.de ---

Re: [U-Boot] [PATCH v4 0/6] arm, imx6: add aristainetos board support

2014-07-23 Thread Stefano Babic
Hi Heiko, On 18/07/2014 06:07, Heiko Schocher wrote: All series applied with the following change due to inclusion Fabios's cleanup for iomuxc register (http://patchwork.ozlabs.org/patch/368335/) int board_eth_init(bd_t *bis) { - struct iomuxc_base_regs *iomuxc_regs = -

Re: [U-Boot] [PATCH v4] Add TQ Systems TQMa6 board support

2014-07-23 Thread Stefano Babic
On 18/07/2014 16:52, Markus Niebel wrote: From: Markus Niebel markus.nie...@tq-group.com This patch adds the changes to boards.cfg and the board directory under board/tqc. TQMa6 is a family of modules based on Freescale i.MX6. It consists of TQMa6Q (i.MX6 Quad), TQMa6D (i.MX6 Dual)

Re: [U-Boot] WIP for SPI

2014-07-23 Thread Simon Glass
Hi Jon, On 21 July 2014 07:11, Jon Loeliger loeli...@gmail.com wrote: And I think I am saying that we already *have* it generalized for the GPIOs but only if we remove that renumbering function! Consider again that the U_CLASS lookup of a GPIO simply matches versus the range in each uclass

[U-Boot] [PATCH v2] powerpc/t104xrdb: Add T1042RDB board support

2014-07-23 Thread Vijay Rai
T1042RDB is a Freescale reference board that hosts the T1042 SoC (and variants). The board is similar to T1040RDB, It is a reduced personality of T1040 SoC without Integrated 8-port Gigabit(L2 Switch). T1042RDB is configured with serdes protocol 0x86 which can support following interfaces - 2

[U-Boot] FSL eSPI driver is a mess, hack attached.

2014-07-23 Thread Eliot Dudley
We're bringing up a board that boots from SPI flash, so we had to re-work fsl_espi.c for to get it to work at all and for speed. Been working from 2009.11 because that's what came with a P1022DS box that Freescale so generously provided. There has been a tremendous amount divergence since

[U-Boot] [PATCH] powerpc/t104xrdb: Add Support of rcw for T1042RDB in u-boot

2014-07-23 Thread Vijay Rai
This patch adds support of rcw for T1042RDB, it does following: - Add t1042_rcw.cfg file for serdes protocol 0x86 for T1042RDB - Renames t1042_pi_rcw.cfg file from t1042_rcw.cfg and also updates comments for valid serdes protocol - Also updates CONFIG_SYS_FSL_PBL_RCW for T1042RDB Signed-off-by:

[U-Boot] [PATCH 0/8] samsung: Use common config files with Samsung boards (help wanted)

2014-07-23 Thread Simon Glass
This series tries to unify the Samsung board configs into a few header files for exynos5 and exynos5. The purpose is to make it easier to move to driver model. In that case I would like things like the GPIO drivers and serial drivers to work in a standard way, and not need to support device tree

[U-Boot] [PATCH 2/8] exynos: Move common exynos settings into a common file

2014-07-23 Thread Simon Glass
Since exynos4 and exyno5 share many settings, we should move these into a common file to avoid duplication. Effective changes are: - All exynos boards now have EXT4 and FAT write support - this affects exynos5250 and exynos5420 which previously did not. This also disables the ext2

[U-Boot] [PATCH 1/8] exynos: Rename -dt config files to -common

2014-07-23 Thread Simon Glass
We want exynos5250-dt.h to be a board which can support any exynos5250 device. This matches the naming used by Linux. As a first step, rename the existing -dt files to -common to make it clear they are common files, and not specific boards. Signed-off-by: Simon Glass s...@chromium.org ---

[U-Boot] [PATCH 8/8] samsung: Move smdkc100 to use exynos-common config

2014-07-23 Thread Simon Glass
Change this board to use the exynos common config and add a device tree. Signed-off-by: Simon Glass s...@chromium.org --- arch/arm/dts/Makefile | 1 + arch/arm/dts/s5pc1xx-smdkc100.dts | 21 +++ include/configs/smdkc100.h| 57

[U-Boot] [PATCH 6/8] config: Move smdkv310 to use common exynos4 file

2014-07-23 Thread Simon Glass
Most of the smdkv310 features are common with other exynos4 boards. To permit easier addition of driver model support, use the common file and add a device tree file. Signed-off-by: Simon Glass s...@chromium.org --- arch/arm/dts/Makefile| 1 +

[U-Boot] [PATCH 5/8] config: Move arndale to use common exynos5250 file

2014-07-23 Thread Simon Glass
Most of the arndale features are common with other exynos5250 boards. To permit easier addition of driver model support, use the common file. Signed-off-by: Simon Glass s...@chromium.org --- include/configs/arndale.h | 212 +++--- 1 file changed, 14

[U-Boot] [PATCH 4/8] exynos: config: Move cros_ec and tps65090 out of smdk boards

2014-07-23 Thread Simon Glass
These boards do not in fact have a Chrome OS EC, nor a TPS565090 PMIC, so move the settings into a separate common file to be used by those that need it. Signed-off-by: Simon Glass s...@chromium.org --- include/configs/exynos5-common.h| 18 +++---

[U-Boot] [PATCH 7/8] samsung: Move s5p_goni to use exynos-common config

2014-07-23 Thread Simon Glass
Change this board to use the exynos common config and add a device tree. This also adds a pinmux header file - but it is just a copy of the exynos one so may be incorrect. Signed-off-by: Simon Glass s...@chromium.org --- arch/arm/dts/Makefile | 1 +

Re: [U-Boot] [PATCH v3 2/9] arm: Set up global data before board_init_f()

2014-07-23 Thread Simon Glass
+Albert, Tom Hi Albert, On 11 July 2014 11:44, Jeroen Hofstee dasub...@myspectrum.nl wrote: Hello Simon, On 11-07-14 06:23, Simon Glass wrote: At present arm defines CONFIG_SYS_GENERIC_GLOBAL_DATA, meaning that the global_data pointer is set up in board_init_f(). However it is actually

[U-Boot] [PATCH 3/8] exynos: Move common smdk5420 things to common file

2014-07-23 Thread Simon Glass
A few things are common but are not in the common file. Fix this and rename the file to fit with the other exynos*-common files. Signed-off-by: Simon Glass s...@chromium.org --- include/configs/{exynos5420.h = exynos5420-common.h} | 11 ++- include/configs/peach-pit.h

Re: [U-Boot] [PATCH v3 5/9] arm: Support pre-relocation malloc()

2014-07-23 Thread Simon Glass
+Tom Hi Albert, On 10 July 2014 22:23, Simon Glass s...@chromium.org wrote: Add support for re-relocation malloc() in arm's start-up code. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v3: - Rebase on earlier patch Can you please take a look at this patch? I would like to

[U-Boot] [PATCH v2] powerpc/t104xrdb: Add Support of rcw for T1042RDB in u-boot

2014-07-23 Thread Vijay Rai
This patch adds support of rcw for T1042RDB, it makes following changes : - Adds t1042_rcw.cfg file for serdes protocol 0x86 for T1042RDB - Renames t1042_pi_rcw.cfg file from t1042_rcw.cfg and also updates comments for valid serdes protocol which is 0x06 - Also updates CONFIG_SYS_FSL_PBL_RCW for

Re: [U-Boot] [PATCH v3 0/9] Add a pre-relocation malloc() implementation

2014-07-23 Thread Simon Glass
Hi, On 14 July 2014 18:16, Simon Glass s...@chromium.org wrote: Hi Tom, On 14 July 2014 16:28, Tom Rini tr...@ti.com wrote: On Thu, Jul 10, 2014 at 10:23:24PM -0600, Simon Glass wrote: There has been talk on and off of a pre-relocation malloc() implementation. Driver model needs this so

Re: [U-Boot] ODROID dynamic memory initialization

2014-07-23 Thread Daniel Drake
On Tue, Jul 22, 2014 at 2:08 PM, Daniel Drake dr...@endlessm.com wrote: While looking at the old uboot from hardkernel, I'm curious about CONFIG_CLK_BUS_DMC_220_440, which is set by default. This appears to run the memory at a high speed, by writing certain registers in the Dynamic Memory

[U-Boot] [PATCH] driver/qe: update status of QE microcode

2014-07-23 Thread Vijay Rai
This Patch updates error print for QE which should be easily understood Signed-off-by: Vijay Rai vijay@freescale.com --- drivers/qe/qe.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/qe/qe.c b/drivers/qe/qe.c index 9c5fbd1..df468d4 100644 ---

[U-Boot] [PATCH v3 0/29] Add additional core driver model features

2014-07-23 Thread Simon Glass
This series includes a number of base driver model enhancements, mostly targeted at pre-relocation and to enable buses to be easily implemented. With the device tree, child nodes for buses can now be scanned to create child devices, and bus-related information about each child can be stored.

[U-Boot] [PATCH v3 27/29] dm: Improve errors and warnings in lists_bind_fdt()

2014-07-23 Thread Simon Glass
Add a debug message for when a device tree node has no driver. Also reword the warning when a device fails to bind, which was misleading. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v3: None Changes in v2: None drivers/core/lists.c | 16 +--- 1 file changed, 13

[U-Boot] [PATCH v3 13/29] dm: Move uclass error checking/probing into a function

2014-07-23 Thread Simon Glass
Several functions will use this same pattern, so bring it into a function. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v3: None Changes in v2: None drivers/core/uclass.c | 28 ++-- 1 file changed, 22 insertions(+), 6 deletions(-) diff --git

[U-Boot] [PATCH v3 05/29] dm: Make sure that the root device is probed

2014-07-23 Thread Simon Glass
The root device should be probed just like any other device. The effect of this is to mark the device as activated, so that it can be removed (along with its children) if required. Signed-off-by: Simon Glass s...@chromium.org Acked-by: Marek Vasut ma...@denx.de --- Changes in v3: None Changes in

[U-Boot] [PATCH v3 06/29] dm: Provide a way to shut down driver model

2014-07-23 Thread Simon Glass
Add a new method which removes and unbinds all drivers. Signed-off-by: Simon Glass s...@chromium.org Acked-by: Marek Vasut ma...@denx.de --- Changes in v3: None Changes in v2: None drivers/core/root.c | 8 include/dm/root.h | 8 2 files changed, 16 insertions(+) diff --git

[U-Boot] [PATCH v3 10/29] stdio: Provide functions to add/remove devices using stdio_dev

2014-07-23 Thread Simon Glass
The current functions for adding and removing devices require a device name. This is not convenient for driver model, which wants to store a pointer to the relevant device. Add new functions which provide this feature and adjust the old ones to call these. Signed-off-by: Simon Glass

[U-Boot] [PATCH v3 07/29] sandbox: Remove all drivers before exit

2014-07-23 Thread Simon Glass
Drivers are supposed to be able to close down cleanly. To set a good example, make sandbox shut down its driver model drivers and remove them before exit. It may be desirable to do the same more generally once driver model is more widely-used. This could be done during bootm, before U-Boot jumps

[U-Boot] [PATCH v3 12/29] Add a flag indicating when the serial console is ready

2014-07-23 Thread Simon Glass
For sandbox we have a fallback console which is used very early in U-Boot, before serial drivers are available. Rather than try to guess when to switch to the real console, add a flag so we can be sure. This makes sure that sandbox can always output a panic() message, for example, and avoids

[U-Boot] [PATCH v3 09/29] dm: Support driver model prior to relocation

2014-07-23 Thread Simon Glass
Initialise devices marked 'pre-reloc' and make them available prior to relocation. Note that this requires pre-reloc malloc() to be available. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v3: None Changes in v2: - Minor reword to comment for dm_init_and_scan() common/board_f.c

[U-Boot] [PATCH v3 01/29] dm: gpio: Don't use the driver model uclass for SPL

2014-07-23 Thread Simon Glass
Driver model does not support SPL yet, so we should not use the GPIO uclass for SPL. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v3: None Changes in v2: None drivers/gpio/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpio/Makefile

[U-Boot] [PATCH v3 02/29] dm: Use an explicit expect value in core tests

2014-07-23 Thread Simon Glass
Rather than reusing the 'reg' property, use an explicit property for the expected ping value used in testing. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v3: None Changes in v2: None test/dm/test-fdt.c | 13 - test/dm/test.dts | 5 - 2 files changed, 12

[U-Boot] [PATCH v3 28/29] dm: Add dm_scan_other() to locate board-specific devices

2014-07-23 Thread Simon Glass
Some boards will have devices which are not in the device tree and do not have platform data. They may be programnatically created, for example. Add a hook which boards can use to bind those devices early in boot. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v3: None Changes in

[U-Boot] [PATCH v3 08/29] dm: Allow drivers to be marked 'before relocation'

2014-07-23 Thread Simon Glass
Driver model currently only operates after relocation is complete. In this state U-Boot typically has a small amount of memory available. In adding support for driver model prior to relocation we must try to use as little memory as possible. In addition, on some machines the memory has not be

[U-Boot] [PATCH v3 04/29] stdio: Pass device pointer to stdio methods

2014-07-23 Thread Simon Glass
At present stdio device functions do not get any clue as to which stdio device is being acted on. Some implementations go to great lengths to work around this, such as defining a whole separate set of functions for each possible device. For driver model we need to associate a stdio_dev with a

[U-Boot] [PATCH v3 17/29] dm: Introduce device sequence numbering

2014-07-23 Thread Simon Glass
In U-Boot it is pretty common to number devices from 0 and access them on the command line using this numbering. While it may come to pass that we will move away from this numbering, the possibility seems remote at present. Given that devices within a uclass will have an implied numbering, it

[U-Boot] [PATCH v3 21/29] fdt: Add a function to get the node offset of an alias

2014-07-23 Thread Simon Glass
This simple function returns the node offset of a named alias. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v3: None Changes in v2: None include/fdtdec.h | 11 +++ lib/fdtdec.c | 15 +++ 2 files changed, 26 insertions(+) diff --git a/include/fdtdec.h

[U-Boot] [PATCH v3 22/29] dm: Tidy up some header file comments

2014-07-23 Thread Simon Glass
Fix up the style of a few comments and add/clarify a few others. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v3: None Changes in v2: None include/dm/device.h| 2 +- include/dm/platdata.h | 10 -- include/dm/root.h | 3 ++- include/dm/uclass-id.h | 2 +-

[U-Boot] [PATCH v3 18/29] dm: Display the sequence number for each device

2014-07-23 Thread Simon Glass
Add this information to 'dm tree' and 'dm uclass' commands. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v3: None Changes in v2: None test/dm/cmd_dm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/dm/cmd_dm.c b/test/dm/cmd_dm.c index 93e5255..26980d2 100644 ---

[U-Boot] [PATCH v3 14/29] fdt: Add a function to get the alias sequence of a node

2014-07-23 Thread Simon Glass
Aliases are used to provide U-Boot's numbering of devices, such as: aliases { spi0 = /spi@1233; } spi@1233 { ... } This tells us that the SPI controller at 1233 is considered to be the first SPI controller (SPI 0). So we have a numbering for the SPI node. Add a

[U-Boot] [PATCH v3 20/29] dm: Avoid accessing uclasses before they are ready

2014-07-23 Thread Simon Glass
Don't allow access to uclasses before they have been initialised. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v3: None Changes in v2: None doc/driver-model/README.txt | 3 ++- drivers/core/uclass.c | 2 ++ test/dm/core.c | 14 ++ 3 files

[U-Boot] [PATCH v3 29/29] dm: Give the demo uclass a name

2014-07-23 Thread Simon Glass
Uclasses should be named, so add a name for the demo uclass. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v3: None Changes in v2: - Expand series to include all driver-model-required changes drivers/demo/demo-uclass.c | 1 + 1 file changed, 1 insertion(+) diff --git

[U-Boot] [PATCH v3 26/29] dm: Add child_pre_probe() and child_post_remove() methods

2014-07-23 Thread Simon Glass
Some devices (particularly bus devices) must track their children, knowing when a new child is added so that it can be set up for communication on the bus. Add a child_pre_probe() method to provide this feature, and a corresponding child_post_remove() method. Signed-off-by: Simon Glass

[U-Boot] [PATCH v3 15/29] dm: Move device display into its own function

2014-07-23 Thread Simon Glass
The device display for 'dm tree' and 'dm uclass' is mostly the same, so move it into a common function. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v3: None Changes in v2: None test/dm/cmd_dm.c | 27 +++ 1 file changed, 19 insertions(+), 8 deletions(-)

[U-Boot] [PATCH v3 24/29] dm: Add functions to access a device's children

2014-07-23 Thread Simon Glass
Devices can have childen that can be addressed by a simple index, the sequence number or a device tree offset. Add functions to access a child in each of these ways. The index is typically used as a fallback when the sequence number is not available. For example we may use a serial UART with

[U-Boot] [PATCH v3 11/29] console: Remove vprintf() optimisation for sandbox

2014-07-23 Thread Simon Glass
If the console is not present, we try to reduce overhead by stopping any output in vprintf(), before it gets to putc(). This is of dubious merit in general, but in the case of sandbox it is incorrect since we have a fallback console which reports errors very early in U-Boot. If this is defeated

[U-Boot] [PATCH v3 16/29] dm: Avoid activating devices in 'dm uclass' command

2014-07-23 Thread Simon Glass
This command currently activates devices as it lists them. This is not desirable since it changes the system state. Fix it and avoid printing a newline if there are no devices in a uclass. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v3: None Changes in v2: None test/dm/cmd_dm.c

[U-Boot] [PATCH v3 25/29] dm: Introduce per-child data for devices

2014-07-23 Thread Simon Glass
Some device types can have child devices and want to store information about them. For example a USB flash stick attached to a USB host controller would likely use this space. The controller can hold information about the USB state of each of its children. The data is stored attached to the child

[U-Boot] [PATCH v3 03/29] stdio: Remove redundant code around stdio_register() calls

2014-07-23 Thread Simon Glass
There is no point in setting a structure's memory to NULL when it has already been zeroed with memset(). Also, there is no need to create a stub function for stdio to call - if the function is NULL it will not be called. This is a clean-up, with no change in functionality. Signed-off-by: Simon

[U-Boot] [PATCH v3 23/29] dm: Provide a function to scan child FDT nodes

2014-07-23 Thread Simon Glass
At present only root nodes in the device tree are scanned for devices. But some devices can have children. For example a SPI bus may have several children for each of its chip selects. Add a function which scans subnodes and binds devices for each one. This can be used for the root node scan

[U-Boot] [PATCH v3 19/29] dm: Allow a device to be found by its FDT offset

2014-07-23 Thread Simon Glass
Each device that was bound from a device tree has an node that caused it to be bound. Add functions that find and return a device based on a device tree offset. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v3: None Changes in v2: None doc/driver-model/README.txt | 3 ++-

Re: [U-Boot] [PATCH 3/3] ahci: provide sunxi SATA driver using AHCI platform framework

2014-07-23 Thread Tom Rini
On Wed, Jul 23, 2014 at 07:59:17AM +0100, Ian Campbell wrote: On Tue, 2014-07-22 at 18:01 -0400, Tom Rini wrote: On Fri, Jul 18, 2014 at 08:38:41PM +0100, Ian Campbell wrote: This enables the necessary clocks, in AHB0 and in PLL6_CFG. This is done for sun7i only since I don't have

Re: [U-Boot] [linux-sunxi] Re: [PATCH 3/3] ahci: provide sunxi SATA driver using AHCI platform framework

2014-07-23 Thread Ian Campbell
On Wed, 2014-07-23 at 09:04 -0400, Tom Rini wrote: On Wed, Jul 23, 2014 at 07:59:17AM +0100, Ian Campbell wrote: On Tue, 2014-07-22 at 18:01 -0400, Tom Rini wrote: On Fri, Jul 18, 2014 at 08:38:41PM +0100, Ian Campbell wrote: This enables the necessary clocks, in AHB0 and in

Re: [U-Boot] [PATCH v3 2/9] arm: Set up global data before board_init_f()

2014-07-23 Thread Tom Rini
On Wed, Jul 23, 2014 at 06:16:52AM -0600, Simon Glass wrote: +Albert, Tom Hi Albert, On 11 July 2014 11:44, Jeroen Hofstee dasub...@myspectrum.nl wrote: Hello Simon, On 11-07-14 06:23, Simon Glass wrote: At present arm defines CONFIG_SYS_GENERIC_GLOBAL_DATA, meaning that the

Re: [U-Boot] [PATCH] ARM: zynq: Show ECC status on the same line as DRAM size

2014-07-23 Thread Michal Simek
On 07/23/2014 05:35 AM, Masahiro Yamada wrote: Hi Michal, On Thu, 15 May 2014 09:46:02 +0200 Michal Simek michal.si...@xilinx.com wrote: Without this patch is DRAM size one line below DRAM: which is not nice Origin: I2C: ready DRAM: ECC disabled 1 GiB Now running in RAM - U-Boot

Re: [U-Boot] [PATCH v3 0/9] Add a pre-relocation malloc() implementation

2014-07-23 Thread Tom Rini
On Wed, Jul 23, 2014 at 06:24:08AM -0600, Simon Glass wrote: Hi, On 14 July 2014 18:16, Simon Glass s...@chromium.org wrote: Hi Tom, On 14 July 2014 16:28, Tom Rini tr...@ti.com wrote: On Thu, Jul 10, 2014 at 10:23:24PM -0600, Simon Glass wrote: There has been talk on and off of

[U-Boot] [GIT PULL] Zynq patches

2014-07-23 Thread Michal Simek
Hi Albert, please pull these three patches to your tree. 2 of them are for moving to generic board and the last one is about suppressing warning from out of tree files. Thanks, Michal [u-boot]$ ./tools/buildman/buildman -b zynq zynq -sSed Summary of 4 commits for 6 boards (6 threads, 2 jobs per

Re: [U-Boot] [PATCH v2] zynq: disable -Wstrict-prototypes option for ps7_init.c

2014-07-23 Thread Michal Simek
Hi Masahiro, On 07/23/2014 05:40 AM, Masahiro Yamada wrote: Hi Michal, Could you apply this one along with your other zynq patches ? And please clean-up noise on patchwork. http://patchwork.ozlabs.org/patch/347047/ http://patchwork.ozlabs.org/patch/355816/ I have clean status on

Re: [U-Boot] ODROID dynamic memory initialization

2014-07-23 Thread Przemyslaw Marczak
Hi Daniel, On 07/23/2014 02:27 PM, Daniel Drake wrote: On Tue, Jul 22, 2014 at 2:08 PM, Daniel Drake dr...@endlessm.com wrote: While looking at the old uboot from hardkernel, I'm curious about CONFIG_CLK_BUS_DMC_220_440, which is set by default. This appears to run the memory at a high speed,

Re: [U-Boot] enabling ecc on P2041 and QoreIQ familly not valid for memory = 4GB

2014-07-23 Thread York Sun
Benoit, If your interest is in initializing DDR for ECC, you don't have use dma_meminit(). There is a better and faster way to do so. All Freescale modern DDR controllers support this feature. All you have to do is to define these macros CONFIG_DDR_ECC CONFIG_ECC_INIT_VIA_DDRCONTROLLER

[U-Boot] dfu download issue with ci_udc

2014-07-23 Thread S Durga Prasad Paladugu
Hi, I am trying to download the file from dfu-utilities(version 0.7) and using the ci_udc at device side. After all the data was sent from the host, the dfu utilities sent the zpl packet but at the device side the dfu_write is not getting invoked for zero packet length and hence causing the data

Re: [U-Boot] [PATCH 01/12] sunxi: mksunxiboot: Fix loading of files with a size which is not a multiple of 4

2014-07-23 Thread Siarhei Siamashka
On Fri, 30 May 2014 10:19:16 +0100 Ian Campbell i...@hellion.org.uk wrote: On Fri, 2014-05-30 at 11:06 +0200, Hans de Goede wrote: We should not be aligning the amount of bytes which we try to read from the disk, this leads to trying to read more bytes then there are which fails.

Re: [U-Boot] [PATCH v3 03/10] sunxi: Remove mmc DMA support

2014-07-23 Thread Siarhei Siamashka
On Mon, 9 Jun 2014 11:36:55 +0200 Hans de Goede hdego...@redhat.com wrote: The DMA code in sunxi_mmc.c is broken. mmc_trans_data_by_dma() allocates the dma descriptors on the stack, and then exits while the dma transfer is in progress, so the dma engine is reading stack memory which at that

Re: [U-Boot] [PATCH 01/12] sunxi: mksunxiboot: Fix loading of files with a size which is not a multiple of 4

2014-07-23 Thread Ian Campbell
On Wed, 2014-07-23 at 20:29 +0300, Siarhei Siamashka wrote: On Fri, 30 May 2014 10:19:16 +0100 Ian Campbell i...@hellion.org.uk wrote: On Fri, 2014-05-30 at 11:06 +0200, Hans de Goede wrote: We should not be aligning the amount of bytes which we try to read from the disk, this

Re: [U-Boot] [PATCH v3 04/10] sunxi: Implement reset_cpu

2014-07-23 Thread Siarhei Siamashka
On Mon, 9 Jun 2014 11:36:56 +0200 Hans de Goede hdego...@redhat.com wrote: There is no way to reset the cpu, so use the watchdog for this. Signed-off-by: Hans de Goede hdego...@redhat.com Acked-by: Ian Campbell i...@hellion.org.uk Acked-by: Siarhei Siamashka siarhei.siamas...@gmail.com

Re: [U-Boot] [PATCH v3 05/10] sunxi: Add sun4i support

2014-07-23 Thread Siarhei Siamashka
On Mon, 9 Jun 2014 11:36:57 +0200 Hans de Goede hdego...@redhat.com wrote: Add support for the Allwinner A10 SoC also known as the Allwinner sun4i family, and add the Cubieboard board which uses the A10 SoC. Compared to sun7 only the DRAM controller is a bit different: -Controller reset

Re: [U-Boot] [PATCH v3 06/10] sunxi: Add sun5i support

2014-07-23 Thread Siarhei Siamashka
On Mon, 9 Jun 2014 11:36:58 +0200 Hans de Goede hdego...@redhat.com wrote: Add support for the Allwinner A13 and A10s SoCs also know as the Allwinner sun5i family, and the A13-OLinuXinoM A13 based and r7-tv-dongle A10s based boards. The only differences compared to the already supported

Re: [U-Boot] [PATCH] Makefile: use $(shell ...) for determining file_size

2014-07-23 Thread Tom Rini
On Wed, Jul 23, 2014 at 04:27:36AM -0600, Simon Glass wrote: On 22 July 2014 18:08, Chris Packham judge.pack...@gmail.com wrote: file_size was being calculated using back-ticks but map_size uses $(shell ...). Update the file_size calculation to use $(shell ...). Signed-off-by: Chris

Re: [U-Boot] [PATCH v3 07/10] net: Rename and cleanup sunxi (Allwinner) emac driver

2014-07-23 Thread Siarhei Siamashka
On Mon, 9 Jun 2014 11:36:59 +0200 Hans de Goede hdego...@redhat.com wrote: From: Stefan Roese s...@denx.de There have been 3 versions of the sunxi_emac support patch during its development. Somehow version 2 ended up in upstream u-boot where as the u-boot-sunxi git repo got version 3.

Re: [U-Boot] [GIT] Pull request: u-boot-dfu

2014-07-23 Thread Marek Vasut
On Wednesday, July 16, 2014 at 09:18:56 AM, Lukasz Majewski wrote: Dear Marek, The following changes since commit 5ba95541b700d2edecb4d97d4b905f51ed8551b3: usb: phy: omap_usb_phy: implement usb_phy_power() for AM437x (2014-07-09 22:11:51 +0200) are available in the git repository

Re: [U-Boot] [PATCH v3 08/10] sunxi: Add emac glue, enable emac on the cubieboard

2014-07-23 Thread Siarhei Siamashka
On Mon, 9 Jun 2014 11:37:00 +0200 Hans de Goede hdego...@redhat.com wrote: Signed-off-by: Hans de Goede hdego...@redhat.com Acked-by: Ian Campbell i...@hellion.org.uk --- arch/arm/cpu/armv7/sunxi/board.c | 8 boards.cfg | 2 +- include/configs/sunxi-common.h

Re: [U-Boot] [PATCH v3 09/10] sunxi: Add support for using MII phy-s with the GMAC nic

2014-07-23 Thread Siarhei Siamashka
On Mon, 9 Jun 2014 11:37:01 +0200 Hans de Goede hdego...@redhat.com wrote: From: Chen-Yu Tsai w...@csie.org Many A20 boards (ie Cubieboard2, A20-OLinuXino_MICRO) use an 100 Mbit MII phy together with the GMAC nic found in the A20 SoC, add support for this (this will get used when we add

Re: [U-Boot] [PATCH 01/12] sunxi: mksunxiboot: Fix loading of files with a size which is not a multiple of 4

2014-07-23 Thread Ian Campbell
On Wed, 2014-07-23 at 18:40 +0100, Ian Campbell wrote: On Wed, 2014-07-23 at 20:29 +0300, Siarhei Siamashka wrote: On Fri, 30 May 2014 10:19:16 +0100 Ian Campbell i...@hellion.org.uk wrote: On Fri, 2014-05-30 at 11:06 +0200, Hans de Goede wrote: We should not be aligning the amount

Re: [U-Boot] [PATCH v2 3/5] sunxi: Add axp209 pmic support

2014-07-23 Thread Siarhei Siamashka
On Fri, 13 Jun 2014 22:55:50 +0200 Hans de Goede hdego...@redhat.com wrote: From: Henrik Nordstrom hen...@henriknordstrom.net Add support for the x-powers axp209 pmic which is found on most A10, A13 and A20 boards. And enable AXP209 support for the Cubietruck and Cubieboard boards.

Re: [U-Boot] [PATCH v2 5/5] sunxi: Fix reset hang on sun5i

2014-07-23 Thread Siarhei Siamashka
On Fri, 13 Jun 2014 22:55:52 +0200 Hans de Goede hdego...@redhat.com wrote: Do the same as the Linux kernel does, this fixes the SoC hanging on reset about 50% of the time. Signed-off-by: Hans de Goede hdego...@redhat.com Acked-by: Ian Campbell i...@hellion.org.uk ---

Re: [U-Boot] [PATCH] sunxi: use random parts of SID to set ethaddr

2014-07-23 Thread Siarhei Siamashka
On Sat, 14 Jun 2014 10:46:37 +0100 Ian Campbell i...@hellion.org.uk wrote: On Sat, 2014-06-14 at 08:59 +0200, Hans de Goede wrote: From: Jonathan Liu net...@gmail.com Similar to the USB NIC found on OMAP5uEVM, PandaBoard and BeagleBoard-XM boards, the sunxi SoCs have a NIC onboard

Re: [U-Boot] [PATCH] Makefile: use $(shell ...) for determining file_size

2014-07-23 Thread Jeroen Hofstee
Hi, On 23-07-14 20:03, Tom Rini wrote: On Wed, Jul 23, 2014 at 04:27:36AM -0600, Simon Glass wrote: On 22 July 2014 18:08, Chris Packham judge.pack...@gmail.com wrote: file_size was being calculated using back-ticks but map_size uses $(shell ...). Update the file_size calculation to use

[U-Boot] [PATCH v2] Makefile: fix binary_size_check target

2014-07-23 Thread Jeroen Hofstee
first issue replace stat -c %s with wc: The binary_size_check target relies on stat -c %s to return the size of u-boot.bin. This only works with GNU stat though. Use wc instead. Second issue as reported by chris Packham: file_size was being calculated using back-ticks but map_size uses $(shell

Re: [U-Boot] [PATCH] Makefile: use $(shell ...) for determining file_size

2014-07-23 Thread Tom Rini
On Wed, Jul 23, 2014 at 09:24:00PM +0200, Jeroen Hofstee wrote: Hi, On 23-07-14 20:03, Tom Rini wrote: On Wed, Jul 23, 2014 at 04:27:36AM -0600, Simon Glass wrote: On 22 July 2014 18:08, Chris Packham judge.pack...@gmail.com wrote: file_size was being calculated using back-ticks but

[U-Boot] Please pull u-boot-mpc85xx master

2014-07-23 Thread York Sun
Tom, The following changes since commit fbe79a17fddb7f0b11aa15b9c93e9a4a26165ed8: m68k: define __kernel_size_t as unsinged int again (2014-07-22 09:46:50 -0400) are available in the git repository at: git://git.denx.de/u-boot-mpc85xx.git master for you to fetch changes up to

Re: [U-Boot] dfu download issue with ci_udc

2014-07-23 Thread Wolfgang Denk
Dear S Durga Prasad Paladugu, In message CAAhU36hRQ_AgOR6bodRz-8pcLb2hkVW-ztrKVX48yFkcEWS=h...@mail.gmail.com you wrote: I am trying to download the file from dfu-utilities(version 0.7) and using the ci_udc at device side. After all the data was sent from the host, the ... What is your

Re: [U-Boot] [PATCH 5/9] kmp204x: CPU watchdog enabled

2014-07-23 Thread York Sun
Rainer, Did you get a chance to fix your patch? York On 07/18/2014 03:21 PM, York Sun wrote: Rainer, Once this patch is enabled, we have warning: implicit declaration of function 'init_85xx_watchdog' [-Wimplicit-function-declaration] Please fix. York On 06/03/2014 12:05 AM,

Re: [U-Boot] [PATCH] pxe: clear Bootfile before returning

2014-07-23 Thread Joe Hershberger
On Tue, Jul 22, 2014 at 7:06 PM, Stephen Warren swar...@wwwdotorg.org wrote: From: Stephen Warren swar...@nvidia.com When pxe boot downloads the initrd/kernel/DTB, netboot_common() saves the downloaded filename to global variable BootFile. If the boot operation is aborted, this global state

  1   2   >