axs_nand - add driver for NAND controller used on Synopsys AXS dev boards
Subsystems (3)
PATCH 2/2 axs_nand - add driver for NAND controller used on Synopsys AXS dev boards
In reply to a message not in the archive--- Documentation/devicetree/bindings/mtd/axs-nand.txt | 17 + drivers/mtd/nand/Kconfig | 6 + drivers/mtd/nand/Makefile | 1 + drivers/mtd/nand/axs_nand.c | 412 +++++++++++++++++++++ 4 files changed, 436 insertions(+) create mode 100644 Documentation/devicetree/bindings/mtd/axs-nand.txt create mode 100644 drivers/mtd/nand/axs_nand.c
Documentation/devicetree/bindings/mtd/axs-nand.txt new file +17 -0
@@ -0,0 +1,17 @@ +* Synopsys AXS NAND controller + +Required properties: + - compatible: must be "snps,axs-nand" + - reg: physical base address and size of the registers map + +The device tree may optionally contain sub-nodes describing partitions of the +address space. See partition.txt for more detail. + +Examples: + +flash@0x16000 { + #address-cells = <1>; + #size-cells = <1>; + compatible = "snps,axs-nand"; + reg = < 0x16000 0x200 >; +};
drivers/mtd/nand/Kconfig +6 -0
@@ -516,4 +516,10 @@ config MTD_NAND_XWAY Enables support for NAND Flash chips on Lantiq XWAY SoCs. NAND is attached to the External Bus Unit (EBU). +config MTD_NAND_AXS + tristate "Support for NAND on Synopsys AXS development board" + help + Enables support for NAND Flash chips on Synopsys AXS development + boards. + endif # MTD_NAND
drivers/mtd/nand/Makefile +1 -0
@@ -50,5 +50,6 @@ obj-$(CONFIG_MTD_NAND_JZ4740) += jz4740_nand.o obj-$(CONFIG_MTD_NAND_GPMI_NAND) += gpmi-nand/ obj-$(CONFIG_MTD_NAND_XWAY) += xway_nand.o obj-$(CONFIG_MTD_NAND_BCM47XXNFLASH) += bcm47xxnflash/ +obj-$(CONFIG_MTD_NAND_AXS) += axs_nand.o nand-objs := nand_base.o nand_bbt.o nand_timings.o
drivers/mtd/nand/axs_nand.c new file +412 -0
412 lines not on this page · raw message
Signature · 1 line
2.1.0
What happened to 1/2? Whatever that was, I spotted a license mismatch in this 2/2.
drivers/mtd/nand/axs_nand.c line 9
Quoted 12 lines · Alexey Brodkin
drivers/mtd/nand/axs_nand.c new file +9
-0@@ -0,0 +1,412 @@ +/* +* Copyright (C) 2014 Synopsys, Inc. (www.synopsys.com) +* +* Driver for NAND controller on Synopsys AXS development board. +* +* This file is subject to the terms and conditions of the GNU General Public +* License v2. See the file COPYING in the main directory of this archive for +* more details. +*/
This states the license of this file is GPL v2.
drivers/mtd/nand/axs_nand.c line 412
Quoted 1 line
drivers/mtd/nand/axs_nand.c new file +1
-0+MODULE_LICENSE ("GPL" );
According to include/linux/module.h this states the license is GPL v2 or later.
Paul Bolle
Hi Paul,
Quoted 19 lines · Paul Bolle
What happened to 1/2? Whatever that was, I spotted a license mismatch in this 2/2.
Quoted 12 lines · Alexey Brodkin
---
/dev/null
+-+-+-b/drivers/mtd/nand/axs_nand.c
@@ -0,0 +-1,412 @@+-/* +- * Copyright (C) 2014 Synopsys, Inc. (www.synopsys.com) +- * +- * Driver for NAND controller on Synopsys AXS development board. +- * +- * This file is subject to the terms and conditions of the GNU General Public +- * License v2. See the file COPYING in the main directory of this archive for +- * more details. +- */This states the license of this file is GPL v2.
Quoted 4 lines
Quoted 1 line
+-MODULE_LICENSE("GPL");
According to
include/linux/module.hthis states the license is GPL v2 or later.
I'm really sorry for this noise.
I meant to send a WIP patch for internal review and due to hard-coded CCs in the patch "get send-email" automatically added all of you in the CC field.
I'll try to be more careful next time.
And anyway I'm planning to submit this patch (probably with some more fixes) for normal review sometime soon.
-Alexey