|
@@ -130,3 +130,116 @@ static unsigned long vpac270_pin_config[] __initdata = {
|
|
|
|
|
|
/* AC97 */
|
|
|
GPIO28_AC97_BITCLK,
|
|
|
+ GPIO29_AC97_SDATA_IN_0,
|
|
|
+ GPIO30_AC97_SDATA_OUT,
|
|
|
+ GPIO31_AC97_SYNC,
|
|
|
+ GPIO95_AC97_nRESET,
|
|
|
+ GPIO98_AC97_SYSCLK,
|
|
|
+ GPIO113_GPIO, /* TS IRQ */
|
|
|
+
|
|
|
+ /* I2C */
|
|
|
+ GPIO117_I2C_SCL,
|
|
|
+ GPIO118_I2C_SDA,
|
|
|
+
|
|
|
+ /* IDE */
|
|
|
+ GPIO36_GPIO, /* IDE IRQ */
|
|
|
+ GPIO80_DREQ_1,
|
|
|
+};
|
|
|
+
|
|
|
+/******************************************************************************
|
|
|
+ * NOR Flash
|
|
|
+ ******************************************************************************/
|
|
|
+#if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE)
|
|
|
+static struct mtd_partition vpac270_nor_partitions[] = {
|
|
|
+ {
|
|
|
+ .name = "Flash",
|
|
|
+ .offset = 0x00000000,
|
|
|
+ .size = MTDPART_SIZ_FULL,
|
|
|
+ }
|
|
|
+};
|
|
|
+
|
|
|
+static struct physmap_flash_data vpac270_flash_data[] = {
|
|
|
+ {
|
|
|
+ .width = 2, /* bankwidth in bytes */
|
|
|
+ .parts = vpac270_nor_partitions,
|
|
|
+ .nr_parts = ARRAY_SIZE(vpac270_nor_partitions)
|
|
|
+ }
|
|
|
+};
|
|
|
+
|
|
|
+static struct resource vpac270_flash_resource = {
|
|
|
+ .start = PXA_CS0_PHYS,
|
|
|
+ .end = PXA_CS0_PHYS + SZ_64M - 1,
|
|
|
+ .flags = IORESOURCE_MEM,
|
|
|
+};
|
|
|
+
|
|
|
+static struct platform_device vpac270_flash = {
|
|
|
+ .name = "physmap-flash",
|
|
|
+ .id = 0,
|
|
|
+ .resource = &vpac270_flash_resource,
|
|
|
+ .num_resources = 1,
|
|
|
+ .dev = {
|
|
|
+ .platform_data = vpac270_flash_data,
|
|
|
+ },
|
|
|
+};
|
|
|
+static void __init vpac270_nor_init(void)
|
|
|
+{
|
|
|
+ platform_device_register(&vpac270_flash);
|
|
|
+}
|
|
|
+#else
|
|
|
+static inline void vpac270_nor_init(void) {}
|
|
|
+#endif
|
|
|
+
|
|
|
+/******************************************************************************
|
|
|
+ * OneNAND Flash
|
|
|
+ ******************************************************************************/
|
|
|
+#if defined(CONFIG_MTD_ONENAND) || defined(CONFIG_MTD_ONENAND_MODULE)
|
|
|
+static struct mtd_partition vpac270_onenand_partitions[] = {
|
|
|
+ {
|
|
|
+ .name = "Flash",
|
|
|
+ .offset = 0x00000000,
|
|
|
+ .size = MTDPART_SIZ_FULL,
|
|
|
+ }
|
|
|
+};
|
|
|
+
|
|
|
+static struct onenand_platform_data vpac270_onenand_info = {
|
|
|
+ .parts = vpac270_onenand_partitions,
|
|
|
+ .nr_parts = ARRAY_SIZE(vpac270_onenand_partitions),
|
|
|
+};
|
|
|
+
|
|
|
+static struct resource vpac270_onenand_resources[] = {
|
|
|
+ [0] = {
|
|
|
+ .start = PXA_CS0_PHYS,
|
|
|
+ .end = PXA_CS0_PHYS + SZ_1M,
|
|
|
+ .flags = IORESOURCE_MEM,
|
|
|
+ },
|
|
|
+};
|
|
|
+
|
|
|
+static struct platform_device vpac270_onenand = {
|
|
|
+ .name = "onenand-flash",
|
|
|
+ .id = -1,
|
|
|
+ .resource = vpac270_onenand_resources,
|
|
|
+ .num_resources = ARRAY_SIZE(vpac270_onenand_resources),
|
|
|
+ .dev = {
|
|
|
+ .platform_data = &vpac270_onenand_info,
|
|
|
+ },
|
|
|
+};
|
|
|
+
|
|
|
+static void __init vpac270_onenand_init(void)
|
|
|
+{
|
|
|
+ platform_device_register(&vpac270_onenand);
|
|
|
+}
|
|
|
+#else
|
|
|
+static void __init vpac270_onenand_init(void) {}
|
|
|
+#endif
|
|
|
+
|
|
|
+/******************************************************************************
|
|
|
+ * SD/MMC card controller
|
|
|
+ ******************************************************************************/
|
|
|
+#if defined(CONFIG_MMC_PXA) || defined(CONFIG_MMC_PXA_MODULE)
|
|
|
+static struct pxamci_platform_data vpac270_mci_platform_data = {
|
|
|
+ .ocr_mask = MMC_VDD_32_33 | MMC_VDD_33_34,
|
|
|
+ .gpio_power = -1,
|
|
|
+ .gpio_card_detect = GPIO53_VPAC270_SD_DETECT_N,
|
|
|
+ .gpio_card_ro = GPIO52_VPAC270_SD_READONLY,
|
|
|
+ .detect_delay_ms = 200,
|
|
|
+};
|