Re: [U-Boot] [PATCH v2 1/3] sunxi: nand: Add basic sunxi NAND driver for SPL with DMA support

2015-07-22 Thread Piotr Zierhoffer
ut unfortunately I won't be able to verify them all with the Linux drivers, due to time constraints. It can always be done later as a part of a separate patchset with a Linux driver. I will submit another version of this patchset later today. I will follow your suggestion to create a new thread for that. > Boris > Best regards *Piotr Zierhoffer* Antmicro Ltd | www.antmicro.com ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCH v2 1/3] sunxi: nand: Add basic sunxi NAND driver for SPL with DMA support

2015-07-22 Thread Piotr Zierhoffer
ivers, as we have tegra_nand.h and atmel_nand_ecc.h, never used elsewhere apart from their corresponding *.c files. Especially if we'd have two drivers, one header will be needed. But if that would ease your work, I'll merge sunxi_nand.h to sunxi_nand.c and rename it as you suggest.

[U-Boot] [PATCH v3 2/4] sunxi: nand: Add basic sunxi NAND driver for SPL with DMA support

2015-07-23 Thread Piotr Zierhoffer
This driver adds NAND support to SPL. It was tested on Allwinner A20. Signed-off-by: Peter Gielda Signed-off-by: Tomasz Gorochowik Signed-off-by: Mateusz Holenko Signed-off-by: Piotr Zierhoffer Signed-off-by: Karol Gugala --- Changes in v3: - renamed the driver file - renamed constants to

[U-Boot] [PATCH v3 1/4] sunxi: nand: Add pinmux and clock settings for NAND support

2015-07-23 Thread Piotr Zierhoffer
From: Karol Gugala To enable NAND flash in sunxi SPL, pins 0-6, 8-22 and 24 on port C are configured. Signed-off-by: Karol Gugala Signed-off-by: Piotr Zierhoffer --- Changes in v3: - moved pinmux and clock to board level - code cleanup with significant size reduction Changes in v2: None

[U-Boot] [PATCH v3 4/4] sunxi: nand: Add information to sunxi that it was run from NAND in SPL

2015-07-23 Thread Piotr Zierhoffer
As SPL does not know which source to choose when booting U-Boot, choose NAND if it is capable of doing so. Signed-off-by: Peter Gielda Signed-off-by: Tomasz Gorochowik Signed-off-by: Mateusz Holenko Signed-off-by: Piotr Zierhoffer Signed-off-by: Karol Gugala --- Changes in v3: - none

[U-Boot] [PATCH v3 3/4] sunxi: nand: Add board configuration options

2015-07-23 Thread Piotr Zierhoffer
When SPL_NAND_SUNXI option is selected in config, set some configuration options for sunxi NAND. This commit also introduces the configurable options in Kconfig. Signed-off-by: Peter Gielda Signed-off-by: Tomasz Gorochowik Signed-off-by: Mateusz Holenko Signed-off-by: Piotr Zierhoffer Signed

[U-Boot] [PATCH v3 0/4] sunxi: nand: Basic NAND driver for SPL

2015-07-23 Thread Piotr Zierhoffer
/mtd/nand - reworded Kconfig entry help Karol Gugala (1): sunxi: nand: Add pinmux and clock settings for NAND support Piotr Zierhoffer (3): sunxi: nand: Add basic sunxi NAND driver for SPL with DMA support sunxi: nand: Add board configuration options sunxi: nand: Add information to sunxi that

Re: [U-Boot] [PATCH v3 0/4] sunxi: nand: Basic NAND driver for SPL

2015-07-23 Thread Piotr Zierhoffer
rds Piotr Zierhoffer, Antmicro Ltd | www.antmicro.com *Piotr Zierhoffer* mobile: +48 696 419 606 Antmicro Ltd | www.antmicro.com Zwierzyniecka 3, 60-813 Poznan, Poland 2015-07-23 16:04 GMT+02:00 Marek Vasut : > On Thursday, July 23, 2015 at 02:33:00 PM, Piotr Zierhoffer wrote: >> This is a b

Re: [U-Boot] [PATCH v3 0/4] sunxi: nand: Basic NAND driver for SPL

2015-08-06 Thread Piotr Zierhoffer
ple spl payload locations >> to work around the breakage of the bad block marker mechanism, as was >> discussed. > > > I agree 100%, I've added note to my sunxi todo list for this. Note I only > have this on my todo list as a reminder, since a few other people a

[U-Boot] [PATCH 0/4] sunxi: nand: Basic NAND driver with SPL support

2015-07-16 Thread Piotr Zierhoffer
This is a basic driver for the sunxi NAND controller for Allwinner A20. It supports both SPL and U-Boot. The driver uses DMA for data transfers. It does not support writing. To enable user reading from NADN, the a20_nandread command was added. Piotr Zierhoffer (4): sunxi: nand: Add basic

[U-Boot] [PATCH 1/4] sunxi: nand: Add basic sunxi NAND driver with DMA support

2015-07-16 Thread Piotr Zierhoffer
From: Piotr Zierhoffer This driver adds NAND support to both SPL and full U-Boot. It was tested on AllWinner A20. Signed-off-by: Peter Gielda Signed-off-by: Tomasz Gorochowik Signed-off-by: Mateusz Holenko Signed-off-by: Piotr Zierhoffer --- board/sunxi/Makefile | 1 + board/sunxi

[U-Boot] [PATCH 2/4] sunxi: nand: Add board configuration options

2015-07-16 Thread Piotr Zierhoffer
From: Piotr Zierhoffer When SUNXI_NAND option is selected in config, set some configuration options for sunxi NAND. This commit also introduces the configurable options in Kconfig. Signed-off-by: Peter Gielda Signed-off-by: Tomasz Gorochowik Signed-off-by: Mateusz Holenko Signed-off-by

[U-Boot] [PATCH 4/4] sunxi: nand: Add information to sunxi that it was run from NAND in SPL

2015-07-16 Thread Piotr Zierhoffer
As SPL does not know which source to choose when booting U-Boot, choose NAND if it is capable of doing so. Signed-off-by: Peter Gielda Signed-off-by: Tomasz Gorochowik Signed-off-by: Mateusz Holenko Signed-off-by: Piotr Zierhoffer --- arch/arm/cpu/armv7/sunxi/board.c | 4 1 file

[U-Boot] [PATCH 3/4] sunxi: nand: Add a20_nandread command to load image from NAND in SPL

2015-07-16 Thread Piotr Zierhoffer
From: Piotr Zierhoffer The usage of the command is: a20_nandread It allows user to copy data from NAND to memory. It employs nand_spl_load_image from the sunxi NAND driver. It is added only when the NAND support is enabled. Signed-off-by: Peter Gielda Signed-off-by: Tomasz Gorochowik

Re: [U-Boot] [PATCH 1/4] sunxi: nand: Add basic sunxi NAND driver with DMA support

2015-07-17 Thread Piotr Zierhoffer
2015-07-16 23:15 GMT+02:00 Scott Wood : > On Thu, 2015-07-16 at 13:25 +0200, Piotr Zierhoffer wrote: >> From: Piotr Zierhoffer >> >> This driver adds NAND support to both SPL and full U-Boot. >> It was tested on AllWinner A20. > > It looks a lot like an SPL-only

Re: [U-Boot] [PATCH 3/4] sunxi: nand: Add a20_nandread command to load image from NAND in SPL

2015-07-17 Thread Piotr Zierhoffer
Hello 2015-07-16 23:20 GMT+02:00 Scott Wood : > On Thu, 2015-07-16 at 13:25 +0200, Piotr Zierhoffer wrote: >> Signed-off-by: Peter Gielda >> Signed-off-by: Tomasz Gorochowik >> Signed-off-by: Mateusz Holenko >> Signed-off-by: Piotr Zierhoffer > > Why does th

[U-Boot] [PATCH v2 1/3] sunxi: nand: Add basic sunxi NAND driver for SPL with DMA support

2015-07-20 Thread Piotr Zierhoffer
From: Piotr Zierhoffer This driver adds NAND support to SPL. It was tested on AllWinner A20. Signed-off-by: Peter Gielda Signed-off-by: Tomasz Gorochowik Signed-off-by: Mateusz Holenko Signed-off-by: Piotr Zierhoffer Signed-off-by: Karol Gugala --- Changes in v2: - removed traces of non

[U-Boot] [PATCH v2 3/3] sunxi: nand: Add information to sunxi that it was run from NAND in SPL

2015-07-20 Thread Piotr Zierhoffer
As SPL does not know which source to choose when booting U-Boot, choose NAND if it is capable of doing so. Signed-off-by: Peter Gielda Signed-off-by: Tomasz Gorochowik Signed-off-by: Mateusz Holenko Signed-off-by: Piotr Zierhoffer --- Changes in v2: - none arch/arm/cpu/armv7/sunxi/board.c

[U-Boot] [PATCH v2 0/3] sunxi: nand: Basic NAND driver for SPL

2015-07-20 Thread Piotr Zierhoffer
- renamed defines to be more relevant - moved Kconfig entry for the driver to drivers/mtd/nand - reworded Kconfig entry help Piotr Zierhoffer (3): sunxi: nand: Add basic sunxi NAND driver for SPL with DMA support sunxi: nand: Add board configuration options sunxi: nand: Add information to

[U-Boot] [PATCH v2 2/3] sunxi: nand: Add board configuration options

2015-07-20 Thread Piotr Zierhoffer
From: Piotr Zierhoffer When SPL_NAND_SUNXI option is selected in config, set some configuration options for sunxi NAND. This commit also introduces the configurable options in Kconfig. Signed-off-by: Peter Gielda Signed-off-by: Tomasz Gorochowik Signed-off-by: Mateusz Holenko Signed-off-by

Re: [U-Boot] [PATCH v2 0/3] sunxi: nand: Basic NAND driver for SPL

2015-07-20 Thread Piotr Zierhoffer
e a20_nandread command (which is a good > thing IMHO), right ? This is true. The command was the only non-SPL part, and since it was not a full driver we have decided to remove it from this patch set. Best regards Piotr Zierhoffer Antmicro Ltd | www.antmicro.com _