diff options
| -rw-r--r-- | arch/arm/plat-omap/devices.c | 63 |
1 files changed, 0 insertions, 63 deletions
diff --git a/arch/arm/plat-omap/devices.c b/arch/arm/plat-omap/devices.c index c5dab1d6417e..4a53f9ba6c43 100644 --- a/arch/arm/plat-omap/devices.c +++ b/arch/arm/plat-omap/devices.c | |||
| @@ -89,68 +89,6 @@ static inline void omap_init_dsp(void) { } | |||
| 89 | #endif /* CONFIG_OMAP_DSP */ | 89 | #endif /* CONFIG_OMAP_DSP */ |
| 90 | 90 | ||
| 91 | /*-------------------------------------------------------------------------*/ | 91 | /*-------------------------------------------------------------------------*/ |
| 92 | #if defined(CONFIG_I2C_OMAP) || defined(CONFIG_I2C_OMAP_MODULE) | ||
| 93 | |||
| 94 | #define OMAP1_I2C_BASE 0xfffb3800 | ||
| 95 | #define OMAP2_I2C_BASE1 0x48070000 | ||
| 96 | #define OMAP_I2C_SIZE 0x3f | ||
| 97 | #define OMAP1_I2C_INT INT_I2C | ||
| 98 | #define OMAP2_I2C_INT1 56 | ||
| 99 | |||
| 100 | static struct resource i2c_resources1[] = { | ||
| 101 | { | ||
| 102 | .start = 0, | ||
| 103 | .end = 0, | ||
| 104 | .flags = IORESOURCE_MEM, | ||
| 105 | }, | ||
| 106 | { | ||
| 107 | .start = 0, | ||
| 108 | .flags = IORESOURCE_IRQ, | ||
| 109 | }, | ||
| 110 | }; | ||
| 111 | |||
| 112 | /* DMA not used; works around erratum writing to non-empty i2c fifo */ | ||
| 113 | |||
| 114 | static struct platform_device omap_i2c_device1 = { | ||
| 115 | .name = "i2c_omap", | ||
| 116 | .id = 1, | ||
| 117 | .num_resources = ARRAY_SIZE(i2c_resources1), | ||
| 118 | .resource = i2c_resources1, | ||
| 119 | }; | ||
| 120 | |||
| 121 | /* See also arch/arm/mach-omap2/devices.c for second I2C on 24xx */ | ||
| 122 | static void omap_init_i2c(void) | ||
| 123 | { | ||
| 124 | if (cpu_is_omap24xx()) { | ||
| 125 | i2c_resources1[0].start = OMAP2_I2C_BASE1; | ||
| 126 | i2c_resources1[0].end = OMAP2_I2C_BASE1 + OMAP_I2C_SIZE; | ||
| 127 | i2c_resources1[1].start = OMAP2_I2C_INT1; | ||
| 128 | } else { | ||
| 129 | i2c_resources1[0].start = OMAP1_I2C_BASE; | ||
| 130 | i2c_resources1[0].end = OMAP1_I2C_BASE + OMAP_I2C_SIZE; | ||
| 131 | i2c_resources1[1].start = OMAP1_I2C_INT; | ||
| 132 | } | ||
| 133 | |||
| 134 | /* FIXME define and use a boot tag, in case of boards that | ||
| 135 | * either don't wire up I2C, or chips that mux it differently... | ||
| 136 | * it can include clocking and address info, maybe more. | ||
| 137 | */ | ||
| 138 | if (cpu_is_omap24xx()) { | ||
| 139 | omap_cfg_reg(M19_24XX_I2C1_SCL); | ||
| 140 | omap_cfg_reg(L15_24XX_I2C1_SDA); | ||
| 141 | } else { | ||
| 142 | omap_cfg_reg(I2C_SCL); | ||
| 143 | omap_cfg_reg(I2C_SDA); | ||
| 144 | } | ||
| 145 | |||
| 146 | (void) platform_device_register(&omap_i2c_device1); | ||
| 147 | } | ||
| 148 | |||
| 149 | #else | ||
| 150 | static inline void omap_init_i2c(void) {} | ||
| 151 | #endif | ||
| 152 | |||
| 153 | /*-------------------------------------------------------------------------*/ | ||
| 154 | #if defined(CONFIG_KEYBOARD_OMAP) || defined(CONFIG_KEYBOARD_OMAP_MODULE) | 92 | #if defined(CONFIG_KEYBOARD_OMAP) || defined(CONFIG_KEYBOARD_OMAP_MODULE) |
| 155 | 93 | ||
| 156 | static void omap_init_kp(void) | 94 | static void omap_init_kp(void) |
| @@ -501,7 +439,6 @@ static int __init omap_init_devices(void) | |||
| 501 | * in alphabetical order so they're easier to sort through. | 439 | * in alphabetical order so they're easier to sort through. |
| 502 | */ | 440 | */ |
| 503 | omap_init_dsp(); | 441 | omap_init_dsp(); |
| 504 | omap_init_i2c(); | ||
| 505 | omap_init_kp(); | 442 | omap_init_kp(); |
| 506 | omap_init_mmc(); | 443 | omap_init_mmc(); |
| 507 | omap_init_uwire(); | 444 | omap_init_uwire(); |
