.num_resources = ARRAY_SIZE(xnorpss_0_resource),
};
+/*************************PSS NAND ***********************/
+#include <linux/mtd/nand.h>
+static u32 options = NAND_NO_AUTOINCR | NAND_USE_FLASH_BBT;
+static struct resource xnand_res[] = {
+ {
+ .start = NAND_BASE,
+ .end = NAND_BASE + 0xFFFFFF,
+ .flags = IORESOURCE_MEM
+ },
+ {
+ .start = SMC_BASE,
+ .end = SMC_BASE + 0xFFF,
+ .flags = IORESOURCE_MEM
+ },
+};
+
+struct platform_device xilinx_nandpss_device = {
+ .name = "Xilinx_PSS_NAND",
+ .id = 0,
+ .dev = {
+ .platform_data = &options,
+ },
+ .num_resources = ARRAY_SIZE(xnand_res),
+ .resource = xnand_res,
+};
+
#define ETH0_PHY_MASK 0x17
#define ETH1_PHY_MASK 24
&xilinx_spipss_0_device,
&xilinx_wdtpss_0_device,
&xilinx_a9wdt_device,
+ &xilinx_nandpss_device,
};
/**
#define SMC_BASE (IO_BASE + 0x0000E000)
#define NOR_BASE (IO_BASE + 0x04000000)
+#define NAND_BASE (IO_BASE + 0x01000000)
/* Cleaned up addresses start here, please keep addresses in order to make
* them easier to read.
#define IRQ_TIMERCOUNTER0 42
#define IRQ_DMAC0_ABORT 45
#define IRQ_DMAC0 46
+#define IRQ_SMC 50
#define IRQ_GPIO0 52
#define IRQ_ETH0 54
#define IRQ_I2C0 57