summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-bcmring/arch.c
diff options
context:
space:
mode:
authorLeo (Hao) Chen <leochen@broadcom.com>2009-10-09 19:13:08 -0700
committerDavid Woodhouse <David.Woodhouse@intel.com>2009-10-20 10:07:23 +0900
commit266dead21675aeb89407b1213788cd924353d5e1 (patch)
tree349eb9b220169a94dab54014da4f97051134db0c /arch/arm/mach-bcmring/arch.c
parent4b56ffcacee937a85bf39e14872dd141e23ee85f (diff)
downloadop-kernel-dev-266dead21675aeb89407b1213788cd924353d5e1.zip
op-kernel-dev-266dead21675aeb89407b1213788cd924353d5e1.tar.gz
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.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/arm/mach-bcmring/arch.c b/arch/arm/mach-bcmring/arch.c
index 0da693b..074dad6 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[] = {
{}
};
+static struct resource nand_resource[] = {
+ [0] = {
+ .start = MM_ADDR_IO_NAND,
+ .end = MM_ADDR_IO_NAND + 0x1000 - 1,
+ .flags = IORESOURCE_MEM,
+ },
+};
+
static struct platform_device nand_device = {
.name = "bcm-nand",
.id = -1,
+ .resource = nand_resource,
+ .num_resources = ARRAY_SIZE(nand_resource),
};
static struct platform_device *devices[] __initdata = {
OpenPOWER on IntegriCloud