Re: [U-Boot] [PATCH 7/8] ums: move all variable declarations to the start of the block

2014-05-02 Thread Marek Vasut
On Thursday, May 01, 2014 at 06:58:50 PM, Stephen Warren wrote: On 05/01/2014 04:51 AM, Marek Vasut wrote: On Wednesday, April 30, 2014 at 11:13:21 PM, Stephen Warren wrote: From: Stephen Warren swar...@nvidia.com It's easier to assign values to the variables inside an if statement

Re: [U-Boot] [PATCH v4 5/9] sunxi: add support for Cubietruck booting in FEL mode

2014-05-02 Thread Marek Vasut
On Thursday, May 01, 2014 at 08:40:48 PM, Ian Campbell wrote: Signed-off-by: Oliver Schinagl oli...@schinagl.nl Signed-off-by: Jens Kuske jensku...@gmail.com Signed-off-by: Ian Campbell i...@hellion.org.uk Reviewed-by: Tom Rini tr...@ti.com Reviewed-by: Marek Vasut ma...@denx.de --- v4:

Re: [U-Boot] [PATCH v4 8/9] sunxi: non-FEL SPL boot support for sun7i

2014-05-02 Thread Marek Vasut
On Thursday, May 01, 2014 at 08:40:51 PM, Ian Campbell wrote: Add support for booting from an MMC card. Signed-off-by: Stefan Roese s...@denx.de Signed-off-by: Henrik Nordström hen...@henriknordstrom.net Signed-off-by: Ian Campbell i...@hellion.org.uk Cc: Tom Cubie mr.hip...@gmail.com

Re: [U-Boot] [PATCH 1/3] usb: tegra: fix PHY selection code

2014-05-02 Thread Marek Vasut
On Thursday, May 01, 2014 at 06:56:24 PM, Stephen Warren wrote: On 05/01/2014 04:49 AM, Marek Vasut wrote: On Wednesday, April 30, 2014 at 11:09:55 PM, Stephen Warren wrote: From: Stephen Warren swar...@nvidia.com The TRM for Tegra30 and later all state that USBMODE_CM_HC must be set

Re: [U-Boot] [PATCH v4 7/9] sunxi: mmc support

2014-05-02 Thread Marek Vasut
On Thursday, May 01, 2014 at 08:40:50 PM, Ian Campbell wrote: This adds support for the MMC controller on the Allwinner A20 (sun7i) processor. Signed-off-by: Henrik Nordstrom hen...@henriknordstrom.net Signed-off-by: Luke Leighton l...@lkcl.net Signed-off-by: Oliver Schinagl

Re: [U-Boot] U-Boot, dm, ubi: struct device is declared twice

2014-05-02 Thread Marek Vasut
/board_r.c:21: include/dm/device.h:56:8: note: originally defined here struct device { ^ make[1]: *** [common/board_r.o] Fehler 1 make: *** [common] Fehler 2 pollux:u-boot hs [20140502] $ for a not yet mainlined imx6 board using UBI/UBIFS on nand. I am currently sync current Linux

Re: [U-Boot] [PATCH v4 6/9] sunxi: add gmac Ethernet support

2014-05-02 Thread Marek Vasut
On Thursday, May 01, 2014 at 08:40:49 PM, Ian Campbell wrote: Add support for the GMAC Ethernet controller on Allwinner A20 (sun7i) processors. Enable for the Cubietruck. Signed-off-by: Chen-Yu Tsai w...@csie.org Signed-off-by: Jens Kuske jensku...@gmail.com Signed-off-by: Ian Campbell

Re: [U-Boot] Possible race condition when accessing SPI NOR Flash ?

2014-05-02 Thread Valentin Longchamp
Hello Wolfgang, On 05/02/2014 12:31 AM, Wolfgang Denk wrote: Dear Valentin, In message 53623597.8040...@keymile.com you wrote: Now when fw_setenv ([1], [2]) updates the environment variables, it sometimes (approximately 1 out of 100 runs) triggers such kernel errors: ... I see the same

Re: [U-Boot] [PATCH v4 1/9] sunxi: add sun7i clocks and timer support.

2014-05-02 Thread Ian Campbell
On Thu, 2014-05-01 at 20:49 +0100, Ian Campbell wrote: I'm going to go through the rest now and reply with a proper v3..v4 changelog. If I don't reply to a particular patch it means nothing much changed. FYI there were changes to patches marked here with a * * sunxi: add sun7i clocks and

Re: [U-Boot] [PATCH v4 4/9] sunxi: add sun7i cpu, board and start of day support

2014-05-02 Thread Marek Vasut
On Thursday, May 01, 2014 at 08:40:47 PM, Ian Campbell wrote: This patch adds generic board, start of day and basic build system support for the Allwinner A20 (sun7i) processor. This code will not been compiled until the build is hooked up in a later patch. It has been split out to keep the

Re: [U-Boot] [PATCH v4 3/9] sunxi: add sun7i dram setup support

2014-05-02 Thread Marek Vasut
On Thursday, May 01, 2014 at 08:40:46 PM, Ian Campbell wrote: This patch adds DRAM initialisation support for the Allwinner A20 (sun7i) processor. This code will not been compiled until the build is hooked up in a later patch. It has been split out to keep the patches manageable.

Re: [U-Boot] U-Boot, dm, ubi: struct device is declared twice

2014-05-02 Thread Heiko Schocher
include/dm.h:10:0, from common/board_r.c:21: include/dm/device.h:56:8: note: originally defined here struct device { ^ make[1]: *** [common/board_r.o] Fehler 1 make: *** [common] Fehler 2 pollux:u-boot hs [20140502] $ for a not yet mainlined imx6 board using UBI/UBIFS

[U-Boot] U-Boot 1.3.4 ERROR: CTL:TIMEOUT

2014-05-02 Thread Medyk, Sergio (NSN - FI/Espoo)
I'm getting the following error message, which leads to a continuous reset loop in my CPU (MPC8548). U-Boot version is 1.3.4 and latest OHCI patches are available. USB: OHCI pci controller (1033, 0035) found @(0:19:0) OHCI regs address 0x8002 scanning bus for devices... ERROR: CTL:TIMEOUT

[U-Boot] [PATCH v2 1/8] kmp204x: Add support for the unit LEDs

2014-05-02 Thread Valentin Longchamp
From: Stefan Bigler stefan.big...@keymile.com The unit LEDs are managed by the QRIO CPLD. This patch adds support for accessing these LEDs in the QRIO. The LEDs then are set to a correct boot state: - UNIT-LED is red - BOOT-LED is on. Signed-off-by: Stefan Bigler stefan.big...@keymile.com

[U-Boot] [PATCH v2 2/8] kmp204x: handle dip-switch for factory settings

2014-05-02 Thread Valentin Longchamp
From: Stefan Bigler stefan.big...@keymile.com Add readout of dip-switch to revert to factory settings. If one or more dip-switch are set, launch bank 0 that contains the bootloader to do the required action. Signed-off-by: Stefan Bigler stefan.big...@keymile.com Signed-off-by: Valentin Longchamp

Re: [U-Boot] U-Boot 1.3.4 ERROR: CTL:TIMEOUT

2014-05-02 Thread Wolfgang Denk
Dear Sergio, In message 1748b2cb79cd4c4c98b0b27ea13787cd1fe06...@sgsimbx007.nsn-intra.net you wrote: I'm getting the following error message, which leads to a continuous reset loop in my CPU (MPC8548). U-Boot version is 1.3.4 and latest OHCI patches are available. Well, U-Boot v1.3.4 is 6

Re: [U-Boot] [PATCH v4 4/9] sunxi: add sun7i cpu, board and start of day support

2014-05-02 Thread Marc Zyngier
Hi Ian, On 2014-05-01 19:40, Ian Campbell wrote: This patch adds generic board, start of day and basic build system support for the Allwinner A20 (sun7i) processor. This code will not been compiled until the build is hooked up in a later patch. It has been split out to keep the patches

Re: [U-Boot] [PATCH 1/2] ARM: highbank: use config_distro_defaults.h

2014-05-02 Thread Albert ARIBAUD
Hi Rob, On Thu, 10 Apr 2014 16:17:30 -0500, Rob Herring robherri...@gmail.com wrote: From: Rob Herring r...@kernel.org Adapt highbank to use config_distro_defaults.h and remove the redundant defines. Signed-off-by: Rob Herring r...@kernel.org --- include/configs/highbank.h | 25

Re: [U-Boot] [PATCH 2/2] ARM: highbank: use default prompt

2014-05-02 Thread Albert ARIBAUD
Hi Rob, On Thu, 10 Apr 2014 16:17:31 -0500, Rob Herring robherri...@gmail.com wrote: From: Rob Herring r...@kernel.org Since highbank is actually shared between Highbank and Midway platforms, remove the Highbank name from the prompt and use the default. Signed-off-by: Rob Herring

Re: [U-Boot] [PATCH v4 4/9] sunxi: add sun7i cpu, board and start of day support

2014-05-02 Thread Ian Campbell
On Fri, 2014-05-02 at 10:45 +0100, Marc Zyngier wrote: #define SUNXI_SRAM_D_BASE 0x01c0 +#define SUNXI_SRAM_B_BASE 0x01c0 /* 64 kiB (secure) */ Can we please fix these last two values which are obviously wrong (at least on sun7i, they point to the SRAM

Re: [U-Boot] Possible race condition when accessing SPI NOR Flash ?

2014-05-02 Thread Mark Marshall
Hi. I now fell a bit guilty. I had this same problem a while ago, and I haven't ever really pushed the fix. In fact, I ended up rewriting most of drivers/spi/spi-fsl-espi.c, and that's really the problem - I can only test about two boards from over 20, so I know that nobody will take my

[U-Boot] [PATCH 0/6] FPGA changes

2014-05-02 Thread Michal Simek
Hi, This series is based on FPGA changes I have sent http://lists.denx.de/pipermail/u-boot/2014-April/178204.html Series contain fpga chagnes for cleaning up full and partial bitstream loading. Also compressed bitstreams are supported. Bitstream detection was done based on device size but it

[U-Boot] [PATCH 2/6] fpga: Guard the LOADMK functionality with CMD_FPGA_LOADMK

2014-05-02 Thread Michal Simek
From: Siva Durga Prasad Paladugu siva.durga.palad...@xilinx.com Guard the LOADMK functionality with config to provide an option to enable or disable it. Enable it for all platforms in mainline which enable CONFIG_CMD_FPGA. Signed-off-by: Siva Durga Prasad Paladugu siva...@xilinx.com

[U-Boot] [PATCH 1/6] configs: iocom: Fix typo on CMD_FPGA command

2014-05-02 Thread Michal Simek
Fix typo in CMD_FPGA command enabling. Signed-off-by: Michal Simek michal.si...@xilinx.com --- include/configs/iocon.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/configs/iocon.h b/include/configs/iocon.h index f36c2a3..b32095c 100644 ---

[U-Boot] [PATCH 3/6] fpga: Define bitstream type based on command selection

2014-05-02 Thread Michal Simek
Clean up partial, full and compressed bitstream handling. U-Boot supports full bitstream loading and partial based on detection which is not 100% correct. Extending fpga_load/fpga_loadbitstream() with one more argument which stores bitstream type. Signed-off-by: Michal Simek

[U-Boot] [PATCH 4/6] fpga: Add support to load partial bitstreams

2014-05-02 Thread Michal Simek
Added support to load partial bitstreams. The partial bitstreams can be loaded using the below commands Commands: fpga loadp dev addr size fpga loadbp dev addr size The full bit streams can be loaded using the old commands(fpga load and fpga loadb). Signed-off-by: Siva Durga Prasad Paladugu

[U-Boot] [PATCH 6/6] zynq: Enable fpga loadp and loadbp commands

2014-05-02 Thread Michal Simek
Use new fpga commands for loading partial bitstreams. Signed-off-by: Michal Simek michal.si...@xilinx.com --- include/configs/zynq-common.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/configs/zynq-common.h b/include/configs/zynq-common.h index acf1bfd..af420d1 100644 ---

[U-Boot] [PATCH 5/6] fpga: zynqpl: Clean partial bitstream handling

2014-05-02 Thread Michal Simek
Do not do partial bitstream detection based on bitstream size and use bitstream_type argument which is passed from the fpga core. Signed-off-by: Michal Simek michal.si...@xilinx.com --- drivers/fpga/zynqpl.c | 18 ++ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git

Re: [U-Boot] [linux-sunxi] Re: [PATCH v4 4/9] sunxi: add sun7i cpu, board and start of day support

2014-05-02 Thread Marc Zyngier
On 2014-05-02 13:31, Ian Campbell wrote: On Fri, 2014-05-02 at 10:45 +0100, Marc Zyngier wrote: #define SUNXI_SRAM_D_BASE 0x01c0 +#define SUNXI_SRAM_B_BASE 0x01c0 /* 64 kiB (secure) */ Can we please fix these last two values which are obviously wrong (at least

[U-Boot] [RFC PATCH] fpga: Added support to load bit stream from SD/MMC

2014-05-02 Thread Michal Simek
From: Siva Durga Prasad Paladugu siva.durga.palad...@xilinx.com Added support to load a bitstream image in chunks by reading it in chunks from SD/MMC. Command format: loadfs [dev] [address] [image size] [blocksize] interface [dev[:part]] filename Example: fpga loadfs 0 100 3dbafc 4000

[U-Boot] [PATCH] mmc: omap_hsmmc: add adma support

2014-05-02 Thread Balaji T K
MMC instance 1 and 2 is capable of ADMA in omap4, omap5. Add support for ADMA and enable ADMA for read/write to improve mmc throughput. Signed-off-by: Balaji T K balaj...@ti.com --- arch/arm/include/asm/omap_mmc.h | 14 +++ drivers/mmc/omap_hsmmc.c| 163

Re: [U-Boot] U-Boot, dm, ubi: struct device is declared twice

2014-05-02 Thread Simon Glass
pollux:u-boot hs [20140502] $ for a not yet mainlined imx6 board using UBI/UBIFS on nand. I am currently sync current Linux MTD/UBI and UBIFS code to U-Boot, but I think this error should pop up for all boards using DM and UBI ... In the ideal case, we should use the same struct device

Re: [U-Boot] [PATCH 03/11] kconfig: add board Kconfig and defconfig files

2014-05-02 Thread Timur Tabi
On Thu, Apr 24, 2014 at 12:04 AM, Masahiro Yamada yamad...@jp.panasonic.com wrote: diff --git a/board/freescale/p1022ds/Kconfig b/board/freescale/p1022ds/Kconfig new file mode 100644 index 000..773ea52 --- /dev/null +++ b/board/freescale/p1022ds/Kconfig @@ -0,0 +1,251 @@ +if

Re: [U-Boot] Pull request: u-boot-sh/master

2014-05-02 Thread Tom Rini
On Fri, May 02, 2014 at 05:16:50AM +0900, Nobuhiro Iwamatsu wrote: Dear Tom Rini. Please pull u-boot-sh master branch. The following changes since commit 8854070784450f7ade382c5792b2721fbe27315a: Merge branch 'master' of git://www.denx.de/git/u-boot-arc (2014-04-25 15:08:43 -0400)

Re: [U-Boot] [PATCH 03/11] kconfig: add board Kconfig and defconfig files

2014-05-02 Thread Stephen Warren
On 05/01/2014 04:48 PM, Scott Wood wrote: On Mon, 2014-04-28 at 11:47 -0600, Stephen Warren wrote: I guess the main issue I see here is that all the HW-configuration needs to be repeated in seaboard_defconfig and spl/seaboard_defconfig. (As an aside, if there's nothing special about

Re: [U-Boot] [PATCH v4 10/10] ARM: HYP/non-sec/PSCI: emit DT nodes

2014-05-02 Thread Jon Loeliger
On Sat, Apr 26, 2014 at 7:17 AM, Marc Zyngier marc.zyng...@arm.com wrote: diff --git a/arch/arm/cpu/armv7/virt-dt.c b/arch/arm/cpu/armv7/virt-dt.c new file mode 100644 index 000..0b0d6a7 --- /dev/null +++ b/arch/arm/cpu/armv7/virt-dt.c + +static int fdt_psci(void *fdt) +{ +#ifdef

Re: [U-Boot] [PATCH 2/2] omap3_beagle: xM A/B validate new dtb exits in file system

2014-05-02 Thread Robert Nelson
On Fri, May 2, 2014 at 3:15 PM, robertcnelson robertcnel...@gmail.com wrote: From: Robert Nelson robertcnel...@gmail.com Fall back to previous dtb used when omap3-beagle-xm-ab.dtb doesn't exist in file system Signed-off-by: Robert Nelson robertcnel...@gmail.com CC: Tom Rini tr...@ti.com

[U-Boot] [PATCH 1/2] omap3_beagle: use omap3-beagle-xm-ab.dtb for the xM AB revision

2014-05-02 Thread robertcnelson
From: Robert Nelson robertcnel...@gmail.com As of v3.15-rc3, omap3-beagle-xm-ab.dtb now exists with the usb hub (ehci) enabled. For older kernels versions, cherry pick from mainline: ef78f3869c37c480f1d58462a760a40dabc823f4 Signed-off-by: Robert Nelson robertcnel...@gmail.com CC: Tom Rini

[U-Boot] [PATCH 2/2] omap3_beagle: xM A/B validate new dtb exits in file system

2014-05-02 Thread robertcnelson
From: Robert Nelson robertcnel...@gmail.com Fall back to previous dtb used when omap3-beagle-xm-ab.dtb doesn't exist in file system Signed-off-by: Robert Nelson robertcnel...@gmail.com CC: Tom Rini tr...@ti.com CC: Nishanth Menon n...@ti.com --- include/configs/omap3_beagle.h | 8 +++- 1

Re: [U-Boot] [PATCH v4 06/10] ARM: HYP/non-sec: allow relocation to secure RAM

2014-05-02 Thread Jon Loeliger
Mark, I finally have all this working for me on an A9 system too! However, there were a few things that I had to change a bit. For example, by CPUs will always come out of reset at 0x0 and I do not have the ability to set their first-fetch address to anything else. To accommodate this, I need

[U-Boot] [PATCH] WIP: tegra: Use driver model for GPIO driver

2014-05-02 Thread Simon Glass
This is an implementation of GPIOs for Tegra that uses driver model. It is written for comment and need work and testing before it is ready to use. Specific points for discussion: 1. I can't find much in the way of GPIO device tree bindings, so ended up just creating the GPIO devices 3. Driver

Re: [U-Boot] [PATCH 02/12] SPL: NAND: add support for mxs nand

2014-05-02 Thread Scott Wood
On Mon, 2014-04-28 at 13:17 -0700, Tim Harvey wrote: +static void mxs_nand_command(struct mtd_info *mtd, unsigned int command, + int column, int page_addr) +{ + register struct nand_chip *chip = mtd-priv; + int ctrl = NAND_NCE | NAND_CTRL_CLE |

Re: [U-Boot] [PATCH v4 06/10] ARM: HYP/non-sec: allow relocation to secure RAM

2014-05-02 Thread Jon Loeliger
Mark, In your nonsec_init code, you suggest this change: + mrc p15, 0, r0, c1, c1, 2 movwr1, #0x3fff - movtr1, #0x0006 - mcr p15, 0, r1, c1, c1, 2 @ NSACR = all copros to non-sec + movtr1, #0x0004 + orr r0, r0, r1 +

Re: [U-Boot] [PATCH] WIP: tegra: Use driver model for GPIO driver

2014-05-02 Thread Stephen Warren
On 05/02/2014 02:51 PM, Simon Glass wrote: This is an implementation of GPIOs for Tegra that uses driver model. It is written for comment and need work and testing before it is ready to use. Specific points for discussion: 1. I can't find much in the way of GPIO device tree bindings, so

Re: [U-Boot] [Patch v4 1/2] common/board_f: Initialized global data for generic board

2014-05-02 Thread York Sun
On 05/01/2014 07:45 PM, Simon Glass wrote: On 1 May 2014 16:00, York Sun york...@freescale.com wrote: Some platforms (tested on mpc85xx, mpc86xx) use global data before calling function baord_inti_f(). The data should not be cleared later. Any arch which uses global data in generic board

Re: [U-Boot] [Patch v4 1/2] common/board_f: Initialized global data for generic board

2014-05-02 Thread Scott Wood
On Fri, 2014-05-02 at 17:14 -0700, York Sun wrote: On 05/01/2014 07:45 PM, Simon Glass wrote: On 1 May 2014 16:00, York Sun york...@freescale.com wrote: Some platforms (tested on mpc85xx, mpc86xx) use global data before calling function baord_inti_f(). The data should not be cleared later.

[U-Boot] [Patch v5 1/2] common/board_f: Initialized global data for generic board

2014-05-02 Thread York Sun
Some platforms (tested on mpc85xx, mpc86xx) use global data before calling function baord_inti_f(). The data should not be cleared later. Any arch which uses global data in generic board board_init_f() should define CONFIG_SYS_GENERIC_GLOBAL_DATA. Signed-off-by: York Sun york...@freescale.com CC:

[U-Boot] [Patch v5 2/2] common/board_f: Fix size variable

2014-05-02 Thread York Sun
DRAM size should use 64-bit variable when the size could be more than 4GB. Caught and verified on P4080DS with 4GB DDR. Signed-off-by: York Sun york...@freescale.com --- Change log v5: no change since v1 common/board_f.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [U-Boot] [PATCH] WIP: tegra: Use driver model for GPIO driver

2014-05-02 Thread Simon Glass
Hi Stephen, On 2 May 2014 16:43, Stephen Warren swar...@wwwdotorg.org wrote: On 05/02/2014 02:51 PM, Simon Glass wrote: This is an implementation of GPIOs for Tegra that uses driver model. It is written for comment and need work and testing before it is ready to use. Specific points for