提交 387847ee 编写于 作者: B Bahadir Balban 提交者: Catalin Marinas

RealView: Add compactflash support for the PB11MPCore platform

This patch adds the resource and device definitions for the compact
flash.
Signed-off-by: NBahadir Balban <bahadir.balban@arm.com>
Signed-off-by: NCatalin Marinas <catalin.marinas@arm.com>
上级 78fdcb42
...@@ -237,6 +237,31 @@ static struct platform_device realview_pb11mp_smsc911x_device = { ...@@ -237,6 +237,31 @@ static struct platform_device realview_pb11mp_smsc911x_device = {
.resource = realview_pb11mp_smsc911x_resources, .resource = realview_pb11mp_smsc911x_resources,
}; };
struct resource realview_pb11mp_cf_resources[] = {
[0] = {
.start = REALVIEW_PB11MP_CF_BASE,
.end = REALVIEW_PB11MP_CF_BASE + SZ_4K - 1,
.flags = IORESOURCE_MEM,
},
[1] = {
.start = REALVIEW_PB11MP_CF_MEM_BASE,
.end = REALVIEW_PB11MP_CF_MEM_BASE + SZ_4K - 1,
.flags = IORESOURCE_MEM,
},
[2] = {
.start = -1, /* FIXME: Find correct irq */
.end = -1,
.flags = IORESOURCE_IRQ,
},
};
struct platform_device realview_pb11mp_cf_device = {
.name = "compactflash",
.id = 0,
.num_resources = ARRAY_SIZE(realview_pb11mp_cf_resources),
.resource = realview_pb11mp_cf_resources,
};
static void __init gic_init_irq(void) static void __init gic_init_irq(void)
{ {
unsigned int pldctrl; unsigned int pldctrl;
...@@ -291,6 +316,7 @@ static void __init realview_pb11mp_init(void) ...@@ -291,6 +316,7 @@ static void __init realview_pb11mp_init(void)
ARRAY_SIZE(realview_pb11mp_flash_resource)); ARRAY_SIZE(realview_pb11mp_flash_resource));
platform_device_register(&realview_pb11mp_smsc911x_device); platform_device_register(&realview_pb11mp_smsc911x_device);
platform_device_register(&realview_i2c_device); platform_device_register(&realview_i2c_device);
platform_device_register(&realview_pb11mp_cf_device);
for (i = 0; i < ARRAY_SIZE(amba_devs); i++) { for (i = 0; i < ARRAY_SIZE(amba_devs); i++) {
struct amba_device *d = amba_devs[i]; struct amba_device *d = amba_devs[i];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册