forked from Minki/linux
[ARM] MX27: Add NAND resources
This patch adds the platform device and resources for NAND on mx27 boards. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
46c3d567af
commit
02870978ea
@ -205,6 +205,25 @@ struct platform_device mxc_w1_master_device = {
|
|||||||
.resource = mxc_w1_master_resources,
|
.resource = mxc_w1_master_resources,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static struct resource mxc_nand_resources[] = {
|
||||||
|
{
|
||||||
|
.start = NFC_BASE_ADDR,
|
||||||
|
.end = NFC_BASE_ADDR + 0xfff,
|
||||||
|
.flags = IORESOURCE_MEM
|
||||||
|
}, {
|
||||||
|
.start = MXC_INT_NANDFC,
|
||||||
|
.end = MXC_INT_NANDFC,
|
||||||
|
.flags = IORESOURCE_IRQ
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
struct platform_device mxc_nand_device = {
|
||||||
|
.name = "mxc_nand",
|
||||||
|
.id = 0,
|
||||||
|
.num_resources = ARRAY_SIZE(mxc_nand_resources),
|
||||||
|
.resource = mxc_nand_resources,
|
||||||
|
};
|
||||||
|
|
||||||
/* GPIO port description */
|
/* GPIO port description */
|
||||||
static struct mxc_gpio_port imx_gpio_ports[] = {
|
static struct mxc_gpio_port imx_gpio_ports[] = {
|
||||||
[0] = {
|
[0] = {
|
||||||
|
@ -13,3 +13,4 @@ extern struct platform_device mxc_uart_device3;
|
|||||||
extern struct platform_device mxc_uart_device4;
|
extern struct platform_device mxc_uart_device4;
|
||||||
extern struct platform_device mxc_uart_device5;
|
extern struct platform_device mxc_uart_device5;
|
||||||
extern struct platform_device mxc_w1_master_device;
|
extern struct platform_device mxc_w1_master_device;
|
||||||
|
extern struct platform_device mxc_nand_device;
|
||||||
|
Loading…
Reference in New Issue
Block a user