[U-Boot] SPL Dfu update

2013-10-30 Thread Michael Trimarchi
Hi Lukasz We have discussed during the u-boot mini-summit the possibility to have the dfu update from SPL. Right now I'm trying to understand what is the best way to do: void spl_dfu_load_image() { int rv; env_init(); env_relocate(); setenv("dfu_alt_info", DFU_BO

Re: [U-Boot] SPL Dfu update

2013-10-30 Thread Michael Trimarchi
Hi On Wed, Oct 30, 2013 at 9:28 AM, Michael Trimarchi wrote: > Hi Lukasz > > We have discussed during the u-boot mini-summit the possibility to have > the dfu update from SPL. Right now I'm trying to understand what is the best > way to do: > > > void spl_dfu_load_image() > { > int rv; >

Re: [U-Boot] [PATCH] video: ipu_disp: Fix clock polarity logic

2013-10-30 Thread Stefano Babic
On 29/10/2013 18:46, Fabio Estevam wrote: > Currently the HDMI splash screen image quality on mx6solo does not show a > very stable image. > > By comparing the IPU driver from U-boot with the one from FSL 4.1.0 BSP, > we can see that there is an inverted logic for setting the DI_GEN_POL_CLK bit

Re: [U-Boot] [PATCH 3/4] arm: rmobile: Add support R8A7791

2013-10-30 Thread Albert ARIBAUD
On Thu, 17 Oct 2013 13:04:06 +0200, Albert ARIBAUD wrote: > Hi Nobuhiro, > > On Tue, 24 Sep 2013 15:38:34 +0900, Nobuhiro Iwamatsu > wrote: > > > Renesas R8A7791 is CPU with Cortex-A7 and A15. > > This supports the basic register definition and GPIO and > > framework of PFC. > > > > Signed-of

Re: [U-Boot] [PATCH] video: ipu_disp: Fix clock polarity logic

2013-10-30 Thread Anatolij Gustschin
On Tue, 29 Oct 2013 15:46:21 -0200 Fabio Estevam wrote: > Currently the HDMI splash screen image quality on mx6solo does not show a > very stable image. > > By comparing the IPU driver from U-boot with the one from FSL 4.1.0 BSP, > we can see that there is an inverted logic for setting the DI

[U-Boot] [RFC PATCH 3/7] arm: atmel: the offset of MULA is 18 in sama5d3

2013-10-30 Thread Bo Shen
The offset of MULA field in PLLA register in sama5d3 is 18, and the length only 7 bits. Signed-off-by: Bo Shen --- arch/arm/include/asm/arch-at91/at91_pmc.h |4 1 file changed, 4 insertions(+) diff --git a/arch/arm/include/asm/arch-at91/at91_pmc.h b/arch/arm/include/asm/arch-at91/at91

[U-Boot] [RFC PATCH 0/7] arm: atmel: sama5d3: enable spl boot from SD card

2013-10-30 Thread Bo Shen
This patch series enable spl boot from SD card, it only can boot u-boot itself. Bo Shen (7): arm: atmel: sama5d3: early enable PIO peripherals arm: atmel: sama5d3: correct the ID for DBGU and PIT arm: atmel: the offset of MULA is 18 in sama5d3 arm: atmel: sama5: correct the error define of

[U-Boot] [RFC PATCH 7/7] spl: mmc: FAT support boot u-boot

2013-10-30 Thread Bo Shen
Enable SPL support which can load u-boot from SD card in FAT format. Signed-off-by: Bo Shen --- arch/arm/cpu/armv7/Makefile|2 +- arch/arm/cpu/armv7/at91/u-boot-spl.lds | 50 + arch/arm/include/asm/arch-at91/spl.h | 17 + board/atmel/sama5d3xek/sama5d3xek.c

[U-Boot] [RFC PATCH 1/7] arm: atmel: sama5d3: early enable PIO peripherals

2013-10-30 Thread Bo Shen
Enable the PIO peripherals early that other peripherals. Signed-off-by: Bo Shen --- board/atmel/sama5d3xek/sama5d3xek.c |3 +++ 1 file changed, 3 insertions(+) diff --git a/board/atmel/sama5d3xek/sama5d3xek.c b/board/atmel/sama5d3xek/sama5d3xek.c index b0965ef..7fa3ae7 100644 --- a/board/a

[U-Boot] [RFC PATCH 4/7] arm: atmel: sama5: correct the error define of DIV

2013-10-30 Thread Bo Shen
Correct the error define of DIV. Signed-off-by: Bo Shen --- arch/arm/include/asm/arch-at91/at91_pmc.h |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/include/asm/arch-at91/at91_pmc.h b/arch/arm/include/asm/arch-at91/at91_pmc.h index 0d82960..c063213 100644 --

[U-Boot] [RFC PATCH 5/7] arm: atmel: add plla and mck initialize function

2013-10-30 Thread Bo Shen
Add plla and mck initialize function. Signed-off-by: Bo Shen --- arch/arm/cpu/armv7/at91/clock.c | 27 ++ arch/arm/include/asm/arch-at91/at91_common.h |2 ++ 2 files changed, 29 insertions(+) diff --git a/arch/arm/cpu/armv7/at91/clock.c b/arch/arm/cpu/

[U-Boot] [RFC PATCH 2/7] arm: atmel: sama5d3: correct the ID for DBGU and PIT

2013-10-30 Thread Bo Shen
As the DBGU and PIT has its own ID on sama5d3 SoC, while not share with SYS ID. So, correct them. Signed-off-by: Bo Shen --- arch/arm/cpu/armv7/at91/sama5d3_devices.c |2 +- arch/arm/cpu/armv7/at91/timer.c |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ar

[U-Boot] [RFC PATCH 6/7] arm: atmel: add ddr2 initialization function

2013-10-30 Thread Bo Shen
The MPDDRC supports different type of SDRAM This patch add ddr2 initialization function Signed-off-by: Bo Shen --- arch/arm/cpu/armv7/at91/Makefile |1 + arch/arm/cpu/armv7/at91/mpddrc.c | 123 + arch/arm/include/asm/arch-at91/atmel_mpddrc.h

Re: [U-Boot] [PATCH] video, formike: change tag/val write

2013-10-30 Thread Anatolij Gustschin
On Tue, 22 Oct 2013 11:06:24 +0200 Heiko Schocher wrote: > write first the "tag" 8 bit value and then the "val" 8-bit > to the display. > > Tested on the rut board. > > Signed-off-by: Heiko Schocher > Cc: Anatolij Gustschin > --- > drivers/video/formike.c | 7 --- > 1 file changed, 4 ins

Re: [U-Boot] [PATCH] video, cfb_console: make background and foreground color configurable

2013-10-30 Thread Anatolij Gustschin
On Tue, 22 Oct 2013 11:06:06 +0200 Heiko Schocher wrote: > make CONSOLE_BG_COL/CONSOLE_FG_COL configurable through board config file. > Clear video screen in video_init(). > > Signed-off-by: Heiko Schocher > Cc: Anatolij Gustschin > --- > README | 5 + > drivers/vide

Re: [U-Boot] [RFC PATCH 1/3] at91: add new gpio pin macros

2013-10-30 Thread Bo Shen
Hi Andreas, On 10/29/2013 20:53, Andreas Bießmann wrote: Signed-off-by: Andreas Bießmann --- arch/arm/include/asm/arch-at91/gpio.h | 34 - 1 file changed, 29 insertions(+), 5 deletions(-) diff --git a/arch/arm/include/asm/arch-at91/gpio.h b/arch/arm/includ

Re: [U-Boot] [RFC PATCH 1/7] arm: atmel: sama5d3: early enable PIO peripherals

2013-10-30 Thread Heiko Schocher
Hello bo, Am 30.10.2013 10:15, schrieb Bo Shen: Enable the PIO peripherals early that other peripherals. Signed-off-by: Bo Shen --- board/atmel/sama5d3xek/sama5d3xek.c |3 +++ 1 file changed, 3 insertions(+) diff --git a/board/atmel/sama5d3xek/sama5d3xek.c b/board/atmel/sama5d3xek/sama

Re: [U-Boot] [RFC PATCH 7/7] spl: mmc: FAT support boot u-boot

2013-10-30 Thread Heiko Schocher
Hello Bo, Am 30.10.2013 10:15, schrieb Bo Shen: Enable SPL support which can load u-boot from SD card in FAT format. Signed-off-by: Bo Shen --- arch/arm/cpu/armv7/Makefile|2 +- arch/arm/cpu/armv7/at91/u-boot-spl.lds | 50 + arch/arm/include/asm/arch-at91/spl.

Re: [U-Boot] [RFC PATCH 1/3] at91: add new gpio pin macros

2013-10-30 Thread Andreas Bießmann
Hi Bo, +Jens, he did the rewrite of the at91 gpio driver. On 10/30/2013 10:56 AM, Bo Shen wrote: > On 10/29/2013 20:53, Andreas Bießmann wrote: >> Signed-off-by: Andreas Bießmann >> --- >> arch/arm/include/asm/arch-at91/gpio.h | 34 >> - >> 1 file changed, 29

Re: [U-Boot] [RFC PATCH 7/7] spl: mmc: FAT support boot u-boot

2013-10-30 Thread Andreas Bießmann
Hello Heiko, On 10/30/2013 11:15 AM, Heiko Schocher wrote: > Hello Bo, > > Am 30.10.2013 10:15, schrieb Bo Shen: > All this functions could be moved to a common file, I vote for: > > arch/arm/cpu/arm926ejs/at91/spl.c > > What do you think? That's not that easy ... sama5 is an armv7 SoC. So

Re: [U-Boot] [RFC PATCH 7/7] spl: mmc: FAT support boot u-boot

2013-10-30 Thread Heiko Schocher
Hello Andreas, Am 30.10.2013 11:43, schrieb Andreas Bießmann: Hello Heiko, On 10/30/2013 11:15 AM, Heiko Schocher wrote: Hello Bo, Am 30.10.2013 10:15, schrieb Bo Shen: All this functions could be moved to a common file, I vote for: arch/arm/cpu/arm926ejs/at91/spl.c What do you think?

Re: [U-Boot] [RFC PATCH 7/7] spl: mmc: FAT support boot u-boot

2013-10-30 Thread Andreas Bießmann
Hi Heiko, +Albert On 10/30/2013 11:57 AM, Heiko Schocher wrote: > Hello Andreas, > > Am 30.10.2013 11:43, schrieb Andreas Bießmann: >> Hello Heiko, >> >> On 10/30/2013 11:15 AM, Heiko Schocher wrote: >>> Hello Bo, >>> >>> Am 30.10.2013 10:15, schrieb Bo Shen: >> >> >> >>> All this functions cou

Re: [U-Boot] [RFC PATCH 1/7] arm: atmel: sama5d3: early enable PIO peripherals

2013-10-30 Thread Andreas Bießmann
Hi Bo, On 10/30/2013 10:15 AM, Bo Shen wrote: > Enable the PIO peripherals early that other peripherals. > > Signed-off-by: Bo Shen > --- > board/atmel/sama5d3xek/sama5d3xek.c |3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/board/atmel/sama5d3xek/sama5d3xek.c > b/board/atmel/sa

Re: [U-Boot] [RFC PATCH 2/7] arm: atmel: sama5d3: correct the ID for DBGU and PIT

2013-10-30 Thread Andreas Bießmann
Hi Bo, On 10/30/2013 10:15 AM, Bo Shen wrote: > As the DBGU and PIT has its own ID on sama5d3 SoC, while not share > with SYS ID. So, correct them. > > Signed-off-by: Bo Shen > --- > arch/arm/cpu/armv7/at91/sama5d3_devices.c |2 +- > arch/arm/cpu/armv7/at91/timer.c |2 +- > 2

Re: [U-Boot] [PATCH v3] ARM: tegra: Add the Tamonten™ NG Evaluation Carrier board

2013-10-30 Thread Alban Bedel
On Mon, 28 Oct 2013 16:00:06 -0600 Stephen Warren wrote: > On 10/21/2013 08:28 AM, Alban Bedel wrote: > > Add support for the new Tamonten™ NG platform from Avionic Design. > > Currently only I2C, MMC, USB and ethernet have been tested. > > What changed in v3? There's no changelog here, so I don

Re: [U-Boot] [RFC PATCH 5/7] arm: atmel: add plla and mck initialize function

2013-10-30 Thread Andreas Bießmann
Hi Bo, On 10/30/2013 10:15 AM, Bo Shen wrote: > Add plla and mck initialize function. > > Signed-off-by: Bo Shen > --- > arch/arm/cpu/armv7/at91/clock.c | 27 > ++ > arch/arm/include/asm/arch-at91/at91_common.h |2 ++ > 2 files changed, 29 insertions(

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

2013-10-30 Thread Anatolij Gustschin
Hey Tom, The following changes since commit 7e575c46c34b5f1316eab39025fdced197629ccb: usb: rename board_usb_init_type to usb_init_type (2013-10-22 17:33:09 -0400) are available in the git repository at: git://git.denx.de/u-boot-video.git master for you to fetch changes up to 1c6e9de53ba47a

[U-Boot] [PATCH] Add support for SX151x SPI GPIO Expanders

2013-10-30 Thread Viktar Palstsiuk
Signed-off-by: Viktar Palstsiuk --- drivers/gpio/Makefile | 1 + drivers/gpio/sx151x.c | 255 ++ include/sx151x.h | 30 ++ 3 files changed, 286 insertions(+) create mode 100644 drivers/gpio/sx151x.c create mode 100644 include/sx151x.h

Re: [U-Boot] SPL Dfu update

2013-10-30 Thread Lukasz Majewski
Hi Michael, > Hi > > On Wed, Oct 30, 2013 at 9:28 AM, Michael Trimarchi > wrote: > > Hi Lukasz > > > > We have discussed during the u-boot mini-summit the possibility to > > have the dfu update from SPL. Right now I'm trying to understand > > what is the best way to do: > > > > > > void spl_dfu_

Re: [U-Boot] SPL Dfu update

2013-10-30 Thread Michael Trimarchi
Hi Lukasz On Wed, Oct 30, 2013 at 1:58 PM, Lukasz Majewski wrote: > Hi Michael, > >> Hi >> >> On Wed, Oct 30, 2013 at 9:28 AM, Michael Trimarchi >> wrote: >> > Hi Lukasz >> > >> > We have discussed during the u-boot mini-summit the possibility to >> > have the dfu update from SPL. Right now I'm

Re: [U-Boot] SPL Dfu update

2013-10-30 Thread Stefano Babic
Hi Lukasz, hi Michael, On 30/10/2013 13:58, Lukasz Majewski wrote: > In general the presented structure is correct. > > However, I've got other concerns: > > The DFU + composite + gadget + UDC driver code is large (around 24KiB > in binary size [1] for the TRATS). > > I'm not sure if this siz

Re: [U-Boot] SPL Dfu update

2013-10-30 Thread Michael Trimarchi
Hi On Wed, Oct 30, 2013 at 2:28 PM, Stefano Babic wrote: > Hi Lukasz, hi Michael, > > On 30/10/2013 13:58, Lukasz Majewski wrote: > >> In general the presented structure is correct. >> >> However, I've got other concerns: >> >> The DFU + composite + gadget + UDC driver code is large (around 24KiB

Re: [U-Boot] [U-boot] DFU and fastboot question

2013-10-30 Thread Marek Vasut
Dear Lukasz Majewski, > Hi tiger...@viatech.com.cn, > > > Hi, experts: > > > > In U-boot mini summit 2013, not talk about android fastboot protocol > > support in U-boot mainline code? > > > > In the ppt which introduced DFU, it said: > > > > Google Chromebook use DFU tool? > > I don't know e

Re: [U-Boot] SPL Dfu update

2013-10-30 Thread Tom Rini
On Wed, Oct 30, 2013 at 02:29:32PM +0100, Michael Trimarchi wrote: > Hi > > On Wed, Oct 30, 2013 at 2:28 PM, Stefano Babic wrote: > > Hi Lukasz, hi Michael, > > > > On 30/10/2013 13:58, Lukasz Majewski wrote: > > > >> In general the presented structure is correct. > >> > >> However, I've got othe

Re: [U-Boot] SPL Dfu update

2013-10-30 Thread Michael Trimarchi
Hi Tom On Wed, Oct 30, 2013 at 2:44 PM, Tom Rini wrote: > On Wed, Oct 30, 2013 at 02:29:32PM +0100, Michael Trimarchi wrote: >> Hi >> >> On Wed, Oct 30, 2013 at 2:28 PM, Stefano Babic wrote: >> > Hi Lukasz, hi Michael, >> > >> > On 30/10/2013 13:58, Lukasz Majewski wrote: >> > >> >> In general t

[U-Boot] [PATCH 1/6] video: remove AT91 legacy API from bus_vcxk

2013-10-30 Thread Andreas Bießmann
Signed-off-by: Andreas Bießmann --- drivers/video/bus_vcxk.c | 15 --- 1 file changed, 15 deletions(-) diff --git a/drivers/video/bus_vcxk.c b/drivers/video/bus_vcxk.c index 0138bca..60a5cc5 100644 --- a/drivers/video/bus_vcxk.c +++ b/drivers/video/bus_vcxk.c @@ -20,7 +20,6 @@ vu_l

[U-Boot] [PATCH 4/6] snapper9260: remove unused AT91_LEGACY

2013-10-30 Thread Andreas Bießmann
Signed-off-by: Andreas Bießmann --- include/configs/snapper9260.h |1 - 1 file changed, 1 deletion(-) diff --git a/include/configs/snapper9260.h b/include/configs/snapper9260.h index 17eb5f2..005931c 100644 --- a/include/configs/snapper9260.h +++ b/include/configs/snapper9260.h @@ -74,7 +74,

[U-Boot] [PATCH 0/6] at91: get rid of long standing work around CONFIG_AT91_LEGACY

2013-10-30 Thread Andreas Bießmann
This series cleans up the CONFIG_AT91_LEGACY mess. It was introduced for transition to C struct SoC peripheral access. The transision is almost done but introduced another CONFIG_ATMEL_LEGACY define for some GPIO cleanup which was never finished. There are currently just two users of the CONFIG_AT9

[U-Boot] [PATCH 2/6] i2c: switch from AT91 legacy to ATMEL legacy

2013-10-30 Thread Andreas Bießmann
Since the required API is gpio which is enclosed with CONFIG_ATMEL_LEGACY use that switch here. Signed-off-by: Andreas Bießmann --- drivers/i2c/soft_i2c.c |2 +- include/i2c.h |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/i2c/soft_i2c.c b/drivers/

[U-Boot] [PATCH 3/6] at91sam9m10g45ek: remove unused CONFIG_AT91_LEGACY

2013-10-30 Thread Andreas Bießmann
Signed-off-by: Andreas Bießmann --- include/configs/at91sam9m10g45ek.h |1 - 1 file changed, 1 deletion(-) diff --git a/include/configs/at91sam9m10g45ek.h b/include/configs/at91sam9m10g45ek.h index fc4ecec..be9df74 100644 --- a/include/configs/at91sam9m10g45ek.h +++ b/include/configs/at91sa

[U-Boot] [PATCH 5/6] net: remove unused CONFIG_AT91_LEGACY

2013-10-30 Thread Andreas Bießmann
Signed-off-by: Andreas Bießmann --- drivers/net/at91_emac.c |9 - 1 file changed, 9 deletions(-) diff --git a/drivers/net/at91_emac.c b/drivers/net/at91_emac.c index 73612ea..64d4c56 100644 --- a/drivers/net/at91_emac.c +++ b/drivers/net/at91_emac.c @@ -10,19 +10,10 @@ #include

[U-Boot] [PATCH 6/6] at91: remove all occourances of CONFIG_AT91_LEGACY

2013-10-30 Thread Andreas Bießmann
Signed-off-by: Andreas Bießmann --- arch/arm/include/asm/arch-at91/at91_pio.h | 33 arch/arm/include/asm/arch-at91/at91_pit.h | 16 -- arch/arm/include/asm/arch-at91/at91_pmc.h | 51 ++ arch/arm/include/asm/arch-at91/at91_spi.h |2 +- arc

Re: [U-Boot] SPL Dfu update

2013-10-30 Thread Otavio Salvador
Michael, On Wed, Oct 30, 2013 at 11:52 AM, Michael Trimarchi wrote: > On Wed, Oct 30, 2013 at 2:44 PM, Tom Rini wrote: >> On Wed, Oct 30, 2013 at 02:29:32PM +0100, Michael Trimarchi wrote: >>> Hi >>> >>> On Wed, Oct 30, 2013 at 2:28 PM, Stefano Babic wrote: >>> > Hi Lukasz, hi Michael, >>> > >>

Re: [U-Boot] SPL Dfu update

2013-10-30 Thread Stefano Babic
Hi Otavio, On 30/10/2013 15:19, Otavio Salvador wrote: >> OMAP4/3 can boot over the otg, so you can send MLO and let it wait for the >> second stage boot. We have already SPL USBETH in u-boot but in production >> otg flashing can be very useful. Think SPL as a differently configured U-BOOT >> doe

Re: [U-Boot] SPL Dfu update

2013-10-30 Thread Eric Nelson
On 10/30/2013 07:24 AM, Stefano Babic wrote: Hi Otavio, On 30/10/2013 15:19, Otavio Salvador wrote: OMAP4/3 can boot over the otg, so you can send MLO and let it wait for the second stage boot. We have already SPL USBETH in u-boot but in production otg flashing can be very useful. Think SPL as

Re: [U-Boot] SPL Dfu update

2013-10-30 Thread Michael Trimarchi
Hi On Wed, Oct 30, 2013 at 3:24 PM, Stefano Babic wrote: > Hi Otavio, > > On 30/10/2013 15:19, Otavio Salvador wrote: > >>> OMAP4/3 can boot over the otg, so you can send MLO and let it wait for the >>> second stage boot. We have already SPL USBETH in u-boot but in production >>> otg flashing can

[U-Boot] [PATCH] serial: zynq: Remove unused #defines

2013-10-30 Thread Michal Simek
From: Soren Brinkmann Signed-off-by: Soren Brinkmann Signed-off-by: Michal Simek --- drivers/serial/serial_zynq.c | 4 1 file changed, 4 deletions(-) diff --git a/drivers/serial/serial_zynq.c b/drivers/serial/serial_zynq.c index 050b9c0..ff28f3c 100644 --- a/drivers/serial/serial_zynq.c

[U-Boot] [PATCH 1/2] arm: zynq: Do not remap OCM to high address

2013-10-30 Thread Michal Simek
In case where ps-ddr is not used, do not remap OCM to high address and keep it from 0x0. Linux SMP requires to have memory at 0x0. Signed-off-by: Michal Simek --- arch/arm/cpu/armv7/zynq/cpu.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/arch/arm/cpu/armv7/zynq/cpu.

[U-Boot] [PATCH 2/2] arm: zynq : Revert TZ_DDR_RAM to secure.

2013-10-30 Thread Michal Simek
From: Radhey Shyam Pandey TZ_DDR_RAM on reset is in secure mode. Since uboot and linux runs in full TZ privilege secure mode, no need to set DDR trustzone to non-secure. Signed-off-by: Radhey Shyam Pandey Signed-off-by: Michal Simek --- arch/arm/cpu/armv7/zynq/cpu.c | 2 -- 1 file changed, 2

Re: [U-Boot] [PATCH v3] ARM: tegra: Add the Tamonten™ NG Evaluation Carrier board

2013-10-30 Thread Stephen Warren
On 10/30/2013 05:19 AM, Alban Bedel wrote: > On Mon, 28 Oct 2013 16:00:06 -0600 > Stephen Warren wrote: > >> On 10/21/2013 08:28 AM, Alban Bedel wrote: >>> Add support for the new Tamonten™ NG platform from Avionic Design. >>> Currently only I2C, MMC, USB and ethernet have been tested. >>> diff

Re: [U-Boot] SPL Dfu update

2013-10-30 Thread Michael Trimarchi
Hi On Wed, Oct 30, 2013 at 3:32 PM, Eric Nelson wrote: > On 10/30/2013 07:24 AM, Stefano Babic wrote: >> >> Hi Otavio, >> >> On 30/10/2013 15:19, Otavio Salvador wrote: >> OMAP4/3 can boot over the otg, so you can send MLO and let it wait for the second stage boot. We have already

Re: [U-Boot] [PATCH] powerpc/t1040qds: Add DDR Raw Timing support

2013-10-30 Thread York Sun
On 10/25/2013 02:49 AM, Priyanka Jain wrote: > T1040QDS-D3 has dual-rank DDR: > Micron, MT18KSF51272AZ-1G6 (4GB, x72, CL=10). > Add Raw Timing structure for this DDR. > > Typically SPD method is used for getting DDR parameter > and calculating values for various DDR controller registers. >

Re: [U-Boot] [RFC PATCH 1/3] at91: add new gpio pin macros

2013-10-30 Thread Jens Scharsig
Am 30.10.2013 11:39, schrieb Andreas Bießmann: > Hi Bo, > > +Jens, he did the rewrite of the at91 gpio driver. > > > I think this is a job for gpio_is_valid() then. How is this case handled > in kernel? > > Here are a few things to discuss. First of all I'd like to get some > insights why the

Re: [U-Boot] [PATCH] arm: at91: support for the Calao USB-A9263 board (based on AT91SAM9263)

2013-10-30 Thread Mateusz Kulikowski
Hi Heiko, Sorry for late reply. On 29.10.2013 06:20, Heiko Schocher wrote: I don't understand something here: - this address is hardcoded in AT91bootstrap (as well as image size - 0x31000), Do you have the source code? Yes I do, it even seems to work properly after recompilation (with barem

Re: [U-Boot] [PATCH] Add support for SX151x SPI GPIO Expanders

2013-10-30 Thread Wolfgang Denk
Dear Viktar Palstsiuk, In message <1383130533-25034-1-git-send-email-viktar.palsts...@promwad.com> you wrote: > > +++ b/drivers/gpio/sx151x.c > @@ -0,0 +1,255 @@ > +/* > + * (C) Copyright 2013 > + * Viktar Palstsiuk, Promwad, viktar.palsts...@promwad.com > + * > + * This program is free software;

Re: [U-Boot] [PATCH] arm: at91: support for the Calao USB-A9263 board (based on AT91SAM9263)

2013-10-30 Thread Mateusz Kulikowski
Hi, On 29.10.2013 06:24, Bo Shen wrote: You can use GPIO API for USB-A9263 in this patch. And send another patch to fix at91sam9263ek board (I can help test the patch for at91sam9263ek board). Will do it in next 2 days (unless someone will be faster). or - Should I add low-level initializa

Re: [U-Boot] [RFC PATCH 1/3] at91: add new gpio pin macros

2013-10-30 Thread Andreas Bießmann
Hi Jens, On 30.10.13 18:19, Jens Scharsig wrote: > Am 30.10.2013 11:39, schrieb Andreas Bießmann: >> Hi Bo, >> >> +Jens, he did the rewrite of the at91 gpio driver. >> > >> >> I think this is a job for gpio_is_valid() then. How is this case handled >> in kernel? >> >> Here are a few things to dis

Re: [U-Boot] [PATCH 2/2 V2] powerpc/esdhc: Add 3.3v voltage support in esdhc capacity register

2013-10-30 Thread Scott Wood
On Wed, 2013-10-30 at 11:36 +0800, Haijun Zhang wrote: > T4240QDS eSDHC host capabilities reigster should have VS33 bit define. > Add quirk CONFIG_SYS_FSL_MMC_HAS_CAPBLT_VS33 to deal with capacity > missing > > Signed-off-by: Roy Zang > Signed-off-by: Haijun Zhang > --- > changes for V2: >

Re: [U-Boot] [PATCH 2/2 V2] powerpc/esdhc: Add 3.3v voltage support in esdhc capacity register

2013-10-30 Thread Pantelis Antoniou
Hi Scott, Haijun, On Oct 30, 2013, at 8:58 PM, Scott Wood wrote: > On Wed, 2013-10-30 at 11:36 +0800, Haijun Zhang wrote: >> T4240QDS eSDHC host capabilities reigster should have VS33 bit define. >> Add quirk CONFIG_SYS_FSL_MMC_HAS_CAPBLT_VS33 to deal with capacity >> missing >> >> Signed-off-by

Re: [U-Boot] SPL Dfu update

2013-10-30 Thread Tom Rini
On Wed, Oct 30, 2013 at 03:34:45PM +0100, Michael Trimarchi wrote: > Hi > > On Wed, Oct 30, 2013 at 3:24 PM, Stefano Babic wrote: > > Hi Otavio, > > > > On 30/10/2013 15:19, Otavio Salvador wrote: > > > >>> OMAP4/3 can boot over the otg, so you can send MLO and let it wait for the > >>> second st

Re: [U-Boot] SPL Dfu update

2013-10-30 Thread Tom Rini
On Wed, Oct 30, 2013 at 02:52:25PM +0100, Michael Trimarchi wrote: > Hi Tom > > On Wed, Oct 30, 2013 at 2:44 PM, Tom Rini wrote: > > On Wed, Oct 30, 2013 at 02:29:32PM +0100, Michael Trimarchi wrote: > >> Hi > >> > >> On Wed, Oct 30, 2013 at 2:28 PM, Stefano Babic wrote: > >> > Hi Lukasz, hi Mic

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

2013-10-30 Thread Tom Rini
On Wed, Oct 30, 2013 at 01:32:32PM +0100, Anatolij Gustschin wrote: > Hey Tom, > > The following changes since commit 7e575c46c34b5f1316eab39025fdced197629ccb: > > usb: rename board_usb_init_type to usb_init_type (2013-10-22 17:33:09 -0400) > > are available in the git repository at: > > g

Re: [U-Boot] SPL Dfu update

2013-10-30 Thread Michael Trimarchi
Hi Tom On Wed, Oct 30, 2013 at 8:33 PM, Tom Rini wrote: > On Wed, Oct 30, 2013 at 03:34:45PM +0100, Michael Trimarchi wrote: >> Hi >> >> On Wed, Oct 30, 2013 at 3:24 PM, Stefano Babic wrote: >> > Hi Otavio, >> > >> > On 30/10/2013 15:19, Otavio Salvador wrote: >> > >> >>> OMAP4/3 can boot over t

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

2013-10-30 Thread Tom Rini
On Thu, Oct 24, 2013 at 10:10:11AM -0700, York Sun wrote: > Tom, > > The following changes since commit 7e575c46c34b5f1316eab39025fdced197629ccb: > > usb: rename board_usb_init_type to usb_init_type (2013-10-22 17:33:09 > -0400) > > are available in the git repository at: > > git://git.denx

Re: [U-Boot] Patch about mmc and sdhci, Please look it, i can not pull the patch. I copy it here.

2013-10-30 Thread Pantelis Antoniou
Hi Richie, Please take a look at our patch submission guidelines. http://www.denx.de/wiki/U-Boot/Patches Some of the methods you use are questionable to say the least. Is your magic variable something to do with a quirk? I understand what you're trying to do, but you need to be more forthcoming

Re: [U-Boot] SPL Dfu update

2013-10-30 Thread Tom Rini
On Wed, Oct 30, 2013 at 08:43:09PM +0100, Michael Trimarchi wrote: > Hi Tom > > On Wed, Oct 30, 2013 at 8:33 PM, Tom Rini wrote: > > On Wed, Oct 30, 2013 at 03:34:45PM +0100, Michael Trimarchi wrote: > >> Hi > >> > >> On Wed, Oct 30, 2013 at 3:24 PM, Stefano Babic wrote: > >> > Hi Otavio, > >> >

Re: [U-Boot] SPL Dfu update

2013-10-30 Thread Wolfgang Denk
Dear Michael Trimarchi, In message you wrote: > > > Apart of the fact that is possible to add DFU to SPL, I am missing which > > is the real advantage. One goal of having split U-Boot into two images > > (SPL and U-Boot) is also to get a simpler and smaller image, letting the > > main U-Boot im

Re: [U-Boot] SPL Dfu update

2013-10-30 Thread Michael Trimarchi
Hi On Wed, Oct 30, 2013 at 8:47 PM, Tom Rini wrote: > On Wed, Oct 30, 2013 at 08:43:09PM +0100, Michael Trimarchi wrote: >> Hi Tom >> >> On Wed, Oct 30, 2013 at 8:33 PM, Tom Rini wrote: >> > On Wed, Oct 30, 2013 at 03:34:45PM +0100, Michael Trimarchi wrote: >> >> Hi >> >> >> >> On Wed, Oct 30, 2

Re: [U-Boot] SPL Dfu update

2013-10-30 Thread Wolfgang Denk
Dear Eric Nelson, In message <52711896.6010...@boundarydevices.com> you wrote: > > In the case of our i.MX boards that boot to SPI-NOR, it would be > nice to simply load an SPL image over the i.MX downloader > and have immediate access to DFU so we can use it to > program the SPI-NOR. Rewrite thi

Re: [U-Boot] SPL Dfu update

2013-10-30 Thread Michael Trimarchi
Hi On Wed, Oct 30, 2013 at 8:58 PM, Wolfgang Denk wrote: > Dear Michael Trimarchi, > > In message > you > wrote: >> >> > Apart of the fact that is possible to add DFU to SPL, I am missing which >> > is the real advantage. One goal of having split U-Boot into two images >> > (SPL and U-Boot) is

Re: [U-Boot] SPL Dfu update

2013-10-30 Thread Wolfgang Denk
Dear Michael Trimarchi, In message you wrote: > > > That's the reason I do not understand why we have to push DFU into SPL. > > Maybe we both are missing something. > > It's simple: > > - first stage boot can be sent over the otg > - using dfu to flash the u-boot.img, kernel .. etc Why shoul

Re: [U-Boot] SPL Dfu update

2013-10-30 Thread Tom Rini
On Wed, Oct 30, 2013 at 08:58:23PM +0100, Michael Trimarchi wrote: > Hi > > On Wed, Oct 30, 2013 at 8:47 PM, Tom Rini wrote: > > On Wed, Oct 30, 2013 at 08:43:09PM +0100, Michael Trimarchi wrote: > >> Hi Tom > >> > >> On Wed, Oct 30, 2013 at 8:33 PM, Tom Rini wrote: > >> > On Wed, Oct 30, 2013 a

Re: [U-Boot] SPL Dfu update

2013-10-30 Thread Tom Rini
On Wed, Oct 30, 2013 at 08:58:14PM +0100, Wolfgang Denk wrote: > Dear Michael Trimarchi, > > In message > you > wrote: > > > > > Apart of the fact that is possible to add DFU to SPL, I am missing which > > > is the real advantage. One goal of having split U-Boot into two images > > > (SPL and

Re: [U-Boot] SPL Dfu update

2013-10-30 Thread Michael Trimarchi
Hi Wolfgang On Wed, Oct 30, 2013 at 9:03 PM, Wolfgang Denk wrote: > Dear Michael Trimarchi, > > In message > you > wrote: >> >> > That's the reason I do not understand why we have to push DFU into SPL. >> > Maybe we both are missing something. >> >> It's simple: >> >> - first stage boot can be

Re: [U-Boot] SPL Dfu update

2013-10-30 Thread Eric Nelson
Hi Wolfgang, On 10/30/2013 01:01 PM, Wolfgang Denk wrote: Dear Eric Nelson, In message <52711896.6010...@boundarydevices.com> you wrote: In the case of our i.MX boards that boot to SPI-NOR, it would be nice to simply load an SPL image over the i.MX downloader and have immediate access to DFU

Re: [U-Boot] SPL Dfu update

2013-10-30 Thread Wolfgang Denk
Dear Michael Trimarchi, In message you wrote: > > > This does not answer Stefano's question: why do it in SPL, what's > > wrong with loading the real U-Boot for this purpose? > > Because it's not possible, internal memory size of some cpus. You need > to have a way to load the second stage and

[U-Boot] [PATCH] nand_util.c: Correct licensing

2013-10-30 Thread Tom Rini
This file is GPL-2.0 with Freescale granting rights for GPL-2.0+. This part was dropped by accident in the SPDX updates. Cc: Scott Wood Signed-off-by: Tom Rini --- drivers/mtd/nand/nand_util.c |9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/mtd/nand/nand_

Re: [U-Boot] SPL Dfu update

2013-10-30 Thread Michael Trimarchi
Hi On Wed, Oct 30, 2013 at 9:11 PM, Wolfgang Denk wrote: > Dear Michael Trimarchi, > > In message > you > wrote: >> >> > This does not answer Stefano's question: why do it in SPL, what's >> > wrong with loading the real U-Boot for this purpose? >> >> Because it's not possible, internal memory

Re: [U-Boot] [PATCH] nand_util.c: Correct licensing

2013-10-30 Thread Wolfgang Denk
Dear Tom Rini, In message <1383164489-29450-1-git-send-email-tr...@ti.com> you wrote: > This file is GPL-2.0 with Freescale granting rights for GPL-2.0+. This > part was dropped by accident in the SPDX updates. Sorry, but this doesn't work. > --- a/drivers/mtd/nand/nand_util.c > +++ b/drivers/m

Re: [U-Boot] SPL Dfu update

2013-10-30 Thread Otavio Salvador
Hello Michael, On Wed, Oct 30, 2013 at 6:35 PM, Michael Trimarchi wrote: > On Wed, Oct 30, 2013 at 9:11 PM, Wolfgang Denk wrote: >> Dear Michael Trimarchi, >> >> In message >> you >> wrote: >>> >>> > This does not answer Stefano's question: why do it in SPL, what's >>> > wrong with loading th

Re: [U-Boot] [PATCH] nand_util.c: Correct licensing

2013-10-30 Thread Tom Rini
On Wed, Oct 30, 2013 at 09:36:23PM +0100, Wolfgang Denk wrote: > Dear Tom Rini, > > In message <1383164489-29450-1-git-send-email-tr...@ti.com> you wrote: > > This file is GPL-2.0 with Freescale granting rights for GPL-2.0+. This > > part was dropped by accident in the SPDX updates. > > Sorry, b

Re: [U-Boot] SPL Dfu update

2013-10-30 Thread Michael Trimarchi
Hi On Wed, Oct 30, 2013 at 9:53 PM, Otavio Salvador wrote: > Hello Michael, > > On Wed, Oct 30, 2013 at 6:35 PM, Michael Trimarchi > wrote: >> On Wed, Oct 30, 2013 at 9:11 PM, Wolfgang Denk wrote: >>> Dear Michael Trimarchi, >>> >>> In message >>> you >>> wrote: > This does not ans

Re: [U-Boot] [RFC PATCH 7/7] spl: mmc: FAT support boot u-boot

2013-10-30 Thread Bo Shen
Hi Heiko, Andreas, On 10/30/2013 19:02, Andreas Bießmann wrote: Hi Heiko, +Albert On 10/30/2013 11:57 AM, Heiko Schocher wrote: Hello Andreas, Am 30.10.2013 11:43, schrieb Andreas Bießmann: Hello Heiko, On 10/30/2013 11:15 AM, Heiko Schocher wrote: Hello Bo, Am 30.10.2013 10:15, schrieb

Re: [U-Boot] [RFC PATCH 2/7] arm: atmel: sama5d3: correct the ID for DBGU and PIT

2013-10-30 Thread Bo Shen
Hi Andreas, On 10/30/2013 19:12, Andreas Bießmann wrote: Hi Bo, On 10/30/2013 10:15 AM, Bo Shen wrote: As the DBGU and PIT has its own ID on sama5d3 SoC, while not share with SYS ID. So, correct them. Signed-off-by: Bo Shen --- arch/arm/cpu/armv7/at91/sama5d3_devices.c |2 +- arch/arm

Re: [U-Boot] [RFC PATCH 5/7] arm: atmel: add plla and mck initialize function

2013-10-30 Thread Bo Shen
Hi Andreas, On 10/30/2013 19:21, Andreas Bießmann wrote: Hi Bo, On 10/30/2013 10:15 AM, Bo Shen wrote: Add plla and mck initialize function. Signed-off-by: Bo Shen --- arch/arm/cpu/armv7/at91/clock.c | 27 ++ arch/arm/include/asm/arch-at91/at91_commo

Re: [U-Boot] [RFC PATCH 1/7] arm: atmel: sama5d3: early enable PIO peripherals

2013-10-30 Thread Bo Shen
Hi Andreas, On 10/30/2013 19:11, Andreas Bießmann wrote: Hi Bo, On 10/30/2013 10:15 AM, Bo Shen wrote: Enable the PIO peripherals early that other peripherals. Signed-off-by: Bo Shen --- board/atmel/sama5d3xek/sama5d3xek.c |3 +++ 1 file changed, 3 insertions(+) diff --git a/board/at

[U-Boot] [Patch v1 0/6] Move Freescale DDR and IFC drivers to common drivers

2013-10-30 Thread York Sun
This patch set attempts to move Freescale DDR and IFC drivers to common drivers, to prepare sharing between powerpc-based and ARM-based SoCs. [Patch v1 1/6] Driver/DDR: Moving Freescale DDR driver to a common [Patch v1 2/6] Driver/DDR: combine ccsr_ddr for 83xx, 85xx and 86xx [Patch v1 3/6] Driver

[U-Boot] [Patch v1 5/6] Driver/DDR: Update DDR driver to allow non-zero base address

2013-10-30 Thread York Sun
The DRAM base has been zero for Power SoCs. It could be non-zero for ARM SoCs. Use a macro instead of hard-coding to zero. Signed-off-by: York Sun --- drivers/ddr/fsl/main.c |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/ddr/fsl/main.c b/drivers/ddr/fsl/main

[U-Boot] [Patch v1 3/6] Driver/DDR: Add Freescale DDR driver for ARM

2013-10-30 Thread York Sun
Make PowerPC specific code conditional so ARM SoCs can reuse this driver. Add DDR3 driver for ARM. Signed-off-by: York Sun --- drivers/ddr/fsl/Makefile |1 + drivers/ddr/fsl/arm_ddr_gen3.c | 213 drivers/ddr/fsl/main.c | 12 ++- drive

[U-Boot] [Patch v1 4/6] powerpc/mpc8xxx: Extend DDR registers' fields

2013-10-30 Thread York Sun
Some DDR registers' fields have expanded to accommodate larger values. These changes are backward compatible. Some fields are removed for newer DDR controllers. Writing to those fields are safely ignored. TIMING_CFG_2 register is fixed. Additive latency is added to RD_TO_PRE automatically. It was

[U-Boot] [Patch v1 2/6] Driver/DDR: combine ccsr_ddr for 83xx, 85xx and 86xx

2013-10-30 Thread York Sun
Fix ccsr_ddr structure to avoid using typedef. Combine DDR2 and DDR3 structure for 83xx, 85xx and 86xx. Signed-off-by: York Sun --- arch/powerpc/cpu/mpc83xx/ecc.c|4 +- arch/powerpc/cpu/mpc85xx/cpu.c|4 +- arch/powerpc/include/asm/immap_83xx.h | 1

[U-Boot] [PATCH 1/2 V3] esdhc: memset mmc struct before putting into use

2013-10-30 Thread Haijun Zhang
struct mmc should be clear to all '0' after malloc to avoid unexpect variable value. Like mmc->has_init = xxx. In this case mmcinfo will believe the card had been initialized before and skip the initialization. Test on P5040 and T4240, Error Log: => mmcinfo Device: FSL_SDHC Manufacturer ID: 0 OE

[U-Boot] [PATCH 2/2 V3] powerpc/esdhc: Add 3.3v voltage support in esdhc capacity register

2013-10-30 Thread Haijun Zhang
T4240QDS eSDHC host capabilities reigster should have VS33 bit define. Add quirk CONFIG_SYS_FSL_MMC_HAS_CAPBLT_VS33 to deal with capacity missing Signed-off-by: Roy Zang Signed-off-by: Haijun Zhang --- changes for V3: - Move the macro define to T4240QDS.h drivers/mmc/fsl_esdhc.c| 6

Re: [U-Boot] [PATCH] nand_util.c: Correct licensing

2013-10-30 Thread Scott Wood
On Wed, 2013-10-30 at 21:36 +0100, Wolfgang Denk wrote: > Dear Tom Rini, > > In message <1383164489-29450-1-git-send-email-tr...@ti.com> you wrote: > > This file is GPL-2.0 with Freescale granting rights for GPL-2.0+. This > > part was dropped by accident in the SPDX updates. > > Sorry, but this

[U-Boot] [Patch v1 6/6] Driver/IFC: Move Freescale IFC driver to a common driver

2013-10-30 Thread York Sun
Freescale IFC controller has been used for mpc8xxx. It will be used for ARM-based SoC as well. This patch moves the driver to driver/mtd and fix the header file includes. Signed-off-by: York Sun --- arch/powerpc/cpu/mpc85xx/cpu.c |2 +- arch/powerpc/cpu/mpc85xx/spl_minima

[U-Boot] [PATCH] boards.cfg: remove git leftovers

2013-10-30 Thread Luka Perkov
Remove 'HEAD' line which is most likely left there while rebasing. It was introduced in commit 877bfe37dc00b0ae59f37742954a62bce3fdf3a0. Signed-off-by: Luka Perkov --- boards.cfg | 1 - 1 file changed, 1 deletion(-) diff --git a/boards.cfg b/boards.cfg index 5e10125..9fecbed 100644 --- a/boards

[U-Boot] [PATCH] kirkwood: ib62x0: use device tree and update config

2013-10-30 Thread Luka Perkov
Signed-off-by: Luka Perkov CC: Prafulla Wadaskar --- v1->v2: * keep CONFIG_MACH_TYPE define for backwards compatibility --- include/configs/ib62x0.h | 38 +++--- 1 file changed, 23 insertions(+), 15 deletions(-) diff --git a/include/configs/ib62x0.h b/include/c

Re: [U-Boot] [PATCH 3/6] at91sam9m10g45ek: remove unused CONFIG_AT91_LEGACY

2013-10-30 Thread Bo Shen
Hi Andreas, On 10/30/2013 10:18 PM, Andreas Bießmann wrote: Signed-off-by: Andreas Bießmann Acked-by: Bo Shen --- include/configs/at91sam9m10g45ek.h |1 - 1 file changed, 1 deletion(-) diff --git a/include/configs/at91sam9m10g45ek.h b/include/configs/at91sam9m10g45ek.h index fc4ec

Re: [U-Boot] [Patch v1 6/6] Driver/IFC: Move Freescale IFC driver to a common driver

2013-10-30 Thread Prabhakar Kushwaha
On 10/31/2013 7:37 AM, York Sun wrote: Freescale IFC controller has been used for mpc8xxx. It will be used for ARM-based SoC as well. This patch moves the driver to driver/mtd and fix the header file includes. Signed-off-by: York Sun Thanks York for this patch. This was pending from long ti

Re: [U-Boot] [PATCH] kirkwood: ib62x0: use device tree and update config

2013-10-30 Thread Prafulla Wadaskar
> -Original Message- > From: Luka Perkov [mailto:l...@openwrt.org] > Sent: 31 October 2013 08:35 > To: u-boot@lists.denx.de > Cc: Luka Perkov; Prafulla Wadaskar > Subject: [PATCH] kirkwood: ib62x0: use device tree and > update config > > Signed-off-by: Luka Perkov > CC: Prafulla Wadaska

  1   2   >