[U-Boot] [PATCH v2 2/2] imx: Add support for the SabreSD shipped with i.MX6DL

2013-04-22 Thread Pierre Aubert
The SabreSD platform is available with i.MX6Q or i.MX6DL. This patch adds the support of the i.MX6DL. The config file and the board directory are renamed to remove the reference to the MX6Q. Signed-off-by: Pierre Aubert p.aub...@staubli.com CC: Stefano Babic sba...@denx.de --- Changes in v2:

Re: [U-Boot] [U-Boot, v3, 6/8] USB: SS: Add support for Super Speed USB interface

2013-04-22 Thread Vivek Gautam
Hi Julius, On Fri, Apr 19, 2013 at 11:52 PM, Julius Werner jwer...@chromium.org wrote: Migrating my comments here for public discussion. Thanks for your valuable comments here. This adds usb framework support for super-speed usb, which will further facilitate to add stack support for xHCI.

Re: [U-Boot] [U-Boot, v3, 6/8] USB: SS: Add support for Super Speed USB interface

2013-04-22 Thread Vivek Gautam
Hi Marek, On Sat, Apr 20, 2013 at 5:27 PM, Marek Vasut ma...@denx.de wrote: Dear Julius Werner, These patches haven't gone in yet, right? I think Vivek wants to discuss/update them himself, he just asked me to move my reviews to this thread. They're not in, but they're already pushed in

[U-Boot] USB detection in u-boot oin our custom board

2013-04-22 Thread amit
Sir, We are having our own custom board based on the FDI design,on which we are not able to mount USB. In the eaboard configuration files support for usb in the u-boot is there and we have commands to check the usb inserted. But this was not the case with FDI board,there were no commands for usb

Re: [U-Boot] [PATCH 3/3] mx6sl: Add initial support for mx6slevk board

2013-04-22 Thread Stefano Babic
On 21/04/2013 19:00, Fabio Estevam wrote: Hi Stefano, On Wed, Apr 17, 2013 at 5:48 AM, Stefano Babic sba...@denx.de wrote: Ok, let's do in this way - I agree that U-boot should only turn on the clocks that it requires and do not touch the rest. But let's start pushing this into u-boot-imx

Re: [U-Boot] [PATCH] imx: Add titanium board support (i.MX6 based)

2013-04-22 Thread Stefano Babic
On 10/04/2013 09:17, Stefan Roese wrote: Titanium is a i.MX6 based board from ProjectionDesign / Barco. This patch adds support for this board with the newly introduced NAND support for i.MX6. Signed-off-by: Stefan Roese s...@denx.de --- Applied to u-boot-imx, thanks. Best regards,

Re: [U-Boot] [PATCH] imx: Add titanium board support (i.MX6 based)

2013-04-22 Thread Stefan Roese
On 22.04.2013 10:07, Stefano Babic wrote: On 10/04/2013 09:17, Stefan Roese wrote: Titanium is a i.MX6 based board from ProjectionDesign / Barco. This patch adds support for this board with the newly introduced NAND support for i.MX6. Signed-off-by: Stefan Roese s...@denx.de --- Applied

Re: [U-Boot] [PATCH 1/3 v2] ppc4xx: Add SPL support

2013-04-22 Thread Stefan Roese
On 02.04.2013 10:37, Stefan Roese wrote: This patch adds SPL booting support (NOR flash) for the PPC4xx platforms. This SPL booting (Falcon mode) will be used by the upcoming lcd4_lwmon5 board port (lwmon5 variant). Signed-off-by: Stefan Roese s...@denx.de Applied to

Re: [U-Boot] [PATCH 2/3] Makefile: Add target for combined u-boot.img spl/u-boot.bin

2013-04-22 Thread Stefan Roese
On 22.02.2013 11:36, Stefan Roese wrote: This new make target u-boot-img-spl-at-end.bin consists of the the real, full-blown U-Boot image and the U-Boot SPL binary directly attached to it. The full-blown U-Boot image has the mkimage header included, with its load-address and entry-point.

Re: [U-Boot] [PATCH 3/3 v3] ppc4xx: Add lcd4_lwmon5 support

2013-04-22 Thread Stefan Roese
On 08.03.2013 16:50, Stefan Roese wrote: This patch adds the fast booting LWMON5 derivat lcd4_lwmon5. Its a stripped down version of the full blown lwmon5 support, without ECC, USB, POST and some other stuff. It used the newly introduced SPL infrastrucure for SPL from NOR flash booting on the

Re: [U-Boot] [U-Boot, v3, 3/8] usb: hub: Power-cycle on root-hub ports

2013-04-22 Thread Vivek Gautam
HI Julius, On Sat, Apr 20, 2013 at 12:30 AM, Julius Werner jwer...@chromium.org wrote: XHCI ports are powered on after a H/W reset, however EHCI ports are not. So disabling and re-enabling power on all ports invariably. Signed-off-by: Amar amarendra...@samsung.com Signed-off-by: Vivek

[U-Boot] Please pull u-boot-ppc4xx/master

2013-04-22 Thread Stefan Roese
Hi Tom! Please pull the following pending patches: The following changes since commit d10f68ae47b67acab8b110b5c605dde4197a1820: Prepare v2013.04 (2013-04-19 10:25:43 -0400) are available in the git repository at: git://www.denx.de/git/u-boot-ppc4xx.git master for you to fetch changes up

Re: [U-Boot] [PATCH] imx: Add titanium board support (i.MX6 based)

2013-04-22 Thread Stefano Babic
On 22/04/2013 10:12, Stefan Roese wrote: On 22.04.2013 10:07, Stefano Babic wrote: On 10/04/2013 09:17, Stefan Roese wrote: Titanium is a i.MX6 based board from ProjectionDesign / Barco. This patch adds support for this board with the newly introduced NAND support for i.MX6. Signed-off-by:

Re: [U-Boot] Driver Model Thoughts

2013-04-22 Thread Marek Vasut
Hi Simon, Hi Marek, Another U-Boot engineer and I are looking at running up driver model. Good, I'm now free of the shackles of the university project. Bring it on. It seems to work in sandbox quite nicely. I had half a mind to try to get some core patches together for this merge window,

Re: [U-Boot] [PATCH v2] flash: Add optional verify-after-write feature

2013-04-22 Thread Stefan Roese
On 04.04.2013 15:53, Stefan Roese wrote: Sometimes it might make sense to verify the written data to NOR flash. This patch adds this feature. To enable this verify-after-write, you need to define CONFIG_FLASH_VERIFY in your board config header. Please note that this option is useless in

[U-Boot] Please pull u-boot-cfi-flash/master

2013-04-22 Thread Stefan Roese
Hi Tom, please pull the following patch: The following changes since commit d10f68ae47b67acab8b110b5c605dde4197a1820: Prepare v2013.04 (2013-04-19 10:25:43 -0400) are available in the git repository at: git://www.denx.de/git/u-boot-cfi-flash.git master for you to fetch changes up to

Re: [U-Boot] [PATCH] Add NanoBone board support

2013-04-22 Thread Mark Jackson
On 16/04/13 20:22, Tom Rini wrote: On Tue, Apr 16, 2013 at 08:14:13PM +0100, Mark Jackson wrote: On 16/04/13 16:48, Tom Rini wrote: On Tue, Apr 16, 2013 at 04:02:34PM +0100, Mark Jackson wrote: snip +static struct cpsw_platform_data cpsw_data = { + .mdio_base =

[U-Boot] [PATCH 1/3] cm-t35: move cm-t35 to live in compulab directory

2013-04-22 Thread Igor Grinberg
Currently the cm-t35 support code lives under board/cm_t35 directory. Some of the code can be shared with other/future CompuLab boards, so move the cm-t35 to live under board/compulab/cm_t35 directory. Signed-off-by: Igor Grinberg grinb...@compulab.co.il Tested-by: Nikita Kiryanov

[U-Boot] [PATCH 3/3] cm-t35: update config file

2013-04-22 Thread Igor Grinberg
Several minor updates to the cm-t35 config file. Signed-off-by: Igor Grinberg grinb...@compulab.co.il Tested-by: Nikita Kiryanov nik...@compulab.co.il --- include/configs/cm_t35.h | 18 +- 1 files changed, 5 insertions(+), 13 deletions(-) diff --git a/include/configs/cm_t35.h

[U-Boot] [PATCH 2/3] MAINTAINERS: fix the cm-t35 board name

2013-04-22 Thread Igor Grinberg
cm-t35 in U-Boot source code is called cm_t35. Make the change cm-t35 - cm_t35 for better greppability. Signed-off-by: Igor Grinberg grinb...@compulab.co.il --- MAINTAINERS |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 643a5ac..8e707d5

[U-Boot] [PATCH 4/6] Add Atmel I2C tpm

2013-04-22 Thread Dirk Eibach
Add support for Atmel TPM devices with two wire interface. Signed-off-by: Dirk Eibach eib...@gdsys.de Signed-off-by: Reinhard Pfau p...@gdsys.de --- README |6 +++ drivers/tpm/Makefile|1 + drivers/tpm/atmel_twi_tpm.c | 119

[U-Boot] [PATCH 5/6] powerpc: Build arch/powerpc/lib/bootm.o depending on CONFIG_CMD_BOOTM

2013-04-22 Thread Dirk Eibach
Signed-off-by: Dirk Eibach eib...@gdsys.de --- arch/powerpc/lib/Makefile |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/lib/Makefile b/arch/powerpc/lib/Makefile index 59c723b..8c4920b 100644 --- a/arch/powerpc/lib/Makefile +++ b/arch/powerpc/lib/Makefile @@

[U-Boot] [PATCH 3/6] i2c: fsl_i2c: i2c_read(): dont try to write address w/ alen=0

2013-04-22 Thread Dirk Eibach
From: Reinhard Pfau p...@gdsys.de if alen is 0: no longer start a write cycle before reading data. Signed-off-by: Dirk Eibach eib...@gdsys.de Signed-off-by: Reinhard Pfau p...@gdsys.de --- drivers/i2c/fsl_i2c.c |7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git

[U-Boot] [PATCH 2/6] mpc85xx: Add CONFIG_RELEASE_CORE0_ONLY

2013-04-22 Thread Dirk Eibach
If CONFIG_RELEASE_CORE0_ONLY is set, all cores except core0 are kept in holdoff mode. Signed-off-by: Dirk Eibach eib...@gdsys.de --- arch/powerpc/cpu/mpc85xx/mp.c |8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/cpu/mpc85xx/mp.c

[U-Boot] [PATCH 0/6] Add gdsys ControlCenter Digital board

2013-04-22 Thread Dirk Eibach
Dirk Eibach (4): mpc85xx: Add CONFIG_RELEASE_CORE0_ONLY Add Atmel I2C tpm powerpc: Build arch/powerpc/lib/bootm.o depending on CONFIG_CMD_BOOTM mpc85xx: Add gdsys ControlCenter Digital board Reinhard Pfau (2): tpm: add AUTH1 cmds for LoadKey2 and GetPubKey i2c: fsl_i2c: i2c_read():

[U-Boot] [PATCH 1/6] tpm: add AUTH1 cmds for LoadKey2 and GetPubKey

2013-04-22 Thread Dirk Eibach
From: Reinhard Pfau p...@gdsys.de Extend the tpm library with support for single authorized (AUTH1) commands as specified in the TCG Main Specification 1.2. (The internally used helper functions are implemented in a way that they could also be used for double authorized commands if someone needs

[U-Boot] [PATCH 01/11] powerpc/ppc4xx: Add generic accessor functions for gdsys FPGA

2013-04-22 Thread Dirk Eibach
A set of accessor functions was added to be able to access not only memory mapped FPGA in a generic way. Signed-off-by: Dirk Eibach eib...@gdsys.de --- include/gdsys_fpga.h |5 + 1 file changed, 5 insertions(+) diff --git a/include/gdsys_fpga.h b/include/gdsys_fpga.h index

[U-Boot] [PATCH 0/11] Update gdsys ppc4xx-based boards

2013-04-22 Thread Dirk Eibach
Dirk Eibach (11): powerpc/ppc4xx: Add generic accessor functions for gdsys FPGA powerpc/ppc4xx: Add gdsys mclink interface powerpc/ppc4xx: Add fpgad command for dumping gdsys fpga registers powerpc/ppc4xx: Add bitbang i2c interface for gdsys boards powerpc/ppc4xx: Use generic FPGA

[U-Boot] [PATCH 02/11] powerpc/ppc4xx: Add gdsys mclink interface

2013-04-22 Thread Dirk Eibach
mclink is a serial interface for communication between gdsys FPGA. Signed-off-by: Dirk Eibach eib...@gdsys.de --- board/gdsys/common/Makefile |2 +- board/gdsys/common/mclink.c | 140 +++ board/gdsys/common/mclink.h | 31 ++ 3 files changed,

[U-Boot] [PATCH 03/11] powerpc/ppc4xx: Add fpgad command for dumping gdsys fpga registers

2013-04-22 Thread Dirk Eibach
Signed-off-by: Dirk Eibach eib...@gdsys.de --- board/gdsys/common/Makefile |2 +- board/gdsys/common/cmd_fpga.c | 94 + 2 files changed, 95 insertions(+), 1 deletion(-) create mode 100644 board/gdsys/common/cmd_fpga.c diff --git

[U-Boot] [PATCH 04/11] powerpc/ppc4xx: Add bitbang i2c interface for gdsys boards

2013-04-22 Thread Dirk Eibach
This adds an i2c bitbang interface that can coexist with processor i2c. Signed-off-by: Dirk Eibach eib...@gdsys.de --- board/gdsys/common/Makefile |2 +- board/gdsys/common/bb_i2c.c | 304 +++ board/gdsys/common/bb_i2c.h | 76 +++ 3 files

[U-Boot] [PATCH 05/11] powerpc/ppc4xx: Use generic FPGA accessors in gdsys common code

2013-04-22 Thread Dirk Eibach
Signed-off-by: Dirk Eibach eib...@gdsys.de --- board/gdsys/405ep/405ep.c | 12 board/gdsys/common/osd.c | 70 + 2 files changed, 38 insertions(+), 44 deletions(-) diff --git a/board/gdsys/405ep/405ep.c b/board/gdsys/405ep/405ep.c index

[U-Boot] [PATCH 06/11] powerpc/ppc4xx: Support gdsys multichannel iocon hardware

2013-04-22 Thread Dirk Eibach
Signed-off-by: Dirk Eibach eib...@gdsys.de --- board/gdsys/405ep/iocon.c | 253 ++--- include/configs/iocon.h | 37 --- include/gdsys_fpga.h | 15 ++- 3 files changed, 248 insertions(+), 57 deletions(-) diff --git

[U-Boot] [PATCH 09/11] powerpc/ppc4xx: Increase timeout for gdsys mclink bus startup

2013-04-22 Thread Dirk Eibach
Signed-off-by: Dirk Eibach eib...@gdsys.de --- board/gdsys/common/mclink.c |6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/board/gdsys/common/mclink.c b/board/gdsys/common/mclink.c index 6c86145..641a327 100644 --- a/board/gdsys/common/mclink.c +++

[U-Boot] [PATCH 08/11] powerpc/ppc4xx: Fixup phy erratum on gdsys iocon hardware

2013-04-22 Thread Dirk Eibach
Marvell 88E1518 has an erratum that requires fixing up. This patch checks for presence of this phy and adds code for fixup. Signed-off-by: Dirk Eibach eib...@gdsys.de --- board/gdsys/405ep/iocon.c | 214 + include/configs/iocon.h |3 + 2 files

[U-Boot] [PATCH 10/11] powerpc/ppc4xx: Consider gdsys FPGA OSD size

2013-04-22 Thread Dirk Eibach
OSD size was constant 32x16 characters. Now the size is set as announced by the FPGA. Signed-off-by: Dirk Eibach eib...@gdsys.de --- board/gdsys/common/osd.c | 35 +++ 1 file changed, 19 insertions(+), 16 deletions(-) diff --git a/board/gdsys/common/osd.c

[U-Boot] [PATCH 11/11] powerpc/ppc4xx: Remove CONFIG_SYS_FLASH_PROTECTION from gdsys boards

2013-04-22 Thread Dirk Eibach
CONFIG_SYS_FLASH_PROTECTION was active on most gdsys boards by default, while hardware flash protection was not implemented. Hardware support was added recently and we get into trouble because backward compatibility is broken (u-boot can't unprotect the protected flash after a downgrade). So we

[U-Boot] [PATCH 07/11] powerpc/ppc4xx: Use generic FPGA accessors on all gdsys 405ep/ex boards

2013-04-22 Thread Dirk Eibach
Signed-off-by: Dirk Eibach eib...@gdsys.de --- board/gdsys/405ep/dlvision-10g.c | 20 ++-- board/gdsys/405ep/io.c | 20 ++-- board/gdsys/405ep/neo.c | 17 + board/gdsys/405ex/405ex.c| 14 ++

Re: [U-Boot] [PATCH 6/6] arm: mx5: Add support for DENX M53EVK

2013-04-22 Thread Wolfgang Denk
Dear Marek, In message 201304220109.14740.ma...@denx.de you wrote: Looking through the code, it seems CONFIG_SYS_LOAD_ADDR is preferred over CONFIG_LOADADDR, so this should be fixed on all places then ? Just to be clear on this. CONFIG_SYS_LOAD_ADDR is _used_, but not preferred ;-)

Re: [U-Boot] [PATCH] Add NanoBone board support

2013-04-22 Thread Mark Jackson
On 22/04/13 11:04, Mark Jackson wrote: On 16/04/13 20:22, Tom Rini wrote: On Tue, Apr 16, 2013 at 08:14:13PM +0100, Mark Jackson wrote: On 16/04/13 16:48, Tom Rini wrote: On Tue, Apr 16, 2013 at 04:02:34PM +0100, Mark Jackson wrote: snip +static struct cpsw_platform_data cpsw_data = {

[U-Boot] [PATCH v2] Add NanoBone board support

2013-04-22 Thread Mark Jackson
NanoBone Specification: --- CPU: TI AM335x Memory: 256MB DDR3 64MB NOR flash 256MB NAND flash 128KB FRAM Ethernet: 2 x 10/100 connected to SMSC LAN8710 PHY USB: 1 x USB2.0 Type A I2C: 2Kbit EEPROM (Microchip 24AA02) RTC (Maxim DS1338) GPIO Expander

[U-Boot] [PATCH v3 0/19] Allow images to work on sandbox

2013-04-22 Thread Simon Glass
This series adjusts the image code to work with sandbox and prepares it for verified boot to come later. The primary goal here is to get image loading to work on sandbox, which is mostly a set of fairly minor changes such as using map_sysmem() instead of just a cast when converting from a U-Boot

[U-Boot] [PATCH v3 02/19] Add minor updates to README.fdt-control

2013-04-22 Thread Simon Glass
A few things have changed since this doc was written, so update it to match the current state of things. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v3: - Update notes to note that generic board support has now landed Changes in v2: None doc/README.fdt-control | 9 - 1

[U-Boot] [PATCH v3 01/19] env: Fix minor comment typos in cmd_nvedit

2013-04-22 Thread Simon Glass
This should say 'environmnent'. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v3: None Changes in v2: None common/cmd_nvedit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/cmd_nvedit.c b/common/cmd_nvedit.c index d893aa1..9579f94 100644 ---

[U-Boot] [PATCH v3 11/19] image: Split hash node processing into its own function

2013-04-22 Thread Simon Glass
This function has become quite long and much of the body is indented quite a bit. Move it into a separate function to make it easier to work with. Signed-off-by: Simon Glass s...@chromium.org Acked-by: Marek Vasut ma...@denx.de --- Changes in v3: None Changes in v2: - Rebase on previous patches

[U-Boot] [PATCH v3 06/19] libfdt: Add fdt_next_subnode() to permit easy subnode iteration

2013-04-22 Thread Simon Glass
This allows use to replace code like this: for (ndepth = 0, count = 0, noffset = fdt_next_node(fit, images_noffset, ndepth); (noffset = 0) (ndepth 0); noffset = fdt_next_node(fit, noffset, ndepth)) { if (ndepth == 1) ... with: for (ndepth = 0,

[U-Boot] [PATCH v3 03/19] hash: Add a way to calculate a hash for any algortihm

2013-04-22 Thread Simon Glass
Rather than needing to call one of many hashing algorithms in U-Boot, provide a function hash_block() which handles this, and can support all available hash algorithms. Once we have md5 supported within hashing, we can use this function in the FIT image code. Signed-off-by: Simon Glass

[U-Boot] [PATCH v3 04/19] bootstage: Don't build for HOSTCC

2013-04-22 Thread Simon Glass
We don't measure boot timing on the host, or with SPL, so use both conditions in the bootstage header. This allows us to avoid using conditional compilation around bootstage_...() calls. (#ifdef) Signed-off-by: Simon Glass s...@chromium.org --- Changes in v3: None Changes in v2: - Fix line

[U-Boot] [PATCH v3 15/19] image: Move error! string to common place

2013-04-22 Thread Simon Glass
The string error\n appears in each error string. Move it out to a common place. Signed-off-by: Simon Glass s...@chromium.org Reviewed-by: Marek Vasut ma...@denx.de --- Changes in v3: None Changes in v2: - Put err_msgp strings on a single line - Rebase on previous patches common/image-fit.c |

[U-Boot] [PATCH v3 17/19] image: Rename fit_add_hashes() to fit_add_verification_data()

2013-04-22 Thread Simon Glass
We intend to add signatures to FITs also, so rename this function so that it is not specific to hashing. Also rename fit_image_set_hashes() and make it static since it is not used outside this file. Signed-off-by: Simon Glass s...@chromium.org Reviewed-by: Marek Vasut ma...@denx.de --- Changes in

[U-Boot] [PATCH v3 12/19] image: Convert fit_image_hash_set_value() to static, and rename

2013-04-22 Thread Simon Glass
This function doesn't need to be exported, and with verification we want to use it for setting the 'value' property in any node, so rename it. Signed-off-by: Simon Glass s...@chromium.org Reviewed-by: Marek Vasut ma...@denx.de --- Changes in v3: None Changes in v2: - Rebase on previous patches

[U-Boot] [PATCH v3 05/19] mkimage: Move ARRAY_SIZE to header file

2013-04-22 Thread Simon Glass
Move this definition from aisimage.c to mkimage.h so that it is available more widely. Signed-off-by: Simon Glass s...@chromium.org Acked-by: Marek Vasut ma...@denx.de --- Changes in v3: None Changes in v2: None tools/aisimage.c | 1 - tools/mkimage.h | 2 ++ 2 files changed, 2 insertions(+),

[U-Boot] [PATCH v3 14/19] image: Move hash checking into its own function

2013-04-22 Thread Simon Glass
The existing function is long and most of the code is indented a long way. Before adding yet more code, split this out into its own function. Signed-off-by: Simon Glass s...@chromium.org Reviewed-by: Marek Vasut ma...@denx.de (v1) --- Changes in v3: None Changes in v2: - Add IMAGE_ENABLE_IGNORE

[U-Boot] [PATCH v3 18/19] image: Rename hash printing to fit_image_print_verification_data()

2013-04-22 Thread Simon Glass
This function will be used to print signatures as well as hashes, so rename it. Also make it static since it is not used outside this file. Signed-off-by: Simon Glass s...@chromium.org Reviewed-by: Marek Vasut ma...@denx.de --- Changes in v3: None Changes in v2: - Rebase on previous patches

[U-Boot] [PATCH v3 10/19] image: Move HOSTCC image code to tools/

2013-04-22 Thread Simon Glass
This code is never compiled into U-Boot, so move it into a separate file in tools/ to avoid the large #ifdef. Signed-off-by: Simon Glass s...@chromium.org Reviewed-by: Marek Vasut ma...@denx.de --- Changes in v3: None Changes in v2: - Rebase on previous patches common/image-fit.c | 171

[U-Boot] [PATCH v3 08/19] image: Export fit_check_ramdisk()

2013-04-22 Thread Simon Glass
One we split out the FIT code from image.c we will need this function. Export it in the header. Signed-off-by: Simon Glass s...@chromium.org Reviewed-by: Marek Vasut ma...@denx.de --- Changes in v3: None Changes in v2: None common/image.c | 9 ++--- include/image.h | 3 +++ 2 files

[U-Boot] [PATCH v3 07/19] image: Move timestamp #ifdefs to header file

2013-04-22 Thread Simon Glass
Rather than repeat the line #if defined(CONFIG_TIMESTAMP) || defined(CONFIG_CMD_DATE) || \ defined(USE_HOSTCC) everywhere, put this in a header file and #define IMAGE_ENABLE_TIMESTAMP to either 1 or 0. Then we can use a plain if() in most code and avoid the #ifdefs. The compiler's dead

[U-Boot] [PATCH v3 16/19] image: Export fit_conf_get_prop_node()

2013-04-22 Thread Simon Glass
This function will be needed by signature checking code, so export it, and also add docs. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v3: None Changes in v2: - Put params before description in fit_conf_get_prop_node() comment common/image-fit.c | 8 include/image.h

[U-Boot] [PATCH v3 13/19] image: Rename fit_image_check_hashes() to fit_image_verify()

2013-04-22 Thread Simon Glass
This is the main entry point to the FIT image verification code. We will be using it to handle image verification with signatures, so rename the function. Signed-off-by: Simon Glass s...@chromium.org Reviewed-by: Marek Vasut ma...@denx.de --- Changes in v3: None Changes in v2: None

[U-Boot] [PATCH v3 19/19] sandbox: image: Add support for booting images in sandbox

2013-04-22 Thread Simon Glass
Much of the image code uses addresses as ulongs and pointers interchangeably, casting between the two forms as needed. This doesn't work with sandbox, which has a U-Boot RAM buffer which is separate from the host machine's memory. Adjust the cost so that translating from a U-Boot address to a

Re: [U-Boot] Driver Model Thoughts

2013-04-22 Thread Simon Glass
Hi Marek, On Mon, Apr 22, 2013 at 2:00 AM, Marek Vasut ma...@denx.de wrote: Hi Simon, Hi Marek, Another U-Boot engineer and I are looking at running up driver model. Good, I'm now free of the shackles of the university project. Bring it on. It seems to work in sandbox quite nicely. I had

Re: [U-Boot] [PATCH] usb: common: Use a global definition for 'min3'

2013-04-22 Thread Tom Rini
On Fri, Apr 19, 2013 at 01:29:12PM +0200, Marek Vasut wrote: Dear Vivek Gautam, We can use a common global method for calculating minimum of 3 numbers. Put the same in 'common header' and let 'ehci' use it. Signed-off-by: Vivek Gautam gautam.vi...@samsung.com Applied, thanks NAK,

Re: [U-Boot] [PATCH v3 03/17] sandbox: Add support for generic board

2013-04-22 Thread Tom Rini
On Sat, Apr 20, 2013 at 11:42:38AM -0700, Simon Glass wrote: Add generic board support for sandbox. [snip] diff --git a/arch/sandbox/include/asm/u-boot.h b/arch/sandbox/include/asm/u-boot.h index de8120a..7b93acb 100644 --- a/arch/sandbox/include/asm/u-boot.h +++

Re: [U-Boot] [PATCH v3 03/17] sandbox: Add support for generic board

2013-04-22 Thread Tom Rini
On Mon, Apr 22, 2013 at 10:03:10AM -0400, Tom Rini wrote: On Sat, Apr 20, 2013 at 11:42:38AM -0700, Simon Glass wrote: Add generic board support for sandbox. [snip] diff --git a/arch/sandbox/include/asm/u-boot.h b/arch/sandbox/include/asm/u-boot.h index de8120a..7b93acb 100644 ---

[U-Boot] [PATCH 1/4] microblaze: Fix reset function

2013-04-22 Thread Michal Simek
From: Michal Simek mon...@monstr.eu Remove CONFIG_SYS_RESET_ADDRESS macro. It was there from historical point of view when soft reset was just jump to u-boot text start (not used right now). Signed-off-by: Michal Simek mon...@monstr.eu Signed-off-by: Michal Simek michal.si...@xilinx.com ---

[U-Boot] [PATCH 2/4] microblaze: Enable netconsole

2013-04-22 Thread Michal Simek
From: Michal Simek mon...@monstr.eu Setup environment and enable netconsole. Signed-off-by: Michal Simek mon...@monstr.eu Signed-off-by: Michal Simek michal.si...@xilinx.com --- include/configs/microblaze-generic.h | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git

[U-Boot] [PATCH 4/4] watchdog: Add support for Xilinx Microblaze watchdog

2013-04-22 Thread Michal Simek
Watchdog can be used on Microblaze, PPC and Zynq hw designs. Signed-off-by: Michal Simek michal.si...@xilinx.com --- arch/microblaze/include/asm/processor.h| 4 + arch/microblaze/lib/board.c| 3 + .../xilinx/microblaze-generic/microblaze-generic.c | 4 +

[U-Boot] [PATCH 3/4] microblaze: Disable all cpu features before reset

2013-04-22 Thread Michal Simek
From: Michal Simek mon...@monstr.eu Fix microblaze soft reset function and disable all cpu features. Especially disable caches because IRQs were off by disable_interrupts(). Reported-by: John Williams john.willi...@xilinx.com Signed-off-by: Michal Simek mon...@monstr.eu Signed-off-by: Michal

[U-Boot] [PATCH 01/14] arm: zynq: U-Boot udelay 1000 FIX

2013-04-22 Thread Michal Simek
From: David Andrey david.and...@netmodule.com Rework the __udelay function of U-Boot Zynq Arch to handle delay 1000 usec Signed-off-by: David Andrey david.and...@netmodule.com Signed-off-by: Michal Simek michal.si...@xilinx.com --- arch/arm/cpu/armv7/zynq/timer.c | 46

[U-Boot] Xilinx Zynq patches

2013-04-22 Thread Michal Simek
Hi, I am sending several patches which improve Xilinx Zynq arm port in u-boot. Patchset contain: - core changes: patches 1,2 - gem update: patches 1-11 - mmc support: patch 12 - i2c support: patch 13 - pl support: patch 14 I am sending them in one package because driver depends on each other in

[U-Boot] [PATCH 02/14] zynq: Move scutimer baseaddr to hardware.h

2013-04-22 Thread Michal Simek
Move baseaddr to hardware.h to be shared between configurations. Signed-off-by: Michal Simek michal.si...@xilinx.com --- arch/arm/cpu/armv7/zynq/timer.c | 1 + arch/arm/include/asm/arch-zynq/hardware.h | 1 + include/configs/zynq.h| 3 --- 3 files changed, 2

[U-Boot] [PATCH 03/14] net: phy: Define Marvell 88e1518 phy

2013-04-22 Thread Michal Simek
From: Michal Simek mon...@monstr.eu This phy is used on zedboard (xilinx zynq platform). Signed-off-by: Michal Simek mon...@monstr.eu Signed-off-by: Michal Simek michal.si...@xilinx.com --- drivers/net/phy/marvell.c | 11 +++ 1 file changed, 11 insertions(+) diff --git

[U-Boot] [PATCH 05/14] net: gem: Simplify return path in zynq_gem_recv

2013-04-22 Thread Michal Simek
Remove one return from the code. Signed-off-by: Michal Simek michal.si...@xilinx.com --- drivers/net/zynq_gem.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/net/zynq_gem.c b/drivers/net/zynq_gem.c index 7188b9e..c0da628 100644 --- a/drivers/net/zynq_gem.c +++

[U-Boot] [PATCH 07/14] net: gem: Fix gem driver on 1Gbps LAN

2013-04-22 Thread Michal Simek
From: Michal Simek mon...@monstr.eu The whole driver used 100Mbps because of zc702 rev B. Fix problem with not setup proper clock for gem1. This is generic approach for clk setup. Signed-off-by: Michal Simek mon...@monstr.eu Signed-off-by: Michal Simek michal.si...@xilinx.com ---

[U-Boot] [PATCH 06/14] net: gem: Do not initialize BDs again

2013-04-22 Thread Michal Simek
BDs can be correctly setup just once and init function performs only phy autodetection and enabling RX/TX. RX/TX are disabled in halt function. This patch solves the problem with repeatable tftp transfers. Signed-off-by: Michal Simek michal.si...@xilinx.com --- drivers/net/zynq_gem.c | 86

[U-Boot] [PATCH 09/14] net: gem: Pass phy address to init

2013-04-22 Thread Michal Simek
From: David Andrey david.and...@netmodule.com Pass the PHY address to the driver init to allow parallel use of both interfaces Signed-off-by: David Andrey david.and...@netmodule.com Signed-off-by: Michal Simek michal.si...@xilinx.com --- board/xilinx/zynq/board.c | 6 --

[U-Boot] [PATCH 08/14] zynq: Move macros to hardware.h

2013-04-22 Thread Michal Simek
Add all fixed addresses to hardware.h and change petalinux configuration to support this. Signed-off-by: Michal Simek michal.si...@xilinx.com --- arch/arm/include/asm/arch-zynq/hardware.h | 2 ++ board/xilinx/zynq/board.c | 12 +--- include/configs/zynq.h

[U-Boot] [PATCH 10/14] net: gem: Preserve clk on emio interface

2013-04-22 Thread Michal Simek
From: David Andrey david.and...@netmodule.com Avoid overwriting GEMx_RCLK_CTRL and GEMx_CLK_CTRL if the Ethernet interface is connect on EMIO Do not enable emio for this standard board configuration for now. Signed-off-by: David Andrey david.and...@netmodule.com Signed-off-by: Michal Simek

[U-Boot] [PATCH 11/14] net: gem: Add support for phy autodetection

2013-04-22 Thread Michal Simek
Autodetect phy if phyaddress is setup to -1. Signed-off-by: Michal Simek michal.si...@xilinx.com --- drivers/net/zynq_gem.c | 51 ++ 1 file changed, 51 insertions(+) diff --git a/drivers/net/zynq_gem.c b/drivers/net/zynq_gem.c index

[U-Boot] [PATCH 12/14] mmc: Add support for Xilinx Zynq sdhci controller

2013-04-22 Thread Michal Simek
Add support for SD, MMC and eMMC card on Xilinx Zynq. Signed-off-by: Michal Simek michal.si...@xilinx.com --- arch/arm/include/asm/arch-zynq/hardware.h | 2 ++ arch/arm/include/asm/arch-zynq/sys_proto.h | 3 +++ board/xilinx/zynq/board.c | 17 +

[U-Boot] [PATCH 13/14] i2c: zynq: Add support for Xilinx Zynq

2013-04-22 Thread Michal Simek
Support Xilinx Zynq i2c controller. Signed-off-by: Joe Hershberger joe.hershber...@ni.com Signed-off-by: Michal Simek michal.si...@xilinx.com --- arch/arm/include/asm/arch-zynq/hardware.h | 2 + drivers/i2c/Makefile | 1 + drivers/i2c/zynq_i2c.c| 304

[U-Boot] [PATCH 14/14] fpga: Add support for loading bitstream for Xilinx Zynq

2013-04-22 Thread Michal Simek
Devcfg device requires to load bitstream in binary format. Signed-off-by: Joe Hershberger joe.hershber...@ni.com Signed-off-by: Michal Simek michal.si...@xilinx.com --- arch/arm/cpu/armv7/zynq/slcr.c | 36 + arch/arm/include/asm/arch-zynq/hardware.h | 10 +-

[U-Boot] [PATCH 04/14] net: gem: Remove WRAP bit from TX buffer description

2013-04-22 Thread Michal Simek
From: Michal Simek mon...@monstr.eu Removing this bit causes that frame is sent only once. (With wrap big one packet has been sent several times which dramatically decrease throughput) TRM: (Table 16-3: Tx Buffer Descriptor Entry) Signed-off-by: Michal Simek mon...@monstr.eu Signed-off-by:

Re: [U-Boot] [PATCH v3 0/17] sandbox: Generic board support and other improvements

2013-04-22 Thread Tom Rini
On Sat, Apr 20, 2013 at 11:42:35AM -0700, Simon Glass wrote: This series adds generic board support to sandbox and switches to use this always. With sandbox it was noticed that turning CONFIG_SYS_GENERIC_BOARD off can cause a build failure if a previous autoconf.mk exists which indicates

Re: [U-Boot] [PATCH 3/6] i2c: fsl_i2c:i2c_read(): dont try to write address w/ alen=0

2013-04-22 Thread Jim Chargin
Dirk Eibach eibach at gdsys.de writes: From: Reinhard Pfau pfau at gdsys.de if alen is 0: no longer start a write cycle before reading data. Signed-off-by: Dirk Eibach eibach at gdsys.de Signed-off-by: Reinhard Pfau pfau at gdsys.de This will break my stand alone application, which

Re: [U-Boot] [PATCH 4/4] watchdog: Add support for Xilinx Microblaze watchdog

2013-04-22 Thread Tom Rini
On Mon, Apr 22, 2013 at 04:41:03PM +0200, Michal Simek wrote: Watchdog can be used on Microblaze, PPC and Zynq hw designs. [snip] +++ b/drivers/watchdog/xilinx_tb_wdt.c [snip] +#define watchdog_base ((struct watchdog_regs *)CONFIG_WATCHDOG_BASEADDR) Just do: static struct watchdog_regs

[U-Boot] [PATCH 1/2] da850: provide davinci_enable_uart0

2013-04-22 Thread Eric Bénard
this is needed to bring UART0 out of reset but this function currently only exists for dm644x/355/365/646x when da850 (at least am1808 also need it). Signed-off-by: Eric Bénard e...@eukrea.com --- arch/arm/cpu/arm926ejs/davinci/da850_lowlevel.c | 8

[U-Boot] [PATCH 2/2] davinci: handle CONFIG_SYS_CLE_MASK and CONFIG_SYS_ALE_MASK

2013-04-22 Thread Eric Bénard
these variables are curently defined in several config files but the driver doesn't use them and defaults to hardcoded values in nand_defs.h It's interesting to be able to change this hardcoded valude when the hardware is not using the default adress signals to drive ALE and CLE and two

Re: [U-Boot] [PATCH 02/14] zynq: Move scutimer baseaddr to hardware.h

2013-04-22 Thread Tom Rini
On Mon, Apr 22, 2013 at 04:52:00PM +0200, Michal Simek wrote: Move baseaddr to hardware.h to be shared between configurations. Is this really configurable? If not, lets also rename it to drop CONFIG. -- Tom signature.asc Description: Digital signature

Re: [U-Boot] [PATCH 08/14] zynq: Move macros to hardware.h

2013-04-22 Thread Tom Rini
On Mon, Apr 22, 2013 at 04:52:06PM +0200, Michal Simek wrote: Add all fixed addresses to hardware.h and change petalinux configuration to support this. Signed-off-by: Michal Simek michal.si...@xilinx.com --- arch/arm/include/asm/arch-zynq/hardware.h | 2 ++ board/xilinx/zynq/board.c

[U-Boot] [PATCH 1/1] TPM: STMicroelectronics u-boot driver I2C

2013-04-22 Thread Mathias leblanc
From: Mathias Leblanc mathias.lebl...@st.com * STMicroelectronics version 1.2.0, Copyright (C) 2013 * This is free software, and you are welcome to redistribute it * under certain conditions. This is the driver for TPM chip from ST Microelectronics. If you have a TPM security chip from

Re: [U-Boot] [PATCH v3 0/17] sandbox: Generic board support and other improvements

2013-04-22 Thread Simon Glass
Hi Tom, On Mon, Apr 22, 2013 at 8:18 AM, Tom Rini tr...@ti.com wrote: On Sat, Apr 20, 2013 at 11:42:35AM -0700, Simon Glass wrote: This series adds generic board support to sandbox and switches to use this always. With sandbox it was noticed that turning CONFIG_SYS_GENERIC_BOARD off can

Re: [U-Boot] [PATCH 13/14] i2c: zynq: Add support for Xilinx Zynq

2013-04-22 Thread Tom Rini
On Mon, Apr 22, 2013 at 04:52:11PM +0200, Michal Simek wrote: Support Xilinx Zynq i2c controller. Signed-off-by: Joe Hershberger joe.hershber...@ni.com Signed-off-by: Michal Simek michal.si...@xilinx.com Adding Heiko (http://patchwork.ozlabs.org/patch/238560/) ... ---

Re: [U-Boot] [PATCH 3/6] i2c: fsl_i2c: i2c_read(): dont try to write address w/ alen=0

2013-04-22 Thread Fabio Estevam
On Mon, Apr 22, 2013 at 8:06 AM, Dirk Eibach eib...@gdsys.de wrote: diff --git a/drivers/i2c/fsl_i2c.c b/drivers/i2c/fsl_i2c.c index 1c7265d..276386d 100644 --- a/drivers/i2c/fsl_i2c.c +++ b/drivers/i2c/fsl_i2c.c @@ -383,13 +383,16 @@ i2c_read(u8 dev, uint addr, int alen, u8 *data, int

Re: [U-Boot] [PATCH 14/14] fpga: Add support for loading bitstream for Xilinx Zynq

2013-04-22 Thread Tom Rini
On Mon, Apr 22, 2013 at 04:52:12PM +0200, Michal Simek wrote: Devcfg device requires to load bitstream in binary format. [snip] +/* Device Image Sizes + */ This is not the correct format for a comment. -- Tom

Re: [U-Boot] Xilinx Zynq patches

2013-04-22 Thread Tom Rini
On Mon, Apr 22, 2013 at 04:51:58PM +0200, Michal Simek wrote: Hi, I am sending several patches which improve Xilinx Zynq arm port in u-boot. Patchset contain: - core changes: patches 1,2 - gem update: patches 1-11 - mmc support: patch 12 - i2c support: patch 13 - pl support: patch 14

Re: [U-Boot] [PATCH 03/11] powerpc/ppc4xx: Add fpgad command for dumping gdsys fpga registers

2013-04-22 Thread Tom Rini
On Mon, Apr 22, 2013 at 01:16:04PM +0200, Dirk Eibach wrote: Signed-off-by: Dirk Eibach eib...@gdsys.de --- board/gdsys/common/Makefile |2 +- board/gdsys/common/cmd_fpga.c | 94 + There's checkpatch warning I'm guessing since I can spot some

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

2013-04-22 Thread Tom Rini
On Mon, Apr 22, 2013 at 10:27:21AM +0200, Stefan Roese wrote: Hi Tom! Please pull the following pending patches: The following changes since commit d10f68ae47b67acab8b110b5c605dde4197a1820: Prepare v2013.04 (2013-04-19 10:25:43 -0400) are available in the git repository at:

Re: [U-Boot] Please pull u-boot-cfi-flash/master

2013-04-22 Thread Tom Rini
On Mon, Apr 22, 2013 at 11:10:14AM +0200, Stefan Roese wrote: Hi Tom, please pull the following patch: The following changes since commit d10f68ae47b67acab8b110b5c605dde4197a1820: Prepare v2013.04 (2013-04-19 10:25:43 -0400) are available in the git repository at:

Re: [U-Boot] [PATCH 1/2] config_cmd_default.h: Remove CONFIG_CMD_MEMTEST

2013-04-22 Thread Tom Rini
On Fri, Apr 19, 2013 at 03:13:52PM -0400, Tom Rini wrote: As per doc/feature-removal-schedule.txt, remove CONFIG_CMD_MEMTEST from default list of commands. Signed-off-by: Tom Rini tr...@ti.com --- doc/feature-removal-schedule.txt | 17 - include/config_cmd_default.h

  1   2   >