[U-Boot] [PATCH 1/2] powerpc: spiflash:Add corenet devices support in eSPI SPL

2013-10-30 Thread Priyanka Jain
Existing eSPI SPL framework assumes booting from spi-image with boot_format header which contains final u-boot Image offset and size. No such header is present in case of corenet devices like T1040. So, for corenet deives, SPL bootloader use values provided at compilation time. These values can

[U-Boot] [PATCH 2/2] T1040QDS: Add support of 2 stage SPI bootloader

2013-10-30 Thread Priyanka Jain
Add support of 2-stage T1040QDS SPI bootloader using SPL framework. In this, PBL (hardware) initializes SRAM (256K) and copy SPL (192K) from SPI flash to SRAM and transfer control to SPL. This SPL bootloader furthur initializes DDR using SPD and environment and copy final u-boot image (512K) from

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

2013-10-30 Thread 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 exact Google policy. What I do know is that Googole

[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,

Re: [U-Boot] SPL Dfu update

2013-10-30 Thread Michael Trimarchi
Hi On Wed, Oct 30, 2013 at 9:28 AM, Michael Trimarchi mich...@amarulasolutions.com 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() {

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 albert.u.b...@aribaud.net wrote: Hi Nobuhiro, On Tue, 24 Sep 2013 15:38:34 +0900, Nobuhiro Iwamatsu nobuhiro.iwamatsu...@renesas.com wrote: Renesas R8A7791 is CPU with Cortex-A7 and A15. This supports the basic register definition and

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 fabio.este...@freescale.com 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

[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 voice.s...@atmel.com --- 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

[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

[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 voice.s...@atmel.com --- 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 +

[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 voice.s...@atmel.com --- 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

[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 voice.s...@atmel.com --- 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

[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 voice.s...@atmel.com --- 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

[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 voice.s...@atmel.com --- arch/arm/cpu/armv7/at91/sama5d3_devices.c |2 +- arch/arm/cpu/armv7/at91/timer.c |2 +- 2 files changed, 2 insertions(+), 2

[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 voice.s...@atmel.com --- arch/arm/cpu/armv7/at91/Makefile |1 + arch/arm/cpu/armv7/at91/mpddrc.c | 123 +

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 h...@denx.de 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 h...@denx.de Cc: Anatolij Gustschin ag...@denx.de --- drivers/video/formike.c | 7 ---

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 h...@denx.de wrote: make CONSOLE_BG_COL/CONSOLE_FG_COL configurable through board config file. Clear video screen in video_init(). Signed-off-by: Heiko Schocher h...@denx.de Cc: Anatolij Gustschin ag...@denx.de --- README

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 andreas.de...@googlemail.com --- arch/arm/include/asm/arch-at91/gpio.h | 34 - 1 file changed, 29 insertions(+), 5 deletions(-) diff --git

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 Shenvoice.s...@atmel.com --- board/atmel/sama5d3xek/sama5d3xek.c |3 +++ 1 file changed, 3 insertions(+) diff --git a/board/atmel/sama5d3xek/sama5d3xek.c

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 Shenvoice.s...@atmel.com --- arch/arm/cpu/armv7/Makefile|2 +- arch/arm/cpu/armv7/at91/u-boot-spl.lds | 50 +

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 andreas.de...@googlemail.com --- arch/arm/include/asm/arch-at91/gpio.h | 34 -

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: snip code 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.

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: snip code All this functions could be moved to a common file, I vote for: arch/arm/cpu/arm926ejs/at91/spl.c What do

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: snip code All this functions could be moved to a

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 voice.s...@atmel.com --- board/atmel/sama5d3xek/sama5d3xek.c |3 +++ 1 file changed, 3 insertions(+) diff --git a/board/atmel/sama5d3xek/sama5d3xek.c

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 voice.s...@atmel.com --- arch/arm/cpu/armv7/at91/sama5d3_devices.c |2 +- arch/arm/cpu/armv7/at91/timer.c |

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 swar...@wwwdotorg.org 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

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 voice.s...@atmel.com --- arch/arm/cpu/armv7/at91/clock.c | 27 ++ arch/arm/include/asm/arch-at91/at91_common.h |2 ++ 2 files changed,

[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

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

2013-10-30 Thread Viktar Palstsiuk
Signed-off-by: Viktar Palstsiuk viktar.palsts...@promwad.com --- 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

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 mich...@amarulasolutions.com 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

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 l.majew...@samsung.com wrote: Hi Michael, Hi On Wed, Oct 30, 2013 at 9:28 AM, Michael Trimarchi mich...@amarulasolutions.com wrote: Hi Lukasz We have discussed during the u-boot mini-summit the possibility to have the dfu

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 size would

Re: [U-Boot] SPL Dfu update

2013-10-30 Thread Michael Trimarchi
Hi On Wed, Oct 30, 2013 at 2:28 PM, Stefano Babic sba...@denx.de 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

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 exact Google policy.

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 sba...@denx.de 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

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 tr...@ti.com 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 sba...@denx.de wrote: Hi Lukasz, hi Michael, On 30/10/2013 13:58, Lukasz Majewski wrote: In

[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 andreas.de...@googlemail.com --- 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 +++

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

2013-10-30 Thread Andreas Bießmann
Signed-off-by: Andreas Bießmann andreas.de...@googlemail.com --- 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 +++

[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

[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 andreas.de...@googlemail.com --- drivers/i2c/soft_i2c.c |2 +- include/i2c.h |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git

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

2013-10-30 Thread Andreas Bießmann
Signed-off-by: Andreas Bießmann andreas.de...@googlemail.com --- 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

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

2013-10-30 Thread Andreas Bießmann
Signed-off-by: Andreas Bießmann andreas.de...@googlemail.com --- 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 @@

[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 andreas.de...@googlemail.com --- 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 ++

Re: [U-Boot] SPL Dfu update

2013-10-30 Thread Otavio Salvador
Michael, On Wed, Oct 30, 2013 at 11:52 AM, Michael Trimarchi mich...@amarulasolutions.com wrote: On Wed, Oct 30, 2013 at 2:44 PM, Tom Rini tr...@ti.com 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 sba...@denx.de

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 doesn't

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

Re: [U-Boot] SPL Dfu update

2013-10-30 Thread Michael Trimarchi
Hi On Wed, Oct 30, 2013 at 3:24 PM, Stefano Babic sba...@denx.de 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

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

2013-10-30 Thread Michal Simek
From: Soren Brinkmann soren.brinkm...@xilinx.com Signed-off-by: Soren Brinkmann soren.brinkm...@xilinx.com Signed-off-by: Michal Simek michal.si...@xilinx.com --- drivers/serial/serial_zynq.c | 4 1 file changed, 4 deletions(-) diff --git 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 michal.si...@xilinx.com --- arch/arm/cpu/armv7/zynq/cpu.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git

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

2013-10-30 Thread Michal Simek
From: Radhey Shyam Pandey radhey.shyam.pan...@xilinx.com 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 radh...@xilinx.com Signed-off-by: Michal Simek

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 swar...@wwwdotorg.org 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.

Re: [U-Boot] SPL Dfu update

2013-10-30 Thread Michael Trimarchi
Hi On Wed, Oct 30, 2013 at 3:32 PM, Eric Nelson eric.nel...@boundarydevices.com 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

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. But

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 at91 gpio

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

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; you can

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

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 discuss. First of all

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 tie-fei.z...@freescale.com Signed-off-by: Haijun Zhang

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: Roy Zang

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 sba...@denx.de 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

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 tr...@ti.com 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 sba...@denx.de wrote: Hi

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:

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 tr...@ti.com 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 sba...@denx.de wrote: Hi Otavio, On 30/10/2013 15:19, Otavio Salvador wrote: OMAP4/3 can boot

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:

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

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 tr...@ti.com 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 sba...@denx.de wrote: Hi

Re: [U-Boot] SPL Dfu update

2013-10-30 Thread Wolfgang Denk
Dear Michael Trimarchi, In message CAOf5uw=1yvf8xde--7bp2y0jophj9wcehe8js8y05+wyz_w...@mail.gmail.com 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

Re: [U-Boot] SPL Dfu update

2013-10-30 Thread Michael Trimarchi
Hi On Wed, Oct 30, 2013 at 8:47 PM, Tom Rini tr...@ti.com 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 tr...@ti.com wrote: On Wed, Oct 30, 2013 at 03:34:45PM +0100, Michael Trimarchi wrote: Hi On Wed, Oct

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 this as

Re: [U-Boot] SPL Dfu update

2013-10-30 Thread Michael Trimarchi
Hi On Wed, Oct 30, 2013 at 8:58 PM, Wolfgang Denk w...@denx.de wrote: Dear Michael Trimarchi, In message CAOf5uw=1yvf8xde--7bp2y0jophj9wcehe8js8y05+wyz_w...@mail.gmail.com you wrote: Apart of the fact that is possible to add DFU to SPL, I am missing which is the real advantage. One

Re: [U-Boot] SPL Dfu update

2013-10-30 Thread Wolfgang Denk
Dear Michael Trimarchi, In message CAOf5uw=gn4=k9k2pjua6nxockwstj4-gp+sb6_+hgiyw1nv...@mail.gmail.com 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 -

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 tr...@ti.com 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 tr...@ti.com wrote: On Wed, Oct 30,

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 CAOf5uw=1yvf8xde--7bp2y0jophj9wcehe8js8y05+wyz_w...@mail.gmail.com you wrote: Apart of the fact that is possible to add DFU to SPL, I am missing which is the real advantage. One goal

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 w...@denx.de wrote: Dear Michael Trimarchi, In message CAOf5uw=gn4=k9k2pjua6nxockwstj4-gp+sb6_+hgiyw1nv...@mail.gmail.com you wrote: That's the reason I do not understand why we have to push DFU into SPL. Maybe we both are

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 CAOf5uw=hckwpaqogco3kvm1erhs-dvc5brt4usu3uqkettt...@mail.gmail.com 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

[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 scottw...@freescale.com Signed-off-by: Tom Rini tr...@ti.com --- drivers/mtd/nand/nand_util.c |9 - 1 file changed, 8 insertions(+), 1 deletion(-)

Re: [U-Boot] SPL Dfu update

2013-10-30 Thread Michael Trimarchi
Hi On Wed, Oct 30, 2013 at 9:11 PM, Wolfgang Denk w...@denx.de wrote: Dear Michael Trimarchi, In message CAOf5uw=hckwpaqogco3kvm1erhs-dvc5brt4usu3uqkettt...@mail.gmail.com you wrote: This does not answer Stefano's question: why do it in SPL, what's wrong with loading the real U-Boot

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 +++

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 mich...@amarulasolutions.com wrote: On Wed, Oct 30, 2013 at 9:11 PM, Wolfgang Denk w...@denx.de wrote: Dear Michael Trimarchi, In message CAOf5uw=hckwpaqogco3kvm1erhs-dvc5brt4usu3uqkettt...@mail.gmail.com you wrote: This

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, but this

Re: [U-Boot] SPL Dfu update

2013-10-30 Thread Michael Trimarchi
Hi On Wed, Oct 30, 2013 at 9:53 PM, Otavio Salvador ota...@ossystems.com.br wrote: Hello Michael, On Wed, Oct 30, 2013 at 6:35 PM, Michael Trimarchi mich...@amarulasolutions.com wrote: On Wed, Oct 30, 2013 at 9:11 PM, Wolfgang Denk w...@denx.de wrote: Dear Michael Trimarchi, In message

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 voice.s...@atmel.com --- arch/arm/cpu/armv7/at91/sama5d3_devices.c

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 voice.s...@atmel.com --- arch/arm/cpu/armv7/at91/clock.c | 27 ++

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 voice.s...@atmel.com --- board/atmel/sama5d3xek/sama5d3xek.c |3 +++ 1 file changed, 3 insertions(+)

[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]

[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 york...@freescale.com --- drivers/ddr/fsl/main.c |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/ddr/fsl/main.c

[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 york...@freescale.com --- drivers/ddr/fsl/Makefile |1 + drivers/ddr/fsl/arm_ddr_gen3.c | 213 drivers/ddr/fsl/main.c

[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 york...@freescale.com --- arch/powerpc/cpu/mpc83xx/ecc.c|4 +- arch/powerpc/cpu/mpc85xx/cpu.c|4 +-

[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

[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 tie-fei.z...@freescale.com Signed-off-by: Haijun Zhang haijun.zh...@freescale.com --- changes for V3: - Move the macro

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 doesn't

[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 york...@freescale.com --- arch/powerpc/cpu/mpc85xx/cpu.c |2 +-

[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 l...@openwrt.org --- boards.cfg | 1 - 1 file changed, 1 deletion(-) diff --git a/boards.cfg b/boards.cfg index 5e10125..9fecbed

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

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

  1   2   >