diff options
Diffstat (limited to 'arch/arm/mach-s5pv210/mach-aquila.c')
| -rw-r--r-- | arch/arm/mach-s5pv210/mach-aquila.c | 409 |
1 files changed, 390 insertions, 19 deletions
diff --git a/arch/arm/mach-s5pv210/mach-aquila.c b/arch/arm/mach-s5pv210/mach-aquila.c index 10bc76ec4025..a6b4ed364840 100644 --- a/arch/arm/mach-s5pv210/mach-aquila.c +++ b/arch/arm/mach-s5pv210/mach-aquila.c | |||
| @@ -13,6 +13,12 @@ | |||
| 13 | #include <linux/init.h> | 13 | #include <linux/init.h> |
| 14 | #include <linux/serial_core.h> | 14 | #include <linux/serial_core.h> |
| 15 | #include <linux/fb.h> | 15 | #include <linux/fb.h> |
| 16 | #include <linux/i2c.h> | ||
| 17 | #include <linux/i2c-gpio.h> | ||
| 18 | #include <linux/mfd/max8998.h> | ||
| 19 | #include <linux/gpio_keys.h> | ||
| 20 | #include <linux/input.h> | ||
| 21 | #include <linux/gpio.h> | ||
| 16 | 22 | ||
| 17 | #include <asm/mach/arch.h> | 23 | #include <asm/mach/arch.h> |
| 18 | #include <asm/mach/map.h> | 24 | #include <asm/mach/map.h> |
| @@ -23,54 +29,62 @@ | |||
| 23 | #include <mach/regs-clock.h> | 29 | #include <mach/regs-clock.h> |
| 24 | #include <mach/regs-fb.h> | 30 | #include <mach/regs-fb.h> |
| 25 | 31 | ||
| 32 | #include <plat/gpio-cfg.h> | ||
| 26 | #include <plat/regs-serial.h> | 33 | #include <plat/regs-serial.h> |
| 27 | #include <plat/s5pv210.h> | 34 | #include <plat/s5pv210.h> |
| 28 | #include <plat/devs.h> | 35 | #include <plat/devs.h> |
| 29 | #include <plat/cpu.h> | 36 | #include <plat/cpu.h> |
| 30 | #include <plat/fb.h> | 37 | #include <plat/fb.h> |
| 38 | #include <plat/sdhci.h> | ||
| 31 | 39 | ||
| 32 | /* Following are default values for UCON, ULCON and UFCON UART registers */ | 40 | /* Following are default values for UCON, ULCON and UFCON UART registers */ |
| 33 | #define S5PV210_UCON_DEFAULT (S3C2410_UCON_TXILEVEL | \ | 41 | #define AQUILA_UCON_DEFAULT (S3C2410_UCON_TXILEVEL | \ |
| 34 | S3C2410_UCON_RXILEVEL | \ | 42 | S3C2410_UCON_RXILEVEL | \ |
| 35 | S3C2410_UCON_TXIRQMODE | \ | 43 | S3C2410_UCON_TXIRQMODE | \ |
| 36 | S3C2410_UCON_RXIRQMODE | \ | 44 | S3C2410_UCON_RXIRQMODE | \ |
| 37 | S3C2410_UCON_RXFIFO_TOI | \ | 45 | S3C2410_UCON_RXFIFO_TOI | \ |
| 38 | S3C2443_UCON_RXERR_IRQEN) | 46 | S3C2443_UCON_RXERR_IRQEN) |
| 39 | 47 | ||
| 40 | #define S5PV210_ULCON_DEFAULT S3C2410_LCON_CS8 | 48 | #define AQUILA_ULCON_DEFAULT S3C2410_LCON_CS8 |
| 41 | 49 | ||
| 42 | #define S5PV210_UFCON_DEFAULT (S3C2410_UFCON_FIFOMODE | \ | 50 | #define AQUILA_UFCON_DEFAULT S3C2410_UFCON_FIFOMODE |
| 43 | S5PV210_UFCON_TXTRIG4 | \ | ||
| 44 | S5PV210_UFCON_RXTRIG4) | ||
| 45 | 51 | ||
| 46 | static struct s3c2410_uartcfg smdkv210_uartcfgs[] __initdata = { | 52 | static struct s3c2410_uartcfg aquila_uartcfgs[] __initdata = { |
| 47 | [0] = { | 53 | [0] = { |
| 48 | .hwport = 0, | 54 | .hwport = 0, |
| 49 | .flags = 0, | 55 | .flags = 0, |
| 50 | .ucon = S5PV210_UCON_DEFAULT, | 56 | .ucon = AQUILA_UCON_DEFAULT, |
| 51 | .ulcon = S5PV210_ULCON_DEFAULT, | 57 | .ulcon = AQUILA_ULCON_DEFAULT, |
| 52 | .ufcon = S5PV210_UFCON_DEFAULT, | 58 | /* |
| 59 | * Actually UART0 can support 256 bytes fifo, but aquila board | ||
| 60 | * supports 128 bytes fifo because of initial chip bug | ||
| 61 | */ | ||
| 62 | .ufcon = AQUILA_UFCON_DEFAULT | | ||
| 63 | S5PV210_UFCON_TXTRIG128 | S5PV210_UFCON_RXTRIG128, | ||
| 53 | }, | 64 | }, |
| 54 | [1] = { | 65 | [1] = { |
| 55 | .hwport = 1, | 66 | .hwport = 1, |
| 56 | .flags = 0, | 67 | .flags = 0, |
| 57 | .ucon = S5PV210_UCON_DEFAULT, | 68 | .ucon = AQUILA_UCON_DEFAULT, |
| 58 | .ulcon = S5PV210_ULCON_DEFAULT, | 69 | .ulcon = AQUILA_ULCON_DEFAULT, |
| 59 | .ufcon = S5PV210_UFCON_DEFAULT, | 70 | .ufcon = AQUILA_UFCON_DEFAULT | |
| 71 | S5PV210_UFCON_TXTRIG64 | S5PV210_UFCON_RXTRIG64, | ||
| 60 | }, | 72 | }, |
| 61 | [2] = { | 73 | [2] = { |
| 62 | .hwport = 2, | 74 | .hwport = 2, |
| 63 | .flags = 0, | 75 | .flags = 0, |
| 64 | .ucon = S5PV210_UCON_DEFAULT, | 76 | .ucon = AQUILA_UCON_DEFAULT, |
| 65 | .ulcon = S5PV210_ULCON_DEFAULT, | 77 | .ulcon = AQUILA_ULCON_DEFAULT, |
| 66 | .ufcon = S5PV210_UFCON_DEFAULT, | 78 | .ufcon = AQUILA_UFCON_DEFAULT | |
| 79 | S5PV210_UFCON_TXTRIG16 | S5PV210_UFCON_RXTRIG16, | ||
| 67 | }, | 80 | }, |
| 68 | [3] = { | 81 | [3] = { |
| 69 | .hwport = 3, | 82 | .hwport = 3, |
| 70 | .flags = 0, | 83 | .flags = 0, |
| 71 | .ucon = S5PV210_UCON_DEFAULT, | 84 | .ucon = AQUILA_UCON_DEFAULT, |
| 72 | .ulcon = S5PV210_ULCON_DEFAULT, | 85 | .ulcon = AQUILA_ULCON_DEFAULT, |
| 73 | .ufcon = S5PV210_UFCON_DEFAULT, | 86 | .ufcon = AQUILA_UFCON_DEFAULT | |
| 87 | S5PV210_UFCON_TXTRIG16 | S5PV210_UFCON_RXTRIG16, | ||
| 74 | }, | 88 | }, |
| 75 | }; | 89 | }; |
| 76 | 90 | ||
| @@ -116,19 +130,376 @@ static struct s3c_fb_platdata aquila_lcd_pdata __initdata = { | |||
| 116 | .setup_gpio = s5pv210_fb_gpio_setup_24bpp, | 130 | .setup_gpio = s5pv210_fb_gpio_setup_24bpp, |
| 117 | }; | 131 | }; |
| 118 | 132 | ||
| 133 | /* MAX8998 regulators */ | ||
| 134 | #if defined(CONFIG_REGULATOR_MAX8998) || defined(CONFIG_REGULATOR_MAX8998_MODULE) | ||
| 135 | |||
| 136 | static struct regulator_init_data aquila_ldo2_data = { | ||
| 137 | .constraints = { | ||
| 138 | .name = "VALIVE_1.1V", | ||
| 139 | .min_uV = 1100000, | ||
| 140 | .max_uV = 1100000, | ||
| 141 | .apply_uV = 1, | ||
| 142 | .always_on = 1, | ||
| 143 | .state_mem = { | ||
| 144 | .enabled = 1, | ||
| 145 | }, | ||
| 146 | }, | ||
| 147 | }; | ||
| 148 | |||
| 149 | static struct regulator_init_data aquila_ldo3_data = { | ||
| 150 | .constraints = { | ||
| 151 | .name = "VUSB/MIPI_1.1V", | ||
| 152 | .min_uV = 1100000, | ||
| 153 | .max_uV = 1100000, | ||
| 154 | .apply_uV = 1, | ||
| 155 | .always_on = 1, | ||
| 156 | }, | ||
| 157 | }; | ||
| 158 | |||
| 159 | static struct regulator_init_data aquila_ldo4_data = { | ||
| 160 | .constraints = { | ||
| 161 | .name = "VDAC_3.3V", | ||
| 162 | .min_uV = 3300000, | ||
| 163 | .max_uV = 3300000, | ||
| 164 | .apply_uV = 1, | ||
| 165 | }, | ||
| 166 | }; | ||
| 167 | |||
| 168 | static struct regulator_init_data aquila_ldo5_data = { | ||
| 169 | .constraints = { | ||
| 170 | .name = "VTF_2.8V", | ||
| 171 | .min_uV = 2800000, | ||
| 172 | .max_uV = 2800000, | ||
| 173 | .apply_uV = 1, | ||
| 174 | }, | ||
| 175 | }; | ||
| 176 | |||
| 177 | static struct regulator_init_data aquila_ldo6_data = { | ||
| 178 | .constraints = { | ||
| 179 | .name = "VCC_3.3V", | ||
| 180 | .min_uV = 3300000, | ||
| 181 | .max_uV = 3300000, | ||
| 182 | .apply_uV = 1, | ||
| 183 | }, | ||
| 184 | }; | ||
| 185 | |||
| 186 | static struct regulator_init_data aquila_ldo7_data = { | ||
| 187 | .constraints = { | ||
| 188 | .name = "VCC_3.0V", | ||
| 189 | .min_uV = 3000000, | ||
| 190 | .max_uV = 3000000, | ||
| 191 | .apply_uV = 1, | ||
| 192 | .boot_on = 1, | ||
| 193 | .always_on = 1, | ||
| 194 | }, | ||
| 195 | }; | ||
| 196 | |||
| 197 | static struct regulator_init_data aquila_ldo8_data = { | ||
| 198 | .constraints = { | ||
| 199 | .name = "VUSB/VADC_3.3V", | ||
| 200 | .min_uV = 3300000, | ||
| 201 | .max_uV = 3300000, | ||
| 202 | .apply_uV = 1, | ||
| 203 | .always_on = 1, | ||
| 204 | }, | ||
| 205 | }; | ||
| 206 | |||
| 207 | static struct regulator_init_data aquila_ldo9_data = { | ||
| 208 | .constraints = { | ||
| 209 | .name = "VCC/VCAM_2.8V", | ||
| 210 | .min_uV = 2800000, | ||
| 211 | .max_uV = 2800000, | ||
| 212 | .apply_uV = 1, | ||
| 213 | .always_on = 1, | ||
| 214 | }, | ||
| 215 | }; | ||
| 216 | |||
| 217 | static struct regulator_init_data aquila_ldo10_data = { | ||
| 218 | .constraints = { | ||
| 219 | .name = "VPLL_1.1V", | ||
| 220 | .min_uV = 1100000, | ||
| 221 | .max_uV = 1100000, | ||
| 222 | .apply_uV = 1, | ||
| 223 | .boot_on = 1, | ||
| 224 | }, | ||
| 225 | }; | ||
| 226 | |||
| 227 | static struct regulator_init_data aquila_ldo11_data = { | ||
| 228 | .constraints = { | ||
| 229 | .name = "CAM_IO_2.8V", | ||
| 230 | .min_uV = 2800000, | ||
| 231 | .max_uV = 2800000, | ||
| 232 | .apply_uV = 1, | ||
| 233 | .always_on = 1, | ||
| 234 | }, | ||
| 235 | }; | ||
| 236 | |||
| 237 | static struct regulator_init_data aquila_ldo12_data = { | ||
| 238 | .constraints = { | ||
| 239 | .name = "CAM_ISP_1.2V", | ||
| 240 | .min_uV = 1200000, | ||
| 241 | .max_uV = 1200000, | ||
| 242 | .apply_uV = 1, | ||
| 243 | .always_on = 1, | ||
| 244 | }, | ||
| 245 | }; | ||
| 246 | |||
| 247 | static struct regulator_init_data aquila_ldo13_data = { | ||
| 248 | .constraints = { | ||
| 249 | .name = "CAM_A_2.8V", | ||
| 250 | .min_uV = 2800000, | ||
| 251 | .max_uV = 2800000, | ||
| 252 | .apply_uV = 1, | ||
| 253 | .always_on = 1, | ||
| 254 | }, | ||
| 255 | }; | ||
| 256 | |||
| 257 | static struct regulator_init_data aquila_ldo14_data = { | ||
| 258 | .constraints = { | ||
| 259 | .name = "CAM_CIF_1.8V", | ||
| 260 | .min_uV = 1800000, | ||
| 261 | .max_uV = 1800000, | ||
| 262 | .apply_uV = 1, | ||
| 263 | .always_on = 1, | ||
| 264 | }, | ||
| 265 | }; | ||
| 266 | |||
| 267 | static struct regulator_init_data aquila_ldo15_data = { | ||
| 268 | .constraints = { | ||
| 269 | .name = "CAM_AF_3.3V", | ||
| 270 | .min_uV = 3300000, | ||
| 271 | .max_uV = 3300000, | ||
| 272 | .apply_uV = 1, | ||
| 273 | .always_on = 1, | ||
| 274 | }, | ||
| 275 | }; | ||
| 276 | |||
| 277 | static struct regulator_init_data aquila_ldo16_data = { | ||
| 278 | .constraints = { | ||
| 279 | .name = "VMIPI_1.8V", | ||
| 280 | .min_uV = 1800000, | ||
| 281 | .max_uV = 1800000, | ||
| 282 | .apply_uV = 1, | ||
| 283 | .always_on = 1, | ||
| 284 | }, | ||
| 285 | }; | ||
| 286 | |||
| 287 | static struct regulator_init_data aquila_ldo17_data = { | ||
| 288 | .constraints = { | ||
| 289 | .name = "CAM_8M_1.8V", | ||
| 290 | .min_uV = 1800000, | ||
| 291 | .max_uV = 1800000, | ||
| 292 | .apply_uV = 1, | ||
| 293 | .always_on = 1, | ||
| 294 | }, | ||
| 295 | }; | ||
| 296 | |||
| 297 | /* BUCK */ | ||
| 298 | static struct regulator_consumer_supply buck1_consumer[] = { | ||
| 299 | { .supply = "vddarm", }, | ||
| 300 | }; | ||
| 301 | |||
| 302 | static struct regulator_consumer_supply buck2_consumer[] = { | ||
| 303 | { .supply = "vddint", }, | ||
| 304 | }; | ||
| 305 | |||
| 306 | static struct regulator_init_data aquila_buck1_data = { | ||
| 307 | .constraints = { | ||
| 308 | .name = "VARM_1.2V", | ||
| 309 | .min_uV = 1200000, | ||
| 310 | .max_uV = 1200000, | ||
| 311 | .apply_uV = 1, | ||
| 312 | .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE | | ||
| 313 | REGULATOR_CHANGE_STATUS, | ||
| 314 | }, | ||
| 315 | .num_consumer_supplies = ARRAY_SIZE(buck1_consumer), | ||
| 316 | .consumer_supplies = buck1_consumer, | ||
| 317 | }; | ||
| 318 | |||
| 319 | static struct regulator_init_data aquila_buck2_data = { | ||
| 320 | .constraints = { | ||
| 321 | .name = "VINT_1.2V", | ||
| 322 | .min_uV = 1200000, | ||
| 323 | .max_uV = 1200000, | ||
| 324 | .apply_uV = 1, | ||
| 325 | .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE | | ||
| 326 | REGULATOR_CHANGE_STATUS, | ||
| 327 | }, | ||
| 328 | .num_consumer_supplies = ARRAY_SIZE(buck2_consumer), | ||
| 329 | .consumer_supplies = buck2_consumer, | ||
| 330 | }; | ||
| 331 | |||
| 332 | static struct regulator_init_data aquila_buck3_data = { | ||
| 333 | .constraints = { | ||
| 334 | .name = "VCC_1.8V", | ||
| 335 | .min_uV = 1800000, | ||
| 336 | .max_uV = 1800000, | ||
| 337 | .apply_uV = 1, | ||
| 338 | .state_mem = { | ||
| 339 | .enabled = 1, | ||
| 340 | }, | ||
| 341 | }, | ||
| 342 | }; | ||
| 343 | |||
| 344 | static struct regulator_init_data aquila_buck4_data = { | ||
| 345 | .constraints = { | ||
| 346 | .name = "CAM_CORE_1.2V", | ||
| 347 | .min_uV = 1200000, | ||
| 348 | .max_uV = 1200000, | ||
| 349 | .apply_uV = 1, | ||
| 350 | .always_on = 1, | ||
| 351 | }, | ||
| 352 | }; | ||
| 353 | |||
| 354 | static struct max8998_regulator_data aquila_regulators[] = { | ||
| 355 | { MAX8998_LDO2, &aquila_ldo2_data }, | ||
| 356 | { MAX8998_LDO3, &aquila_ldo3_data }, | ||
| 357 | { MAX8998_LDO4, &aquila_ldo4_data }, | ||
| 358 | { MAX8998_LDO5, &aquila_ldo5_data }, | ||
| 359 | { MAX8998_LDO6, &aquila_ldo6_data }, | ||
| 360 | { MAX8998_LDO7, &aquila_ldo7_data }, | ||
| 361 | { MAX8998_LDO8, &aquila_ldo8_data }, | ||
| 362 | { MAX8998_LDO9, &aquila_ldo9_data }, | ||
| 363 | { MAX8998_LDO10, &aquila_ldo10_data }, | ||
| 364 | { MAX8998_LDO11, &aquila_ldo11_data }, | ||
| 365 | { MAX8998_LDO12, &aquila_ldo12_data }, | ||
| 366 | { MAX8998_LDO13, &aquila_ldo13_data }, | ||
| 367 | { MAX8998_LDO14, &aquila_ldo14_data }, | ||
| 368 | { MAX8998_LDO15, &aquila_ldo15_data }, | ||
| 369 | { MAX8998_LDO16, &aquila_ldo16_data }, | ||
| 370 | { MAX8998_LDO17, &aquila_ldo17_data }, | ||
| 371 | { MAX8998_BUCK1, &aquila_buck1_data }, | ||
| 372 | { MAX8998_BUCK2, &aquila_buck2_data }, | ||
| 373 | { MAX8998_BUCK3, &aquila_buck3_data }, | ||
| 374 | { MAX8998_BUCK4, &aquila_buck4_data }, | ||
| 375 | }; | ||
| 376 | |||
| 377 | static struct max8998_platform_data aquila_max8998_pdata = { | ||
| 378 | .num_regulators = ARRAY_SIZE(aquila_regulators), | ||
| 379 | .regulators = aquila_regulators, | ||
| 380 | }; | ||
| 381 | #endif | ||
| 382 | |||
| 383 | /* GPIO I2C PMIC */ | ||
| 384 | #define AP_I2C_GPIO_PMIC_BUS_4 4 | ||
| 385 | static struct i2c_gpio_platform_data aquila_i2c_gpio_pmic_data = { | ||
| 386 | .sda_pin = S5PV210_GPJ4(0), /* XMSMCSN */ | ||
| 387 | .scl_pin = S5PV210_GPJ4(3), /* XMSMIRQN */ | ||
| 388 | }; | ||
| 389 | |||
| 390 | static struct platform_device aquila_i2c_gpio_pmic = { | ||
| 391 | .name = "i2c-gpio", | ||
| 392 | .id = AP_I2C_GPIO_PMIC_BUS_4, | ||
| 393 | .dev = { | ||
| 394 | .platform_data = &aquila_i2c_gpio_pmic_data, | ||
| 395 | }, | ||
| 396 | }; | ||
| 397 | |||
| 398 | static struct i2c_board_info i2c_gpio_pmic_devs[] __initdata = { | ||
| 399 | #if defined(CONFIG_REGULATOR_MAX8998) || defined(CONFIG_REGULATOR_MAX8998_MODULE) | ||
| 400 | { | ||
| 401 | /* 0xCC when SRAD = 0 */ | ||
| 402 | I2C_BOARD_INFO("max8998", 0xCC >> 1), | ||
| 403 | .platform_data = &aquila_max8998_pdata, | ||
| 404 | }, | ||
| 405 | #endif | ||
| 406 | }; | ||
| 407 | |||
| 408 | /* PMIC Power button */ | ||
| 409 | static struct gpio_keys_button aquila_gpio_keys_table[] = { | ||
| 410 | { | ||
| 411 | .code = KEY_POWER, | ||
| 412 | .gpio = S5PV210_GPH2(6), | ||
| 413 | .desc = "gpio-keys: KEY_POWER", | ||
| 414 | .type = EV_KEY, | ||
| 415 | .active_low = 1, | ||
| 416 | .wakeup = 1, | ||
| 417 | .debounce_interval = 1, | ||
| 418 | }, | ||
| 419 | }; | ||
| 420 | |||
| 421 | static struct gpio_keys_platform_data aquila_gpio_keys_data = { | ||
| 422 | .buttons = aquila_gpio_keys_table, | ||
| 423 | .nbuttons = ARRAY_SIZE(aquila_gpio_keys_table), | ||
| 424 | }; | ||
| 425 | |||
| 426 | static struct platform_device aquila_device_gpiokeys = { | ||
| 427 | .name = "gpio-keys", | ||
| 428 | .dev = { | ||
| 429 | .platform_data = &aquila_gpio_keys_data, | ||
| 430 | }, | ||
| 431 | }; | ||
| 432 | |||
| 433 | static void __init aquila_pmic_init(void) | ||
| 434 | { | ||
| 435 | /* AP_PMIC_IRQ: EINT7 */ | ||
| 436 | s3c_gpio_cfgpin(S5PV210_GPH0(7), S3C_GPIO_SFN(0xf)); | ||
| 437 | s3c_gpio_setpull(S5PV210_GPH0(7), S3C_GPIO_PULL_UP); | ||
| 438 | |||
| 439 | /* nPower: EINT22 */ | ||
| 440 | s3c_gpio_cfgpin(S5PV210_GPH2(6), S3C_GPIO_SFN(0xf)); | ||
| 441 | s3c_gpio_setpull(S5PV210_GPH2(6), S3C_GPIO_PULL_UP); | ||
| 442 | } | ||
| 443 | |||
| 444 | /* MoviNAND */ | ||
| 445 | static struct s3c_sdhci_platdata aquila_hsmmc0_data __initdata = { | ||
| 446 | .max_width = 4, | ||
| 447 | .cd_type = S3C_SDHCI_CD_PERMANENT, | ||
| 448 | }; | ||
| 449 | |||
| 450 | /* Wireless LAN */ | ||
| 451 | static struct s3c_sdhci_platdata aquila_hsmmc1_data __initdata = { | ||
| 452 | .max_width = 4, | ||
| 453 | .cd_type = S3C_SDHCI_CD_EXTERNAL, | ||
| 454 | /* ext_cd_{init,cleanup} callbacks will be added later */ | ||
| 455 | }; | ||
| 456 | |||
| 457 | /* External Flash */ | ||
| 458 | #define AQUILA_EXT_FLASH_EN S5PV210_MP05(4) | ||
| 459 | #define AQUILA_EXT_FLASH_CD S5PV210_GPH3(4) | ||
| 460 | static struct s3c_sdhci_platdata aquila_hsmmc2_data __initdata = { | ||
| 461 | .max_width = 4, | ||
| 462 | .cd_type = S3C_SDHCI_CD_GPIO, | ||
| 463 | .ext_cd_gpio = AQUILA_EXT_FLASH_CD, | ||
| 464 | .ext_cd_gpio_invert = 1, | ||
| 465 | }; | ||
| 466 | |||
| 467 | static void aquila_setup_sdhci(void) | ||
| 468 | { | ||
| 469 | gpio_request(AQUILA_EXT_FLASH_EN, "FLASH_EN"); | ||
| 470 | gpio_direction_output(AQUILA_EXT_FLASH_EN, 1); | ||
| 471 | |||
| 472 | s3c_sdhci0_set_platdata(&aquila_hsmmc0_data); | ||
| 473 | s3c_sdhci1_set_platdata(&aquila_hsmmc1_data); | ||
| 474 | s3c_sdhci2_set_platdata(&aquila_hsmmc2_data); | ||
| 475 | }; | ||
| 476 | |||
| 119 | static struct platform_device *aquila_devices[] __initdata = { | 477 | static struct platform_device *aquila_devices[] __initdata = { |
| 478 | &aquila_i2c_gpio_pmic, | ||
| 479 | &aquila_device_gpiokeys, | ||
| 120 | &s3c_device_fb, | 480 | &s3c_device_fb, |
| 481 | &s5pc110_device_onenand, | ||
| 482 | &s3c_device_hsmmc0, | ||
| 483 | &s3c_device_hsmmc1, | ||
| 484 | &s3c_device_hsmmc2, | ||
| 121 | }; | 485 | }; |
| 122 | 486 | ||
| 123 | static void __init aquila_map_io(void) | 487 | static void __init aquila_map_io(void) |
| 124 | { | 488 | { |
| 125 | s5p_init_io(NULL, 0, S5P_VA_CHIPID); | 489 | s5p_init_io(NULL, 0, S5P_VA_CHIPID); |
| 126 | s3c24xx_init_clocks(24000000); | 490 | s3c24xx_init_clocks(24000000); |
| 127 | s3c24xx_init_uarts(smdkv210_uartcfgs, ARRAY_SIZE(smdkv210_uartcfgs)); | 491 | s3c24xx_init_uarts(aquila_uartcfgs, ARRAY_SIZE(aquila_uartcfgs)); |
| 128 | } | 492 | } |
| 129 | 493 | ||
| 130 | static void __init aquila_machine_init(void) | 494 | static void __init aquila_machine_init(void) |
| 131 | { | 495 | { |
| 496 | /* PMIC */ | ||
| 497 | aquila_pmic_init(); | ||
| 498 | i2c_register_board_info(AP_I2C_GPIO_PMIC_BUS_4, i2c_gpio_pmic_devs, | ||
| 499 | ARRAY_SIZE(i2c_gpio_pmic_devs)); | ||
| 500 | /* SDHCI */ | ||
| 501 | aquila_setup_sdhci(); | ||
| 502 | |||
| 132 | /* FB */ | 503 | /* FB */ |
| 133 | s3c_fb_set_platdata(&aquila_lcd_pdata); | 504 | s3c_fb_set_platdata(&aquila_lcd_pdata); |
| 134 | 505 | ||
