[U-Boot] [PATCH 2/9] imx: mx6: ddr no support MMDC1 for i.MX6SL

2015-08-17 Thread Peng Fan
i.MX 6SoloLite only supports MMDC0, so do not access MMDC1 for i.MX 6SL. Signed-off-by: Peng Fan Cc: Stefano Babic Cc: Tim Harvey --- arch/arm/cpu/armv7/mx6/ddr.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/arch/arm/cpu/armv7/mx6/ddr.c b/arch/arm/cpu/armv7/mx6/ddr

[U-Boot] [PATCH 7/9] imx: mx6: ddr init MMDC according to ddr_type

2015-08-17 Thread Peng Fan
To i.MX6, DDR3 and LPDDR2 is supported, so rename function mx6_dram_cfg to mx6_ddr3_cfg and the original mx6_dram_cfg function only is a wrapper. The new reimplemented function mx6_dram_cfg only invokes mx6_ddr3_cfg when ddr_type is for DDR3. Later we can use ddr_type to initialize MMDC for LPDDR2.

Re: [U-Boot] [PATCH 01/15] sunxi_nand_spl: Fix CONFIG_SPL_NAND_SUNXI handling

2015-08-17 Thread Ian Campbell
On Sat, 2015-08-15 at 22:02 +0200, Hans de Goede wrote: > CONFIG_SPL_NAND_SUPPORT gets used via IS_ENABLED so it must be > defined > to 1, rather then just being defined. > > While at remove 2 other unused NAND related defines from sunxi > -common.h. > > Signed-off-by: Hans de Goede Acked-by:

[U-Boot] [PATCH 8/9] imx: mx6: ddr: add LPDDR2 support

2015-08-17 Thread Peng Fan
Add LPDDR2 support: 1. Implement a function mx6_lpddr2_cfg to initialize MMDC for LPDDR2. 2. Introduce a structure mx6_lpddr2_cfg, most entrys are same to mx6_ddr3_cfg, but still keep it a single one for easy to choose parameters for LPDDR2. 3. If ddr_type is LPDDR2, use mx6_lpddr2_cfg to ini

[U-Boot] [PATCH] imx: mx6sxsabresd: enable CONFIG_SPL_FAT_SUPPORT

2015-08-17 Thread Peng Fan
Enable CONFIG_SPL_FAT_SUPPORT to load u-boot.img from FAT partition. Signed-off-by: Peng Fan --- include/configs/mx6sxsabresd.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/configs/mx6sxsabresd.h b/include/configs/mx6sxsabresd.h index 848bdcd..74d04a0 100644 --- a/include/configs/

Re: [U-Boot] [PATCH V6] sf: Turn SPI flash chip into 3-Byte address mode

2015-08-17 Thread Jagan Teki
Hi Siva, On 13 August 2015 at 18:18, Siva Durga Prasad Paladugu wrote: >> >> >> Hi Zhejiang/Jagan, >> >> >> >> >> >> I think it would be good to extend this further to support 4-byte >> >> >> addressing in u-boot also. >> >> >> This would be based on the driver, We can get the data that >> >> >>

[U-Boot] [PATCH 9/9] imx: mx6slevk: add SPL support

2015-08-17 Thread Peng Fan
Add SPL boot support for mx6slevk board. 1. Introduce a configuration file mx6slevk_spl_defconfig. 2. i.MX6SL has same DRAM space with i.MX6SX, need to change SPL DRAM SPACE. 3. Include imx6_spl.h and related SPL macro in mx6slevk.h. 4. select SUPPORT_SPL for TARGET_MX6SLEVK. 5. Add SPL board code

Re: [U-Boot] [PATCH 02/15] sunxi_nand_spl: Drop unnecessary temp buf

2015-08-17 Thread Ian Campbell
On Mon, 2015-08-17 at 15:22 +0800, Chen-Yu Tsai wrote: > > > +#define SUNXI_DMA_DDMA_CFG_REG_DDMA_DST_DRQ_TYPE_DRAM (1 << 16) > > Might want to mention this change (correct DMA type?) in the commit > log. Yes, would be good. With that: Acked-by: Ian Campbell _

Re: [U-Boot] [PATCH 03/15] sunxi_nand_spl: We only need to reset the nand chip once

2015-08-17 Thread Ian Campbell
On Sat, 2015-08-15 at 22:02 +0200, Hans de Goede wrote: > There is no need to reset the nand chip for every ecc-block read. > > Signed-off-by: Hans de Goede Acked-by: Ian Campbell ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mail

Re: [U-Boot] [U-Boot RESEND v2 09/10] spi: ti_qspi: Use DMA to read from qspi flash

2015-08-17 Thread Jagan Teki
On 17 August 2015 at 13:29, Vignesh R wrote: > ti_qspi uses memory map mode for faster read. Enabling DMA will increase > read speed by 3x @48MHz on DRA74 EVM. > > Signed-off-by: Vignesh R > Reviewed-by: Jagan Teki > --- > drivers/spi/ti_qspi.c | 23 +++ > 1 file changed, 23

Re: [U-Boot] [PATCH 04/15] sunxi_nand_spl: Do not bother writing the spare-area reg in syndrome mode

2015-08-17 Thread Ian Campbell
On Sat, 2015-08-15 at 22:02 +0200, Hans de Goede wrote: > In syndrome mode we set the NFC_SEQ bit in the command register, so the > spare-area register is not used. Also the value currently being written is > actual wrong, the ecc sits at "column + CONFIG_NAND_SUNXI_SPL_ECC_PAGE_SIZE" > not just CO

Re: [U-Boot] [PATCH 05/15] sunxi_nand_spl: Use SYS_NAND_SELF_INIT and only do nand init when necessary

2015-08-17 Thread Ian Campbell
On Sat, 2015-08-15 at 22:02 +0200, Hans de Goede wrote: > Use SYS_NAND_SELF_INIT and only setup the pinmux and clocks when we are > actually using the nand. > > Signed-off-by: Hans de Goede Acked-by: Ian Campbell ___ U-Boot mailing list U-Boot@lists.d

Re: [U-Boot] [PATCH 06/15] sunxi_nand_spl: Make sure the DMA controller is enabled

2015-08-17 Thread Ian Campbell
On Sat, 2015-08-15 at 22:02 +0200, Hans de Goede wrote: > We use DMA for nand data transfers in the SPL, so make sure the DMA > controller is enabled. > > Signed-off-by: Hans de Goede Acked-by: Ian Campbell ___ U-Boot mailing list U-Boot@lists.denx.d

Re: [U-Boot] [U-Boot RESEND v2 09/10] spi: ti_qspi: Use DMA to read from qspi flash

2015-08-17 Thread R, Vignesh
On 8/17/2015 1:48 PM, Jagan Teki wrote: > On 17 August 2015 at 13:29, Vignesh R wrote: >> ti_qspi uses memory map mode for faster read. Enabling DMA will increase >> read speed by 3x @48MHz on DRA74 EVM. >> >> Signed-off-by: Vignesh R >> Reviewed-by: Jagan Teki >> --- >> drivers/spi/ti_qspi.c

Re: [U-Boot] [PATCH 07/15] sunxi_nand_spl: Turn off clocks when we're done with the nand

2015-08-17 Thread Ian Campbell
On Sat, 2015-08-15 at 22:02 +0200, Hans de Goede wrote: > Turn off the nand and dma clocks when we're done with the nand, this > puts the nand and dma controllers back into a clean state for when the > kernel boots. > > Without this the kernel will not boot properly when it is build with

Re: [U-Boot] [PATCH 08/15] sunxi_nand_spl: Add proper cache flusing

2015-08-17 Thread Ian Campbell
On Sat, 2015-08-15 at 22:02 +0200, Hans de Goede wrote: > We are using dma, so we should flush the cache before starting the dma, > and invalidate it once the dma is done. > > Things are working without this by mostly luck, but lets not rely on that. > > Signed-off-by: Hans de Goede Acked-by: I

Re: [U-Boot] [PATCH 09/15] sunxi_nand_spl: Use kernel driver algorithm for determining ecc_mode / _off

2015-08-17 Thread Ian Campbell
On Sat, 2015-08-15 at 22:02 +0200, Hans de Goede wrote: > Sync the code for figuring out the ecc_mode and ecc_offset with the kernel > code. Keeping this in sync seems like a good idea in general, I agree. When doing this IME it is useful to include the last version sync'd in, either as a code com

Re: [U-Boot] [PATCH 10/15] sunxi_nand_spl: Remove NAND_SUNXI_SPL_SYNDROME_PARTITIONS_END

2015-08-17 Thread Ian Campbell
On Sat, 2015-08-15 at 22:02 +0200, Hans de Goede wrote: > We currently only use the spl nand code to get u-boot itself, which > _always_ is located on a syndrome partition. Once we figure out how > we are going to store the u-boot env on nand, we may need non syndrome > support, but even then there

[U-Boot] [PATCH] e1000: support 64bit physical address

2015-08-17 Thread Mingkai Hu
Signed-off-by: Mingkai Hu --- drivers/net/e1000.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/e1000.c b/drivers/net/e1000.c index d5d48b1..e816410 100644 --- a/drivers/net/e1000.c +++ b/drivers/net/e1000.c @@ -4980,8 +4980,8 @@ e1000_configure_tx(struct

Re: [U-Boot] [PATCH 11/15] sunxi_nand_spl: Add support for sun4i and sun5i SoCs

2015-08-17 Thread Ian Campbell
On Sat, 2015-08-15 at 22:02 +0200, Hans de Goede wrote: > Other then having a few less chip-select lines the nand controller > on sun4i, sun5i and sun7i is identical. > > Signed-off-by: Hans de Goede > --- > board/sunxi/board.c | 12 +--- > drivers/mtd/nand/Kconfig | 4 ++-- > 2 fi

Re: [U-Boot] [PATCH 12/15] sunxi_nand_spl: Properly config page-size in the nand ctl register

2015-08-17 Thread Ian Campbell
On Sat, 2015-08-15 at 22:02 +0200, Hans de Goede wrote: > Properly config page-size in the nand ctl register, it seems that things > work fine without doing this, but still lets play it safe and properly > set the page-size. > > Signed-off-by: Hans de Goede Acked-by: Ian Campbell __

Re: [U-Boot] [PATCH 13/15] sunxi_nand_spl: Parametrize lowlevel read functions

2015-08-17 Thread Ian Campbell
On Sat, 2015-08-15 at 22:02 +0200, Hans de Goede wrote: > Parametrize the lowlevel nand_read_page function, instead of directly > using the CONFIG_foo settings for page-size, etc. there and add a few > wrappers / helper functions for calling it. > > This is a preparation patch for adding auto-dete

Re: [U-Boot] [PATCH 11/15] sunxi_nand_spl: Add support for sun4i and sun5i SoCs

2015-08-17 Thread Hans de Goede
Hi, On 17-08-15 10:29, Ian Campbell wrote: On Sat, 2015-08-15 at 22:02 +0200, Hans de Goede wrote: Other then having a few less chip-select lines the nand controller on sun4i, sun5i and sun7i is identical. Signed-off-by: Hans de Goede --- board/sunxi/board.c | 12 +--- drivers

Re: [U-Boot] [PATCH 14/15] sunxi_nand_spl: Auto detect nand configuration parameters

2015-08-17 Thread Ian Campbell
On Sat, 2015-08-15 at 22:02 +0200, Hans de Goede wrote: > Auto detect the nand configuration parameters, like the BROM does. > > This allows us to get rid of various Kconfig settings, and is > necessary to support generic boards like the mk802 which have seen > many production runs with different

Re: [U-Boot] [PATCH 15/15] sunxi_nand_spl: Add support for backup boot partitions

2015-08-17 Thread Ian Campbell
On Sat, 2015-08-15 at 22:02 +0200, Hans de Goede wrote: > The BROM does not care / use bad page markings, instead it deals with > any bad pages in the first erase-block by simply trying to load "boot0" > from the first next erase-block. "first/next"? Maybe, or maybe s/first //? > This

Re: [U-Boot] [PATCH 11/15] sunxi_nand_spl: Add support for sun4i and sun5i SoCs

2015-08-17 Thread Ian Campbell
On Mon, 2015-08-17 at 10:31 +0200, Hans de Goede wrote: > Hi, > > On 17-08-15 10:29, Ian Campbell wrote: > > On Sat, 2015-08-15 at 22:02 +0200, Hans de Goede wrote: > > > Other then having a few less chip-select lines the nand > > > controller > > > on sun4i, sun5i and sun7i is identical. > > >

Re: [U-Boot] [PATCH] Remove odroid_xu3.h.rej

2015-08-17 Thread Przemyslaw Marczak
Hi Masahiro, On 08/17/2015 08:51 AM, Masahiro Yamada wrote: This file was accidentally added by commit 181bd9dc61d2 ("kconfig: add config option for shell prompt"). Signed-off-by: Masahiro Yamada --- include/configs/odroid_xu3.h.rej | 10 -- 1 file changed, 10 deletions(-) delete

Re: [U-Boot] [PATCH V6] sf: Turn SPI flash chip into 3-Byte address mode

2015-08-17 Thread Siva Durga Prasad Paladugu
Hi Jagan, > -Original Message- > From: Jagan Teki [mailto:jt...@openedev.com] > Sent: Monday, August 17, 2015 1:43 PM > To: Siva Durga Prasad Paladugu > Cc: Hou Zhiqiang; Stefan Roese; nofooter; York Sun; u-boot@lists.denx.de > Subject: Re: [U-Boot] [PATCH V6] sf: Turn SPI flash chip into

Re: [U-Boot] [PATCH] imx: mx6sxsabresd: enable CONFIG_SPL_FAT_SUPPORT

2015-08-17 Thread Stefano Babic
On 17/08/2015 10:12, Peng Fan wrote: > Enable CONFIG_SPL_FAT_SUPPORT to load u-boot.img from FAT partition. > > Signed-off-by: Peng Fan > --- > include/configs/mx6sxsabresd.h | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/include/configs/mx6sxsabresd.h b/include/configs/mx6sxsabresd.h

Re: [U-Boot] [PATCH] Remove odroid_xu3.h.rej

2015-08-17 Thread Masahiro Yamada
2015-08-17 17:44 GMT+09:00 Przemyslaw Marczak : > Hi Masahiro, > > On 08/17/2015 08:51 AM, Masahiro Yamada wrote: >> >> This file was accidentally added by commit 181bd9dc61d2 ("kconfig: >> add config option for shell prompt"). >> >> Signed-off-by: Masahiro Yamada >> --- >> >> include/configs/od

Re: [U-Boot] [PATCH 04/15] sunxi_nand_spl: Do not bother writing the spare-area reg in syndrome mode

2015-08-17 Thread Hans de Goede
Hi, On 17-08-15 10:19, Ian Campbell wrote: On Sat, 2015-08-15 at 22:02 +0200, Hans de Goede wrote: In syndrome mode we set the NFC_SEQ bit in the command register, so the spare-area register is not used. Also the value currently being written is actual wrong, the ecc sits at "column + CONFIG_NA

Re: [U-Boot] ARM: sunxi: Experiences NAND flash

2015-08-17 Thread Boris Brezillon
Hi Roy, On Mon, 17 Aug 2015 09:30:38 +0100 Roy Spliet wrote: > Hello, > > Reply in-line > > Op 17-08-15 om 08:34 schreef Boris Brezillon: > > Hi Oliver, > > > > Sorry for the late reply (I was in vacation for the last 2 weeks) > > > > On Tue, 11 Aug 2015 14:16:52 +0200 > > Olliver Schinagl wr

Re: [U-Boot] [PATCH 10/15] sunxi_nand_spl: Remove NAND_SUNXI_SPL_SYNDROME_PARTITIONS_END

2015-08-17 Thread Hans de Goede
Hi, On 17-08-15 10:27, Ian Campbell wrote: On Sat, 2015-08-15 at 22:02 +0200, Hans de Goede wrote: We currently only use the spl nand code to get u-boot itself, which _always_ is located on a syndrome partition. Once we figure out how we are going to store the u-boot env on nand, we may need no

Re: [U-Boot] [PATCH V6] sf: Turn SPI flash chip into 3-Byte address mode

2015-08-17 Thread Jagan Teki
On 17 August 2015 at 14:26, Siva Durga Prasad Paladugu wrote: > Hi Jagan, > >> -Original Message- >> From: Jagan Teki [mailto:jt...@openedev.com] >> Sent: Monday, August 17, 2015 1:43 PM >> To: Siva Durga Prasad Paladugu >> Cc: Hou Zhiqiang; Stefan Roese; nofooter; York Sun; u-boot@lists.d

Re: [U-Boot] [PATCH V6] sf: Turn SPI flash chip into 3-Byte address mode

2015-08-17 Thread Siva Durga Prasad Paladugu
Hi Jagan, > -Original Message- > From: Jagan Teki [mailto:jt...@openedev.com] > Sent: Monday, August 17, 2015 2:42 PM > To: Siva Durga Prasad Paladugu > Cc: Stefan Roese; u-boot@lists.denx.de; Hou Zhiqiang; York Sun > Subject: Re: [U-Boot] [PATCH V6] sf: Turn SPI flash chip into 3-Byte add

Re: [U-Boot] [PATCH] Remove odroid_xu3.h.rej

2015-08-17 Thread Bin Meng
On Mon, Aug 17, 2015 at 4:59 PM, Masahiro Yamada wrote: > 2015-08-17 17:44 GMT+09:00 Przemyslaw Marczak : >> Hi Masahiro, >> >> On 08/17/2015 08:51 AM, Masahiro Yamada wrote: >>> >>> This file was accidentally added by commit 181bd9dc61d2 ("kconfig: >>> add config option for shell prompt"). >>> >>

Re: [U-Boot] git fetch fails, and patchwork not updating

2015-08-17 Thread Bin Meng
+Wolfgang Hi Wolfgang, On Sat, Aug 15, 2015 at 9:44 AM, Bin Meng wrote: > Hi, > > I noticed that this morning when I do git fetch it always fails with > "Connection reset by peer" message. > > $ git fetch x86 > fatal: read error: Connection reset by peer > > Also patchwork is not updating any ne

Re: [U-Boot] [PATCH V6] sf: Turn SPI flash chip into 3-Byte address mode

2015-08-17 Thread Jagan Teki
On 17 August 2015 at 14:44, Siva Durga Prasad Paladugu wrote: > Hi Jagan, > >> -Original Message- >> From: Jagan Teki [mailto:jt...@openedev.com] >> Sent: Monday, August 17, 2015 2:42 PM >> To: Siva Durga Prasad Paladugu >> Cc: Stefan Roese; u-boot@lists.denx.de; Hou Zhiqiang; York Sun >>

[U-Boot] [PATCH v2] arm/ls2085a: Add sata support on qds and rdb board

2015-08-17 Thread Yuantian.Tang
From: Tang Yuantian Freescale ARM-based Layerscape LS2085A contain a SATA controller which comply with the serial ATA 3.0 specification and the AHCI 1.3 specification. This patch adds SATA feature on ls2085aqds and ls2085ardb boards. Signed-off-by: Tang Yuantian --- v2: - rebase to the

[U-Boot] [U-Boot RESEND v2 09/10] spi: ti_qspi: Use DMA to read from qspi flash

2015-08-17 Thread Vignesh R
ti_qspi uses memory map mode for faster read. Enabling DMA will increase read speed by 3x @48MHz on DRA74 EVM. Signed-off-by: Vignesh R Reviewed-by: Jagan Teki --- * Added a TODO comment drivers/spi/ti_qspi.c | 25 + 1 file changed, 25 insertions(+) diff --git a/drive

Re: [U-Boot] [PATCH v2] efi: Update README.efi to clarify build and test instructions

2015-08-17 Thread Stoppa, Igor
On 17 August 2015 at 10:48, Bin Meng wrote: > Hi Igor, > > On Mon, Aug 17, 2015 at 3:10 PM, Stoppa, Igor wrote: [...] >> One other thing that I haven't fully investigated yet (so maybe it's >> already explained elsewhere) is: after the application/payload is >> built for x86 EFI, >> how to deal

Re: [U-Boot] [PATCH v2] efi: Update README.efi to clarify build and test instructions

2015-08-17 Thread Stoppa, Igor
On 17 August 2015 at 12:48, Stoppa, Igor wrote: > I'm referring to this: > > http://www.denx.de/wiki/view/DULG/UBootEnvVariables > > I thought it would become a partition, but maybe I've assumed too much > and it is implemented in some other way? ah, I see now that I should use CONFIG_ENV_IS_IN_

[U-Boot] [PATCH v2] arm/ls1021a: Add sata support on qds and twr board

2015-08-17 Thread Yuantian.Tang
From: Tang Yuantian Freescale ARM-based Layerscape LS102xA contain a SATA controller which comply with the serial ATA 3.0 specification and the AHCI 1.3 specification. This patch adds SATA feature on ls1021aqds and ls1021atwr boards. Signed-off-by: Tang Yuantian --- v2: - rebase to late

[U-Boot] [PATCH v2 0/7] BAR/wait_ready logic updates

2015-08-17 Thread Jagan Teki
BAR and spi_flash_cmd_wait_ready are updated to make more module to add new status checks. Changes for v2: - Update bank_sel for non-bar case. - split the spi_flash_cmd_wait_ready logic into SR and FSR patches. Clone spi-nor branch u-boot-spi.git repo for changes http://git.denx.de/?p=u-boot/u-bo

[U-Boot] [PATCH v2 5/7] sf: Make flash->flags use for generic usage

2015-08-17 Thread Jagan Teki
Use the flash->flags for generic usage, not only for dm-spi-flash, this will be used for future flag additions. Signed-off-by: Jagan Teki Cc: Bin Meng --- drivers/mtd/spi/sf_internal.h | 4 drivers/mtd/spi/sf_probe.c| 6 ++ include/spi_flash.h | 4 ++-- 3 files changed, 8

[U-Boot] [PATCH v2 4/7] sf: Optimize BAR write code

2015-08-17 Thread Jagan Teki
Optimized spi-flash bar writing code and also removed unnecessary bank_sel in read_ops. Signed-off-by: Jagan Teki Cc: Simon Glass Cc: Michal Simek Cc: Siva Durga Prasad Paladugu --- drivers/mtd/spi/sf_ops.c | 41 + 1 file changed, 13 insertions(+), 28 d

[U-Boot] [PATCH v2 2/7] sf: Return proper bank_sel, if flash->bank_curr == bank_sel

2015-08-17 Thread Jagan Teki
If computed bank_sel is same as flash->bank_curr which is computed at probe time, then return the bank_sel instead of zero. Signed-off-by: Jagan Teki Cc: Michal Simek Cc: Siva Durga Prasad Paladugu --- drivers/mtd/spi/sf_ops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a

[U-Boot] [PATCH v2 3/7] sf: Make BAR discovery, as spi_flash_read_bar

2015-08-17 Thread Jagan Teki
Add spi_flash_read_bar function for reading bar and discovering bar commands at probe time. Signed-off-by: Jagan Teki Cc: Michal Simek Cc: Siva Durga Prasad Paladugu --- drivers/mtd/spi/sf_probe.c | 54 ++ 1 file changed, 35 insertions(+), 19 deletio

[U-Boot] [PATCH v2 6/7] sf: Update status reg check in spi_flash_cmd_wait_ready

2015-08-17 Thread Jagan Teki
Current flash wait_ready logic is not modular to add new register status check, hence few of the logic is used from Linux spi-nor framework. Below are the sf speed runs with 'sf update' on whole flash, 16MiB. => sf update 0x100 0x0 0x100 device 0 whole chip 16777216 bytes written, 0 bytes ski

[U-Boot] [PATCH v2 1/7] spi: zynq_spi: Remove unneeded headers

2015-08-17 Thread Jagan Teki
- Removed unneeded inclusion of header files - Add "Xilinx" on license text Signed-off-by: Jagan Teki Cc: Michal Simek Cc: Siva Durga Prasad Paladugu --- drivers/spi/zynq_spi.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/spi/zynq_spi.c b/drivers/spi/zynq_sp

[U-Boot] [PATCH v2 7/7] sf: Add FSR support to spi_flash_cmd_wait_ready

2015-08-17 Thread Jagan Teki
This patch adds flag status register reading support to spi_flash_cmd_wait_ready. Signed-off-by: Jagan Teki Cc: Simon Glass Cc: Marek Vasut Cc: Michal Simek Cc: Siva Durga Prasad Paladugu Cc: Stefan Roese Cc: Tom Warren Cc: Bin Meng Cc: Tom Rini Cc: Hou Zhiqiang Tested-by: Jagan Teki --

Re: [U-Boot] [PATCH 0/6] sf: BAR/wait_ready logic updates

2015-08-17 Thread Jagan Teki
On 17 August 2015 at 08:33, Hou Zhiqiang wrote: > Hello Jagan, > >> -Original Message- >> From: Jagan Teki [mailto:jt...@openedev.com] >> Sent: 2015年8月16日 16:50 >> To: u-boot@lists.denx.de; Hou Zhiqiang-B48286; Sun York-R58495 >> Cc: Jagan Teki >> Subject: Re: [PATCH 0/6] sf: BAR/wait_read

[U-Boot] [PATCH 2/5] x86: i8042: Correctly initialize the controller

2015-08-17 Thread Bin Meng
The existing i8042 keyboard controller driver has some issues. First of all, it does not issue a self-test command (0xaa) to the controller at the very beginning. Without this, the controller does not respond any command at all. Secondly, it initializes the configuration byte reigster to turn on ke

[U-Boot] [PATCH 3/5] x86: i8042: Clean up the driver

2015-08-17 Thread Bin Meng
This commit cleans up the existing i8042 driver by: - Reorder those static function so that their declarations can be removed - Remove unused routines i8042_flush() and i8042_disable() - Remove unused CONFIG_USE_CPCIDVI wrapped codes - Remove __weak board_i8042_skip() - Rename CamelCase variables t

[U-Boot] [PATCH 1/5] x86: superio: Add keyboard controller support to smsc_lpc47m driver

2015-08-17 Thread Bin Meng
Add an api to enable and configure the integrated keyboard controller on SMSC LPC47m superio chipset. It also adds several macros to help future extension. Signed-off-by: Bin Meng --- arch/x86/include/asm/ibmpc.h | 3 +++ drivers/misc/smsc_lpc47m.c | 11 +++ include/smsc_lpc47m.h

[U-Boot] [PATCH 5/5] x86: crownbay: Enable on-board SMSC superio keyboard controller

2015-08-17 Thread Bin Meng
So far we only enabled one legacy serial port on the SMSC LPC47m superio chipset on Intel Crown Bay board. As the board also has dual PS/2 ports routed out, enable the keyboard controller which is i8042 compatible so that we can use PS/2 keyboard and mouse. In order to make PS/2 keyboard work with

[U-Boot] [PATCH 4/5] video: cfb_console: Allow VGA device to work without i8042 keyboard

2015-08-17 Thread Bin Meng
So far if CONFIG_VGA_AS_SINGLE_DEVICE is not defined, the VGA device will try to initialize a keyboard device (for x86, it is i8042). But if i8042 controller initialization fails (eg: there is no keyboard connected to the PS/2 port), drv_video_init() just simply returns. This kills the opportunity

[U-Boot] [PATCH v2 4/4] arm: at91: add support for mini-box picosam9g45 board

2015-08-17 Thread Erik van Luijk
Bootlog: U-Boot SPL 2015.10-rc1-00452-g96a7ed1 (Aug 17 2015 - 10:32:21) mci: setting clock 258000 Hz, block size 512 mci: setting clock 258000 Hz, block size 512 mci: setting clock 258000 Hz, block size 512 mci: setting clock 33024000 Hz, block size 512 reading u-boot.img reading u-boot.img U-Boot

[U-Boot] [PATCH v2 1/1] arm/ls102xa:add hwconfig setting to support disable unused devices.

2015-08-17 Thread Zhuoyu Zhang
DEVDISRn registers provides a mechanism for gating clocks of IP blocks that are not used. Here we implement hwconfig option to allow users to disable unused peripherals on the board. For ex. If eSDHC/qDMA/eDMA are unused and with disabled status in dts, User can enable CONFIG_FSL_DEVICE_DISABLE an

Re: [U-Boot] [PATCH 5/8] drivers: serial: Add ns16550 compatible pci uart driver

2015-08-17 Thread Bin Meng
Hi Simon, On Sat, Aug 15, 2015 at 3:07 PM, Bin Meng wrote: > This adds a new driver to support National Semiconductor 16550 > compatible UART device with PCI interface. The initial support > only adds device IDs for Intel Topcliff chipset UART devices. > > Signed-off-by: Bin Meng > --- > > driv

Re: [U-Boot] [PATCH 8/8] x86: queensbay: Call fsp_init_phase_pci() again

2015-08-17 Thread Bin Meng
Hi Simon, On Sat, Aug 15, 2015 at 3:07 PM, Bin Meng wrote: > With driver model pci conversion, the call to FspNotify was dropped. > Now add this call back as this is required by the FSP spec. > > Signed-off-by: Bin Meng > --- > > arch/x86/cpu/queensbay/tnc.c | 8 +++- > 1 file changed, 7 in

Re: [U-Boot] [PATCH 04/15] sunxi_nand_spl: Do not bother writing the spare-area reg in syndrome mode

2015-08-17 Thread Ian Campbell
On Mon, 2015-08-17 at 10:59 +0200, Hans de Goede wrote: > Hi, > > On 17-08-15 10:19, Ian Campbell wrote: > > On Sat, 2015-08-15 at 22:02 +0200, Hans de Goede wrote: > > > In syndrome mode we set the NFC_SEQ bit in the command register, > > > so the > > > spare-area register is not used. Also the

Re: [U-Boot] [U-Boot,1/7] arm: lpc32xx: mux: add missing registers

2015-08-17 Thread LEMIEUX, SYLVAIN
Hi Tom, I resynchronize the master branch this morning, and only patch 7/7 of the series appear in u-boot/master; Is it possible that patch 1/7 to 6/7 were not applied? For your convenience this is a list of links to patchwork: * http://patchwork.ozlabs.org/patch/500510/ * http://patchwork.ozlab

Re: [U-Boot] [U-Boot,1/7] arm: lpc32xx: mux: add missing registers

2015-08-17 Thread Tom Rini
On Mon, Aug 17, 2015 at 11:34:59AM +, LEMIEUX, SYLVAIN wrote: > Hi Tom, > > I resynchronize the master branch this morning, > and only patch 7/7 of the series appear in u-boot/master; > > Is it possible that patch 1/7 to 6/7 were not applied? > > For your convenience this is a list of links

[U-Boot] [PATCH v3] usb: xhci: Fix a potential NULL pointer dereference

2015-08-17 Thread Sergey Temerkhanov
This patch fixes a potential NULL pointer dereference arising on non-present/non-initialized xHCI controllers and adds some error handling to xHCI code Signed-off-by: Sergey Temerkhanov Signed-off-by: Radha Mohan Chintakuntla --- Changes in v3: - Assign NULL to *controller so it remains that i

[U-Boot] Building Uboot for Nios2 - linker not found on Linux environment

2015-08-17 Thread Dave Williams
I am trying to build Uboot for Nios2. I do the following on Linux bash. > git clone git://git.denx.de/u-boot-nios.git > cd u-boot-nios/ > make menuconfig These proceeding steps complete with no visible errors or warnings. > make all This step fails with the following error LD arch/nio

Re: [U-Boot] [PATCH] dm: Use dev_get_addr() where possible

2015-08-17 Thread Simon Glass
On 12 August 2015 at 20:16, Simon Glass wrote: > Hi, > > On 11 August 2015 at 11:41, Simon Glass wrote: >> Hi Stephen, >> >> On 11 August 2015 at 11:33, Stephen Warren wrote: >>> >>> On 08/11/2015 08:33 AM, Simon Glass wrote: This is a convenient way for a driver to get the hardware ad

Re: [U-Boot] ARM: sunxi: Experiences NAND flash

2015-08-17 Thread Roy Spliet
Hello, Reply in-line Op 17-08-15 om 08:34 schreef Boris Brezillon: Hi Oliver, Sorry for the late reply (I was in vacation for the last 2 weeks) On Tue, 11 Aug 2015 14:16:52 +0200 Olliver Schinagl wrote: Hello everybody, We are working with Boris and Roy's patch series on getting the NAND

Re: [U-Boot] [PATCH v3 15/15] of: clean up OF_CONTROL ifdef conditionals

2015-08-17 Thread Masahiro Yamada
2015-08-12 7:31 GMT+09:00 Masahiro Yamada : > We have flipped CONFIG_SPL_DISABLE_OF_CONTROL. We have cleansing > devices, $(SPL_) and CONFIG_IS_ENABLED(), so we are ready to clear > away the ugly logic in include/fdtdec.h: > > #ifdef CONFIG_OF_CONTROL > # if defined(CONFIG_SPL_BUILD) && !defined

[U-Boot] [PATCH] ARM: fix the misset of global data pointer

2015-08-17 Thread Masahiro Yamada
I found some of my boards would not boot since commit 2afddae07523 ("Align global_data to a 16-byte boundary"). Probably, many ARM boards using Generic Board framework are broken, including ARM64 ones. That commit aligned the global data pointer, i.e. inserted some spaces between the gd and the b

Re: [U-Boot] [PATCH v3] x86: baytrail: Configure FSP UPD from device tree

2015-08-17 Thread Andrew Bradford
Hi Bin, On 08/07 08:11, Andrew Bradford wrote: > Hi Bin, > > On 08/07 08:23, Bin Meng wrote: > > Hi Andrew, > > > > On Fri, Aug 7, 2015 at 4:08 AM, Andrew Bradford > > wrote: > > > From: Andrew Bradford > > > > > > Allow for configuration of FSP UPD from the device tree which will > > > overri

Re: [U-Boot] [PATCH v3] x86: baytrail: Configure FSP UPD from device tree

2015-08-17 Thread Bin Meng
Hi Andrew, On Mon, Aug 17, 2015 at 8:51 PM, Andrew Bradford wrote: > Hi Bin, > > On 08/07 08:11, Andrew Bradford wrote: >> Hi Bin, >> >> On 08/07 08:23, Bin Meng wrote: >> > Hi Andrew, >> > >> > On Fri, Aug 7, 2015 at 4:08 AM, Andrew Bradford >> > wrote: >> > > From: Andrew Bradford >> > > >> >

[U-Boot] [PATCH v3 01/16] spi: Add zynq qspi controller driver

2015-08-17 Thread Jagan Teki
Added zynq qspi controller driver for Xilinx Zynq APSOC, this driver is driver-model driven with devicetree support. => sf probe SF: Detected S25FL128S_64K with page size 256 Bytes, erase size 64 KiB, total 16 MiB => mw.b 0x100 0xCC 0x100 => sf update 0x100 0x0 0x100 device 0 whole chip 1

[U-Boot] [PATCH v3 04/16] dts: microzed: Enable zynq qspi controller node

2015-08-17 Thread Jagan Teki
Enabled zynq qspi controller node for microzed board, verified the same on spansion spi-nor flash. Signed-off-by: Jagan Teki Cc: Simon Glass Cc: Michal Simek Cc: Siva Durga Prasad Paladugu Tested-by: Jagan Teki --- arch/arm/dts/zynq-microzed.dts | 5 + 1 file changed, 5 insertions(+) di

[U-Boot] [PATCH v3 00/16] spi: zynq qspi support

2015-08-17 Thread Jagan Teki
These are the last two version patches links. https://patchwork.ozlabs.org/patch/302945/ https://patchwork.ozlabs.org/patch/264440/ This series adds zynq qspi controller driver in driver model and enabled support on relevent zynq boards and tested the same. Branch to verify: $ git clone git://git

[U-Boot] [PATCH v3 02/16] dts: zynq: Add zynq qspi controller nodes

2015-08-17 Thread Jagan Teki
This patch adds zynq qspi controller nodes in zynq-7000.dtsi. Signed-off-by: Jagan Teki Cc: Simon Glass Cc: Michal Simek Cc: Siva Durga Prasad Paladugu Tested-by: Jagan Teki --- arch/arm/dts/zynq-7000.dtsi | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm/dts/zynq-70

[U-Boot] [PATCH v3 05/16] dts: zc702: Enable zynq qspi controller node

2015-08-17 Thread Jagan Teki
Enabled zynq qspi controller node for zc702 board. Signed-off-by: Jagan Teki Cc: Simon Glass Cc: Michal Simek Cc: Siva Durga Prasad Paladugu --- arch/arm/dts/zynq-zc702.dts | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/dts/zynq-zc702.dts b/arch/arm/dts/zynq-zc702.dts index

[U-Boot] [PATCH v3 03/16] doc: device-tree-bindings: spi: Add zynq qspi info

2015-08-17 Thread Jagan Teki
Added device-tree-binding information for zynq qspi controller driver. Signed-off-by: Jagan Teki Cc: Simon Glass Cc: Michal Simek Cc: Siva Durga Prasad Paladugu Tested-by: Jagan Teki --- doc/device-tree-bindings/spi/spi-zynq-qspi.txt | 26 ++ 1 file changed, 26 insert

[U-Boot] [PATCH v3 06/16] dts: zc706: Enable zynq qspi controller node

2015-08-17 Thread Jagan Teki
Enabled zynq qspi controller node for zc706 board. Signed-off-by: Jagan Teki Cc: Simon Glass Cc: Michal Simek Cc: Siva Durga Prasad Paladugu --- arch/arm/dts/zynq-zc706.dts | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/dts/zynq-zc706.dts b/arch/arm/dts/zynq-zc706.dts index

[U-Boot] [PATCH v3 07/16] dts: zc770-xm010: Enable zynq qspi controller node

2015-08-17 Thread Jagan Teki
Enabled zynq qspi controller node for zc770-xm010 board. => sf probe 0 -- bus0 for selecting spi controller => sf probe 1 -- bus1 for selecting qspi controller Signed-off-by: Jagan Teki Cc: Simon Glass Cc: Michal Simek Cc: Siva Durga Prasad Paladugu --- arch/arm/dts/zynq-zc770-xm010.dts | 5

[U-Boot] [PATCH v3 09/16] configs: Enable legacy SPI flash interface support

2015-08-17 Thread Jagan Teki
Enable legacy spi-flash interface support for boards which supports qspi controller with connected spi-nor flash. Signed-off-by: Jagan Teki Cc: Simon Glass Cc: Michal Simek Cc: Siva Durga Prasad Paladugu Tested-by: Jagan Teki --- configs/zynq_microzed_defconfig | 1 + configs/zynq_zc702_defc

[U-Boot] [PATCH v3 12/16] configs: zynq: Enable zynq qspi controller

2015-08-17 Thread Jagan Teki
Enable zynq qspi controller driver on respective zynq boards. Signed-off-by: Jagan Teki Cc: Simon Glass Cc: Michal Simek Cc: Siva Durga Prasad Paladugu Tested-by: Jagan Teki --- configs/zynq_microzed_defconfig| 1 + configs/zynq_zc702_defconfig | 1 + configs/zynq_zc706_defconfig

[U-Boot] [PATCH v3 13/16] spi: Kconfig: Add Zynq QSPI controller entry

2015-08-17 Thread Jagan Teki
Add Zynq QSPI controller Kconfig entry. Signed-off-by: Jagan Teki Cc: Simon Glass Cc: Michal Simek Cc: Siva Durga Prasad Paladugu --- drivers/spi/Kconfig | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/spi/Kconfig b/drivers/spi/Kconfig index c84a7b7..facd94d 100644 --- a/

[U-Boot] [PATCH v3 10/16] zynq-common: Enable zynq qspi controller support

2015-08-17 Thread Jagan Teki
This patch adds support for zynq qspi controller driver on zynq-common.h Signed-off-by: Jagan Teki Cc: Simon Glass Cc: Michal Simek Cc: Siva Durga Prasad Paladugu Tested-by: Jagan Teki --- include/configs/zynq-common.h | 9 + 1 file changed, 9 insertions(+) diff --git a/include/conf

[U-Boot] [PATCH v3 08/16] dts: zed: Enable zynq qspi controller node

2015-08-17 Thread Jagan Teki
Enabled zynq qspi controller node for zed board. Signed-off-by: Jagan Teki Cc: Simon Glass Cc: Michal Simek Cc: Siva Durga Prasad Paladugu --- arch/arm/dts/zynq-zed.dts | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/dts/zynq-zed.dts b/arch/arm/dts/zynq-zed.dts index 5762576

[U-Boot] [PATCH v3 11/16] zynq-common: Enable Bank/Extended address register support

2015-08-17 Thread Jagan Teki
Enabled SPI flash Bank/Extended address register support. Bank/Extended address registers are used to access the flash which has size > 16MiB in 3-byte addressing. Signed-off-by: Jagan Teki --- include/configs/zynq-common.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/configs/zyn

[U-Boot] [PATCH v3 14/16] spi: zynq_spi: Add config reg shift named macros

2015-08-17 Thread Jagan Teki
Update the numerical values for baudrate and chipselect with config reg shift named macro's Signed-off-by: Jagan Teki --- drivers/spi/zynq_spi.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/drivers/spi/zynq_spi.c b/drivers/spi/zynq_spi.c index b9cf335..817728c 1

[U-Boot] [PATCH v3 16/16] spi: zynq_spi: Store cs value into private data

2015-08-17 Thread Jagan Teki
Store cs value into private data and use it while activating chipselect instead of passing through function. Signed-off-by: Jagan Teki --- drivers/spi/zynq_spi.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/spi/zynq_spi.c b/drivers/spi/zynq_spi.c index 70d7

[U-Boot] [PATCH v3 15/16] spi: zynq_spi: Rename baudrate divisor mask name

2015-08-17 Thread Jagan Teki
Rename ZYNQ_SPI_CR_BRD_MASK to ZYNQ_SPI_CR_BAUD_MASK for more readable. Signed-off-by: Jagan Teki --- drivers/spi/zynq_spi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/spi/zynq_spi.c b/drivers/spi/zynq_spi.c index 817728c..70d7716 100644 --- a/drivers/spi/zyn

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

2015-08-17 Thread Tom Rini
On Fri, Aug 14, 2015 at 10:57:59AM -0600, Simon Glass wrote: > Hi Tom, > > This includes various fixes including moving x86 over to use > board_init_f_mem() and proper interrupt support on minnowmax. The > revert of fdtdec_get_addr_size() is here also. Stephen confirmed it > will not affect 64-bi

Re: [U-Boot] [PATCH 3/3] ARM: DRA74-evm: Use SMA_1 spare register to workaround DP83865 phy on SR2.0

2015-08-17 Thread Tom Rini
On Thu, Aug 13, 2015 at 09:51:00AM -0500, Nishanth Menon wrote: > DP83865 ethernet phy used on DRA74x-evm is quirky and the datasheet > provided IODELAY values for standard RGMII phys do not work. > > Silicon Revision(SR) 2.0 provides an alternative bit configuration > that allows us to do a "gro

Re: [U-Boot] [PATCH 1/3] ARM: DRA7: Add detection of ES2.0

2015-08-17 Thread Tom Rini
On Thu, Aug 13, 2015 at 09:50:58AM -0500, Nishanth Menon wrote: > Add support for detection of ES2.0 version of DRA7 family of > processors. ES2.0 is an incremental revision with various fixes > including the following: > - reset logic fixes > - few assymetric aging logic fixes > - MMC clock rate

Re: [U-Boot] [PATCH 2/3] ARM: DRA74-evm: Add iodelay values for SR2.0

2015-08-17 Thread Tom Rini
On Thu, Aug 13, 2015 at 09:50:59AM -0500, Nishanth Menon wrote: > Silicon revision 2.0 has new signal routing hence has an updated set of > iodelay parameters to be used. Update the configuration for the same. > Padmux remains the same. > > Based on data from VayuES2_EVM_Base_Config-20150807. >

[U-Boot] spi-nor: Choices of choosing bank or 4-byte addressing

2015-08-17 Thread Jagan Teki
For accessing SPI-NOR flash's with > 16MiB we have two choices like Bank/Extended and 4-byte addressing register support. Status in u-boot: 1) BAR (Bank/Extended) - Added support in u-boot already, tested 2) 4-byte addressing - No support yet - Hou Zhiqiang sent patches, those are review. Ideall

[U-Boot] [PATCH 1/5] ARM: keystone2: configs: Move SP to end of u-boot section

2015-08-17 Thread Lokesh Vutla
Currently u-boot stack is defined at the beginning of MSMC RAM. This is a problem for uart boot mode as ROM downloads directly to starting of MSMC RAM. Fixing it by moving stack to the end of u-boot section and shifting SYS_TEXT_BASE to the start of MSMC RAM. Updated division of MSMC RAM is shown b

[U-Boot] [PATCH 2/5] ARM: keystone2: move the custom build rules out to keystone specific makefile

2015-08-17 Thread Lokesh Vutla
From: Nishanth Menon Keystone has build rules introduced by commit ef509b9063fb7 ("k2hk: add support for k2hk SOC and EVM") and commit 0e7f2dbac6ead ("keystone: add support for NAND gpheader image"). These are not reused by other platforms for the build, hence there is no clear benefit is mainta

[U-Boot] [PATCH 0/5] ARM: keystone2: Build images by default

2015-08-17 Thread Lokesh Vutla
Currently we need to build each image(u-boot.uart, u-boot-nand.gph, u-boot-spi.gph) separately for all keystone2 platforms. This series does the following: - Move SP to end of u-boot section so that u-boot.bin can be used as build target for uart boot. - Renames u-boot-nand.gph to MLO so that th

[U-Boot] [PATCH 4/5] ARM: keystone2: Build MLO by default

2015-08-17 Thread Lokesh Vutla
MLO(NAND/MMC boot image), is used for all the ks2 platforms. Enabling it in config.mk so that these images will be automatically built upon calling make. u-boot-spi.gph is already the build target, so not including here. Reported-by: Nishanth Menon Reviewed-by: Nishanth Menon Signed-off-by: Loke

[U-Boot] [PATCH 3/5] ARM: keystone2: Rename u-boot-nand.gph to MLO

2015-08-17 Thread Lokesh Vutla
NAND boot mode, ROM expects an image with a gp header in the beginning and an 8bytes filled with zeros at the end. The same is true for SD boot on K2G platforms but the file name should be MLO. Renaming u-boot-nand.gph to MLO, so that same image can be used for NAND and SD boots. And also not incl

[U-Boot] [PATCH 5/5] ARM: keystone2: Update README

2015-08-17 Thread Lokesh Vutla
Update README to include uart boot mode support and makefile changes. Signed-off-by: Lokesh Vutla --- board/ti/ks2_evm/README | 26 +++--- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/board/ti/ks2_evm/README b/board/ti/ks2_evm/README index b824725..b8d55e7

<    1   2   3   4   5   >