Skip to content
This repository was archived by the owner on Mar 29, 2021. It is now read-only.

Commit cfcc706

Browse files
miquelraynalkeveryang
authored andcommitted
UPSTREAM: mtd: move NAND files into a raw/ subdirectory
NAND flavors, like serial and parallel, have a lot in common and would benefit to share code. Let's move raw (parallel) NAND specific code in a raw/ subdirectory, to ease the addition of a core file in nand/ and the introduction of a spi/ subdirectory specific to SPI NANDs. Signed-off-by: Miquel Raynal <[email protected]> Change-Id: Ibb56f85620c4798fb579be3e4e30438963b7c48b Signed-off-by: Jon Lin <[email protected]> (cherry picked from commit a430fa0)
1 parent 952e9c1 commit cfcc706

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+474
-425
lines changed

MAINTAINERS

+77-3
Original file line numberDiff line numberDiff line change
@@ -224,14 +224,57 @@ N: uniphier
224224
ARM ZYNQ
225225
M: Michal Simek <[email protected]>
226226
S: Maintained
227-
F: arch/arm/cpu/armv7/zynq/
228-
F: arch/arm/include/asm/arch-zynq/
227+
T: git git://git.denx.de/u-boot-microblaze.git
228+
F: arch/arm/mach-zynq/
229+
F: drivers/clk/clk_zynq.c
230+
F: drivers/fpga/zynqpl.c
231+
F: drivers/gpio/zynq_gpio.c
232+
F: drivers/i2c/i2c-cdns.c
233+
F: drivers/i2c/muxes/pca954x.c
234+
F: drivers/i2c/zynq_i2c.c
235+
F: drivers/mmc/zynq_sdhci.c
236+
F: drivers/mtd/nand/raw/zynq_nand.c
237+
F: drivers/net/phy/xilinx_phy.c
238+
F: drivers/net/zynq_gem.c
239+
F: drivers/serial/serial_zynq.c
240+
F: drivers/spi/zynq_qspi.c
241+
F: drivers/spi/zynq_spi.c
242+
F: drivers/usb/host/ehci-zynq.c
243+
F: drivers/watchdog/cdns_wdt.c
244+
F: include/zynqpl.h
245+
F: tools/zynqimage.c
246+
N: zynq
229247

230248
ARM ZYNQMP
231249
M: Michal Simek <[email protected]>
232250
S: Maintained
233251
F: arch/arm/cpu/armv8/zynqmp/
234-
F: arch/arm/include/asm/arch-zynqmp/
252+
F: drivers/clk/clk_zynqmp.c
253+
F: drivers/fpga/zynqpl.c
254+
F: drivers/gpio/zynq_gpio.c
255+
F: drivers/i2c/i2c-cdns.c
256+
F: drivers/i2c/muxes/pca954x.c
257+
F: drivers/i2c/zynq_i2c.c
258+
F: drivers/mmc/zynq_sdhci.c
259+
F: drivers/mtd/nand/raw/zynq_nand.c
260+
F: drivers/net/phy/xilinx_phy.c
261+
F: drivers/net/zynq_gem.c
262+
F: drivers/serial/serial_zynq.c
263+
F: drivers/spi/zynq_qspi.c
264+
F: drivers/spi/zynq_spi.c
265+
F: drivers/timer/cadence-ttc.c
266+
F: drivers/usb/host/ehci-zynq.c
267+
F: drivers/watchdog/cdns_wdt.c
268+
F: include/zynqmppl.h
269+
F: tools/zynqmp*
270+
N: ultra96
271+
N: zynqmp
272+
273+
ARM ZYNQMP R5
274+
M: Michal Simek <[email protected]>
275+
S: Maintained
276+
T: git git://git.denx.de/u-boot-microblaze.git
277+
F: arch/arm/mach-zynqmp-r5/
235278

236279
BUILDMAN
237280
M: Simon Glass <[email protected]>
@@ -329,6 +372,37 @@ S: Maintained
329372
T: git git://git.denx.de/u-boot-mmc.git
330373
F: drivers/mmc/
331374

375+
NAND FLASH
376+
#M: Scott Wood <[email protected]>
377+
S: Orphaned (Since 2018-07)
378+
T: git git://git.denx.de/u-boot-nand-flash.git
379+
F: drivers/mtd/nand/raw/
380+
381+
NDS32
382+
M: Macpaul Lin <[email protected]>
383+
S: Maintained
384+
T: git git://git.denx.de/u-boot-nds32.git
385+
F: arch/nds32/
386+
387+
NETWORK
388+
M: Joe Hershberger <[email protected]>
389+
S: Maintained
390+
T: git git://git.denx.de/u-boot-net.git
391+
F: drivers/net/
392+
F: net/
393+
394+
NIOS
395+
M: Thomas Chou <[email protected]>
396+
S: Maintained
397+
T: git git://git.denx.de/u-boot-nios.git
398+
F: arch/nios2/
399+
400+
ONENAND
401+
#M: Lukasz Majewski <[email protected]>
402+
S: Orphaned (Since 2017-01)
403+
T: git git://git.denx.de/u-boot-onenand.git
404+
F: drivers/mtd/onenand/
405+
332406
PATMAN
333407
M: Simon Glass <[email protected]>
334408
S: Maintained

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -659,7 +659,7 @@ libs-y += drivers/dma/
659659
libs-y += drivers/gpio/
660660
libs-y += drivers/i2c/
661661
libs-y += drivers/mtd/
662-
libs-$(CONFIG_CMD_NAND) += drivers/mtd/nand/
662+
libs-$(CONFIG_CMD_NAND) += drivers/mtd/nand/raw/
663663
libs-y += drivers/mtd/onenand/
664664
libs-$(CONFIG_CMD_UBI) += drivers/mtd/ubi/
665665
libs-y += drivers/mtd/spi/

README

+3-3
Original file line numberDiff line numberDiff line change
@@ -3492,8 +3492,8 @@ Low Level (hardware related) configuration options:
34923492
a 16 bit bus.
34933493
Not all NAND drivers use this symbol.
34943494
Example of drivers that use it:
3495-
- drivers/mtd/nand/ndfc.c
3496-
- drivers/mtd/nand/mxc_nand.c
3495+
- drivers/mtd/nand/raw/ndfc.c
3496+
- drivers/mtd/nand/raw/mxc_nand.c
34973497

34983498
- CONFIG_SYS_NDFC_EBC0_CFG
34993499
Sets the EBC0_CFG register for the NDFC. If not defined
@@ -3613,7 +3613,7 @@ Low Level (hardware related) configuration options:
36133613
- CONFIG_SYS_NAND_NO_SUBPAGE_WRITE
36143614
Option to disable subpage write in NAND driver
36153615
driver that uses this:
3616-
drivers/mtd/nand/davinci_nand.c
3616+
drivers/mtd/nand/raw/davinci_nand.c
36173617

36183618
Freescale QE/FMAN Firmware Support:
36193619
-----------------------------------

arch/arm/mach-uniphier/board_late_init.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
#include <linux/libfdt.h>
1212
#include <nand.h>
1313
#include <linux/io.h>
14-
#include <../drivers/mtd/nand/denali.h>
14+
#include <linux/printk.h>
15+
#include <../drivers/mtd/nand/raw/denali.h>
1516

1617
#include "init.h"
1718

common/spl/Kconfig

+1-1
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ config SPL_NAND_SUPPORT
458458
help
459459
Enable support for NAND (Negative AND) flash in SPL. NAND flash
460460
can be used to allow SPL to load U-Boot from supported devices.
461-
This enables the drivers in drivers/mtd/nand as part of an SPL
461+
This enables the drivers in drivers/mtd/nand/raw as part of an SPL
462462
build.
463463

464464
config SPL_NET_SUPPORT

common/spl/spl_spi.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* Copyright (C) 2011 OMICRON electronics GmbH
33
*
4-
* based on drivers/mtd/nand/nand_spl_load.c
4+
* based on drivers/mtd/nand/raw/nand_spl_load.c
55
*
66
* Copyright (C) 2011
77
* Heiko Schocher, DENX Software Engineering, [email protected].

doc/README.SPL

+2-2
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,11 @@ CONFIG_SPL_FAT_SUPPORT (fs/fat/libfat.o)
5757
CONFIG_SPL_EXT_SUPPORT
5858
CONFIG_SPL_LIBGENERIC_SUPPORT (lib/libgeneric.o)
5959
CONFIG_SPL_POWER_SUPPORT (drivers/power/libpower.o)
60-
CONFIG_SPL_NAND_SUPPORT (drivers/mtd/nand/libnand.o)
60+
CONFIG_SPL_NAND_SUPPORT (drivers/mtd/nand/raw/libnand.o)
6161
CONFIG_SPL_DRIVERS_MISC_SUPPORT (drivers/misc)
6262
CONFIG_SPL_DMA_SUPPORT (drivers/dma/libdma.o)
6363
CONFIG_SPL_POST_MEM_SUPPORT (post/drivers/memory.o)
64-
CONFIG_SPL_NAND_LOAD (drivers/mtd/nand/nand_spl_load.o)
64+
CONFIG_SPL_NAND_LOAD (drivers/mtd/nand/raw/nand_spl_load.o)
6565
CONFIG_SPL_SPI_LOAD (drivers/mtd/spi/spi_spl_load.o)
6666
CONFIG_SPL_RAM_DEVICE (common/spl/spl.c)
6767
CONFIG_SPL_WATCHDOG_SUPPORT (drivers/watchdog/libwatchdog.o)

doc/README.arm-relocation

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ Relocation with SPL (example for the tx25 booting from NAND Flash):
8484
- cpu copies the first page from NAND to 0xbb000000 (IMX_NFC_BASE)
8585
and start with code execution on this address.
8686

87-
- The First page contains u-boot code from drivers/mtd/nand/mxc_nand_spl.c
87+
- The First page contains u-boot code from drivers/mtd/nand/raw/mxc_nand_spl.c
8888
which inits the dram, cpu registers, reloacte itself to CONFIG_SPL_TEXT_BASE and loads
8989
the "real" u-boot to CONFIG_SYS_NAND_U_BOOT_DST and starts execution
9090
@CONFIG_SYS_NAND_U_BOOT_START

doc/README.nand

+3-3
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ Configuration Options:
116116
The maximum number of NAND chips per device to be supported.
117117

118118
CONFIG_SYS_NAND_SELF_INIT
119-
Traditionally, glue code in drivers/mtd/nand/nand.c has driven
119+
Traditionally, glue code in drivers/mtd/nand/raw/nand.c has driven
120120
the initialization process -- it provides the mtd and nand
121121
structs, calls a board init function for a specific device,
122122
calls nand_scan(), and registers with mtd.
@@ -125,7 +125,7 @@ Configuration Options:
125125
run code between nand_scan_ident() and nand_scan_tail(), or other
126126
deviations from the "normal" flow.
127127

128-
If a board defines CONFIG_SYS_NAND_SELF_INIT, drivers/mtd/nand/nand.c
128+
If a board defines CONFIG_SYS_NAND_SELF_INIT, drivers/mtd/nand/raw/nand.c
129129
will make one call to board_nand_init(), with no arguments. That
130130
function is responsible for calling a driver init function for
131131
each NAND device on the board, that performs all initialization
@@ -280,7 +280,7 @@ NOTE:
280280
=====
281281

282282
The Disk On Chip driver is currently broken and has been for some time.
283-
There is a driver in drivers/mtd/nand, taken from Linux, that works with
283+
There is a driver in drivers/mtd/nand/raw, taken from Linux, that works with
284284
the current NAND system but has not yet been adapted to the u-boot
285285
environment.
286286

doc/README.zynq

+1
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ bootmode strings at runtime.
6565
mmc - drivers/mmc/zynq_sdhci.c
6666
spi- drivers/spi/zynq_spi.c
6767
i2c - drivers/i2c/zynq_i2c.c
68+
nand - drivers/mtd/nand/raw/zynq_nand.c
6869
- Done proper cleanups on board configurations
6970
- Added basic FDT support for zynq boards
7071
- d-cache support for zynq_gem.c

drivers/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ obj-$(CONFIG_$(SPL_TPL_)DRIVERS_MISC_SUPPORT) += misc/ sysreset/ firmware/
88
obj-$(CONFIG_$(SPL_TPL_)I2C_SUPPORT) += i2c/
99
obj-$(CONFIG_$(SPL_TPL_)LED) += led/
1010
obj-$(CONFIG_$(SPL_TPL_)MMC_SUPPORT) += mmc/
11-
obj-$(CONFIG_$(SPL_TPL_)NAND_SUPPORT) += mtd/nand/
11+
obj-$(CONFIG_$(SPL_TPL_)NAND_SUPPORT) += mtd/nand/raw/
1212
obj-$(CONFIG_$(SPL_TPL_)PHY) += phy/
1313
obj-$(CONFIG_$(SPL_TPL_)PINCTRL) += pinctrl/
1414
obj-$(CONFIG_$(SPL_TPL_)RAM) += ram/

0 commit comments

Comments
 (0)