Re: [U-Boot] [PATCHv3 2/3] driver/ddr/altera/: Add the sdram calibration portion

2015-05-21 Thread Stefan Roese
On 22.05.2015 04:43, Dinh Nguyen wrote: On 5/21/15 6:35 PM, Marek Vasut wrote: On Monday, May 18, 2015 at 09:36:48 PM, dingu...@opensource.altera.com wrote: From: Dinh Nguyen This patch adds the DDR calibration portion of the Altera SDRAM driver. Signed-off-by: Dinh Nguyen Hi, DTTO her

Re: [U-Boot] [PATCH v2 4/6] sunxi: Update sunxi-common.h to deal with different A1-SRAM base addr on sun9i

2015-05-21 Thread Ian Campbell
On Fri, 2015-05-22 at 00:27 +0200, Hans de Goede wrote: > Hi, > > On 21-05-15 21:07, Ian Campbell wrote: > > On Wed, 2015-05-20 at 15:35 +0200, Hans de Goede wrote: > >> The A1 SRAM Base differs between sun9i and the others, update > >> sunxi-common.h > >> to deal with this, so that we do not set

Re: [U-Boot] Proposal to add NAND-boot support for Sunxi SPL

2015-05-21 Thread kaplan2539
Hi Roy, I could definitely use such a howto. I have applied the patches to the current mainline u-boot head and try to boot my A13-OlinXino Wifi board in FEL mode. I can compile and boot into u-boot via FEL. However, I get these errors when I have CONFIG_SPL_NAND_SUPPORT defined: U-Boot SPL 20

Re: [U-Boot] [PATCHv3 2/3] driver/ddr/altera/: Add the sdram calibration portion

2015-05-21 Thread Dinh Nguyen
On 5/21/15 6:35 PM, Marek Vasut wrote: > On Monday, May 18, 2015 at 09:36:48 PM, dingu...@opensource.altera.com wrote: >> From: Dinh Nguyen >> >> This patch adds the DDR calibration portion of the Altera SDRAM driver. >> >> Signed-off-by: Dinh Nguyen > > Hi, > > DTTO here. The code is still u

Re: [U-Boot] [PATCH v4 3/4] Combine bootm_find_ functions together

2015-05-21 Thread Simon Glass
On 21 May 2015 at 07:52, Karl Apsite wrote: > bootm_find_ramdisk_fdt() renamed to bootm_find_images() for readability. > > The function bootm_find_ramdisk_fdt() appears to be a simple wrapper for > bootm_find_ramdisk(), bootm_find_fdt(), and now bootm_find_loadables(). > I didn't see any other cal

Re: [U-Boot] [PATCH v4 4/4] add test for two 'loadables'

2015-05-21 Thread Simon Glass
On 21 May 2015 at 07:52, Karl Apsite wrote: > From: Karl Apsite > > Nothing too fancy. A simple test that attmpts to load two loadables and > verify that they are properly unpacked in the u-boot sandbox. > Signed-off-by: Karl Apsite > --- > > Changes in v4: > - Forgot to remove an extra printlin

Re: [U-Boot] [PATCH v4 1/4] mkimage will now report information about loadable

2015-05-21 Thread Simon Glass
On 21 May 2015 at 07:52, Karl Apsite wrote: > > From: Karl Apsite > > Added FIT_LOADABLE_PROP, so the user can identify an optional entry > named "loadables" in their .its configuration. "loadables" is a comma > separated list in the .its > > Documentation can be found in doc/uImage.FIT/source_fi

Re: [U-Boot] [PATCH v4 2/4] add boot_get_loadables() to load listed images

2015-05-21 Thread Simon Glass
On 21 May 2015 at 07:52, Karl Apsite wrote: > From: Karl Apsite > > Added a trimmed down instance of boot_get_() to satisfy the > minimum requierments of the added feature. The function follows the > normal patterns set by other boot_get's, which should make it a > bit easier to combine them all

Re: [U-Boot] [PATCH] usb: ohci: enable cache support

2015-05-21 Thread Marek Vasut
On Tuesday, May 19, 2015 at 12:43:43 PM, Hans de Goede wrote: > Hi, > > On 19-05-15 12:44, Josh Wu wrote: > > Remove the CONFIG_DM_USB limitation to enable cache support functions. > > Tested on SAMA5D3x-EK board. > > > > Signed-off-by: Josh Wu > > Looks good to me: > > Acked-by: Hans de Goede

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

2015-05-21 Thread Marek Vasut
On Friday, May 22, 2015 at 02:34:25 AM, Tom Rini wrote: > On Fri, May 22, 2015 at 01:54:55AM +0200, Marek Vasut wrote: > > On Wednesday, May 20, 2015 at 01:24:06 PM, Tom Rini wrote: > > > On Tue, May 19, 2015 at 07:58:26PM +0200, Marek Vasut wrote: > > > > Updated PR, dropped the patch from Hans an

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

2015-05-21 Thread Tom Rini
On Fri, May 22, 2015 at 01:54:55AM +0200, Marek Vasut wrote: > On Wednesday, May 20, 2015 at 01:24:06 PM, Tom Rini wrote: > > On Tue, May 19, 2015 at 07:58:26PM +0200, Marek Vasut wrote: > > > Updated PR, dropped the patch from Hans and picked the OHCI cache > > > patch instead: > > > > > > The fo

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

2015-05-21 Thread Marek Vasut
On Wednesday, May 20, 2015 at 01:24:06 PM, Tom Rini wrote: > On Tue, May 19, 2015 at 07:58:26PM +0200, Marek Vasut wrote: > > Updated PR, dropped the patch from Hans and picked the OHCI cache > > patch instead: > > > > The following changes since commit 0e6b7a28243175ae0874d53b6e6e4eff8548d71f: >

Re: [U-Boot] [PATCH v4] usb: kbd: Fix key repeat not always working

2015-05-21 Thread Marek Vasut
On Tuesday, May 19, 2015 at 10:51:03 PM, Hans de Goede wrote: > The usb-kbd key repeat code assumes that reports get repeated every 40 ms, > this is never true when using CONFIG_SYS_USB_EVENT_POLL_VIA_CONTROL_EP, and > does not always works for CONFIG_SYS_USB_EVENT_POLL and > CONFIG_SYS_USB_EVENT_P

Re: [U-Boot] [PATCHv3 1/3] driver/ddr/altera: Add DDR driver for Altera's SDRAM controller

2015-05-21 Thread Marek Vasut
On Monday, May 18, 2015 at 09:36:47 PM, dingu...@opensource.altera.com wrote: > From: Dinh Nguyen > > This patch enables the SDRAM controller that is used on Altera's SoCFPGA > family. This patch configures the SDRAM controller based on a configuration > file that is generated from the Quartus to

Re: [U-Boot] [PATCHv3 3/3] arm: socfpga: enable the Altera SDRAM controller driver

2015-05-21 Thread Marek Vasut
On Monday, May 18, 2015 at 09:36:49 PM, dingu...@opensource.altera.com wrote: > From: Dinh Nguyen > > Enable the Altera SDRAM driver for the SoCFPGA platform. > > Signed-off-by: Dinh Nguyen Acked-by: Marek Vasut Best regards, Marek Vasut ___ U-Boot

Re: [U-Boot] [PATCHv3 2/3] driver/ddr/altera/: Add the sdram calibration portion

2015-05-21 Thread Marek Vasut
On Monday, May 18, 2015 at 09:36:48 PM, dingu...@opensource.altera.com wrote: > From: Dinh Nguyen > > This patch adds the DDR calibration portion of the Altera SDRAM driver. > > Signed-off-by: Dinh Nguyen Hi, DTTO here. The code is still ugly, but I'm afraid it's not gonna get any better if w

Re: [U-Boot] [PATCH 0/10 v2] i.MX6: move duplicated options to mx6_common to standardise mx6 config

2015-05-21 Thread Peter Robinson
Hi Stefano, Sorry for the delay, we're on the pointy end of the Fedora 22 release and that's been taking my time. > On 11/05/2015 18:22, Peter Robinson wrote: >> There's a lot of common options in the i.MX6 boards that are repeated across >> a >> lot of the devices. There's a mx6_common.h which

Re: [U-Boot] [PATCH] usb: imx: Allow multiple USB ports to be used at the same time on mx5

2015-05-21 Thread Marek Vasut
On Thursday, May 21, 2015 at 11:02:55 PM, Matthew Starr wrote: > CONFIG_MXC_USB_PORT was used to define which USB port was to be > initialized. If CONFIG_USB_MAX_CONTROLLER_COUNT > 1, then the > port specified by CONFIG_MXC_USB_PORT would be duplicated > CONFIG_USB_MAX_CONTROLLER_COUNT times inclu

[U-Boot] [PATCH] imx: ventana: update README with Falcon mode documentation

2015-05-21 Thread Tim Harvey
Signed-off-by: Tim Harvey --- board/gateworks/gw_ventana/README | 169 ++ 1 file changed, 169 insertions(+) diff --git a/board/gateworks/gw_ventana/README b/board/gateworks/gw_ventana/README index 74698b7..697e5c8 100644 --- a/board/gateworks/gw_ventana/READM

[U-Boot] [PATCH] spl: spl_mmc: fix mmc Falcon mode regression

2015-05-21 Thread Tim Harvey
91199f4a5a21a7cf9dd9e7c05e295a042f8c2b7e broke mmc based Falcon mode. The block_read function returns the number of blocks read thus the error check needs to look for a return of 0 blocks read. Cc: Paul Kocialkowski Signed-off-by: Tim Harvey --- common/spl/spl_mmc.c | 2 +- 1 file changed, 1 i

Re: [U-Boot] [PATCH v2 4/6] sunxi: Update sunxi-common.h to deal with different A1-SRAM base addr on sun9i

2015-05-21 Thread Hans de Goede
Hi, On 21-05-15 21:07, Ian Campbell wrote: On Wed, 2015-05-20 at 15:35 +0200, Hans de Goede wrote: The A1 SRAM Base differs between sun9i and the others, update sunxi-common.h to deal with this, so that we do not set the initial stack pointer to point to the BROM. This removes the need for the

[U-Boot] [PATCH v2] wandboard: Add board revision detection support

2015-05-21 Thread Fabio Estevam
From: Fabio Estevam There are two revisions of wandboard: version B1 and C1. Add the revision detection support, so that the correct dtb file can be automatically loaded. Based on the patch from Richard Hu . Signed-off-by: Fabio Estevam --- Changes since v1: - Fixed commit log to 'automatica

Re: [U-Boot] [PATCH] usb: imx: Allow multiple USB ports to be used at the same time on mx5

2015-05-21 Thread Simon Glass
Hi, On 21 May 2015 at 15:13, Matthew Starr wrote: > Simon, > >> On 21 May 2015 at 15:02, Matthew Starr wrote: >> > >> > CONFIG_MXC_USB_PORT was used to define which USB port was to be >> > initialized. If CONFIG_USB_MAX_CONTROLLER_COUNT > 1, then the port >> > specified by CONFIG_MXC_USB_PORT w

Re: [U-Boot] [PATCH] usb: imx: Allow multiple USB ports to be used at the same time on mx5

2015-05-21 Thread Matthew Starr
Simon, > On 21 May 2015 at 15:02, Matthew Starr wrote: > > > > CONFIG_MXC_USB_PORT was used to define which USB port was to be > > initialized. If CONFIG_USB_MAX_CONTROLLER_COUNT > 1, then the port > > specified by CONFIG_MXC_USB_PORT would be duplicated > > CONFIG_USB_MAX_CONTROLLER_COUNT times

Re: [U-Boot] [PATCH] usb: imx: Allow multiple USB ports to be used at the same time on mx5

2015-05-21 Thread Simon Glass
Hi, On 21 May 2015 at 15:02, Matthew Starr wrote: > > CONFIG_MXC_USB_PORT was used to define which USB port was to be > initialized. If CONFIG_USB_MAX_CONTROLLER_COUNT > 1, then the > port specified by CONFIG_MXC_USB_PORT would be duplicated > CONFIG_USB_MAX_CONTROLLER_COUNT times including dupl

[U-Boot] [PATCH] usb: imx: Allow multiple USB ports to be used at the same time on mx5

2015-05-21 Thread Matthew Starr
CONFIG_MXC_USB_PORT was used to define which USB port was to be initialized. If CONFIG_USB_MAX_CONTROLLER_COUNT > 1, then the port specified by CONFIG_MXC_USB_PORT would be duplicated CONFIG_USB_MAX_CONTROLLER_COUNT times including duplicating all devices connected to the ports. None of the other

[U-Boot] [PATCH 0/1] Allow multiple USB ports to be used on Freescale mx5 boards

2015-05-21 Thread Matthew Starr
Currently only one USB port on mx5 boards can be enabled and that USB port is defined by CONFIG_MXC_USB_PORT. Removing the use of CONFIG_MXC_USB_PORT and instead supporting CONFIG_USB_MAX_CONTROLLER_COUNT to populate that number of USB ports starting with port 0 allows multiple USB ports to be us

Re: [U-Boot] [PATCH v2] fdt: Pass the device serial number through devicetree

2015-05-21 Thread Simon Glass
Hi Paul, On 21 May 2015 at 03:27, Paul Kocialkowski wrote: > Before device-tree, the device serial number used to be passed to the kernel > using ATAGs (on ARM). This is now deprecated and all the handover to the > kernel > should now be done using device-tree. Thus, this passes the serial-numbe

[U-Boot] [PATCH] wandboard: Add board revision detection support

2015-05-21 Thread Fabio Estevam
From: Fabio Estevam There are two revisions of wandboard: version B1 and C1. Add the revision detection support, so that the correct dtb file can be correctly loaded. Based on the patch from Richard Hu . Signed-off-by: Fabio Estevam --- board/wandboard/wandboard.c | 26 ++

Re: [U-Boot] [PATCH V2 RESEND] nand: fix buffer alignment in new verification feature

2015-05-21 Thread Scott Wood
On Thu, 2015-05-21 at 13:02 -0600, Stephen Warren wrote: > On 05/06/2015 09:54 PM, Heiko Schocher wrote: > > Hello Stephen, > > > > Am 06.05.2015 18:01, schrieb Stephen Warren: > >> From: Stephen Warren > >> > >> On systems with caches enabled, NAND I/O may need to flush/invalidate > >> the cache

[U-Boot] [PATCH] net: Fix a warning added by 76ec988

2015-05-21 Thread Joe Hershberger
arm: + lsxhl w+board/buffalo/lsxl/lsxl.c: In function 'rescue_mode': w+board/buffalo/lsxl/lsxl.c:230:8: warning: unused variable 'enetaddr' [-Wunused-variable] arm: + lschlv2 w+board/buffalo/lsxl/lsxl.c: In function 'rescue_mode': w+board/buffalo/lsxl/lsxl.c:230:8: warning: unu

Re: [U-Boot] [PATCH v2 4/6] sunxi: Update sunxi-common.h to deal with different A1-SRAM base addr on sun9i

2015-05-21 Thread Ian Campbell
On Wed, 2015-05-20 at 15:35 +0200, Hans de Goede wrote: > The A1 SRAM Base differs between sun9i and the others, update sunxi-common.h > to deal with this, so that we do not set the initial stack pointer to point > to the BROM. > > This removes the need for the weird undocumented register write I

Re: [U-Boot] [PATCH v2 3/6] sunxi: Update sunxi-common.h to deal with different DRAM base addr on sun9i

2015-05-21 Thread Ian Campbell
On Wed, 2015-05-20 at 15:35 +0200, Hans de Goede wrote: > The DRAM Base differs between sun9i and the others, update sunxi-common.h to > deal with this. > > Signed-off-by: Hans de Goede Acked-by: Ian Campbell ___ U-Boot mailing list U-Boot@lists.denx

Re: [U-Boot] [PATCH v2 2/6] sunxi: Remove support for building "old-fashioned" fel binaries

2015-05-21 Thread Ian Campbell
On Wed, 2015-05-20 at 15:35 +0200, Hans de Goede wrote: > The latest versions of the fel tool support loading normal u-boot builds > directly, and this is now the preferred way to use the fel boot method. Has sunxi-tools with that actually been released? I don't think so, we should probably prod $

Re: [U-Boot] [PATCH v2 1/6] sunxi: Use axp221 sid on a33

2015-05-21 Thread Ian Campbell
On Wed, 2015-05-20 at 15:35 +0200, Hans de Goede wrote: > Unlike the A31 and the A23 the A33 actually has a SID inside the SoC again, > but sid[3] is 0 (at least on some SoCs), so it is better to use the axp221 > sid. > > Signed-off-by: Hans de Goede Acked-by: Ian Campbell ___

Re: [U-Boot] [PATCH 2/2] nand: sunxi: Add support for booting from internal NAND memory

2015-05-21 Thread Ian Campbell
On Thu, 2015-05-21 at 20:39 +0200, Hans de Goede wrote: [...] > Please create a struct reflecting the register layout and > then initialize a ptr to this struct from the base-address > and get register addresses this way, this is how we deal > with this in pretty much all other sunxi code, see e.g.

Re: [U-Boot] [PATCH V2 RESEND] nand: fix buffer alignment in new verification feature

2015-05-21 Thread Stephen Warren
On 05/06/2015 09:54 PM, Heiko Schocher wrote: Hello Stephen, Am 06.05.2015 18:01, schrieb Stephen Warren: From: Stephen Warren On systems with caches enabled, NAND I/O may need to flush/invalidate the cache during read/write operations. For this to work correctly, all buffers must be cache-al

Re: [U-Boot] [PATCH 2/2] nand: sunxi: Add support for booting from internal NAND memory

2015-05-21 Thread Hans de Goede
Hi, On 21-05-15 15:59, Roy Spliet wrote: From: Daniel Kochmański V2: - Rename config option - Move to separate driver - fix DMA directly into RAM - Many readability upgrades - Drop R32 and W32 macros in favour of readl/writel respectively - Use standard port controller methods for pinctl - Mak

Re: [U-Boot] [PATCH 1/2] nand: sunxi: change BLOCK_SIZE in mksunxiboot to match NAND block size

2015-05-21 Thread Hans de Goede
Hi, On 21-05-15 15:59, Roy Spliet wrote: From: Daniel Kochmański This change is necessary to calculate correct checksum for NAND boot. Works both for MMC and NAND. Without it BROM rejects boot image as invalid (bad checksum). (Changes block size from 0x200 to 0x2000). V2: Document decision in

Re: [U-Boot] Proposal to add NAND-boot support for Sunxi SPL

2015-05-21 Thread Hans de Goede
Hi Roy, On 21-05-15 15:59, Roy Spliet wrote: The following patches take the work by Daniel Kochmánski, and make some heavy modifications for readability and functionality, based on Boris Brezillon's Linux driver. Tested on an Olimex Lime w/ A20. Patches are sent as RFC. Open questions: - Config

Re: [U-Boot] [PATCH] thermal: imx_thermal: increase critical temperature threshold

2015-05-21 Thread Liu Jason
From: Tim Harvey Sent: Thursday, May 21, 2015 11:40 PM To: Stefano Babic Cc: u-boot@lists.denx.de; Stefan Roese; Eric Nelson; Heiko Schocher; Nikita Kiryanov; Jon Nettleton; Liu Hui-R64343; Li Ye-B37916; Estevam Fabio-R49496; Christian Gmeiner; Markus N

Re: [U-Boot] [PATCH 19/19] imx: ventana: config: enable Falcon mode

2015-05-21 Thread Tim Harvey
On Thu, May 21, 2015 at 9:46 AM, Stefan Roese wrote: > Hi Stefano, > > On 21.05.2015 18:17, Stefano Babic wrote: >> >> On 19/05/2015 15:26, Tim Harvey wrote: >> >>> Note that Falcon mode also requires you have a function in the SPL >>> that decides to boot U-Boot or to skip it and boot the OS dire

Re: [U-Boot] [PATCH 19/19] imx: ventana: config: enable Falcon mode

2015-05-21 Thread Stefano Babic
Hi Stefan, On 21/05/2015 18:46, Stefan Roese wrote: >> If you use an environment variable and the environment is put into the >> NAND (with MMC you can change the card), there is nothing you can do >> anymore. Board tries to boot until next panic, and then again and again. > > Some boards just d

Re: [U-Boot] [PATCH 00/19] imx: ventana: misc updates

2015-05-21 Thread Stefano Babic
On 21/05/2015 18:56, Tom Rini wrote: > On Fri, May 15, 2015 at 03:57:52PM -0300, Otavio Salvador wrote: >> On Fri, May 15, 2015 at 1:56 PM, Stefano Babic wrote: >>> On 15/05/2015 18:30, Tim Harvey wrote: > Patches 1-7, 10-16, 18 applied to u-boot-imx, thanks ! You were right to hold off o

Re: [U-Boot] [PATCH 00/19] imx: ventana: misc updates

2015-05-21 Thread Tom Rini
On Fri, May 15, 2015 at 03:57:52PM -0300, Otavio Salvador wrote: > On Fri, May 15, 2015 at 1:56 PM, Stefano Babic wrote: > > On 15/05/2015 18:30, Tim Harvey wrote: > >>> Patches 1-7, 10-16, 18 applied to u-boot-imx, thanks ! > >> You were right to hold off on 19 as it will fail to compile until >

Re: [U-Boot] [PATCH 19/19] imx: ventana: config: enable Falcon mode

2015-05-21 Thread Stefan Roese
Hi Stefano, On 21.05.2015 18:17, Stefano Babic wrote: On 19/05/2015 15:26, Tim Harvey wrote: Note that Falcon mode also requires you have a function in the SPL that decides to boot U-Boot or to skip it and boot the OS directly. In the Gateworks Ventana case I didn't want to make this completel

Re: [U-Boot] [PATCH 19/19] imx: ventana: config: enable Falcon mode

2015-05-21 Thread Stefano Babic
Hi Tim, On 19/05/2015 15:26, Tim Harvey wrote: > Note that Falcon mode also requires you have a function in the SPL > that decides to boot U-Boot or to skip it and boot the OS directly. In > the Gateworks Ventana case I didn't want to make this completely > dependent on a GPIO/Button because this

[U-Boot] [PATCH] imx: ventana: update README for micro-SD boot medium

2015-05-21 Thread Tim Harvey
Signed-off-by: Tim Harvey --- board/gateworks/gw_ventana/README | 74 +-- 1 file changed, 71 insertions(+), 3 deletions(-) diff --git a/board/gateworks/gw_ventana/README b/board/gateworks/gw_ventana/README index 888657c..74698b7 100644 --- a/board/gateworks/g

Re: [U-Boot] [PATCH] wandboard: Switch to SPL support

2015-05-21 Thread Stefano Babic
Hi Fabio, On 21/05/2015 17:30, Fabio Estevam wrote: > Could this one be applied, please? > > I would like to send another patch that depends on this one. > My mistake - it was already planned to be merged. I'll apply it. Regards, Stefano -- =

[U-Boot] [PATCH] imx: ventana: update MMC env configuration

2015-05-21 Thread Tim Harvey
We will use the same env size and redundancy used for NAND env for MMC. Signed-off-by: Tim Harvey --- include/configs/gw_ventana.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/configs/gw_ventana.h b/include/configs/gw_ventana.h index 533cbc3..b424f48 100644 --

[U-Boot] [PATCH] thermal: imx_thermal: increase critical temperature threshold

2015-05-21 Thread Tim Harvey
The CPU temperature grade from OTP is now used to define the critical threshold at which point we busyloop until we are below, however this threshold is still too low. Instead of 20C below the max CPU temperature, change it to 5C defined now by TEMPERATURE_HOT_DETLA for clarity. Rename 'passive' t

Re: [U-Boot] [PATCH] wandboard: Switch to SPL support

2015-05-21 Thread Fabio Estevam
Hi Stefano, On Fri, May 15, 2015 at 9:42 AM, Stefano Babic wrote: > Hi Fabio, > > On 12/05/2015 01:50, Fabio Estevam wrote: >> From: Fabio Estevam >> >> Currently we need to build one U-boot image for each of the wandboard >> variants: quad, dual-lite and solo. >> >> By switching to SPL we can s

[U-Boot] Proposal to add NAND-boot support for Sunxi SPL

2015-05-21 Thread Roy Spliet
The following patches take the work by Daniel Kochmánski, and make some heavy modifications for readability and functionality, based on Boris Brezillon's Linux driver. Tested on an Olimex Lime w/ A20. Patches are sent as RFC. Open questions: - Config options added are partially NAND-chip specific.

[U-Boot] [PATCH 1/2] nand: sunxi: change BLOCK_SIZE in mksunxiboot to match NAND block size

2015-05-21 Thread Roy Spliet
From: Daniel Kochmański This change is necessary to calculate correct checksum for NAND boot. Works both for MMC and NAND. Without it BROM rejects boot image as invalid (bad checksum). (Changes block size from 0x200 to 0x2000). V2: Document decision in source too Signed-off-by: Daniel Kochmańsk

[U-Boot] [PATCH 2/2] nand: sunxi: Add support for booting from internal NAND memory

2015-05-21 Thread Roy Spliet
From: Daniel Kochmański V2: - Rename config option - Move to separate driver - fix DMA directly into RAM - Many readability upgrades - Drop R32 and W32 macros in favour of readl/writel respectively - Use standard port controller methods for pinctl - Make many NAND options semi-configurable Signe

[U-Boot] [PATCH v4 1/4] mkimage will now report information about loadable

2015-05-21 Thread Karl Apsite
From: Karl Apsite Added FIT_LOADABLE_PROP, so the user can identify an optional entry named "loadables" in their .its configuration. "loadables" is a comma separated list in the .its Documentation can be found in doc/uImage.FIT/source_file_format.txt and doc/uImage.

[U-Boot] [PATCH v4 4/4] add test for two 'loadables'

2015-05-21 Thread Karl Apsite
From: Karl Apsite Nothing too fancy. A simple test that attmpts to load two loadables and verify that they are properly unpacked in the u-boot sandbox. Signed-off-by: Karl Apsite --- Changes in v4: - Forgot to remove an extra printline that I tossed in while I was writing the tests. It's go

[U-Boot] [PATCH v4 2/4] add boot_get_loadables() to load listed images

2015-05-21 Thread Karl Apsite
From: Karl Apsite Added a trimmed down instance of boot_get_() to satisfy the minimum requierments of the added feature. The function follows the normal patterns set by other boot_get's, which should make it a bit easier to combine them all together into one boot_get_image() function in a later

[U-Boot] [PATCH v4 3/4] Combine bootm_find_ functions together

2015-05-21 Thread Karl Apsite
bootm_find_ramdisk_fdt() renamed to bootm_find_images() for readability. The function bootm_find_ramdisk_fdt() appears to be a simple wrapper for bootm_find_ramdisk(), bootm_find_fdt(), and now bootm_find_loadables(). I didn't see any other callers entering a bootm_find, so removing the wrapper, a

[U-Boot] [PATCH v4 0/4] New tag for Flattened Image Trees (FIT) - Booting Xen from a FIT.

2015-05-21 Thread Karl Apsite
The FIT config now supports a tag named "loadables:" which is a comma separated list. Users can add any number of images to the list, and u-boot will move the selected binaries to their listed load_addresses. This allows u-boot to boot xen from using an FIT configuration. Xen expects a kernel to

Re: [U-Boot] [PATCH v4 00/26] Improve env var handling for net stack

2015-05-21 Thread Joe Hershberger
Hi Tom, On Thu, May 21, 2015 at 8:33 AM, Tom Rini wrote: > On Wed, May 20, 2015 at 02:38:05PM -0500, Joe Hershberger wrote: >> Hi Tom, >> >> On Wed, May 20, 2015 at 9:58 AM, Tom Rini wrote: >> > On Thu, May 07, 2015 at 04:48:51AM -0500, Joe Hershberger wrote: >> > >> >> This includes moving CONF

Re: [U-Boot] Pull request: u-boot-net.git master

2015-05-21 Thread Joe Hershberger
Hi Tom, On Thu, May 21, 2015 at 8:09 AM, Tom Rini wrote: > On Wed, May 20, 2015 at 12:11:36PM -0500, Joe Hershberger wrote: >> Hi Tom, >> >> On Wed, May 20, 2015 at 6:28 AM, Tom Rini wrote: >> > On Tue, May 19, 2015 at 01:56:47PM -0500, Joe Hershberger wrote: >> > >> >> Hi Tom, >> >> >> >> This

Re: [U-Boot] [PATCH v4 00/26] Improve env var handling for net stack

2015-05-21 Thread Tom Rini
On Wed, May 20, 2015 at 02:38:05PM -0500, Joe Hershberger wrote: > Hi Tom, > > On Wed, May 20, 2015 at 9:58 AM, Tom Rini wrote: > > On Thu, May 07, 2015 at 04:48:51AM -0500, Joe Hershberger wrote: > > > >> This includes moving CONFIG_REGEX to Kconfig and adding support for > >> regex to the env_a

Re: [U-Boot] [PATCH] sunxi: musb: Properly put the musb controller back in reset on exit

2015-05-21 Thread Hans de Goede
Hi, On 21-05-15 14:45, Chen-Yu Tsai wrote: On Wed, May 20, 2015 at 10:40 PM, Hans de Goede wrote: Assert reset and disable the clock to properly put the musb controller back in reset on exit. Last I checked the exit functions are not called except for error handling in the probe sequence. Ha

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

2015-05-21 Thread Tom Rini
On Tue, May 19, 2015 at 10:23:54PM +0200, Hans de Goede wrote: > Hi Tom, > > Please pull u-boot-sunxi/master into master for various small bugfixes, > improvements and one new board. > > The following changes since commit 0e6b7a28243175ae0874d53b6e6e4eff8548d71f: > > Merge git://git.denx.de/u

Re: [U-Boot] Pull request: u-boot-net.git master

2015-05-21 Thread Tom Rini
On Wed, May 20, 2015 at 12:11:36PM -0500, Joe Hershberger wrote: > Hi Tom, > > On Wed, May 20, 2015 at 6:28 AM, Tom Rini wrote: > > On Tue, May 19, 2015 at 01:56:47PM -0500, Joe Hershberger wrote: > > > >> Hi Tom, > >> > >> This contains a few bug fixes and features from earlier in the merge > >

Re: [U-Boot] [PATCH v2] README.scrapyard: add entries for dead board, T4240EMU and sc3

2015-05-21 Thread Tom Rini
On Fri, May 15, 2015 at 11:51:32AM +0900, Masahiro Yamada wrote: > Follow-up commit 7fc63cca611b (mpc85xx/T4240EMU: Remove T4240EMU > board), and commit 27e721564591 (ppc4xx: Remove sc3 board), > filling the blank fields. > > Reviewed-by: Stefan Roese > Signed-off-by: Masahiro Yamada Applied t

Re: [U-Boot] [PATCH] sunxi: musb: Properly put the musb controller back in reset on exit

2015-05-21 Thread Chen-Yu Tsai
On Wed, May 20, 2015 at 10:40 PM, Hans de Goede wrote: > Assert reset and disable the clock to properly put the musb controller > back in reset on exit. Last I checked the exit functions are not called except for error handling in the probe sequence. Has this been fixed? ChenYu > Signed-off-by:

Re: [U-Boot] [PATCH] mxs: Do not disable bo detection when DC-DC is already enabled

2015-05-21 Thread Marek Vasut
On Thursday, May 21, 2015 at 01:20:17 PM, Stefan Wahren wrote: > In case the DC-DC is already enabled mxs_enable_4p2_dcdc_input() returns > without reenabling brown out detection. So fix this issue by > moving the return before brown out deactivation. > > Signed-off-by: Stefan Wahren Reviewed-by

Re: [U-Boot] Ramdisk Error

2015-05-21 Thread Andreas Bießmann
Dear Gaurav Pathak, On 05/21/2015 12:01 PM, Gaurav Pathak wrote: > Hello, > I have two versions of u-boot one is U-Boot 2012.10-00142-g56ac3aa-dirty > and the latest one is U-Boot 2015.01-linux4sam_4.7-dirty. > I am using ATSAMA5D31, the issue that I am facing is that the older version > of u-boot

[U-Boot] [PATCH] mxs: Do not disable bo detection when DC-DC is already enabled

2015-05-21 Thread Stefan Wahren
In case the DC-DC is already enabled mxs_enable_4p2_dcdc_input() returns without reenabling brown out detection. So fix this issue by moving the return before brown out deactivation. Signed-off-by: Stefan Wahren --- arch/arm/cpu/arm926ejs/mxs/spl_power_init.c | 10 +- 1 file changed, 5

[U-Boot] Problem with saveenv and uboot-envtools on eMMC

2015-05-21 Thread Tuan Nguyen
Hi all, I tried to use uboot-envtools but I got some problems: 1) Couldn't change partitions for save uboot environment. I want to save uboot environment in to my partition ( Fat32 ) by change value of CONFIG_SYS_MMC_ENV_PART in file : include/configs/am335x_evm.h to 3 4 but it didn't work

Re: [U-Boot] u-boot compilation error for altera socfpga cyclon 5 if gpio included

2015-05-21 Thread Altunbas Sabri (DC-IA/EAH2)
Hi, Thanks for response I don't find this path in my u-boot. Perhaps I use u-boot-2013-01-01. I crated it and gpio.h in it. But it doesn't work. Best regards >-Ursprüngliche Nachricht- >Von: s...@google.com [mailto:s...@google.com] Im Auftrag von Simon Glass >Gesendet: Mittwoch, 20. M

[U-Boot] Ramdisk Error

2015-05-21 Thread Gaurav Pathak
Hello, I have two versions of u-boot one is U-Boot 2012.10-00142-g56ac3aa-dirty and the latest one is U-Boot 2015.01-linux4sam_4.7-dirty. I am using ATSAMA5D31, the issue that I am facing is that the older version of u-boot i.e. "U-Boot 2012.10-00142-g56ac3aa-dirty" is able to load ramdisk of size

Re: [U-Boot] [PATCH 3/4] x86: quark: Implement PIRQ routing

2015-05-21 Thread Simon Glass
On 20 May 2015 at 01:55, Bin Meng wrote: > > Intel Quark SoC has the same interrupt routing mechanism as the > Queensbay platform, only the difference is that PCI devices' > INTA/B/C/D are harcoded and cannot be changed freely. > > Signed-off-by: Bin Meng > > --- > > arch/x86/cpu/quark/quark.c

Re: [U-Boot] i.MX53 USB Client not working

2015-05-21 Thread Fabio Estevam
Hi Matthew, On Wed, May 20, 2015 at 4:59 PM, Matthew Starr wrote: > I fixed the issues by switching all instances of CONFIG_MXC_USB_PORT with > index in drivers/usb/host/ehci-mx5.c and CONFIG_MXC_USB_PORT is no longer > used. Even if index is used in place of CONFIG_MXC_USB_PORT, if you wante

[U-Boot] [PATCH] net/phy: set led for rtl8211f phy

2015-05-21 Thread Shengzhou Liu
Initialize LCR rigister to configure green LED for Link, yellow LED for Active. Signed-off-by: Shengzhou Liu --- drivers/net/phy/realtek.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/net/phy/realtek.c b/drivers/net/phy/realtek.c index 79452a8..bba48da 100644 --- a/drivers

Re: [U-Boot] [PATCH 4/4] x86: Do sanity test on pirq table before writing

2015-05-21 Thread Simon Glass
On 20 May 2015 at 01:55, Bin Meng wrote: > If pirq_routing_table points to NULL, that means U-Boot fails to > generate the table before in create_pirq_routing_table(), so we > test it against NULL before actually writing it. > > Signed-off-by: Bin Meng > --- > > arch/x86/cpu/irq.c | 3 +++ > 1 f

[U-Boot] [PATCH v2] fdt: Pass the device serial number through devicetree

2015-05-21 Thread Paul Kocialkowski
Before device-tree, the device serial number used to be passed to the kernel using ATAGs (on ARM). This is now deprecated and all the handover to the kernel should now be done using device-tree. Thus, this passes the serial-number property to the kernel using the serial-number property of the root

Re: [U-Boot] [PATCH] imx: dma: correct MXS_DMA_ALIGNMENT

2015-05-21 Thread Peng Fan
Hi Marek, On Wed, May 20, 2015 at 01:06:21PM +0200, Marek Vasut wrote: >On Wednesday, May 20, 2015 at 04:28:48 AM, Peng Fan wrote: >> We should not hardcode MXS_DMA_ALIGNMENT to 32, since we can not guarantee >> that socs' cache line size is 32 bytes. >> If on chips whose cache line size is 64 byt

Re: [U-Boot] Fix fsl_elbc_nand driver

2015-05-21 Thread Scott Wood
On Wed, 2015-05-20 at 20:54 -0700, Andrei Yakimov wrote: > My problem only jesd230B do not specify PARAM command, > ONFI4.0 - do not expect column address for PARAM. > > Linux kernel cleary doing (NAND_CMD_PARAM, 0x40). > > This is bit annoying. > > Question is elbc/ifc old controllers - is it

Re: [U-Boot] [PATCH 2/2] arm/ls102xa: Add PSCI support for ls102xa

2015-05-21 Thread Wang Dongsheng
> -Original Message- > From: Jan Kiszka [mailto:jan.kis...@siemens.com] > Sent: Thursday, May 21, 2015 2:24 PM > To: Sun York-R58495; Wang Dongsheng-B40534; i...@hellion.org.uk; > hdego...@redhat.com; albert.u.b...@aribaud.net > Cc: Jin Zhengxiong-R64188; Wang Huan-B18965; Zhao Chenhui-B3

[U-Boot] [PATCH 1/2] serial_sh: Add OF support

2015-05-21 Thread Yoshinori Sato
Add device tree support. Signed-off-by: Yoshinori Sato --- doc/device-tree-bindings/serial/sh.txt | 6 ++ drivers/serial/serial_sh.c | 28 2 files changed, 34 insertions(+) create mode 100644 doc/device-tree-bindings/serial/sh.txt diff --git a/doc/

Re: [U-Boot] [PATCH 2/2] arm/ls102xa: Add PSCI support for ls102xa

2015-05-21 Thread Jan Kiszka
On 2015-05-20 19:15, York Sun wrote: > > > On 05/12/2015 10:59 PM, Dongsheng Wang wrote: >> From: Wang Dongsheng >> >> Base on PSCI services, implement CPU_ON/CPU_OFF for ls102xa platform. >> >> Tested on LS1021AQDS, LS1021ATWR. >> Test CPU hotplug times: 60K >> Test kernel boot times: 1.2K >> >

[U-Boot] [PATCH 2/2] serial_sh: Add standrad SCI (w/o FIFO) support

2015-05-21 Thread Yoshinori Sato
Add support for standard type SCI (without FIFO) port. Signed-off-by: Yoshinori Sato --- doc/device-tree-bindings/serial/sh.txt | 2 +- drivers/serial/serial_sh.c | 8 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/doc/device-tree-bindings/serial/sh.txt b/doc

Re: [U-Boot] Fix fsl_elbc_nand driver

2015-05-21 Thread Andrei Yakimov
For now lets stick with 1536 in u-boot. I will send a patch. At least it will not loosing flash over time as nand ages. I understand what you wish, and will take a look on it inside fresh new kernel. I found one more driver - marvel looks like have same problem. I will check how NAND_CMD_RNDOUT i

Re: [U-Boot] Fix fsl_elbc_nand driver

2015-05-21 Thread Andrei Yakimov
On Wed, 2015-05-20 at 21:46 -0500, Scott Wood wrote: > On Wed, 2015-05-20 at 19:42 -0700, Andrei Yakimov wrote: > > For now lets stick with 1536 in u-boot. > > I will send a patch. > > At least it will not loosing flash over time > > as nand ages. > > > > I understand what you wish, and will take

Re: [U-Boot] Fix fsl_elbc_nand driver

2015-05-21 Thread Scott Wood
On Wed, 2015-05-20 at 18:55 -0700, Andrei Yakimov wrote: > On Wed, 2015-05-20 at 20:37 -0500, Scott Wood wrote: > > On Wed, 2015-05-20 at 18:27 -0700, Andrei Yakimov wrote: > > > For elbc and imx due to we reading all at once, it can not be stateless, > > > we need to read more and more each time >

Re: [U-Boot] Fix fsl_elbc_nand driver

2015-05-21 Thread Scott Wood
On Wed, 2015-05-20 at 20:03 -0700, Andrei Yakimov wrote: > On Wed, 2015-05-20 at 21:46 -0500, Scott Wood wrote: > > On Wed, 2015-05-20 at 19:42 -0700, Andrei Yakimov wrote: > > > For now lets stick with 1536 in u-boot. > > > I will send a patch. > > > At least it will not loosing flash over time >

[U-Boot] [PATCH] powerpc: mpc85xx: Correct CONFIG_USB_MAX_CONTROLLER_COUNT for p1025

2015-05-21 Thread Nikhil Badola
Correct the value CONFIG_USB_MAX_CONTROLLER_COUNT macro to 1 for p1025 as it has one USB controller Signed-off-by: Nikhil Badola --- arch/powerpc/include/asm/config_mpc85xx.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/include/asm/config_mpc85xx.h b/arch/pow

Re: [U-Boot] Fix fsl_elbc_nand driver

2015-05-21 Thread Andrei Yakimov
On Wed, 2015-05-20 at 22:11 -0500, Scott Wood wrote: > On Wed, 2015-05-20 at 20:03 -0700, Andrei Yakimov wrote: > > On Wed, 2015-05-20 at 21:46 -0500, Scott Wood wrote: > > > On Wed, 2015-05-20 at 19:42 -0700, Andrei Yakimov wrote: > > > > For now lets stick with 1536 in u-boot. > > > > I will send

Re: [U-Boot] Fix fsl_elbc_nand driver

2015-05-21 Thread Andrei Yakimov
On Wed, 2015-05-20 at 20:37 -0500, Scott Wood wrote: > On Wed, 2015-05-20 at 18:27 -0700, Andrei Yakimov wrote: > > I will make a patch with 1536. > > > > Where should I send linux patch? > > They have bunch of mail lists for different subsystems. > > Andrei > > The MAINTAINERS file shows where t

Re: [U-Boot] Fix fsl_elbc_nand driver

2015-05-21 Thread Scott Wood
On Wed, 2015-05-20 at 19:42 -0700, Andrei Yakimov wrote: > For now lets stick with 1536 in u-boot. > I will send a patch. > At least it will not loosing flash over time > as nand ages. > > I understand what you wish, and will take a look > on it inside fresh new kernel. I found one more driver -

Re: [U-Boot] Fix fsl_elbc_nand driver

2015-05-21 Thread Andrei Yakimov
I will make a patch with 1536. Where should I send linux patch? They have bunch of mail lists for different subsystems. Andrei On Wed, 2015-05-20 at 17:25 -0500, Scott Wood wrote: > On Tue, 2015-05-19 at 16:42 -0700, Andrei Yakimov wrote: > > On Tue, 2015-05-19 at 17:38 -0500, Scott Wood wrote:

Re: [U-Boot] Fix fsl_elbc_nand driver

2015-05-21 Thread Scott Wood
On Wed, 2015-05-20 at 18:27 -0700, Andrei Yakimov wrote: > I will make a patch with 1536. > > Where should I send linux patch? > They have bunch of mail lists for different subsystems. > Andrei The MAINTAINERS file shows where to send patches for different subsystems. In this case it would be th

Re: [U-Boot] [PATCH] imx: dma: correct MXS_DMA_ALIGNMENT

2015-05-21 Thread Marek Vasut
On Thursday, May 21, 2015 at 03:16:32 AM, Peng Fan wrote: > Hi Marek, Hi! > On Wed, May 20, 2015 at 01:06:21PM +0200, Marek Vasut wrote: > >On Wednesday, May 20, 2015 at 04:28:48 AM, Peng Fan wrote: > >> We should not hardcode MXS_DMA_ALIGNMENT to 32, since we can not > >> guarantee that socs' ca

Re: [U-Boot] [PATCH v3 2/4] add boot_get_loadables() to load listed images

2015-05-21 Thread Simon Glass
Hi Karl, On 18 May 2015 at 16:27, Karl Apsite wrote: > From: Karl Apsite > > Added a trimmed down instance of boot_get_() to satisfy the > minimum requierments of the added feature. The function follows the > normal patterns set by other boot_get's, which should make it a > bit easier to combin

Re: [U-Boot] [PATCH v3 1/4] mkimage will now report information about loadable

2015-05-21 Thread Simon Glass
Hi Karl, On 18 May 2015 at 16:27, Karl Apsite wrote: > From: Karl Apsite > > Added FIT_LOADABLE_PROP, so the user can identify an optional entry > named "loadables" in their .its configuration. "loadables" is a comma > separated list in the .its > > Documentation can be found in doc/uImage.FIT/s

Re: [U-Boot] [PATCH v3 4/4] add test for two 'loadables'

2015-05-21 Thread Simon Glass
On 18 May 2015 at 16:27, Karl Apsite wrote: > From: Karl Apsite > > Nothing too fancy. A simple test that attmpts to load two loadables and > verify that they are properly unpacked in the u-boot sandbox. > Signed-off-by: Karl Apsite > --- > > Changes in v3: > - Moved the commit that adds the te

Re: [U-Boot] Fix fsl_elbc_nand driver

2015-05-21 Thread Scott Wood
On Tue, 2015-05-19 at 16:42 -0700, Andrei Yakimov wrote: > On Tue, 2015-05-19 at 17:38 -0500, Scott Wood wrote: > > On Tue, 2015-05-19 at 15:29 -0700, Andrei Yakimov wrote: > > > I did not compiling latest, I still in 2011.9 and 2.6.38. > > > I have go over latest kernel and can see they using > >

  1   2   >