]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/arm/mach-omap2/board-2430sdp.c
ARM: OMAP: No need to include board-omap2430sdp.h from hardware.h
[linux-2.6-omap-h63xx.git] / arch / arm / mach-omap2 / board-2430sdp.c
index aa5df728424fe578493adbb8a2698d6c33958492..899e6e3402dd2051484d4f6aef7afaf57b7a80ad 100644 (file)
 
 #include "mmc-twl4030.h"
 
-
+#define SDP2430_CS0_BASE       0x04000000
 #define        SDP2430_FLASH_CS        0
 #define        SDP2430_SMC91X_CS       5
+#define SDP2430_ETHR_GPIO_IRQ          149
 
 /* GPIO used for TSC2046 (touchscreen)
  *
@@ -57,6 +58,8 @@
 #define TWL4030_MSECURE_GPIO   118
 #define SECONDARY_LCD_GPIO     147
 
+extern void sdp2430_flash_init(void);
+
 static struct mtd_partition sdp2430_partitions[] = {
        /* bootloader (U-Boot, etc) in first sector */
        {
@@ -118,8 +121,8 @@ static struct resource sdp2430_smc91x_resources[] = {
                .flags  = IORESOURCE_MEM,
        },
        [1] = {
-               .start  = OMAP_GPIO_IRQ(OMAP24XX_ETHR_GPIO_IRQ),
-               .end    = OMAP_GPIO_IRQ(OMAP24XX_ETHR_GPIO_IRQ),
+               .start  = OMAP_GPIO_IRQ(SDP2430_ETHR_GPIO_IRQ),
+               .end    = OMAP_GPIO_IRQ(SDP2430_ETHR_GPIO_IRQ),
                .flags  = IORESOURCE_IRQ | IORESOURCE_IRQ_LOWLEVEL,
        },
 };
@@ -307,13 +310,13 @@ static inline void __init sdp2430_init_smc91x(void)
        sdp2430_smc91x_resources[0].end = cs_mem_base + 0x30f;
        udelay(100);
 
-       if (gpio_request(OMAP24XX_ETHR_GPIO_IRQ, "SMC91x irq") < 0) {
+       if (gpio_request(SDP2430_ETHR_GPIO_IRQ, "SMC91x irq") < 0) {
                printk(KERN_ERR "Failed to request GPIO%d for smc91x IRQ\n",
-                       OMAP24XX_ETHR_GPIO_IRQ);
+                       SDP2430_ETHR_GPIO_IRQ);
                gpmc_cs_free(eth_cs);
                goto out;
        }
-       gpio_direction_input(OMAP24XX_ETHR_GPIO_IRQ);
+       gpio_direction_input(SDP2430_ETHR_GPIO_IRQ);
 
 out:
        clk_disable(gpmc_fck);