[U-Boot] [PATCH][v2] driver/mtd: Use generic timer API for FSL IFC, eLBC

2014-09-23 Thread Prabhakar Kushwaha
Freescale's flash control driver is using architecture specific timer API i.e. usec2ticks Replace usec2ticks with get_timer() (generic timer API) Signed-off-by: Prabhakar Kushwaha prabha...@freescale.com --- Changes for v2: updated timeout time to 10ms drivers/mtd/nand/fsl_elbc_nand.c | 8

Re: [U-Boot] [PATCH V3] ARM: mx6: Add support for Kosagi Novena

2014-09-23 Thread Nikolay Dimitrov
Hi Marek, On 09/21/2014 04:44 PM, Marek Vasut wrote: diff --git a/board/kosagi/novena/Makefile b/board/kosagi/novena/Makefile new file mode 100644 index 000..f67bbc9 --- /dev/null +++ b/board/kosagi/novena/Makefile @@ -0,0 +1,11 @@ +# +# Copyright (C) 2014 Marek Vasutma...@denx.de +# +#

Re: [U-Boot] [PATCH V3] ARM: mx6: Add support for Kosagi Novena

2014-09-23 Thread Nikolay Dimitrov
Hi Marek, I checked the I2C stuff, didn't saw any major issues. Here are a couple of comments for possible improvements: On 09/21/2014 04:44 PM, Marek Vasut wrote: +/* + * I2C + */ +/* I2C1, RAM */ +struct i2c_pads_info i2c_pad_info0 = { I can suggest to reword the comment as: I2C1: DDR3

Re: [U-Boot] Newbie question

2014-09-23 Thread Jeroen Hofstee
Hello Donald, On 23-09-14 05:03, Donald Dade wrote: I recently bought a Jetson TK1 with the intent of learning all about ARM board bring up; essentially everything that happens between the reset vector and the spawning of the init process (in Linux). I've got a good understanding of this for

[U-Boot] [PATCH RESEND] cmd_nand: Update (nand_info_t*)nand after arg_off(_size) call

2014-09-23 Thread Rostislav Lisovy
The arg_off() and arg_off_size() update the 'current NAND device' variable (dev). This is then used when assigning the (nand_info_t*)nand value. Place the assignment after the arg_off(_size) calls to prevent using incorrect (nand_info_t*) nand value. Signed-off-by: Rostislav Lisovy

[U-Boot] [PATCH RESEND] mtd: nand: am335x: Fix 'bit-flip' errors in SPL

2014-09-23 Thread Rostislav Lisovy
OMAP GPMC driver used with some NAND Flash devices (e.g. Spansion S34ML08G1) causes that U-boot shows hundreds of 'nand: bit-flip corrected' error messages. Possible cause was discussed in the mailinglist thread: http://lists.denx.de/pipermail/u-boot/2014-April/177508.html The issue was partially

Re: [U-Boot] [PATCH fix for v2014.10 2/5] usb: kbd: On a usb reset call usb_kbd_deregister() before calling usb_stop()

2014-09-23 Thread Hans de Goede
Hi, On 09/22/2014 02:01 PM, Marek Vasut wrote: On Saturday, September 20, 2014 at 04:54:35 PM, Hans de Goede wrote: We need to call usb_kbd_deregister() before calling usb_stop(). usbkbd's stdio_dev-priv points to the usb_device, and usb_kbd_testc dereferences usb_device-privptr. usb_stop

Re: [U-Boot] [PATCH 3/7] ARM: sun6i: Add support for the new power control module found on the A31

2014-09-23 Thread Hans de Goede
Hi, On 09/22/2014 04:07 AM, Chen-Yu Tsai wrote: Hi, On Mon, Sep 22, 2014 at 1:05 AM, Ian Campbell i...@hellion.org.uk wrote: On Mon, 2014-09-08 at 21:28 +0800, Chen-Yu Tsai wrote: From: Oliver Schinagl oli...@schinagl.nl To setup clocks and control voltages. perhaps add ... For P2WI and

[U-Boot] [PATCH V4] ARM: mx6: Add support for Kosagi Novena

2014-09-23 Thread Marek Vasut
Add support for the Kosagi Novena board. Currently supported are: - I2C busses - FEC Ethernet - MMC0, MMC1, Booting from MMC - SATA - USB ports - USB Ethernet Signed-off-by: Marek Vasut ma...@denx.de --- arch/arm/Kconfig | 4 + board/kosagi/novena/Kconfig | 23 ++

Re: [U-Boot] [WIP PATCH 0/2] arm: socfpga: Add Cadence QSPI support

2014-09-23 Thread Chin Liang See
On Mon, 2014-09-22 at 16:28 +0200, ZY - sr wrote: Hi SoCFPGA-developers! I'm currently using Marek's latest SoCFPGA port. This works really great so far. Thank you all for this effort. What I need additionally is SPI NOR flash support. So I talked a bit with Marek and tried to port

[U-Boot] [PATCH] checkpatch: remove unnecessary + after {8,8}

2014-09-23 Thread Marek Vasut
From: Joe Perches j...@perches.com Pick the following commit from Linux kernel: commit 66cb4ee0e52ca721f609fd5eec16187189ae5fda Author: Joe Perches j...@perches.com Date: Wed Sep 10 09:40:47 2014 +1000 checkpatch: remove unnecessary + after {8,8} There's a useless + use that needs to be

[U-Boot] [PATCH] odroid: clock: set aclk_cores to 200MHz

2014-09-23 Thread Przemyslaw Marczak
This change fixes suspend/resume issue in the kernel caused by the wrong 'aclk_cores' clock value expected by the kernel. Signed-off-by: Przemyslaw Marczak p.marc...@samsung.com Cc: Minkyu Kang mk7.k...@samsung.com --- board/samsung/odroid/odroid.c | 4 ++-- 1 file changed, 2 insertions(+), 2

Re: [U-Boot] [WIP PATCH 0/2] arm: socfpga: Add Cadence QSPI support

2014-09-23 Thread Stefan Roese
Hi Chin Liang, On 23.09.2014 12:20, Chin Liang See wrote: Perhaps somebody from Altera with deeper Cadence SPI controller knowledge can take a quick look at this. Could be a pretty obvious mistake that I made while copying / porting the code. Or something else thats simply missing. Any hints

[U-Boot] [PATCH] i2c: mxs: Add I2C multibus support

2014-09-23 Thread Marek Vasut
The i.MX28 has two I2C IP blocks, but the MXS I2C driver is hard-coded to use the I2C block 0 . Add multibus support so we can use both I2C busses as seen fit. Signed-off-by: Marek Vasut ma...@denx.de Cc: Stefano Babic sba...@denx.de --- drivers/i2c/mxs_i2c.c | 47

[U-Boot] [PATCH 1/4] arm: m28evk: Test if bootscript exists before loading it

2014-09-23 Thread Marek Vasut
Make sure the boot.scr exists on the card before loading it from the card to avoid annoying message on the console. Signed-off-by: Marek Vasut ma...@denx.de Cc: Stefano Babic sba...@denx.de --- include/configs/m28evk.h | 2 ++ 1 file changed, 2 insertions(+) diff --git

[U-Boot] [PATCH 2/4] arm: m53evk: Test if bootscript exists before loading it

2014-09-23 Thread Marek Vasut
Make sure the boot.scr exists on the card before loading it from the card to avoid annoying message on the console. Signed-off-by: Marek Vasut ma...@denx.de Cc: Stefano Babic sba...@denx.de --- include/configs/m53evk.h | 2 ++ 1 file changed, 2 insertions(+) diff --git

[U-Boot] [PATCH 3/4] arm: m28evk: Enable FS_GENERIC

2014-09-23 Thread Marek Vasut
Enable the CONFIG_CMD_FS_GENERIC on m28evk to avoid per-fs specific commands and tweak the environment to cater for this new option. Signed-off-by: Marek Vasut ma...@denx.de Cc: Stefano Babic sba...@denx.de --- include/configs/m28evk.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)

[U-Boot] [PATCH 4/4] arm: m53evk: Enable FS_GENERIC

2014-09-23 Thread Marek Vasut
Enable the CONFIG_CMD_FS_GENERIC on m53evk to avoid per-fs specific commands and tweak the environment to cater for this new option. Signed-off-by: Marek Vasut ma...@denx.de Cc: Stefano Babic sba...@denx.de --- include/configs/m53evk.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)

Re: [U-Boot] Pul request: u-boot-arm/master

2014-09-23 Thread Tom Rini
On Sun, Sep 21, 2014 at 07:49:44PM +0200, Albert ARIBAUD wrote: Hi Tom, The following changes since commit 9170818a4e004af7893fa0113f6e5b4afafded55: kconfiglib: change SPDX-License-Identifier to ISC (2014-09-17 21:03:18 -0400) are available in the git repository at:

Re: [U-Boot] [PATCH] i2c: mxs: Add I2C multibus support

2014-09-23 Thread Heiko Schocher
Hello Marek, Am 23.09.2014 13:15, schrieb Marek Vasut: The i.MX28 has two I2C IP blocks, but the MXS I2C driver is hard-coded to use the I2C block 0 . Add multibus support so we can use both I2C busses as seen fit. Signed-off-by: Marek Vasutma...@denx.de Cc: Stefano Babicsba...@denx.de ---

Re: [U-Boot] Call for participation in the U-Boot Mini Summit 2014

2014-09-23 Thread Alexey Brodkin
Hi Marek, On Fri, 2014-09-19 at 06:27 +0200, Marek Vasut wrote: On Thursday, September 18, 2014 at 10:52:12 AM, Alexey Brodkin wrote: If that's an introduction to porting U-Boot, it might bring to light some new ideas about the porting process and also point out some obstacles we were not

Re: [U-Boot] [PATCH 5/7] ARM: sunxi-mmc: Add mmc support for sun6i / A31

2014-09-23 Thread Chen-Yu Tsai
On Mon, Sep 22, 2014 at 10:11 AM, Chen-Yu Tsai w...@csie.org wrote: On Mon, Sep 22, 2014 at 2:44 AM, Ian Campbell i...@hellion.org.uk wrote: On Mon, 2014-09-08 at 21:28 +0800, Chen-Yu Tsai wrote: From: Hans de Goede hdego...@redhat.com Signed-off-by: Hans de Goede hdego...@redhat.com

Re: [U-Boot] [PATCH 5/7] ARM: sunxi-mmc: Add mmc support for sun6i / A31

2014-09-23 Thread Ian Campbell
On Tue, 2014-09-23 at 19:50 +0800, Chen-Yu Tsai wrote: Ian, include/configs/sun?i.h and sunxi-common.h only have config related #defines. Are we sure this is the place for something like register offsets? I guess not ;-) For reference, drivers/i2c/mvtwsi.c has sunxi specific register

Re: [U-Boot] [PATCH 5/7] ARM: sunxi-mmc: Add mmc support for sun6i / A31

2014-09-23 Thread Chen-Yu Tsai
On Tue, Sep 23, 2014 at 7:54 PM, Ian Campbell i...@hellion.org.uk wrote: On Tue, 2014-09-23 at 19:50 +0800, Chen-Yu Tsai wrote: Ian, include/configs/sun?i.h and sunxi-common.h only have config related #defines. Are we sure this is the place for something like register offsets? I guess not

Re: [U-Boot] [PATCH V3] ARM: mx6: Add support for Kosagi Novena

2014-09-23 Thread Marek Vasut
On Monday, September 22, 2014 at 11:38:19 PM, Nikolay Dimitrov wrote: Hi Marek, I checked the I2C stuff, didn't saw any major issues. Here are a couple of comments for possible improvements: On 09/21/2014 04:44 PM, Marek Vasut wrote: +/* + * I2C + */ +/* I2C1, RAM */ +struct

Re: [U-Boot] [PATCH V3] ARM: mx6: Add support for Kosagi Novena

2014-09-23 Thread Marek Vasut
On Monday, September 22, 2014 at 08:24:05 PM, Nikolay Dimitrov wrote: Hi Marek, On 09/21/2014 04:44 PM, Marek Vasut wrote: diff --git a/board/kosagi/novena/Makefile b/board/kosagi/novena/Makefile new file mode 100644 index 000..f67bbc9 --- /dev/null +++

Re: [U-Boot] [PATCH fix for v2014.10 2/5] usb: kbd: On a usb reset call usb_kbd_deregister() before calling usb_stop()

2014-09-23 Thread Marek Vasut
On Tuesday, September 23, 2014 at 11:10:34 AM, Hans de Goede wrote: Hi, On 09/22/2014 02:01 PM, Marek Vasut wrote: On Saturday, September 20, 2014 at 04:54:35 PM, Hans de Goede wrote: We need to call usb_kbd_deregister() before calling usb_stop(). usbkbd's stdio_dev-priv points to the

Re: [U-Boot] [PATCH v1] fastboot: handle flash write to GPT partition

2014-09-23 Thread Marek Vasut
On Monday, September 22, 2014 at 11:29:10 PM, Steve Rae wrote: Implement a feature to allow fastboot to write the downloaded image to the space reserved for the Protective MBR and the Primary GUID Partition Table. Signed-off-by: Steve Rae s...@broadcom.com Please CC Lukasz ... Best

Re: [U-Boot] [PATCH 5/7] ARM: sunxi-mmc: Add mmc support for sun6i / A31

2014-09-23 Thread Ian Campbell
On Tue, 2014-09-23 at 20:07 +0800, Chen-Yu Tsai wrote: On Tue, Sep 23, 2014 at 7:54 PM, Ian Campbell i...@hellion.org.uk wrote: On Tue, 2014-09-23 at 19:50 +0800, Chen-Yu Tsai wrote: Ian, include/configs/sun?i.h and sunxi-common.h only have config related #defines. Are we sure this is the

Re: [U-Boot] [PATCH fix for v2014.10 2/5] usb: kbd: On a usb reset call usb_kbd_deregister() before calling usb_stop()

2014-09-23 Thread Hans de Goede
Hi, On 09/23/2014 02:15 PM, Marek Vasut wrote: On Tuesday, September 23, 2014 at 11:10:34 AM, Hans de Goede wrote: Hi, On 09/22/2014 02:01 PM, Marek Vasut wrote: On Saturday, September 20, 2014 at 04:54:35 PM, Hans de Goede wrote: We need to call usb_kbd_deregister() before calling

Re: [U-Boot] u-boot-socfpga repository

2014-09-23 Thread Tom Rini
On Fri, Sep 19, 2014 at 04:54:05AM -0500, Chin Liang See wrote: Hi guys, On Wed, 2014-09-17 at 06:54 -0500, Chin Liang See wrote: On Tue, 2014-09-16 at 11:56 +0200, ZY - pavel wrote: Hi! I'd be interested in maintaining u-boot-socfpga repository. So far, we don't have

Re: [U-Boot] u-boot-socfpga repository

2014-09-23 Thread Wolfgang Denk
Dear Tom, In message 20140923125419.GB25506@bill-the-cat you wrote: OK, I've thought about this a lot. I think the best way forward is to have a new tree on git.denx.de, u-boot-socfpga that Marek will run for the v2014.10 merge window. This will give the Altera team time to get up to

Re: [U-Boot] u-boot-socfpga repository

2014-09-23 Thread Tom Rini
On Tue, Sep 23, 2014 at 03:43:02PM +0200, Wolfgang Denk wrote: Dear Tom, In message 20140923125419.GB25506@bill-the-cat you wrote: OK, I've thought about this a lot. I think the best way forward is to have a new tree on git.denx.de, u-boot-socfpga that Marek will run for the v2014.10

Re: [U-Boot] [PATCH] i2c: mxs: Add I2C multibus support

2014-09-23 Thread Otavio Salvador
On Tue, Sep 23, 2014 at 8:48 AM, Heiko Schocher h...@denx.de wrote: Hello Marek, Am 23.09.2014 13:15, schrieb Marek Vasut: The i.MX28 has two I2C IP blocks, but the MXS I2C driver is hard-coded to use the I2C block 0 . Add multibus support so we can use both I2C busses as seen fit.

[U-Boot] [WIP PATCH 0/2 v2] arm: socfpga: Add Cadence QSPI support

2014-09-23 Thread Stefan Roese
Hi SoCFPGA-developers! So this is my 2nd posting regarding the Candence SPI driver on SoCFPGA. I got it working now. But only with one quick-hack, as you can see in patch 4/4. Which disabled the dcache. Or more precise, doesn't enable it. Thanks to Michael who pointed this out. Since I really

[U-Boot] [WIP PATCH 4/4 v2] arm: socfpga: Don't enable dcache (because of cadence SPI driver problem)

2014-09-23 Thread Stefan Roese
The Cadence SPI driver currently has some problems when the dcache is enabled. As a work-around until this problem is fixed in the SPI driver, lets not enable the dcache on the socfpga platforms. As its also done in the rocketboards version. Signed-off-by: Stefan Roese s...@denx.de Cc: Chin Liang

[U-Boot] [WIP PATCH 3/4 v2] arm: socfpga: Don't define CONFIG_SPI_FLASH_QUAD

2014-09-23 Thread Stefan Roese
This define is currently not supported in mainline U-Boot. So don't define it. Otherwise the drivers doesn't work correctly. Signed-off-by: Stefan Roese s...@denx.de Cc: Chin Liang See cl...@altera.com Cc: Dinh Nguyen dingu...@altera.com Cc: Vince Bridgers vbrid...@altera.com Cc: Marek Vasut

[U-Boot] [WIP PATCH 1/4 v2] spi: Add Cadence QSPI driver used by SoCFPGA

2014-09-23 Thread Stefan Roese
This driver is copied directly from the Altera Rockerboard.org U-Boot repository. I used this git tag: ACDS14.0.1_REL_GSRD_RC2. With minimal changes to enable compilation in mainline U-Boot. Signed-off-by: Stefan Roese s...@denx.de Cc: Chin Liang See cl...@altera.com Cc: Dinh Nguyen

[U-Boot] [WIP PATCH 2/4 v2] arm: socfpga: Add Cadence QSPI support to config header

2014-09-23 Thread Stefan Roese
Signed-off-by: Stefan Roese s...@denx.de Cc: Chin Liang See cl...@altera.com Cc: Dinh Nguyen dingu...@altera.com Cc: Vince Bridgers vbrid...@altera.com Cc: Marek Vasut ma...@denx.de Cc: Pavel Machek pa...@denx.de Cc: Michael Trimarchi mich...@amarulasolutions.com ---

Re: [U-Boot] u-boot-socfpga repository

2014-09-23 Thread Wolfgang Denk
Dear Tom, In message 20140923134613.GC25506@bill-the-cat you wrote: What about the u-boot-uniphier repository? I thought that was done already, oops, so yes, that's fine too. Done now, thanks. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk

Re: [U-Boot] Please pull u-boot-x86.git branch misc

2014-09-23 Thread Tom Rini
On Tue, Sep 23, 2014 at 12:10:41PM +0900, Masahiro YAMADA wrote: 2014-09-23 2:26 GMT+09:00 Simon Glass s...@chromium.org: Hi Masahiro, On 22 September 2014 11:13, Masahiro YAMADA yamad...@jp.panasonic.com wrote: 2014-09-23 0:33 GMT+09:00 Simon Glass s...@chromium.org:

[U-Boot] [PATCH 2/4] OMAP5+: sata/scsi: Implement scsi_init()

2014-09-23 Thread Roger Quadros
On OMAP platforms, SATA controller provides the SCSI subsystem so implement scsi_init(). Get rid of the unnecessary sata_init() call from dra7xx-evm and omap5-uevm board files. Signed-off-by: Roger Quadros rog...@ti.com --- arch/arm/cpu/armv7/omap-common/sata.c | 6 ++ board/ti/dra7xx/evm.c

[U-Boot] [PATCH 1/4] ahci: Don't start command DMA engine before buffers are set

2014-09-23 Thread Roger Quadros
The DMA/FIS buffers are set in ahci_port_start() which is called after ahci_host_init(). So don't start the DMA engine here (i.e. don't set FIS_RX) This fixes the following error at kernel boot on OMAP platforms (e.g. DRA7x) WARNING: CPU: 0 PID: 0 at drivers/bus/omap_l3_noc.c:147

[U-Boot] [PATCH 4/4] common: spl_sata: perform SCSI scan before getting device

2014-09-23 Thread Roger Quadros
At least on OMAP, init_sata() no longer performs scsi_scan() so we must do it explicitly here. Cc: Dan Murphy dmur...@ti.com Signed-off-by: Roger Quadros rog...@ti.com --- common/spl/spl_sata.c | 1 + 1 file changed, 1 insertion(+) diff --git a/common/spl/spl_sata.c b/common/spl/spl_sata.c

[U-Boot] [PATCH 0/4] sata: ahci: fix OMAP L3 error

2014-09-23 Thread Roger Quadros
Hi, Patch 1 fixes a bug in the AHCI code that was causing L3 errors on OMAP platforms. Patches 3, 4 and 5 clean up the SATA/SCSI implementation for OMAP platorms. cheers, -roger --- Roger Quadros (4): ahci: Don't start command DMA engine before buffers are set OMAP5+: sata/scsi: Implement

[U-Boot] [PATCH 3/4] ARM: OMAP5+: sata: Move scsi_scan() to the right place

2014-09-23 Thread Roger Quadros
scsi_scan() must be called as part of scsi_init() and not as part of sata_init(). Signed-off-by: Roger Quadros rog...@ti.com --- arch/arm/cpu/armv7/omap-common/sata.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/cpu/armv7/omap-common/sata.c

Re: [U-Boot] [WIP PATCH 4/4 v2] arm: socfpga: Don't enable dcache (because of cadence SPI driver problem)

2014-09-23 Thread Marek Vasut
On Tuesday, September 23, 2014 at 04:08:32 PM, Stefan Roese wrote: The Cadence SPI driver currently has some problems when the dcache is enabled. As a work-around until this problem is fixed in the SPI driver, lets not enable the dcache on the socfpga platforms. As its also done in the

Re: [U-Boot] [PATCH] i2c: mxs: Add I2C multibus support

2014-09-23 Thread Marek Vasut
On Tuesday, September 23, 2014 at 03:49:27 PM, Otavio Salvador wrote: On Tue, Sep 23, 2014 at 8:48 AM, Heiko Schocher h...@denx.de wrote: Hello Marek, Am 23.09.2014 13:15, schrieb Marek Vasut: The i.MX28 has two I2C IP blocks, but the MXS I2C driver is hard-coded to use the I2C block 0

Re: [U-Boot] [PATCH 00/51] arm: socfpga: Usability fixes

2014-09-23 Thread Stefan Roese
On 21.09.2014 14:58, Marek Vasut wrote: This entire series is the second stab at making SoCFPGA usable with mainline U-Boot again. There are much fewer bits missing than in the last series, more cleanup happened and bugs were fixed. This allows me to use mainline U-Boot on my SoCFPGA systems.

Re: [U-Boot] [PATCH] i2c: mxs: Add I2C multibus support

2014-09-23 Thread Fabio Estevam
Hi Marek, On Tue, Sep 23, 2014 at 8:15 AM, Marek Vasut ma...@denx.de wrote: -void i2c_init(int speed, int slaveadd) +int i2c_set_bus_num(unsigned int bus) { + uint32_t mxs_i2c_regs; + + switch (bus) { + case 0: + mxs_i2c_regs = MXS_I2C0_BASE; +

Re: [U-Boot] [WIP PATCH 4/4 v2] arm: socfpga: Don't enable dcache (because of cadence SPI driver problem)

2014-09-23 Thread Stefan Roese
On 23.09.2014 16:32, Marek Vasut wrote: diff --git a/board/altera/socfpga/socfpga_cyclone5.c b/board/altera/socfpga/socfpga_cyclone5.c index 10f15e0..3f19d89 100644 --- a/board/altera/socfpga/socfpga_cyclone5.c +++ b/board/altera/socfpga/socfpga_cyclone5.c @@ -76,7 +76,9 @@ int

Re: [U-Boot] [WIP PATCH 4/4 v2] arm: socfpga: Don't enable dcache (because of cadence SPI driver problem)

2014-09-23 Thread Michael Trimarchi
Hi On Tue, Sep 23, 2014 at 5:20 PM, Stefan Roese s...@denx.de wrote: On 23.09.2014 16:32, Marek Vasut wrote: diff --git a/board/altera/socfpga/socfpga_cyclone5.c b/board/altera/socfpga/socfpga_cyclone5.c index 10f15e0..3f19d89 100644 --- a/board/altera/socfpga/socfpga_cyclone5.c +++

[U-Boot] [PATCH 1/2] common: Makefile: allow for spl builds with env_fat

2014-09-23 Thread Felipe Balbi
If CONFIG_SPL_BUILD and CONFIG_ENV_IS_IN_FAT are defined, u-boot spl will fail to build. Fix that. Signed-off-by: Felipe Balbi ba...@ti.com --- common/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/common/Makefile b/common/Makefile index aca0f7f..1ff7ce0 100644 ---

[U-Boot] [PATCH 2/2] arm: am43xx: switch over to CONFIG_ENV_IS_IN_FAT

2014-09-23 Thread Felipe Balbi
By using CONFIG_ENV_IS_IN_FAT it's far easier to have a private, minimal environment for e.g. booting off of network or mounting rootfs on NFS without having to modify the configuration header. Signed-off-by: Felipe Balbi ba...@ti.com --- include/configs/am43xx_evm.h | 11 +-- 1 file

Re: [U-Boot] Please pull u-boot-x86.git branch misc

2014-09-23 Thread Tom Rini
On Mon, Sep 22, 2014 at 09:33:37AM -0600, Simon Glass wrote: Hi Tom, Here are some minor fixes for sandbox, buildman and patman. The following changes since commit 9170818a4e004af7893fa0113f6e5b4afafded55: kconfiglib: change SPDX-License-Identifier to ISC (2014-09-17 21:03:18

[U-Boot] [U-boot] [Patch] ARM: keystone: clock: fix main pll ratio div definitions

2014-09-23 Thread Ivan Khoronzhuk
The definitions for div ratio supposed to be in hex and were added in dec by mistake. Signed-off-by: Ivan Khoronzhuk ivan.khoronz...@ti.com --- Based on u-boot-ti/master arch/arm/include/asm/arch-keystone/clock_defs.h | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git

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

2014-09-23 Thread Simon Glass
Hi Tom, Here are some bug fixes for dm. The following changes since commit 2a8c9c86b92a9ccee3c27286de317e19bb0530b3: Merge branch 'u-boot-ti/master' into 'u-boot-arm/master' (2014-09-21 16:56:44 +0200) are available in the git repository at: git://git.denx.de/u-boot-dm.git for you to

[U-Boot] [PATCH v3 0/15] samsung: Use common config files with Samsung boards

2014-09-23 Thread Simon Glass
This series tries to unify the Samsung board configs into a few header files for exynos5 and exynos4. 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 v3 06/15] exynos: dts: Add device tree node for cros_ec keyboard

2014-09-23 Thread Simon Glass
Add a keyboard definition so that the keyboard can be used on pit. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v3: None Changes in v2: - Add new patch to enable keyboard on pit arch/arm/dts/exynos5420-peach-pit.dts | 55 +++ 1 file changed, 55

[U-Boot] [PATCH v3 04/15] cros_ec: exynos: Use the correct tps65090 driver in each case

2014-09-23 Thread Simon Glass
Exynos 5250 boards (snow, spring) use the I2C driver but Exynos 5420 boards cannot due to a hardware design decision. Select the correct driver to use in each case. Signed-off-by: Simon Glass s...@chromium.org Tested-by: Ajay Kumar ajaykumar...@samsung.com --- Changes in v3: None Changes in v2:

[U-Boot] [PATCH v3 01/15] Exynos: Use 900MHz ARM frequency in SPL for peach_pit

2014-09-23 Thread Simon Glass
The device seems to hang in SPL if the full speed is used when booting from USB, perhaps because the PMIC has not been set to the maximum ARM core voltage yet. Slow it down to a reliable speed. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v3: None Changes in v2: - Add new patch to

[U-Boot] [PATCH v3 05/15] dm: exynos: Split out the cros_ec drivers

2014-09-23 Thread Simon Glass
With the driver model conversion we are going to be using driver model for SPI and not for I2C. This works OK so long as a board doesn't need both dm and non-dm versions of the cros_ec driver. Since pit uses SPI and snow uses I2C we need to split the configs so that only one driver is compiled for

[U-Boot] [PATCH v3 07/15] exynos: Rename -dt config files to -common

2014-09-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 v3 10/15] exynos: config: Move cros_ec and tps65090 out of smdk boards

2014-09-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 --- Changes in v3: None Changes in v2: None include/configs/exynos5-common.h| 18

[U-Boot] [PATCH v3 11/15] config: Move arndale to use common exynos5250 file

2014-09-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 --- Changes in v3: None Changes in v2: - Reduce the number of common elements to avoid needing #undefs later

[U-Boot] [PATCH v3 03/15] cros_ec: power: Add a tunnelled version of the tps65090 driver

2014-09-23 Thread Simon Glass
Unfortunately on Pit the AP has no direct access to the tps65090 but must talk through the EC (over SPI) to the EC's I2C bus. When driver model supports PMICs this will be relatively easy. In the meantime the best approach is to duplicate the driver. It will be refactored once driver model

[U-Boot] [PATCH v3 02/15] exynos5: Enable data cache

2014-09-23 Thread Simon Glass
Things run faster when the data cache is enabled, so turn it on along with the 'dcache' command. Signed-off-by: Simon Glass s...@chromium.org Tested-by: Ajay Kumar ajaykumar...@samsung.com --- Changes in v3: None Changes in v2: - Fix 'cashe' typo in commit subject include/configs/exynos5-dt.h

[U-Boot] [PATCH v3 13/15] samsung: Enable device tree for s5p_goni

2014-09-23 Thread Simon Glass
Change this board to add a device tree. This also adds a pinmux header file although it is not used as yet. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v3: - Adjust device tree file based on Robert Baldyga's example Changes in v2: - Avoid using a common file, and just add a

[U-Boot] [PATCH] sandbox: Fix README to indicate that vendor name is unset

2014-09-23 Thread Simon Glass
This brings in a additional small fix which was missed in a recent update to the README. Suggested-by: Masahiro Yamada yamad...@jp.panasonic.com Signed-off-by: Simon Glass s...@chromium.org --- board/sandbox/README.sandbox | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[U-Boot] [PATCH v3 14/15] samsung: Enable device tree for smdkc100

2014-09-23 Thread Simon Glass
Change this board to add a device tree. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v3: None Changes in v2: - Avoid using a common file, and just add a device tree - Fix device tree base addresses arch/arm/dts/Makefile | 1 + arch/arm/dts/s5pc1xx-smdkc100.dts | 29

[U-Boot] [PATCH v3 15/15] exynos: Enable pre-relocation malloc()

2014-09-23 Thread Simon Glass
Enable this feature to support driver model before relocation. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v3: None Changes in v2: None include/configs/exynos-common.h | 5 +++-- include/configs/odroid.h| 2 -- include/configs/s5p_goni.h | 5 +++--

[U-Boot] [PATCH v3 12/15] config: Move smdkv310 to use common exynos4 file

2014-09-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 --- Changes in v3: None Changes in v2: - Leave in a few configs which are not in

[U-Boot] [PATCH v3 08/15] exynos: Move common exynos settings into a common file

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

[U-Boot] [PATCH v3 09/15] exynos: Move common smdk5420 things to common file

2014-09-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 --- Changes in v3: None Changes in v2: - Leave CONFIG_SERIAL3 in the individual board files - Reduce the number of common

Re: [U-Boot] Please pull u-boot-dm.git

2014-09-23 Thread Tom Rini
On Tue, Sep 23, 2014 at 12:47:55PM -0600, Simon Glass wrote: Hi Tom, Here are some bug fixes for dm. The following changes since commit 2a8c9c86b92a9ccee3c27286de317e19bb0530b3: Merge branch 'u-boot-ti/master' into 'u-boot-arm/master' (2014-09-21 16:56:44 +0200) are available in

Re: [U-Boot] [PATCH 2/3] arm: socfpga: config: Enable USB support

2014-09-23 Thread Dinh Nguyen
On Sun, 21 Sep 2014, Marek Vasut wrote: Enable support for the DWC2 USB controller. Signed-off-by: Marek Vasut ma...@denx.de Cc: Chin Liang See cl...@altera.com Cc: Dinh Nguyen dingu...@altera.com Cc: Albert Aribaud albert.u.b...@aribaud.net Cc: Tom Rini tr...@ti.com Cc: Wolfgang Denk

Re: [U-Boot] [WIP PATCH 1/4 v2] spi: Add Cadence QSPI driver used by SoCFPGA

2014-09-23 Thread Pavel Machek
Hi! +++ b/drivers/spi/cadence_qspi.c @@ -0,0 +1,355 @@ +/* + * Copyright (C) 2012 + * Altera Corporation www.altera.com + * + * See file CREDITS for list of people who contributed to this + * project. + * + * This program is free software; you can redistribute it and/or modify + * it

Re: [U-Boot] [WIP PATCH 1/4 v2] spi: Add Cadence QSPI driver used by SoCFPGA

2014-09-23 Thread Marek Vasut
On Tuesday, September 23, 2014 at 10:05:58 PM, Pavel Machek wrote: Hi! +++ b/drivers/spi/cadence_qspi.c @@ -0,0 +1,355 @@ +/* + * Copyright (C) 2012 + * Altera Corporation www.altera.com + * + * See file CREDITS for list of people who contributed to this + * project. + * + *

Re: [U-Boot] [PATCH 1/3] usb: dwc2: Add driver for Synopsis DWC2 USB IP block

2014-09-23 Thread Dinh Nguyen
On Sun, 21 Sep 2014, Marek Vasut wrote: From: Oleksandr Tymoshenko go...@bluezbox.com This is the USB host controller used on the Altera SoCFPGA and Raspbery Pi. This code has three checkpatch warnings, but to make sure it stays at least readable and clear, these are not fixed. These bugs

Re: [U-Boot] [PATCH 2/3] arm: socfpga: config: Enable USB support

2014-09-23 Thread Dinh Nguyen
On Tue, Sep 23, 2014 at 2:55 PM, Dinh Nguyen dingu...@opensource.altera.com wrote: On Sun, 21 Sep 2014, Marek Vasut wrote: Enable support for the DWC2 USB controller. Signed-off-by: Marek Vasut ma...@denx.de Cc: Chin Liang See cl...@altera.com Cc: Dinh Nguyen dingu...@altera.com Cc: Albert

[U-Boot] [RFC PATCH 03/14] dm: arm: spl: Allow simple malloc() in SPL

2014-09-23 Thread Simon Glass
For SPL it is sometimes useful to have a simple malloc() just to permit driver model to work, in the cases where the full malloc() is not made available by the board config. Signed-off-by: Simon Glass s...@chromium.org --- arch/arm/lib/crt0.S | 2 +- 1 file changed, 1 insertion(+), 1

[U-Boot] [RFC PATCH 0/14] RFC: dm: Implement driver model support in SPL

2014-09-23 Thread Simon Glass
Now that driver model operations prior to relocation, the remaining area where it does not work is SPL. This series enables this. Since SPL is quite memory-constrained, code and data size need to be kept as small as possible. This series includes a few changes to help with this: - Small and

[U-Boot] [RFC PATCH 05/14] dm: spl: Allow driver model to be used

2014-09-23 Thread Simon Glass
When enabled, set up driver model for SPL. This allows SPL to use the same drivers as the main U-Boot. Signed-off-by: Simon Glass s...@chromium.org --- common/spl/spl.c | 5 + scripts/Makefile.spl | 1 + 2 files changed, 6 insertions(+) diff --git a/common/spl/spl.c b/common/spl/spl.c

[U-Boot] [RFC PATCH 12/14] dm: tegra: Don't used named GPIOs in SPL

2014-09-23 Thread Simon Glass
There is little point in supporting this, and it bloats the code. (This may be moved into the uclass before final submission) Signed-off-by: Simon Glass s...@chromium.org --- drivers/gpio/tegra_gpio.c | 40 +++- 1 file changed, 35 insertions(+), 5

[U-Boot] [RFC PATCH 04/14] dm: spl: Make simple malloc() available when enabled

2014-09-23 Thread Simon Glass
Set up the simple malloc() implementation when requested, in preference to the full malloc(). Signed-off-by: Simon Glass s...@chromium.org --- common/spl/spl.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/common/spl/spl.c b/common/spl/spl.c index

[U-Boot] [RFC PATCH 08/14] dm: Disable dm_warn() in SPL

2014-09-23 Thread Simon Glass
Since this function can use up quite a bit of space for its strings, disable it by default in SPL. Use CONFIG_DM_WARN to re-enable it. Signed-off-by: Simon Glass s...@chromium.org --- include/config_defaults.h | 1 + include/dm/util.h | 6 ++ 2 files changed, 7 insertions(+) diff

[U-Boot] [RFC PATCH 01/14] dm: dts: Move omap device tree includes to correct place

2014-09-23 Thread Simon Glass
These ended up in arch/arm/dts/dt-bindings temporarily, but in fact the correct place is now include/dt-bindings. Move them to be consistent. Signed-off-by: Simon Glass s...@chromium.org --- arch/arm/dts/dt-bindings/gpio/gpio.h | 15 --- {arch/arm/dts =

[U-Boot] [RFC PATCH 14/14] dm: Update documentation to include CONFIG_DM... options

2014-09-23 Thread Simon Glass
Add documentation for the various driver model options that are now available. Signed-off-by: Simon Glass s...@chromium.org --- README | 119 doc/driver-model/README.txt | 44 2 files changed, 153 insertions(+),

[U-Boot] [RFC PATCH 06/14] dm: Allow device removal features to be dropped

2014-09-23 Thread Simon Glass
For SPL we don't expect to need to remove a device. Save some code space by dropping this feature. The board config can define CONFIG_DM_DEVICE_REMOVE if this is in fact needed. Signed-off-by: Simon Glass s...@chromium.org --- drivers/core/Makefile| 3 +- drivers/core/device-remove.c

[U-Boot] [RFC PATCH 07/14] dm: Allow stdio registration to be dropped

2014-09-23 Thread Simon Glass
Provide a CONFIG_DM_STDIO option to enable registering a serial device with the stdio library. This is seldom useful in SPL, so disable it by default when building for SPL. Signed-off-by: Simon Glass s...@chromium.org --- drivers/serial/serial-uclass.c | 8 +--- include/config_defaults.h

[U-Boot] [RFC PATCH 02/14] dm: Split the simple malloc() implementation into its own file

2014-09-23 Thread Simon Glass
The simple malloc() implementation is used when memory is tight. It provides a simple buffer with an incrementing pointer. At present the implementation is inside dlmalloc. Move it into its own file so that it is easier to find. Rather than using relocation as a signal that the full malloc() is

[U-Boot] [RFC PATCH 10/14] dm: tegra: Add platform data for the GPIO driver

2014-09-23 Thread Simon Glass
Add platform data for the GPIO driver. It doesn't need to contain anything since the GPIO driver will actually use information from the CONFIGs for now. This merely serves to ensure that the GPIO driver is bound. Signed-off-by: Simon Glass s...@chromium.org --- board/nvidia/common/board.c | 8

Re: [U-Boot] [PATCH 2/3] arm: socfpga: config: Enable USB support

2014-09-23 Thread Marek Vasut
On Tuesday, September 23, 2014 at 09:55:59 PM, Dinh Nguyen wrote: On Sun, 21 Sep 2014, Marek Vasut wrote: Enable support for the DWC2 USB controller. Signed-off-by: Marek Vasut ma...@denx.de Cc: Chin Liang See cl...@altera.com Cc: Dinh Nguyen dingu...@altera.com Cc: Albert Aribaud

Re: [U-Boot] [PATCH 2/3] arm: socfpga: config: Enable USB support

2014-09-23 Thread Marek Vasut
On Wednesday, September 24, 2014 at 12:21:04 AM, Dinh Nguyen wrote: On Tue, Sep 23, 2014 at 2:55 PM, Dinh Nguyen dingu...@opensource.altera.com wrote: On Sun, 21 Sep 2014, Marek Vasut wrote: Enable support for the DWC2 USB controller. Signed-off-by: Marek Vasut ma...@denx.de Cc:

[U-Boot] [RFC PATCH 13/14] dm: tegra: Enable driver model in SPL and adjust the GPIO driver

2014-09-23 Thread Simon Glass
Use the full driver model GPIO and serial drivers in SPL now that these are supported. Since device tree is not available they will use platform data. Remove the special SPL GPIO function as it is no longer needed. This is all in one commit to maintain bisectability. Signed-off-by: Simon Glass

[U-Boot] [RFC PATCH 09/14] dm: tegra: Add platform data for the SPL uart

2014-09-23 Thread Simon Glass
Since we currently don't have device tree available in SPL, add platform data so the uart works. Signed-off-by: Simon Glass s...@chromium.org --- drivers/serial/serial_tegra.c | 16 1 file changed, 16 insertions(+) diff --git a/drivers/serial/serial_tegra.c

[U-Boot] [RFC PATCH 11/14] dm: arm: spl: Make driver model linker lists available

2014-09-23 Thread Simon Glass
The linker lists feature is useful in SPL as it holds the driver model platform data. So don't throw away the lists. Signed-off-by: Simon Glass s...@chromium.org --- arch/arm/cpu/u-boot-spl.lds | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/cpu/u-boot-spl.lds

Re: [U-Boot] [PATCH V3] ARM: mx6: Add support for Kosagi Novena

2014-09-23 Thread Nikolay Dimitrov
Hi Marek, On 09/23/2014 12:47 PM, Marek Vasut wrote: On Monday, September 22, 2014 at 08:24:05 PM, Nikolay Dimitrov wrote: One more comment - isn't the file novena.o used also for the TPL, when building for SPL? No, there's no TPL involved on MX6. Ahh, ok. So the whole thing fits in OCRAM

Re: [U-Boot] [PATCH V4] ARM: mx6: Add support for Kosagi Novena

2014-09-23 Thread Nikolay Dimitrov
Hi Marek, Some comments about SPI: On 09/23/2014 01:18 PM, Marek Vasut wrote: +/* + * SPI + */ +#ifdef CONFIG_MXC_SPI +static iomux_v3_cfg_t ecspi1_pads[] = { + /* SS1 */ + MX6_PAD_EIM_D19__GPIO3_IO19 | MUX_PAD_CTRL(SPI_PAD_CTRL), + MX6_PAD_EIM_D17__ECSPI1_MISO |

Re: [U-Boot] [PATCH V4] ARM: mx6: Add support for Kosagi Novena

2014-09-23 Thread Nikolay Dimitrov
Hi Marek, Following are some comments about FEC Ethernet: On 09/23/2014 01:18 PM, Marek Vasut wrote: +#define ENET_PAD_CTRL \ + (PAD_CTL_PKE | PAD_CTL_PUE |\ + PAD_CTL_PUS_100K_UP | PAD_CTL_SPEED_MED |

  1   2   >