Re: [U-Boot] [PATCH] dm: i2c: mxc_i2c: implement i2c_idle_bus

2016-03-20 Thread Heiko Schocher
Hello Peng Fan, Sorry for the late reply ... Am 11.03.2016 um 09:47 schrieb Peng Fan: Implement i2c_idle_bus in driver, then setup_i2c can be dropped for boards which enable DM_I2C/DM_GPIO/PINCTRL. The i2c_idle_bus force bus idle flow follows setup_i2c in arch/arm/imx-common/i2c-mxv7.c This pa

Re: [U-Boot] [PATCH] sunxi: Enable support for the eMMC found on the orangepi plus

2016-03-20 Thread Chen-Yu Tsai
Hi, On Sun, Mar 20, 2016 at 9:21 PM, Hans de Goede wrote: > This enables support for the eMMC found on the orangepi plus. > > Signed-off-by: Hans de Goede > --- > configs/orangepi_plus_defconfig | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/configs/orangepi_plus_defconfig b/configs

[U-Boot] [PATCH] armv8/ls2080ardb: Update DDR timing to support more UDIMMs

2016-03-20 Thread Shengzhou Liu
Optimize DDR timing for good margins to support new Transcend and Apacer DDR4 UDIMM besides current Micron UDIMM. Verified 1866MT/s and 2133MT/s with following UDIMM on LS2080ARDB. - Micron UDIMM: MTA18ASF1G72AZ-2G1A1Z - Apacer UDIMM: 78.C1GM4.AF10B - Transcend UDIMM: TS1GLH72V1H Signed-off-by

Re: [U-Boot] [PATCH 03/11] pxa_lcd: invert colors for Zipit Z2 to get white on black palette

2016-03-20 Thread Marek Vasut
On 03/21/2016 03:10 AM, Vasily Khoruzhick wrote: > On Sun, Mar 20, 2016 at 6:48 PM, Marek Vasut wrote: >> On 03/21/2016 02:37 AM, Vasily Khoruzhick wrote: >>> Signed-off-by: Vasily Khoruzhick >> >> What happens if you display picture ? Will the colors be complete mess ? > > Yes, inverted. Can be

Re: [U-Boot] [PATCH 03/11] pxa_lcd: invert colors for Zipit Z2 to get white on black palette

2016-03-20 Thread Vasily Khoruzhick
On Sun, Mar 20, 2016 at 6:48 PM, Marek Vasut wrote: > On 03/21/2016 02:37 AM, Vasily Khoruzhick wrote: >> Signed-off-by: Vasily Khoruzhick > > What happens if you display picture ? Will the colors be complete mess ? Yes, inverted. Can be fixed by inverting colors in BMP. I didn't find another wa

Re: [U-Boot] [RFC V2 PATCH 0/3] Add cache for block devices

2016-03-20 Thread Marek Vasut
On 03/21/2016 02:45 AM, Eric Nelson wrote: > Here's a more full-featured implementation of a cache for block devices > that uses a small linked list of cache blocks. Why do you use linked list ? You have four entries, you can as well use fixed array. Maybe you should implement an adaptive cache wo

Re: [U-Boot] [PATCH 10/11] zipitz2: enable caches

2016-03-20 Thread Marek Vasut
On 03/21/2016 02:37 AM, Vasily Khoruzhick wrote: > It speeds up loading kernel from SD or USB a lot. > > Signed-off-by: Vasily Khoruzhick > --- Acked-by: Marek Vasut -- Best regards, Marek Vasut ___ U-Boot mailing list U-Boot@lists.denx.de http://li

Re: [U-Boot] [PATCH 03/11] pxa_lcd: invert colors for Zipit Z2 to get white on black palette

2016-03-20 Thread Marek Vasut
On 03/21/2016 02:37 AM, Vasily Khoruzhick wrote: > Signed-off-by: Vasily Khoruzhick What happens if you display picture ? Will the colors be complete mess ? > --- > drivers/video/pxa_lcd.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/video/pxa_lcd.c b/driver

Re: [U-Boot] [PATCH 05/11] pxa-common: pxa27x has 3 OHCI ports

2016-03-20 Thread Marek Vasut
On 03/21/2016 02:37 AM, Vasily Khoruzhick wrote: > 3rd port can be used as a device or host. > > Signed-off-by: Vasily Khoruzhick Acked-by: Marek Vasut -- Best regards, Marek Vasut ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/ma

Re: [U-Boot] [PATCH 04/11] zipitz2: enable libfdt

2016-03-20 Thread Marek Vasut
On 03/21/2016 02:37 AM, Vasily Khoruzhick wrote: > zipitz2 supports DT boot since linux-4.4 (not mainlined yet) > > Signed-off-by: Vasily Khoruzhick > --- > include/configs/zipitz2.h | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/include/configs/zipitz2.h b/include/configs/zipitz2.h >

Re: [U-Boot] [PATCH 06/11] zipitz2: enable USB host support

2016-03-20 Thread Marek Vasut
On 03/21/2016 02:37 AM, Vasily Khoruzhick wrote: Commit message is missing, NAK > Signed-off-by: Vasily Khoruzhick > --- > board/zipitz2/zipitz2.c | 21 + > include/configs/zipitz2.h | 1 + > 2 files changed, 22 insertions(+) > > diff --git a/board/zipitz2/zipitz2.c b/bo

Re: [U-Boot] [PATCH 11/11] cfi_flash: return device into read array mode after reading status

2016-03-20 Thread Marek Vasut
On 03/21/2016 02:37 AM, Vasily Khoruzhick wrote: > Otherwise flash remains in read status mode and it's not possible > to access data on flash. > > Signed-off-by: Vasily Khoruzhick CCing Stefan and Scott on this one. > --- > drivers/mtd/cfi_flash.c | 2 ++ > 1 file changed, 2 insertions(+) >

Re: [U-Boot] [PATCH 02/11] zipitz2: enable LCD rotation

2016-03-20 Thread Marek Vasut
On 03/21/2016 02:37 AM, Vasily Khoruzhick wrote: > z2's screen is rotated by 270 degrees > > Signed-off-by: Vasily Khoruzhick > --- > drivers/video/pxa_lcd.c | 1 + > include/configs/zipitz2.h | 1 + > 2 files changed, 2 insertions(+) > > diff --git a/drivers/video/pxa_lcd.c b/drivers/video/p

Re: [U-Boot] [PATCH 07/11] pxa: start.S: enable SRAM clock

2016-03-20 Thread Marek Vasut
On 03/21/2016 02:37 AM, Vasily Khoruzhick wrote: > SRAM is used for early stack, but kernel disables its clock on suspend. > Re-enable SRAM clock on startup, otherwise u-boot crashes on resume from > suspend. > > Signed-off-by: Vasily Khoruzhick > --- > arch/arm/cpu/pxa/start.S | 10 +-

Re: [U-Boot] [PATCH 01/11] zipitz2: restore board support

2016-03-20 Thread Marek Vasut
On 03/21/2016 02:37 AM, Vasily Khoruzhick wrote: > zipitz2 was dropped in 49d8899ba9c26335e4a12e01c18028fc5e40c796 That's great to know. So what does this patch do ? > Signed-off-by: Vasily Khoruzhick Hi! > +int dram_init(void) > +{ > + pxa2xx_dram_init(); > + gd->ram_size = PHYS_SDRAM

Re: [U-Boot] [PATCH 08/11] pxa: add support for D- and I- caches

2016-03-20 Thread Marek Vasut
On 03/21/2016 02:37 AM, Vasily Khoruzhick wrote: > Tested with OHCI and pxafb drivers - no issues found > > Signed-off-by: Vasily Khoruzhick > --- > arch/arm/cpu/pxa/Makefile| 1 + > arch/arm/cpu/pxa/cache.c | 62 > > arch/arm/cpu/pxa/pxa2xx

Re: [U-Boot] [PATCH 09/11] pxa_lcd: make driver cache-aware

2016-03-20 Thread Marek Vasut
On 03/21/2016 02:37 AM, Vasily Khoruzhick wrote: > Signed-off-by: Vasily Khoruzhick > --- > drivers/video/pxa_lcd.c | 16 > 1 file changed, 16 insertions(+) Why don't you just allocate the piece of LCD memory as non-cachable ? -- Best regards, Marek Vasut _

[U-Boot] [RFC V2 PATCH 3/3] mmc: add support for block device cache

2016-03-20 Thread Eric Nelson
Signed-off-by: Eric Nelson --- drivers/mmc/mmc.c | 10 +- drivers/mmc/mmc_write.c | 7 +++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c index 8b2e606..956f4e1 100644 --- a/drivers/mmc/mmc.c +++ b/drivers/mmc/mmc.c @@ -6,7

[U-Boot] [RFC V2 PATCH 1/3] drivers: block: add block device cache

2016-03-20 Thread Eric Nelson
Add a block device cache to speed up repeated reads of block devices by various filesystems. This small amount of cache can dramatically speed up filesystem operations by skipping repeated reads of common areas of a block device (typically directory structures). This has shown to have some benef

[U-Boot] [RFC V2 PATCH 2/3] block: add Kconfig options for [CMD_]BLOCK_CACHE

2016-03-20 Thread Eric Nelson
Allow the selection of CONFIG_BLOCK_CACHE, CONFIG_CMD_BLOCK_CACHE using menuconfig. Signed-off-by: Eric Nelson --- drivers/block/Kconfig | 19 +++ 1 file changed, 19 insertions(+) diff --git a/drivers/block/Kconfig b/drivers/block/Kconfig index f35c4d4..6529efb 100644 --- a/driv

[U-Boot] [RFC V2 PATCH 0/3] Add cache for block devices

2016-03-20 Thread Eric Nelson
Here's a more full-featured implementation of a cache for block devices that uses a small linked list of cache blocks. Experimentation loading a 4.5 MiB kernel from the root directory of a FAT filesystem shows that a single cache entry of a single block is the only Loading the same from the /bo

[U-Boot] [PATCH 06/11] zipitz2: enable USB host support

2016-03-20 Thread Vasily Khoruzhick
Signed-off-by: Vasily Khoruzhick --- board/zipitz2/zipitz2.c | 21 + include/configs/zipitz2.h | 1 + 2 files changed, 22 insertions(+) diff --git a/board/zipitz2/zipitz2.c b/board/zipitz2/zipitz2.c index 8fa1261..aefbeee 100644 --- a/board/zipitz2/zipitz2.c +++ b/board/zi

[U-Boot] [PATCH 09/11] pxa_lcd: make driver cache-aware

2016-03-20 Thread Vasily Khoruzhick
Signed-off-by: Vasily Khoruzhick --- drivers/video/pxa_lcd.c | 16 1 file changed, 16 insertions(+) diff --git a/drivers/video/pxa_lcd.c b/drivers/video/pxa_lcd.c index ba4f897..d64c25b 100644 --- a/drivers/video/pxa_lcd.c +++ b/drivers/video/pxa_lcd.c @@ -353,6 +353,9 @@ void l

[U-Boot] [PATCH 10/11] zipitz2: enable caches

2016-03-20 Thread Vasily Khoruzhick
It speeds up loading kernel from SD or USB a lot. Signed-off-by: Vasily Khoruzhick --- board/zipitz2/zipitz2.c | 4 include/configs/zipitz2.h | 3 +-- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/board/zipitz2/zipitz2.c b/board/zipitz2/zipitz2.c index aefbeee..d3ca939 100

[U-Boot] [PATCH 11/11] cfi_flash: return device into read array mode after reading status

2016-03-20 Thread Vasily Khoruzhick
Otherwise flash remains in read status mode and it's not possible to access data on flash. Signed-off-by: Vasily Khoruzhick --- drivers/mtd/cfi_flash.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mtd/cfi_flash.c b/drivers/mtd/cfi_flash.c index 39932f4..18831c6 100644 --- a/driv

[U-Boot] [PATCH 04/11] zipitz2: enable libfdt

2016-03-20 Thread Vasily Khoruzhick
zipitz2 supports DT boot since linux-4.4 (not mainlined yet) Signed-off-by: Vasily Khoruzhick --- include/configs/zipitz2.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/configs/zipitz2.h b/include/configs/zipitz2.h index 169eaf3..f69b52e 100644 --- a/include/configs/zipitz2.h +++

[U-Boot] [PATCH 07/11] pxa: start.S: enable SRAM clock

2016-03-20 Thread Vasily Khoruzhick
SRAM is used for early stack, but kernel disables its clock on suspend. Re-enable SRAM clock on startup, otherwise u-boot crashes on resume from suspend. Signed-off-by: Vasily Khoruzhick --- arch/arm/cpu/pxa/start.S | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/a

[U-Boot] [PATCH 08/11] pxa: add support for D- and I- caches

2016-03-20 Thread Vasily Khoruzhick
Tested with OHCI and pxafb drivers - no issues found Signed-off-by: Vasily Khoruzhick --- arch/arm/cpu/pxa/Makefile| 1 + arch/arm/cpu/pxa/cache.c | 62 arch/arm/cpu/pxa/pxa2xx.c| 10 +++ include/configs/pxa-common.h | 1 + 4 files c

[U-Boot] [PATCH 05/11] pxa-common: pxa27x has 3 OHCI ports

2016-03-20 Thread Vasily Khoruzhick
3rd port can be used as a device or host. Signed-off-by: Vasily Khoruzhick --- include/configs/pxa-common.h | 4 1 file changed, 4 insertions(+) diff --git a/include/configs/pxa-common.h b/include/configs/pxa-common.h index f0ecc34..4c1c2c7 100644 --- a/include/configs/pxa-common.h +++ b/i

[U-Boot] [PATCH 01/11] zipitz2: restore board support

2016-03-20 Thread Vasily Khoruzhick
zipitz2 was dropped in 49d8899ba9c26335e4a12e01c18028fc5e40c796 Signed-off-by: Vasily Khoruzhick --- arch/arm/Kconfig | 5 ++ board/zipitz2/Kconfig | 9 ++ board/zipitz2/MAINTAINERS | 6 ++ board/zipitz2/Makefile| 10 +++ board/zipitz2/zipitz2.c | 200 ++

[U-Boot] [PATCH 03/11] pxa_lcd: invert colors for Zipit Z2 to get white on black palette

2016-03-20 Thread Vasily Khoruzhick
Signed-off-by: Vasily Khoruzhick --- drivers/video/pxa_lcd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/pxa_lcd.c b/drivers/video/pxa_lcd.c index 1809fc6..ba4f897 100644 --- a/drivers/video/pxa_lcd.c +++ b/drivers/video/pxa_lcd.c @@ -166,7 +166,7 @@ vidinfo_

[U-Boot] [PATCH 02/11] zipitz2: enable LCD rotation

2016-03-20 Thread Vasily Khoruzhick
z2's screen is rotated by 270 degrees Signed-off-by: Vasily Khoruzhick --- drivers/video/pxa_lcd.c | 1 + include/configs/zipitz2.h | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/video/pxa_lcd.c b/drivers/video/pxa_lcd.c index 2799425..1809fc6 100644 --- a/drivers/video/pxa_lcd.

Re: [U-Boot] [PULL] u-boot-socfpga/master

2016-03-20 Thread Tom Rini
On Sun, Mar 20, 2016 at 09:41:47PM +0100, Marek Vasut wrote: > The following changes since commit e4fb863f6dec0002069d57422ebe3ce3af69a273: > > dm: blk: Add tests for block devices (2016-03-17 21:27:39 -0600) > > are available in the git repository at: > > git://git.denx.de/u-boot-socfpga.g

Re: [U-Boot] [PULL] u-boot-usb/master

2016-03-20 Thread Tom Rini
On Sun, Mar 20, 2016 at 09:40:51PM +0100, Marek Vasut wrote: > The following changes since commit e4fb863f6dec0002069d57422ebe3ce3af69a273: > > dm: blk: Add tests for block devices (2016-03-17 21:27:39 -0600) > > are available in the git repository at: > > git://git.denx.de/u-boot-usb.git m

Re: [U-Boot] [PATCH] mx27: 16-bit wide watchdog registers

2016-03-20 Thread Fabio Estevam
On Sun, Mar 20, 2016 at 10:10 AM, Leonid Iziumtsev wrote: > From: Leonid Iziumtsev > > Make the watchdog registers 16-bit wide, as they are according to TRM. > > Signed-off-by: Leonid Iziumtsev Reviewed-by: Fabio Estevam ___ U-Boot mailing list U-Boo

Re: [U-Boot] [RFC PATCH 2/2] mmc: add support for block device cache

2016-03-20 Thread Eric Nelson
Hi Tom, On 03/20/2016 03:13 PM, Tom Rini wrote: > On Sun, Mar 20, 2016 at 12:35:53PM -0700, Eric Nelson wrote: >> Hi Stephen, >> >> On 03/17/2016 02:23 PM, Stephen Warren wrote: >>> On 03/16/2016 03:40 PM, Eric Nelson wrote: Signed-off-by: Eric Nelson >>> >>> Patch description. >>> ---

[U-Boot] How to run a new instance of u-boot from u-boot shell prompt

2016-03-20 Thread Woody Wu
Hi list, in a running version of u-boot, assume i downloaded another version of u-boot into my RAM, then how can i jump to this new u-boot and run? I want to do this because the new version of u-boot that i hacked not yet stable so I don't want to actually flash it to my nand. BTW: my current u-

[U-Boot] [PATCH] mx27: 16-bit wide watchdog registers

2016-03-20 Thread Leonid Iziumtsev
From: Leonid Iziumtsev Make the watchdog registers 16-bit wide, as they are according to TRM. Signed-off-by: Leonid Iziumtsev --- arch/arm/cpu/arm926ejs/mx27/reset.c | 8 arch/arm/include/asm/arch-mx27/imx-regs.h | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff

Re: [U-Boot] [RFC PATCH 1/2] add block device cache

2016-03-20 Thread Eric Nelson
Thanks for the feedback Tom, On 03/20/2016 03:13 PM, Tom Rini wrote: > On Thu, Mar 17, 2016 at 02:33:04PM -0700, Eric Nelson wrote: >> Thanks for the review(s) Stephen. >> >> On 03/17/2016 02:16 PM, Stephen Warren wrote: >>> On 03/16/2016 03:40 PM, Eric Nelson wrote: Signed-off-by: Eric Nelso

Re: [U-Boot] [RFC PATCH 2/2] mmc: add support for block device cache

2016-03-20 Thread Tom Rini
On Sun, Mar 20, 2016 at 12:35:53PM -0700, Eric Nelson wrote: > Hi Stephen, > > On 03/17/2016 02:23 PM, Stephen Warren wrote: > > On 03/16/2016 03:40 PM, Eric Nelson wrote: > >> Signed-off-by: Eric Nelson > > > > Patch description. > > > >> --- > >> drivers/mmc/mmc.c | 10 +- > >>

Re: [U-Boot] [RFC PATCH 1/2] add block device cache

2016-03-20 Thread Tom Rini
On Thu, Mar 17, 2016 at 02:33:04PM -0700, Eric Nelson wrote: > Thanks for the review(s) Stephen. > > On 03/17/2016 02:16 PM, Stephen Warren wrote: > > On 03/16/2016 03:40 PM, Eric Nelson wrote: > >> Signed-off-by: Eric Nelson > > > > A patch description would be useful here; the cover letter wou

[U-Boot] [PULL] u-boot-usb/master

2016-03-20 Thread Marek Vasut
The following changes since commit e4fb863f6dec0002069d57422ebe3ce3af69a273: dm: blk: Add tests for block devices (2016-03-17 21:27:39 -0600) are available in the git repository at: git://git.denx.de/u-boot-usb.git master for you to fetch changes up to 1b108880e6433e398681785f51b2a2dca983cd

[U-Boot] [PULL] u-boot-socfpga/master

2016-03-20 Thread Marek Vasut
The following changes since commit e4fb863f6dec0002069d57422ebe3ce3af69a273: dm: blk: Add tests for block devices (2016-03-17 21:27:39 -0600) are available in the git repository at: git://git.denx.de/u-boot-socfpga.git master for you to fetch changes up to 93d9fc26cb7b4fcbb849e79d21d16b114e

Re: [U-Boot] [RFC PATCH 2/2] mmc: add support for block device cache

2016-03-20 Thread Eric Nelson
Hi Stephen, On 03/17/2016 02:23 PM, Stephen Warren wrote: > On 03/16/2016 03:40 PM, Eric Nelson wrote: >> Signed-off-by: Eric Nelson > > Patch description. > >> --- >> drivers/mmc/mmc.c | 10 +- >> drivers/mmc/mmc_write.c | 7 +++ > > Presumably it makes sense for the cach

Re: [U-Boot] Linux hangs due to commit v2015.10-15-g02cc27c on loading i2c-mv64xx

2016-03-20 Thread Hans de Goede
Hi All, Sun Mar 20 16:56:32 CET 2016, Michael Haas wrote: > I'm running Debian Jessie with Linux 4.3.0-0.bpo.1-armmp-lpae on my > a20-olinuxino-lime2. > I have noticed that my board hangs with my recent u-boot versions when I > load the i2c module. > > git-bisect narrowed the problem down to t

Re: [U-Boot] [PATCH] Add CONFIG_GMAC_TX_DELAY=4 for OlinuXino Lime2

2016-03-20 Thread Hans de Goede
Hi, On 20-03-16 16:28, Michael Haas wrote: On 03/20/2016 02:45 PM, Hans de Goede wrote: Hi, On 19-03-16 14:40, Michael Haas wrote: On 03/19/2016 10:32 AM, Hans de Goede wrote: Hi, On 19-03-16 09:39, François-David Collin wrote: Hi, As I’m banging my head on this too, please allow me to pr

[U-Boot] [PATCH] arm: socfpga: sockit: Use more relaxed DRAM timings

2016-03-20 Thread Marek Vasut
The currently present DRAM timings generated from GHRD 14.0 did not work on SoCkit rev. D because they were too tight. Load the DRAM timings from GHRD 13.0 which are more relaxed and work with SoCkit rev. D. Signed-off-by: Marek Vasut Cc: Dinh Nguyen Cc: Chin Liang See --- board/terasic/sockit

[U-Boot] [PATCH] arm: mx5: Enable NAND TrimFFS on M53EVK

2016-03-20 Thread Marek Vasut
Enable NAND TrimFFS support in M53EVK, since it is convenient when installing UBI images to NAND. Signed-off-by: Marek Vasut Cc: Stefano Babic --- include/configs/m53evk.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/configs/m53evk.h b/include/configs/m53evk.h index fbaa600..c247

Re: [U-Boot] Newbie SPL question for socfpga_sockit

2016-03-20 Thread Marek Vasut
On 03/19/2016 12:10 PM, Phil Reid wrote: > On 19/03/2016 5:22 AM, George Broz wrote: >> On 18 March 2016 at 12:32, Marek Vasut wrote: >>> On 03/18/2016 07:59 PM, George Broz wrote: On 16 March 2016 at 18:35, Marek Vasut wrote: > On 03/16/2016 05:17 PM, George Broz wrote: >> On 15 Mar

Re: [U-Boot] Newbie SPL question for socfpga_sockit

2016-03-20 Thread Marek Vasut
On 03/20/2016 04:55 PM, Dinh Nguyen wrote: > > > On 03/16/2016 08:35 PM, Marek Vasut wrote: >>> >>> Does this work for anybody else? >>> Is it in anyone's experience that these (cheaper) Terasic >>> eval boards are generally out of spec? >>> >>> Is there a way to relax the calibration parameters?

Re: [U-Boot] Newbie SPL question for socfpga_sockit

2016-03-20 Thread Marek Vasut
On 03/18/2016 10:22 PM, George Broz wrote: > On 18 March 2016 at 12:32, Marek Vasut wrote: >> On 03/18/2016 07:59 PM, George Broz wrote: >>> On 16 March 2016 at 18:35, Marek Vasut wrote: On 03/16/2016 05:17 PM, George Broz wrote: > On 15 March 2016 at 18:29, George Broz wrote: > >>>

[U-Boot] [PATCH 4/5] arm: lib: Sync libgcc 32b division/modulo operations

2016-03-20 Thread Marek Vasut
Sync the libgcc 32bit division and modulo operations with Linux 4.4.6 , commit 0d1912303e54ed1b2a371be0bba51c384dd57326 . The functions in these four files are present in lib1funcs.S in Linux, so replace these files with lib1funcs.S from Linux. Since we do not support stack unwinding, instead of i

[U-Boot] [PATCH 5/5] lib: Enable private libgcc by default

2016-03-20 Thread Marek Vasut
This patch decouples U-Boot binary from the toolchain on systems where private libgcc is available. Instead of pulling in functions provided by the libgcc from the toolchain, U-Boot will use it's own set of libgcc functions. These functions are usually imported from Linux kernel, which also uses it

[U-Boot] [PATCH 1/5] arm: include: Import unified.h from Linux kernel

2016-03-20 Thread Marek Vasut
Import unified.h from Linux kernel 4.4.6 , commit 0d1912303e54ed1b2a371be0bba51c384dd57326 . This header file contains macros used in libgcc functions in Linux kernel on ARM and will be needed for the libgcc sync. Since unified.h defines the W(instr) macro, we must drop this from the macro from me

[U-Boot] [PATCH 2/5] arm: lib: Drop underscore from private libgcc filenames

2016-03-20 Thread Marek Vasut
Drop the underscore from the filenames of files implementing libgcc routines. There is no functional change. This change is done to make sync with Linux kernel easier. Signed-off-by: Marek Vasut Cc: Albert Aribaud Cc: Masahiro Yamada Cc: Simon Glass Cc: Tom Rini --- arch/arm/lib/Makefile

[U-Boot] [PATCH 3/5] arm: lib: Sync libgcc shift operations

2016-03-20 Thread Marek Vasut
Sync the libgcc shift operations with Linux kernel 4.4.6 , commit 0d1912303e54ed1b2a371be0bba51c384dd57326 . Syncing these three files is easy, as there is almost no change in them, except the addition of Thumb support. Signed-off-by: Marek Vasut Cc: Albert Aribaud Cc: Masahiro Yamada Cc: Simon

[U-Boot] [PATCH 5/6] lpc32xx: work_92105: Rework Makefile

2016-03-20 Thread Tom Rini
When we switch to including all linker lists in U-Boot it is important to not include commands as that may lead to link errors due to other things we have already discarded. In this case change things so that we only build the right objects for SPL or non-SPL Cc: Albert ARIBAUD (3ADEV) Signed-of

[U-Boot] Linux hangs due to commit v2015.10-15-g02cc27c on loading i2c-mv64xx

2016-03-20 Thread Michael Haas
Hello all, I'm running Debian Jessie with Linux 4.3.0-0.bpo.1-armmp-lpae on my a20-olinuxino-lime2. I have noticed that my board hangs with my recent u-boot versions when I load the i2c module. git-bisect narrowed the problem down to the following commit: 02cc27c74f9b884b538bcd1b93342a4c05b5d608

Re: [U-Boot] Newbie SPL question for socfpga_sockit

2016-03-20 Thread Dinh Nguyen
On 03/16/2016 08:35 PM, Marek Vasut wrote: >> >> Does this work for anybody else? >> Is it in anyone's experience that these (cheaper) Terasic >> eval boards are generally out of spec? >> >> Is there a way to relax the calibration parameters? the USB parameters? >> >> Would it help if I posted de

Re: [U-Boot] [PATCH] Add CONFIG_GMAC_TX_DELAY=4 for OlinuXino Lime2

2016-03-20 Thread Michael Haas
On 03/20/2016 02:45 PM, Hans de Goede wrote: > Hi, > > On 19-03-16 14:40, Michael Haas wrote: >> On 03/19/2016 10:32 AM, Hans de Goede wrote: >>> Hi, >>> >>> On 19-03-16 09:39, François-David Collin wrote: Hi, As I’m banging my head on this too, please allow me to provide some d

Re: [U-Boot] ext4 and caching

2016-03-20 Thread Eric Nelson
Thanks Ioan, On 03/19/2016 08:42 AM, Ioan Nicu wrote: > Hi Eric, > > On Wed, Mar 16, 2016 at 11:42:55AM -0700, EXT Eric Nelson wrote: >> Hi all, >> >> I've been seeing the same sort of issues repoted by Ionut >> and as addressed by this patch: >> http://lists.denx.de/pipermail/u-boot/20

Re: [U-Boot] [PATCH 00/18] sf: fix support of QSPI memories and controllers

2016-03-20 Thread Stefan Roese
Hi All, please excuse the late reply to this thread. But I'm very interested in QSPI, as one of my customers uses Micron QSPI NOR and really wants to take full advantage of the device (quad access) to speed up the overall boot process. This is on SoCFPGA btw. Please allow me a few comments below

[U-Boot] [PATCH] test/dm/core.c: Make pre-reloc test use pre-reloc struct

2016-03-20 Thread Tom Rini
LLVM 3.5 noted: test/dm/core.c:41:35: warning: unused variable 'test_pdata_pre_reloc' [-Wunused-const-variable] static const struct dm_test_pdata test_pdata_pre_reloc = { And the correct fix here is that the driver_info_pre_reloc test should use the test_pdata_pre_reloc not test_pdata_manual vari

Re: [U-Boot] [linux-sunxi] Re: [PATCH] sunxi: Add support for Cubietruck Plus

2016-03-20 Thread Hans de Goede
hI, On 19-03-16 23:43, Dennis Gilmore wrote: Hans, What is the status of this patch? I added this to my sunxi-wip tree (including a fix for the build error) a couple of days ago. I will send a pull-req for various u-boot sunxi patch soonish and then it will hit mainline. Regards, Hans D

Re: [U-Boot] [PATCH] Add CONFIG_GMAC_TX_DELAY=4 for OlinuXino Lime2

2016-03-20 Thread Hans de Goede
Hi, On 19-03-16 14:40, Michael Haas wrote: On 03/19/2016 10:32 AM, Hans de Goede wrote: Hi, On 19-03-16 09:39, François-David Collin wrote: Hi, As I’m banging my head on this too, please allow me to provide some details I got two stable situations : The Lime2 is connected directly to the Gbi

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

2016-03-20 Thread Tom Rini
On Sat, Mar 19, 2016 at 06:35:24PM -0600, Simon Glass wrote: > Hi Tom, > > Here is the rest of the block device stuff as well as a few buildman > improvements and a few other things. > > The following changes since commit f23baa572f96e1e13d7f1a3c8addb61b5d0dbd29: > > cmd_dhry.c: Use lldiv for

Re: [U-Boot] [PATCH] spl: Print from which mmc slot spl is trying to boot

2016-03-20 Thread Tom Rini
On Sun, Mar 20, 2016 at 02:19:19PM +0100, Hans de Goede wrote: > On some sunxi boards (and presumably also non sunxi boards) u-boot can > be either loaded from a sdcard in a micro-sd slot, or from eMMC. > > Print which MMC spl tries to boot from, to help debugging. > > Signed-off-by: Hans de Goe

[U-Boot] [PATCH] cmd: spi: check return value of strdup

2016-03-20 Thread Peng Fan
Check return value of strdup. Signed-off-by: Peng Fan Cc: Przemyslaw Marczak Cc: Bin Meng Cc: Heiko Schocher Cc: Simon Glass Cc: Stefan Roese Cc: Tom Rini --- cmd/spi.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/spi.c b/cmd/spi.c index 64c3ffc..f16ef9a 100644 --- a/cmd/spi.c

[U-Boot] [PATCH] sunxi: Enable support for the eMMC found on the orangepi plus

2016-03-20 Thread Hans de Goede
This enables support for the eMMC found on the orangepi plus. Signed-off-by: Hans de Goede --- configs/orangepi_plus_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/orangepi_plus_defconfig b/configs/orangepi_plus_defconfig index c4885f4..770bd98 100644 --- a/configs/orang

[U-Boot] [PATCH] spl: Print from which mmc slot spl is trying to boot

2016-03-20 Thread Hans de Goede
On some sunxi boards (and presumably also non sunxi boards) u-boot can be either loaded from a sdcard in a micro-sd slot, or from eMMC. Print which MMC spl tries to boot from, to help debugging. Signed-off-by: Hans de Goede --- common/spl/spl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 del

[U-Boot] [PATCH 3/3] Fix typo choosen in comments and printf logs

2016-03-20 Thread Alexander Merkle
Minor change: chosen is written with one "o". No code change here, only comment & printf. Signed-off-by: Alexander Merkle --- common/menu.c | 2 +- drivers/ddr/fsl/lc_common_dimm_params.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/common/m

[U-Boot] [PATCH] driver: net: fsl-mc: Return from DPAA_exit if boot_status !=0

2016-03-20 Thread Prabhakar Kushwaha
return value of get_mc_boot_status() in case of failure is not necessary to be -1. So update the error condition check. Signed-off-by: Prabhakar Kushwaha Reported-by: Yao Yuan --- drivers/net/fsl-mc/mc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/fsl-mc/mc.

Re: [U-Boot] [PATCH 1/2] efi_stub: Move carriage return before line feed in putc()

2016-03-20 Thread Tom Rini
On Thu, Mar 17, 2016 at 11:59:03PM -0700, Bin Meng wrote: > A carriage return needs to execute before a line feed. > > Signed-off-by: Bin Meng Reviewed-by: Tom Rini -- Tom signature.asc Description: Digital signature ___ U-Boot mailing list U-Boo

Re: [U-Boot] [U-Boot, v5, 25/30] efi_loader: Add README section in README.efi

2016-03-20 Thread Tom Rini
On Fri, Mar 04, 2016 at 01:10:09AM +0100, Alexander Graf wrote: > To preserve all cover letter knowledge of the status on UEFI payload > support, let's add some sections to README.efi. > > Signed-off-by: Alexander Graf > > v3 -> v4: > > - Add section about config options > - s/10kb/10KB/

Re: [U-Boot] sunxi: video: Configure only LVDS pins instead of all LCD pins when LVDS interface selected

2016-03-20 Thread Hans de Goede
Hi, On 04-03-16 18:08, Lawrence Yu wrote: The behavior before this patch would attempt to configure the mux setting for pins 0 to 27 on PORTD to all be setting 3 for LVDS. The LVDS interface actually only uses pins 18 to 27 and not pins 0 to 27 as in the parallel LCD interface. This patch rest

[U-Boot] [PATCH 2/4] driver: net: fsl-mc: Check NULL before pointer dereference

2016-03-20 Thread Prabhakar Kushwaha
NULL pointer should be checked before any dereference. This patch move memest after the NULL pointer check. Signed-off-by: Prabhakar Kushwaha Reported-by: Jose Rivera --- drivers/net/fsl-mc/dpio/qbman_sys.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/fsl-mc/

[U-Boot] [PATCH 01/13] ARM: dts: uniphier: add device tree for Micro Support Card

2016-03-20 Thread Masahiro Yamada
Import uniphier-support-card.dtsi from Linux Kernel and make it available on the UniPhier reference boards. Signed-off-by: Masahiro Yamada --- arch/arm/dts/uniphier-ph1-ld4-ref.dts | 5 + arch/arm/dts/uniphier-ph1-ld6b-ref.dts | 5 + arch/arm/dts/uniphier-ph1-pro4-ref.dts | 5 +++

[U-Boot] [PATCH] MAINTAINERS : Add entry for ls2080/5 SECURE BOOT defconfigs

2016-03-20 Thread Saksham Jain
Added myself as maintainers for the following: 1) configs/ls2080aqds_SECURE_BOOT_defconfig 2) configs/ls2085aqds_SECURE_BOOT_defconfig 3) configs/ls2080ardb_SECURE_BOOT_defconfig 4) configs/ls2085ardb_SECURE_BOOT_defconfig Signed-off-by: Saksham Jain --- This patch depends on patch which adds th

Re: [U-Boot] [PATCH v4 09/14] armv8: fsl-lsch3: Disable SMMU during Secure Boot

2016-03-20 Thread york sun
On 02/08/2016 09:27 PM, Saksham Jain wrote: > During secure boot, SMMU is enabled on POR by SP bootrom. > SMMU needs to be put in Bypass mode in uboot to > enable CAAM transcations to pass through. > > During Nonsecure Boot, SP BootROM doesn't enable SMMU and > at reset SMMU is in bypass mode. >

[U-Boot] [PATCH 2/3] sunxi: Fix clock_twi_onoff for sun8i-a83

2016-03-20 Thread Hans de Goede
clock_sun8i_a83.c did not contain a clock_twi_onoff implementation at all, this is fixed by moving the clock_sun6i.c implementation, which is correct for the a83 too, to a shared location. Signed-off-by: Hans de Goede --- arch/arm/cpu/armv7/sunxi/clock.c | 35 ++

Re: [U-Boot] [U-Boot, v5, 27/30] arm64: Replace fdt_name env variables with fdtfile

2016-03-20 Thread Tom Rini
On Fri, Mar 04, 2016 at 01:10:11AM +0100, Alexander Graf wrote: > The commonly defined environment variable to determine the device tree > file name is called fdtfile rather than fdt_name. Replace all occurences > of fdt_name with fdtfile. > > Signed-off-by: Alexander Graf Applied to u-boot/mas

Re: [U-Boot] [PATCH] fdt: Try to read #address-cells/size-cells from parent

2016-03-20 Thread David Gibson
On Wed, Mar 16, 2016 at 05:18:25PM +0100, Michal Simek wrote: > Hi David, > > On 15.3.2016 01:27, David Gibson wrote: > > On Mon, Mar 14, 2016 at 10:10:58PM +0100, Michal Simek wrote: > >> On 13.3.2016 02:54, Simon Glass wrote: > >>> Hi Michal, > >>> > >>> On 16 February 2016 at 09:10, Michal Sime

[U-Boot] [PATCH v2 2/5] arm: Add support for HYP mode and LPAE page tables

2016-03-20 Thread Alexander Graf
We currently always modify the SVC versions of registers and only support the short descriptor PTE format. Some boards however (like the RPi2) run in HYP mode. There, we need to modify the HYP version of system registers and HYP mode only supports the long descriptor PTE format. So this patch int

Re: [U-Boot] [PATCH] Add CONFIG_GMAC_TX_DELAY=4 for OlinuXino Lime2

2016-03-20 Thread François-David Collin
Hi, I am not 100% sure, but I remember trying first to disable the PMIC in uboot to cure this problem, see my post on archlinux arm forum there : https://archlinuxarm.org/forum/viewtopic.php?f=33&t=9911#p50946 But eventually I think this is this patch http://lists.denx.de/pipermail/u-boot/2016-

Re: [U-Boot] [PATCH v6 00/76] mtd: Add SPI-NOR core support

2016-03-20 Thread Huan Wang
Hi, Jagan, > On 9 March 2016 at 13:37, Qianyu Gong wrote: > > Hi Jagan, > > > >> -Original Message- > >> From: york sun > >> Sent: Tuesday, March 08, 2016 12:46 AM > >> To: Jagan Teki ; Huan Wang ; > >> Qianyu Gong > >> Cc: u-boot@lists.denx.de; Siva Durga Prasad Paladugu > >> ; Stefan R

Re: [U-Boot] [PATCH] Add CONFIG_GMAC_TX_DELAY=4 for OlinuXino Lime2

2016-03-20 Thread Michael Haas
On 03/18/2016 08:06 PM, Michael Haas wrote: > On 03/18/2016 08:02 PM, Karsten Merker wrote: >> The installer supports a number of systems that can only load images >> of limited size, therefore the installer includes only an >> installation-related subset of all the kernel modules and i2c-mv64xxx >

Re: [U-Boot] [PATCH] Add CONFIG_GMAC_TX_DELAY=4 for OlinuXino Lime2

2016-03-20 Thread Michael Haas
On 03/17/2016 11:52 AM, Hans de Goede wrote: > > 3) The phy settings, unfortunately I do not know of > a way to dump these, so lets just forget about these > and focus on the other 2. > You can dump these with 'mii read' in u-boot. I sat down with the rtl8211eg data sheet and decided to look at 'P

[U-Boot] [PATCH 00/14] dm: Fix various issues reported by coverity

2016-03-20 Thread Simon Glass
A lot of issues have been found in the error handling with recent additions to the FIT handling code in mkimage. In some cases buffers are not freed or files are not closed. Fix these problems and a few others in existing code that coverity noticed due to recent patches. Simon Glass (14): mkima

Re: [U-Boot] [PATCH 14/14] usb: Correct return value in usb_stor_info()

2016-03-20 Thread Tom Rini
On Wed, Mar 16, 2016 at 07:45:44AM -0600, Simon Glass wrote: > This should return 0 on success, not 1. Fix it. > > Signed-off-by: Simon Glass Reviewed-by: Tom Rini -- Tom signature.asc Description: Digital signature ___ U-Boot mailing list U-Boot

[U-Boot] [PATCH] cmd_dhry.c: Use lldiv for vax_mips calculation as well

2016-03-20 Thread Tom Rini
Since dhry_per_sec is a u64 we must also use lldiv here when working with it. Otherwise: ../lib/dhry/cmd_dhry.c:(.text.do_dhry+0xd8): undefined reference to `__udivdi3' On some platforms. Signed-off-by: Tom Rini --- lib/dhry/cmd_dhry.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[U-Boot] Which entry in drivers/net/phy/realtek.c matches my device?

2016-03-20 Thread Michael Haas
Hello all, I'd like to add some device-specific hacks to realtek.c. I'm using the Olimex A20-OlinuXino-Lime2 which uses the RTL8211CL PHY. Which of the various phy_driver structs is responsible for that device? I presume it's keyed off the .uid, but I'm not sure how to find the ID of the specific