diff options
author | Leo (Hao) Chen <leochen@broadcom.com> | 2009-10-09 22:13:08 -0400 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2009-10-19 21:07:23 -0400 |
commit | 266dead21675aeb89407b1213788cd924353d5e1 (patch) | |
tree | 349eb9b220169a94dab54014da4f97051134db0c /arch/arm/mach-bcmring/arch.c | |
parent | 4b56ffcacee937a85bf39e14872dd141e23ee85f (diff) |
mtd: add bcmring nand driver
Signed-off-by: Leo Hao Chen <leochen@broadcom.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'arch/arm/mach-bcmring/arch.c')
-rw-r--r-- | arch/arm/mach-bcmring/arch.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/arm/mach-bcmring/arch.c b/arch/arm/mach-bcmring/arch.c index 0da693b0f7e1..074dad6b1c18 100644 --- a/arch/arm/mach-bcmring/arch.c +++ b/arch/arm/mach-bcmring/arch.c | |||
@@ -76,9 +76,19 @@ static struct ctl_table bcmring_sysctl_reboot[] = { | |||
76 | {} | 76 | {} |
77 | }; | 77 | }; |
78 | 78 | ||
79 | static struct resource nand_resource[] = { | ||
80 | [0] = { | ||
81 | .start = MM_ADDR_IO_NAND, | ||
82 | .end = MM_ADDR_IO_NAND + 0x1000 - 1, | ||
83 | .flags = IORESOURCE_MEM, | ||
84 | }, | ||
85 | }; | ||
86 | |||
79 | static struct platform_device nand_device = { | 87 | static struct platform_device nand_device = { |
80 | .name = "bcm-nand", | 88 | .name = "bcm-nand", |
81 | .id = -1, | 89 | .id = -1, |
90 | .resource = nand_resource, | ||
91 | .num_resources = ARRAY_SIZE(nand_resource), | ||
82 | }; | 92 | }; |
83 | 93 | ||
84 | static struct platform_device *devices[] __initdata = { | 94 | static struct platform_device *devices[] __initdata = { |