Commit 19df288c authored by Kevin Hilman's avatar Kevin Hilman

ARM: DaVinci: add platform_device setup for IDE

Now that palm_bk3710 driver is upstream new platform_device
and Kconfig support is needed.
Signed-off-by: default avatarKevin Hilman <khilman@mvista.com>
parent 26c7ff0e
...@@ -462,6 +462,7 @@ config ARCH_DAVINCI ...@@ -462,6 +462,7 @@ config ARCH_DAVINCI
select GENERIC_TIME select GENERIC_TIME
select GENERIC_CLOCKEVENTS select GENERIC_CLOCKEVENTS
select GENERIC_GPIO select GENERIC_GPIO
select HAVE_IDE
help help
Support for TI's DaVinci platform. Support for TI's DaVinci platform.
......
...@@ -202,6 +202,25 @@ static struct platform_device rtc_dev = { ...@@ -202,6 +202,25 @@ static struct platform_device rtc_dev = {
.id = -1, .id = -1,
}; };
static struct resource ide_resources[] = {
{
.start = IO_ADDRESS(DAVINCI_CFC_ATA_BASE),
.end = IO_ADDRESS(DAVINCI_CFC_ATA_BASE) + SZ_4K,
.flags = IORESOURCE_MEM,
},
{
.start = IRQ_IDE,
.flags = IORESOURCE_IRQ,
},
};
static struct platform_device ide_dev = {
.name = "palm_bk3710",
.id = -1,
.resource = ide_resources,
.num_resources = ARRAY_SIZE(ide_resources),
};
static struct platform_device *davinci_evm_devices[] __initdata = { static struct platform_device *davinci_evm_devices[] __initdata = {
&davinci_evm_norflash_device, &davinci_evm_norflash_device,
#if defined(CONFIG_MTD_NAND_DAVINCI) || defined(CONFIG_MTD_NAND_DAVINCI_MODULE) #if defined(CONFIG_MTD_NAND_DAVINCI) || defined(CONFIG_MTD_NAND_DAVINCI_MODULE)
...@@ -214,6 +233,7 @@ static struct platform_device *davinci_evm_devices[] __initdata = { ...@@ -214,6 +233,7 @@ static struct platform_device *davinci_evm_devices[] __initdata = {
&usb_dev, &usb_dev,
#endif #endif
&rtc_dev, &rtc_dev,
&ide_dev,
}; };
static void __init static void __init
...@@ -226,7 +246,8 @@ static __init void davinci_evm_init(void) ...@@ -226,7 +246,8 @@ static __init void davinci_evm_init(void)
{ {
davinci_psc_init(); davinci_psc_init();
#if defined(CONFIG_BLK_DEV_DAVINCI) || defined(CONFIG_BLK_DEV_DAVINCI_MODULE) #if defined(CONFIG_BLK_DEV_PALMCHIP_BK3710) || \
defined(CONFIG_BLK_DEV_PALMCHIP_BK3710_MODULE)
printk(KERN_WARNING "WARNING: both IDE and NOR flash are enabled, " printk(KERN_WARNING "WARNING: both IDE and NOR flash are enabled, "
"but share pins.\n\t Disable IDE for NOR support.\n"); "but share pins.\n\t Disable IDE for NOR support.\n");
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment