JeongHyeon Kim | 699efdd | 2011-07-21 16:19:19 +0900 | [diff] [blame] | 1 | /* linux/arch/arm/mach-exynos4/mach-origen.c |
| 2 | * |
| 3 | * Copyright (c) 2011 Insignal Co., Ltd. |
| 4 | * http://www.insignal.co.kr/ |
| 5 | * |
| 6 | * This program is free software; you can redistribute it and/or modify |
| 7 | * it under the terms of the GNU General Public License version 2 as |
| 8 | * published by the Free Software Foundation. |
| 9 | */ |
| 10 | |
| 11 | #include <linux/serial_core.h> |
Ricardo Salveti de Araujo | 29e7d58 | 2012-07-19 14:46:36 +0900 | [diff] [blame] | 12 | #include <linux/leds.h> |
JeongHyeon Kim | 699efdd | 2011-07-21 16:19:19 +0900 | [diff] [blame] | 13 | #include <linux/gpio.h> |
| 14 | #include <linux/mmc/host.h> |
| 15 | #include <linux/platform_device.h> |
| 16 | #include <linux/io.h> |
| 17 | #include <linux/input.h> |
Giridhar Maruthy | 9edff0f | 2011-08-31 15:58:52 +0900 | [diff] [blame] | 18 | #include <linux/pwm_backlight.h> |
Sachin Kamat | c86cfdd | 2011-09-16 21:41:25 +0900 | [diff] [blame] | 19 | #include <linux/gpio_keys.h> |
Inderpal Singh | 6e01280 | 2011-10-03 08:51:20 +0900 | [diff] [blame] | 20 | #include <linux/i2c.h> |
| 21 | #include <linux/regulator/machine.h> |
| 22 | #include <linux/mfd/max8997.h> |
Tushar Behera | 9421a76 | 2011-10-03 09:12:56 +0900 | [diff] [blame] | 23 | #include <linux/lcd.h> |
Sangwook Lee | 62d30f8 | 2011-11-03 16:14:14 +0900 | [diff] [blame] | 24 | #include <linux/rfkill-gpio.h> |
Sachin Kamat | 9c278d5 | 2012-05-20 07:46:40 +0900 | [diff] [blame] | 25 | #include <linux/platform_data/s3c-hsotg.h> |
JeongHyeon Kim | 699efdd | 2011-07-21 16:19:19 +0900 | [diff] [blame] | 26 | |
| 27 | #include <asm/mach/arch.h> |
Marc Zyngier | 4e44d2c | 2011-05-30 11:04:53 +0100 | [diff] [blame] | 28 | #include <asm/hardware/gic.h> |
JeongHyeon Kim | 699efdd | 2011-07-21 16:19:19 +0900 | [diff] [blame] | 29 | #include <asm/mach-types.h> |
| 30 | |
Tushar Behera | 9421a76 | 2011-10-03 09:12:56 +0900 | [diff] [blame] | 31 | #include <video/platform_lcd.h> |
| 32 | |
JeongHyeon Kim | 699efdd | 2011-07-21 16:19:19 +0900 | [diff] [blame] | 33 | #include <plat/regs-serial.h> |
Tushar Behera | 9421a76 | 2011-10-03 09:12:56 +0900 | [diff] [blame] | 34 | #include <plat/regs-fb-v4.h> |
JeongHyeon Kim | 699efdd | 2011-07-21 16:19:19 +0900 | [diff] [blame] | 35 | #include <plat/cpu.h> |
| 36 | #include <plat/devs.h> |
| 37 | #include <plat/sdhci.h> |
| 38 | #include <plat/iic.h> |
Sachin Kamat | 24f9e1f | 2011-08-31 15:47:16 +0900 | [diff] [blame] | 39 | #include <plat/ehci.h> |
| 40 | #include <plat/clock.h> |
Giridhar Maruthy | 9edff0f | 2011-08-31 15:58:52 +0900 | [diff] [blame] | 41 | #include <plat/gpio-cfg.h> |
| 42 | #include <plat/backlight.h> |
Tushar Behera | 9421a76 | 2011-10-03 09:12:56 +0900 | [diff] [blame] | 43 | #include <plat/fb.h> |
Sachin Kamat | df74a28 | 2011-10-13 15:38:21 +0900 | [diff] [blame] | 44 | #include <plat/mfc.h> |
JeongHyeon Kim | 699efdd | 2011-07-21 16:19:19 +0900 | [diff] [blame] | 45 | |
Tushar Behera | 95de77d | 2011-12-24 12:09:06 +0900 | [diff] [blame] | 46 | #include <mach/ohci.h> |
JeongHyeon Kim | 699efdd | 2011-07-21 16:19:19 +0900 | [diff] [blame] | 47 | #include <mach/map.h> |
| 48 | |
Sachin Kamat | 84e6aef | 2012-05-12 16:33:46 +0900 | [diff] [blame] | 49 | #include <drm/exynos_drm.h> |
Kukjin Kim | cc511b8 | 2011-12-27 08:18:36 +0100 | [diff] [blame] | 50 | #include "common.h" |
| 51 | |
JeongHyeon Kim | 699efdd | 2011-07-21 16:19:19 +0900 | [diff] [blame] | 52 | /* Following are default values for UCON, ULCON and UFCON UART registers */ |
| 53 | #define ORIGEN_UCON_DEFAULT (S3C2410_UCON_TXILEVEL | \ |
| 54 | S3C2410_UCON_RXILEVEL | \ |
| 55 | S3C2410_UCON_TXIRQMODE | \ |
| 56 | S3C2410_UCON_RXIRQMODE | \ |
| 57 | S3C2410_UCON_RXFIFO_TOI | \ |
| 58 | S3C2443_UCON_RXERR_IRQEN) |
| 59 | |
| 60 | #define ORIGEN_ULCON_DEFAULT S3C2410_LCON_CS8 |
| 61 | |
| 62 | #define ORIGEN_UFCON_DEFAULT (S3C2410_UFCON_FIFOMODE | \ |
| 63 | S5PV210_UFCON_TXTRIG4 | \ |
| 64 | S5PV210_UFCON_RXTRIG4) |
| 65 | |
| 66 | static struct s3c2410_uartcfg origen_uartcfgs[] __initdata = { |
| 67 | [0] = { |
| 68 | .hwport = 0, |
| 69 | .flags = 0, |
| 70 | .ucon = ORIGEN_UCON_DEFAULT, |
| 71 | .ulcon = ORIGEN_ULCON_DEFAULT, |
| 72 | .ufcon = ORIGEN_UFCON_DEFAULT, |
| 73 | }, |
| 74 | [1] = { |
| 75 | .hwport = 1, |
| 76 | .flags = 0, |
| 77 | .ucon = ORIGEN_UCON_DEFAULT, |
| 78 | .ulcon = ORIGEN_ULCON_DEFAULT, |
| 79 | .ufcon = ORIGEN_UFCON_DEFAULT, |
| 80 | }, |
| 81 | [2] = { |
| 82 | .hwport = 2, |
| 83 | .flags = 0, |
| 84 | .ucon = ORIGEN_UCON_DEFAULT, |
| 85 | .ulcon = ORIGEN_ULCON_DEFAULT, |
| 86 | .ufcon = ORIGEN_UFCON_DEFAULT, |
| 87 | }, |
| 88 | [3] = { |
| 89 | .hwport = 3, |
| 90 | .flags = 0, |
| 91 | .ucon = ORIGEN_UCON_DEFAULT, |
| 92 | .ulcon = ORIGEN_ULCON_DEFAULT, |
| 93 | .ufcon = ORIGEN_UFCON_DEFAULT, |
| 94 | }, |
| 95 | }; |
| 96 | |
Inderpal Singh | 6e01280 | 2011-10-03 08:51:20 +0900 | [diff] [blame] | 97 | static struct regulator_consumer_supply __initdata ldo3_consumer[] = { |
| 98 | REGULATOR_SUPPLY("vdd11", "s5p-mipi-csis.0"), /* MIPI */ |
Sachin Kamat | 5dfb1aa | 2011-10-10 19:54:53 +0900 | [diff] [blame] | 99 | REGULATOR_SUPPLY("vdd", "exynos4-hdmi"), /* HDMI */ |
| 100 | REGULATOR_SUPPLY("vdd_pll", "exynos4-hdmi"), /* HDMI */ |
Inderpal Singh | 6e01280 | 2011-10-03 08:51:20 +0900 | [diff] [blame] | 101 | }; |
| 102 | static struct regulator_consumer_supply __initdata ldo6_consumer[] = { |
| 103 | REGULATOR_SUPPLY("vdd18", "s5p-mipi-csis.0"), /* MIPI */ |
| 104 | }; |
| 105 | static struct regulator_consumer_supply __initdata ldo7_consumer[] = { |
| 106 | REGULATOR_SUPPLY("avdd", "alc5625"), /* Realtek ALC5625 */ |
| 107 | }; |
| 108 | static struct regulator_consumer_supply __initdata ldo8_consumer[] = { |
| 109 | REGULATOR_SUPPLY("vdd", "s5p-adc"), /* ADC */ |
Sachin Kamat | 5dfb1aa | 2011-10-10 19:54:53 +0900 | [diff] [blame] | 110 | REGULATOR_SUPPLY("vdd_osc", "exynos4-hdmi"), /* HDMI */ |
Inderpal Singh | 6e01280 | 2011-10-03 08:51:20 +0900 | [diff] [blame] | 111 | }; |
| 112 | static struct regulator_consumer_supply __initdata ldo9_consumer[] = { |
| 113 | REGULATOR_SUPPLY("dvdd", "swb-a31"), /* AR6003 WLAN & CSR 8810 BT */ |
| 114 | }; |
| 115 | static struct regulator_consumer_supply __initdata ldo11_consumer[] = { |
| 116 | REGULATOR_SUPPLY("dvdd", "alc5625"), /* Realtek ALC5625 */ |
| 117 | }; |
| 118 | static struct regulator_consumer_supply __initdata ldo14_consumer[] = { |
| 119 | REGULATOR_SUPPLY("avdd18", "swb-a31"), /* AR6003 WLAN & CSR 8810 BT */ |
| 120 | }; |
| 121 | static struct regulator_consumer_supply __initdata ldo17_consumer[] = { |
| 122 | REGULATOR_SUPPLY("vdd33", "swb-a31"), /* AR6003 WLAN & CSR 8810 BT */ |
| 123 | }; |
| 124 | static struct regulator_consumer_supply __initdata buck1_consumer[] = { |
| 125 | REGULATOR_SUPPLY("vdd_arm", NULL), /* CPUFREQ */ |
| 126 | }; |
| 127 | static struct regulator_consumer_supply __initdata buck2_consumer[] = { |
| 128 | REGULATOR_SUPPLY("vdd_int", NULL), /* CPUFREQ */ |
| 129 | }; |
| 130 | static struct regulator_consumer_supply __initdata buck3_consumer[] = { |
| 131 | REGULATOR_SUPPLY("vdd_g3d", "mali_drm"), /* G3D */ |
| 132 | }; |
| 133 | static struct regulator_consumer_supply __initdata buck7_consumer[] = { |
| 134 | REGULATOR_SUPPLY("vcc", "platform-lcd"), /* LCD */ |
| 135 | }; |
| 136 | |
| 137 | static struct regulator_init_data __initdata max8997_ldo1_data = { |
| 138 | .constraints = { |
| 139 | .name = "VDD_ABB_3.3V", |
| 140 | .min_uV = 3300000, |
| 141 | .max_uV = 3300000, |
| 142 | .apply_uV = 1, |
| 143 | .state_mem = { |
| 144 | .disabled = 1, |
| 145 | }, |
| 146 | }, |
| 147 | }; |
| 148 | |
| 149 | static struct regulator_init_data __initdata max8997_ldo2_data = { |
| 150 | .constraints = { |
| 151 | .name = "VDD_ALIVE_1.1V", |
| 152 | .min_uV = 1100000, |
| 153 | .max_uV = 1100000, |
| 154 | .apply_uV = 1, |
| 155 | .always_on = 1, |
| 156 | .state_mem = { |
| 157 | .enabled = 1, |
| 158 | }, |
| 159 | }, |
| 160 | }; |
| 161 | |
| 162 | static struct regulator_init_data __initdata max8997_ldo3_data = { |
| 163 | .constraints = { |
| 164 | .name = "VMIPI_1.1V", |
| 165 | .min_uV = 1100000, |
| 166 | .max_uV = 1100000, |
| 167 | .apply_uV = 1, |
| 168 | .valid_ops_mask = REGULATOR_CHANGE_STATUS, |
| 169 | .state_mem = { |
| 170 | .disabled = 1, |
| 171 | }, |
| 172 | }, |
| 173 | .num_consumer_supplies = ARRAY_SIZE(ldo3_consumer), |
| 174 | .consumer_supplies = ldo3_consumer, |
| 175 | }; |
| 176 | |
| 177 | static struct regulator_init_data __initdata max8997_ldo4_data = { |
| 178 | .constraints = { |
| 179 | .name = "VDD_RTC_1.8V", |
| 180 | .min_uV = 1800000, |
| 181 | .max_uV = 1800000, |
| 182 | .apply_uV = 1, |
| 183 | .always_on = 1, |
| 184 | .state_mem = { |
| 185 | .disabled = 1, |
| 186 | }, |
| 187 | }, |
| 188 | }; |
| 189 | |
| 190 | static struct regulator_init_data __initdata max8997_ldo6_data = { |
| 191 | .constraints = { |
| 192 | .name = "VMIPI_1.8V", |
| 193 | .min_uV = 1800000, |
| 194 | .max_uV = 1800000, |
| 195 | .apply_uV = 1, |
| 196 | .valid_ops_mask = REGULATOR_CHANGE_STATUS, |
| 197 | .state_mem = { |
| 198 | .disabled = 1, |
| 199 | }, |
| 200 | }, |
| 201 | .num_consumer_supplies = ARRAY_SIZE(ldo6_consumer), |
| 202 | .consumer_supplies = ldo6_consumer, |
| 203 | }; |
| 204 | |
| 205 | static struct regulator_init_data __initdata max8997_ldo7_data = { |
| 206 | .constraints = { |
| 207 | .name = "VDD_AUD_1.8V", |
| 208 | .min_uV = 1800000, |
| 209 | .max_uV = 1800000, |
| 210 | .apply_uV = 1, |
| 211 | .valid_ops_mask = REGULATOR_CHANGE_STATUS, |
| 212 | .state_mem = { |
| 213 | .disabled = 1, |
| 214 | }, |
| 215 | }, |
| 216 | .num_consumer_supplies = ARRAY_SIZE(ldo7_consumer), |
| 217 | .consumer_supplies = ldo7_consumer, |
| 218 | }; |
| 219 | |
| 220 | static struct regulator_init_data __initdata max8997_ldo8_data = { |
| 221 | .constraints = { |
| 222 | .name = "VADC_3.3V", |
| 223 | .min_uV = 3300000, |
| 224 | .max_uV = 3300000, |
| 225 | .apply_uV = 1, |
| 226 | .valid_ops_mask = REGULATOR_CHANGE_STATUS, |
| 227 | .state_mem = { |
| 228 | .disabled = 1, |
| 229 | }, |
| 230 | }, |
| 231 | .num_consumer_supplies = ARRAY_SIZE(ldo8_consumer), |
| 232 | .consumer_supplies = ldo8_consumer, |
| 233 | }; |
| 234 | |
| 235 | static struct regulator_init_data __initdata max8997_ldo9_data = { |
| 236 | .constraints = { |
| 237 | .name = "DVDD_SWB_2.8V", |
| 238 | .min_uV = 2800000, |
| 239 | .max_uV = 2800000, |
| 240 | .apply_uV = 1, |
Sangwook Lee | 62d30f8 | 2011-11-03 16:14:14 +0900 | [diff] [blame] | 241 | .always_on = 1, |
Inderpal Singh | 6e01280 | 2011-10-03 08:51:20 +0900 | [diff] [blame] | 242 | .valid_ops_mask = REGULATOR_CHANGE_STATUS, |
| 243 | .state_mem = { |
| 244 | .disabled = 1, |
| 245 | }, |
| 246 | }, |
| 247 | .num_consumer_supplies = ARRAY_SIZE(ldo9_consumer), |
| 248 | .consumer_supplies = ldo9_consumer, |
| 249 | }; |
| 250 | |
| 251 | static struct regulator_init_data __initdata max8997_ldo10_data = { |
| 252 | .constraints = { |
| 253 | .name = "VDD_PLL_1.1V", |
| 254 | .min_uV = 1100000, |
| 255 | .max_uV = 1100000, |
| 256 | .apply_uV = 1, |
| 257 | .always_on = 1, |
| 258 | .state_mem = { |
| 259 | .disabled = 1, |
| 260 | }, |
| 261 | }, |
| 262 | }; |
| 263 | |
| 264 | static struct regulator_init_data __initdata max8997_ldo11_data = { |
| 265 | .constraints = { |
| 266 | .name = "VDD_AUD_3V", |
| 267 | .min_uV = 3000000, |
| 268 | .max_uV = 3000000, |
| 269 | .apply_uV = 1, |
| 270 | .valid_ops_mask = REGULATOR_CHANGE_STATUS, |
| 271 | .state_mem = { |
| 272 | .disabled = 1, |
| 273 | }, |
| 274 | }, |
| 275 | .num_consumer_supplies = ARRAY_SIZE(ldo11_consumer), |
| 276 | .consumer_supplies = ldo11_consumer, |
| 277 | }; |
| 278 | |
| 279 | static struct regulator_init_data __initdata max8997_ldo14_data = { |
| 280 | .constraints = { |
| 281 | .name = "AVDD18_SWB_1.8V", |
| 282 | .min_uV = 1800000, |
| 283 | .max_uV = 1800000, |
| 284 | .apply_uV = 1, |
Sangwook Lee | 62d30f8 | 2011-11-03 16:14:14 +0900 | [diff] [blame] | 285 | .always_on = 1, |
Inderpal Singh | 6e01280 | 2011-10-03 08:51:20 +0900 | [diff] [blame] | 286 | .valid_ops_mask = REGULATOR_CHANGE_STATUS, |
| 287 | .state_mem = { |
| 288 | .disabled = 1, |
| 289 | }, |
| 290 | }, |
| 291 | .num_consumer_supplies = ARRAY_SIZE(ldo14_consumer), |
| 292 | .consumer_supplies = ldo14_consumer, |
| 293 | }; |
| 294 | |
| 295 | static struct regulator_init_data __initdata max8997_ldo17_data = { |
| 296 | .constraints = { |
| 297 | .name = "VDD_SWB_3.3V", |
| 298 | .min_uV = 3300000, |
| 299 | .max_uV = 3300000, |
| 300 | .apply_uV = 1, |
Sangwook Lee | 62d30f8 | 2011-11-03 16:14:14 +0900 | [diff] [blame] | 301 | .always_on = 1, |
Inderpal Singh | 6e01280 | 2011-10-03 08:51:20 +0900 | [diff] [blame] | 302 | .valid_ops_mask = REGULATOR_CHANGE_STATUS, |
| 303 | .state_mem = { |
| 304 | .disabled = 1, |
| 305 | }, |
| 306 | }, |
| 307 | .num_consumer_supplies = ARRAY_SIZE(ldo17_consumer), |
| 308 | .consumer_supplies = ldo17_consumer, |
| 309 | }; |
| 310 | |
| 311 | static struct regulator_init_data __initdata max8997_ldo21_data = { |
| 312 | .constraints = { |
| 313 | .name = "VDD_MIF_1.2V", |
| 314 | .min_uV = 1200000, |
| 315 | .max_uV = 1200000, |
| 316 | .apply_uV = 1, |
| 317 | .always_on = 1, |
| 318 | .state_mem = { |
| 319 | .disabled = 1, |
| 320 | }, |
| 321 | }, |
| 322 | }; |
| 323 | |
| 324 | static struct regulator_init_data __initdata max8997_buck1_data = { |
| 325 | .constraints = { |
| 326 | .name = "VDD_ARM_1.2V", |
| 327 | .min_uV = 950000, |
| 328 | .max_uV = 1350000, |
| 329 | .always_on = 1, |
| 330 | .boot_on = 1, |
| 331 | .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE, |
| 332 | .state_mem = { |
| 333 | .disabled = 1, |
| 334 | }, |
| 335 | }, |
| 336 | .num_consumer_supplies = ARRAY_SIZE(buck1_consumer), |
| 337 | .consumer_supplies = buck1_consumer, |
| 338 | }; |
| 339 | |
| 340 | static struct regulator_init_data __initdata max8997_buck2_data = { |
| 341 | .constraints = { |
| 342 | .name = "VDD_INT_1.1V", |
| 343 | .min_uV = 900000, |
| 344 | .max_uV = 1100000, |
| 345 | .always_on = 1, |
| 346 | .boot_on = 1, |
| 347 | .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE, |
| 348 | .state_mem = { |
| 349 | .disabled = 1, |
| 350 | }, |
| 351 | }, |
| 352 | .num_consumer_supplies = ARRAY_SIZE(buck2_consumer), |
| 353 | .consumer_supplies = buck2_consumer, |
| 354 | }; |
| 355 | |
| 356 | static struct regulator_init_data __initdata max8997_buck3_data = { |
| 357 | .constraints = { |
| 358 | .name = "VDD_G3D_1.1V", |
| 359 | .min_uV = 900000, |
| 360 | .max_uV = 1100000, |
| 361 | .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE | |
| 362 | REGULATOR_CHANGE_STATUS, |
| 363 | .state_mem = { |
| 364 | .disabled = 1, |
| 365 | }, |
| 366 | }, |
| 367 | .num_consumer_supplies = ARRAY_SIZE(buck3_consumer), |
| 368 | .consumer_supplies = buck3_consumer, |
| 369 | }; |
| 370 | |
| 371 | static struct regulator_init_data __initdata max8997_buck5_data = { |
| 372 | .constraints = { |
| 373 | .name = "VDDQ_M1M2_1.2V", |
| 374 | .min_uV = 1200000, |
| 375 | .max_uV = 1200000, |
| 376 | .apply_uV = 1, |
| 377 | .always_on = 1, |
| 378 | .state_mem = { |
| 379 | .disabled = 1, |
| 380 | }, |
| 381 | }, |
| 382 | }; |
| 383 | |
| 384 | static struct regulator_init_data __initdata max8997_buck7_data = { |
| 385 | .constraints = { |
| 386 | .name = "VDD_LCD_3.3V", |
| 387 | .min_uV = 3300000, |
| 388 | .max_uV = 3300000, |
| 389 | .boot_on = 1, |
| 390 | .apply_uV = 1, |
| 391 | .valid_ops_mask = REGULATOR_CHANGE_STATUS, |
| 392 | .state_mem = { |
| 393 | .disabled = 1 |
| 394 | }, |
| 395 | }, |
| 396 | .num_consumer_supplies = ARRAY_SIZE(buck7_consumer), |
| 397 | .consumer_supplies = buck7_consumer, |
| 398 | }; |
| 399 | |
| 400 | static struct max8997_regulator_data __initdata origen_max8997_regulators[] = { |
| 401 | { MAX8997_LDO1, &max8997_ldo1_data }, |
| 402 | { MAX8997_LDO2, &max8997_ldo2_data }, |
| 403 | { MAX8997_LDO3, &max8997_ldo3_data }, |
| 404 | { MAX8997_LDO4, &max8997_ldo4_data }, |
| 405 | { MAX8997_LDO6, &max8997_ldo6_data }, |
| 406 | { MAX8997_LDO7, &max8997_ldo7_data }, |
| 407 | { MAX8997_LDO8, &max8997_ldo8_data }, |
| 408 | { MAX8997_LDO9, &max8997_ldo9_data }, |
| 409 | { MAX8997_LDO10, &max8997_ldo10_data }, |
| 410 | { MAX8997_LDO11, &max8997_ldo11_data }, |
| 411 | { MAX8997_LDO14, &max8997_ldo14_data }, |
| 412 | { MAX8997_LDO17, &max8997_ldo17_data }, |
| 413 | { MAX8997_LDO21, &max8997_ldo21_data }, |
| 414 | { MAX8997_BUCK1, &max8997_buck1_data }, |
| 415 | { MAX8997_BUCK2, &max8997_buck2_data }, |
| 416 | { MAX8997_BUCK3, &max8997_buck3_data }, |
| 417 | { MAX8997_BUCK5, &max8997_buck5_data }, |
| 418 | { MAX8997_BUCK7, &max8997_buck7_data }, |
| 419 | }; |
| 420 | |
Kukjin Kim | e745e06 | 2012-01-21 10:47:14 +0900 | [diff] [blame] | 421 | static struct max8997_platform_data __initdata origen_max8997_pdata = { |
Inderpal Singh | 6e01280 | 2011-10-03 08:51:20 +0900 | [diff] [blame] | 422 | .num_regulators = ARRAY_SIZE(origen_max8997_regulators), |
| 423 | .regulators = origen_max8997_regulators, |
| 424 | |
| 425 | .wakeup = true, |
| 426 | .buck1_gpiodvs = false, |
| 427 | .buck2_gpiodvs = false, |
| 428 | .buck5_gpiodvs = false, |
Inderpal Singh | 6e01280 | 2011-10-03 08:51:20 +0900 | [diff] [blame] | 429 | |
| 430 | .ignore_gpiodvs_side_effect = true, |
| 431 | .buck125_default_idx = 0x0, |
| 432 | |
| 433 | .buck125_gpios[0] = EXYNOS4_GPX0(0), |
| 434 | .buck125_gpios[1] = EXYNOS4_GPX0(1), |
| 435 | .buck125_gpios[2] = EXYNOS4_GPX0(2), |
| 436 | |
| 437 | .buck1_voltage[0] = 1350000, |
| 438 | .buck1_voltage[1] = 1300000, |
| 439 | .buck1_voltage[2] = 1250000, |
| 440 | .buck1_voltage[3] = 1200000, |
| 441 | .buck1_voltage[4] = 1150000, |
| 442 | .buck1_voltage[5] = 1100000, |
| 443 | .buck1_voltage[6] = 1000000, |
| 444 | .buck1_voltage[7] = 950000, |
| 445 | |
| 446 | .buck2_voltage[0] = 1100000, |
| 447 | .buck2_voltage[1] = 1100000, |
| 448 | .buck2_voltage[2] = 1100000, |
| 449 | .buck2_voltage[3] = 1100000, |
| 450 | .buck2_voltage[4] = 1000000, |
| 451 | .buck2_voltage[5] = 1000000, |
| 452 | .buck2_voltage[6] = 1000000, |
| 453 | .buck2_voltage[7] = 1000000, |
| 454 | |
| 455 | .buck5_voltage[0] = 1200000, |
| 456 | .buck5_voltage[1] = 1200000, |
| 457 | .buck5_voltage[2] = 1200000, |
| 458 | .buck5_voltage[3] = 1200000, |
| 459 | .buck5_voltage[4] = 1200000, |
| 460 | .buck5_voltage[5] = 1200000, |
| 461 | .buck5_voltage[6] = 1200000, |
| 462 | .buck5_voltage[7] = 1200000, |
| 463 | }; |
| 464 | |
| 465 | /* I2C0 */ |
| 466 | static struct i2c_board_info i2c0_devs[] __initdata = { |
| 467 | { |
| 468 | I2C_BOARD_INFO("max8997", (0xCC >> 1)), |
| 469 | .platform_data = &origen_max8997_pdata, |
| 470 | .irq = IRQ_EINT(4), |
| 471 | }, |
| 472 | }; |
| 473 | |
Tushar Behera | cf1dad9 | 2011-08-31 16:57:37 +0900 | [diff] [blame] | 474 | static struct s3c_sdhci_platdata origen_hsmmc0_pdata __initdata = { |
| 475 | .cd_type = S3C_SDHCI_CD_INTERNAL, |
Tushar Behera | cf1dad9 | 2011-08-31 16:57:37 +0900 | [diff] [blame] | 476 | }; |
| 477 | |
JeongHyeon Kim | 699efdd | 2011-07-21 16:19:19 +0900 | [diff] [blame] | 478 | static struct s3c_sdhci_platdata origen_hsmmc2_pdata __initdata = { |
Tushar Behera | 92e41ef | 2011-08-31 16:01:15 +0900 | [diff] [blame] | 479 | .cd_type = S3C_SDHCI_CD_INTERNAL, |
JeongHyeon Kim | 699efdd | 2011-07-21 16:19:19 +0900 | [diff] [blame] | 480 | }; |
| 481 | |
Sachin Kamat | 24f9e1f | 2011-08-31 15:47:16 +0900 | [diff] [blame] | 482 | /* USB EHCI */ |
| 483 | static struct s5p_ehci_platdata origen_ehci_pdata; |
| 484 | |
| 485 | static void __init origen_ehci_init(void) |
| 486 | { |
| 487 | struct s5p_ehci_platdata *pdata = &origen_ehci_pdata; |
| 488 | |
| 489 | s5p_ehci_set_platdata(pdata); |
| 490 | } |
| 491 | |
Tushar Behera | 95de77d | 2011-12-24 12:09:06 +0900 | [diff] [blame] | 492 | /* USB OHCI */ |
| 493 | static struct exynos4_ohci_platdata origen_ohci_pdata; |
| 494 | |
| 495 | static void __init origen_ohci_init(void) |
| 496 | { |
| 497 | struct exynos4_ohci_platdata *pdata = &origen_ohci_pdata; |
| 498 | |
| 499 | exynos4_ohci_set_platdata(pdata); |
| 500 | } |
| 501 | |
Sachin Kamat | 9c278d5 | 2012-05-20 07:46:40 +0900 | [diff] [blame] | 502 | /* USB OTG */ |
| 503 | static struct s3c_hsotg_plat origen_hsotg_pdata; |
| 504 | |
Ricardo Salveti de Araujo | 29e7d58 | 2012-07-19 14:46:36 +0900 | [diff] [blame] | 505 | static struct gpio_led origen_gpio_leds[] = { |
| 506 | { |
| 507 | .name = "origen::status1", |
| 508 | .default_trigger = "heartbeat", |
| 509 | .gpio = EXYNOS4_GPX1(3), |
| 510 | .active_low = 1, |
| 511 | }, |
| 512 | { |
| 513 | .name = "origen::status2", |
| 514 | .default_trigger = "mmc0", |
| 515 | .gpio = EXYNOS4_GPX1(4), |
| 516 | .active_low = 1, |
| 517 | }, |
| 518 | }; |
| 519 | |
| 520 | static struct gpio_led_platform_data origen_gpio_led_info = { |
| 521 | .leds = origen_gpio_leds, |
| 522 | .num_leds = ARRAY_SIZE(origen_gpio_leds), |
| 523 | }; |
| 524 | |
| 525 | static struct platform_device origen_leds_gpio = { |
| 526 | .name = "leds-gpio", |
| 527 | .id = -1, |
| 528 | .dev = { |
| 529 | .platform_data = &origen_gpio_led_info, |
| 530 | }, |
| 531 | }; |
| 532 | |
Sachin Kamat | c86cfdd | 2011-09-16 21:41:25 +0900 | [diff] [blame] | 533 | static struct gpio_keys_button origen_gpio_keys_table[] = { |
| 534 | { |
| 535 | .code = KEY_MENU, |
| 536 | .gpio = EXYNOS4_GPX1(5), |
| 537 | .desc = "gpio-keys: KEY_MENU", |
| 538 | .type = EV_KEY, |
| 539 | .active_low = 1, |
| 540 | .wakeup = 1, |
| 541 | .debounce_interval = 1, |
| 542 | }, { |
| 543 | .code = KEY_HOME, |
| 544 | .gpio = EXYNOS4_GPX1(6), |
| 545 | .desc = "gpio-keys: KEY_HOME", |
| 546 | .type = EV_KEY, |
| 547 | .active_low = 1, |
| 548 | .wakeup = 1, |
| 549 | .debounce_interval = 1, |
| 550 | }, { |
| 551 | .code = KEY_BACK, |
| 552 | .gpio = EXYNOS4_GPX1(7), |
| 553 | .desc = "gpio-keys: KEY_BACK", |
| 554 | .type = EV_KEY, |
| 555 | .active_low = 1, |
| 556 | .wakeup = 1, |
| 557 | .debounce_interval = 1, |
| 558 | }, { |
| 559 | .code = KEY_UP, |
| 560 | .gpio = EXYNOS4_GPX2(0), |
| 561 | .desc = "gpio-keys: KEY_UP", |
| 562 | .type = EV_KEY, |
| 563 | .active_low = 1, |
| 564 | .wakeup = 1, |
| 565 | .debounce_interval = 1, |
| 566 | }, { |
| 567 | .code = KEY_DOWN, |
| 568 | .gpio = EXYNOS4_GPX2(1), |
| 569 | .desc = "gpio-keys: KEY_DOWN", |
| 570 | .type = EV_KEY, |
| 571 | .active_low = 1, |
| 572 | .wakeup = 1, |
| 573 | .debounce_interval = 1, |
| 574 | }, |
| 575 | }; |
| 576 | |
| 577 | static struct gpio_keys_platform_data origen_gpio_keys_data = { |
| 578 | .buttons = origen_gpio_keys_table, |
| 579 | .nbuttons = ARRAY_SIZE(origen_gpio_keys_table), |
| 580 | }; |
| 581 | |
| 582 | static struct platform_device origen_device_gpiokeys = { |
| 583 | .name = "gpio-keys", |
| 584 | .dev = { |
| 585 | .platform_data = &origen_gpio_keys_data, |
| 586 | }, |
| 587 | }; |
| 588 | |
Tushar Behera | 9421a76 | 2011-10-03 09:12:56 +0900 | [diff] [blame] | 589 | static void lcd_hv070wsa_set_power(struct plat_lcd_data *pd, unsigned int power) |
| 590 | { |
| 591 | int ret; |
| 592 | |
| 593 | if (power) |
| 594 | ret = gpio_request_one(EXYNOS4_GPE3(4), |
| 595 | GPIOF_OUT_INIT_HIGH, "GPE3_4"); |
| 596 | else |
| 597 | ret = gpio_request_one(EXYNOS4_GPE3(4), |
| 598 | GPIOF_OUT_INIT_LOW, "GPE3_4"); |
| 599 | |
| 600 | gpio_free(EXYNOS4_GPE3(4)); |
| 601 | |
| 602 | if (ret) |
| 603 | pr_err("failed to request gpio for LCD power: %d\n", ret); |
| 604 | } |
| 605 | |
| 606 | static struct plat_lcd_data origen_lcd_hv070wsa_data = { |
| 607 | .set_power = lcd_hv070wsa_set_power, |
| 608 | }; |
| 609 | |
| 610 | static struct platform_device origen_lcd_hv070wsa = { |
| 611 | .name = "platform-lcd", |
| 612 | .dev.parent = &s5p_device_fimd0.dev, |
| 613 | .dev.platform_data = &origen_lcd_hv070wsa_data, |
| 614 | }; |
| 615 | |
Sachin Kamat | 84e6aef | 2012-05-12 16:33:46 +0900 | [diff] [blame] | 616 | #ifdef CONFIG_DRM_EXYNOS |
| 617 | static struct exynos_drm_fimd_pdata drm_fimd_pdata = { |
| 618 | .panel = { |
| 619 | .timing = { |
| 620 | .left_margin = 64, |
| 621 | .right_margin = 16, |
| 622 | .upper_margin = 64, |
| 623 | .lower_margin = 16, |
| 624 | .hsync_len = 48, |
| 625 | .vsync_len = 3, |
| 626 | .xres = 1024, |
| 627 | .yres = 600, |
| 628 | }, |
| 629 | }, |
| 630 | .vidcon0 = VIDCON0_VIDOUT_RGB | VIDCON0_PNRMODE_RGB, |
| 631 | .vidcon1 = VIDCON1_INV_HSYNC | VIDCON1_INV_VSYNC | |
| 632 | VIDCON1_INV_VCLK, |
| 633 | .default_win = 0, |
| 634 | .bpp = 32, |
| 635 | }; |
| 636 | #else |
Tushar Behera | 9421a76 | 2011-10-03 09:12:56 +0900 | [diff] [blame] | 637 | static struct s3c_fb_pd_win origen_fb_win0 = { |
Thomas Abraham | 79d3c41 | 2012-03-24 21:58:48 +0530 | [diff] [blame] | 638 | .xres = 1024, |
| 639 | .yres = 600, |
Tushar Behera | 9421a76 | 2011-10-03 09:12:56 +0900 | [diff] [blame] | 640 | .max_bpp = 32, |
| 641 | .default_bpp = 24, |
Tushar Behera | 384b104 | 2012-04-21 08:25:57 -0700 | [diff] [blame] | 642 | .virtual_x = 1024, |
| 643 | .virtual_y = 2 * 600, |
Tushar Behera | 9421a76 | 2011-10-03 09:12:56 +0900 | [diff] [blame] | 644 | }; |
| 645 | |
Thomas Abraham | 79d3c41 | 2012-03-24 21:58:48 +0530 | [diff] [blame] | 646 | static struct fb_videomode origen_lcd_timing = { |
| 647 | .left_margin = 64, |
| 648 | .right_margin = 16, |
| 649 | .upper_margin = 64, |
| 650 | .lower_margin = 16, |
| 651 | .hsync_len = 48, |
| 652 | .vsync_len = 3, |
| 653 | .xres = 1024, |
| 654 | .yres = 600, |
| 655 | }; |
| 656 | |
Tushar Behera | 9421a76 | 2011-10-03 09:12:56 +0900 | [diff] [blame] | 657 | static struct s3c_fb_platdata origen_lcd_pdata __initdata = { |
| 658 | .win[0] = &origen_fb_win0, |
Thomas Abraham | 79d3c41 | 2012-03-24 21:58:48 +0530 | [diff] [blame] | 659 | .vtiming = &origen_lcd_timing, |
Tushar Behera | 9421a76 | 2011-10-03 09:12:56 +0900 | [diff] [blame] | 660 | .vidcon0 = VIDCON0_VIDOUT_RGB | VIDCON0_PNRMODE_RGB, |
Tushar Behera | 815ed6f | 2011-12-29 16:48:08 +0900 | [diff] [blame] | 661 | .vidcon1 = VIDCON1_INV_HSYNC | VIDCON1_INV_VSYNC | |
| 662 | VIDCON1_INV_VCLK, |
Tushar Behera | 9421a76 | 2011-10-03 09:12:56 +0900 | [diff] [blame] | 663 | .setup_gpio = exynos4_fimd0_gpio_setup_24bpp, |
| 664 | }; |
Sachin Kamat | 84e6aef | 2012-05-12 16:33:46 +0900 | [diff] [blame] | 665 | #endif |
Tushar Behera | 9421a76 | 2011-10-03 09:12:56 +0900 | [diff] [blame] | 666 | |
Sangwook Lee | 62d30f8 | 2011-11-03 16:14:14 +0900 | [diff] [blame] | 667 | /* Bluetooth rfkill gpio platform data */ |
Sachin Kamat | 023c9ff | 2012-05-12 16:30:45 +0900 | [diff] [blame] | 668 | static struct rfkill_gpio_platform_data origen_bt_pdata = { |
Sangwook Lee | 62d30f8 | 2011-11-03 16:14:14 +0900 | [diff] [blame] | 669 | .reset_gpio = EXYNOS4_GPX2(2), |
| 670 | .shutdown_gpio = -1, |
| 671 | .type = RFKILL_TYPE_BLUETOOTH, |
| 672 | .name = "origen-bt", |
| 673 | }; |
| 674 | |
| 675 | /* Bluetooth Platform device */ |
| 676 | static struct platform_device origen_device_bluetooth = { |
| 677 | .name = "rfkill_gpio", |
| 678 | .id = -1, |
| 679 | .dev = { |
| 680 | .platform_data = &origen_bt_pdata, |
| 681 | }, |
| 682 | }; |
| 683 | |
JeongHyeon Kim | 699efdd | 2011-07-21 16:19:19 +0900 | [diff] [blame] | 684 | static struct platform_device *origen_devices[] __initdata = { |
| 685 | &s3c_device_hsmmc2, |
Tushar Behera | cf1dad9 | 2011-08-31 16:57:37 +0900 | [diff] [blame] | 686 | &s3c_device_hsmmc0, |
Tushar Behera | 9421a76 | 2011-10-03 09:12:56 +0900 | [diff] [blame] | 687 | &s3c_device_i2c0, |
JeongHyeon Kim | 699efdd | 2011-07-21 16:19:19 +0900 | [diff] [blame] | 688 | &s3c_device_rtc, |
Sachin Kamat | 9c278d5 | 2012-05-20 07:46:40 +0900 | [diff] [blame] | 689 | &s3c_device_usb_hsotg, |
JeongHyeon Kim | 699efdd | 2011-07-21 16:19:19 +0900 | [diff] [blame] | 690 | &s3c_device_wdt, |
Sachin Kamat | 24f9e1f | 2011-08-31 15:47:16 +0900 | [diff] [blame] | 691 | &s5p_device_ehci, |
Sachin Kamat | 6f8eb32 | 2011-08-31 15:52:27 +0900 | [diff] [blame] | 692 | &s5p_device_fimc0, |
| 693 | &s5p_device_fimc1, |
| 694 | &s5p_device_fimc2, |
| 695 | &s5p_device_fimc3, |
Sachin Kamat | 26e1451 | 2012-01-31 13:28:59 +0900 | [diff] [blame] | 696 | &s5p_device_fimc_md, |
Tushar Behera | 9421a76 | 2011-10-03 09:12:56 +0900 | [diff] [blame] | 697 | &s5p_device_fimd0, |
Sachin Kamat | 84207d8 | 2011-12-29 16:46:16 +0900 | [diff] [blame] | 698 | &s5p_device_g2d, |
Sachin Kamat | 6ca3f8b | 2011-09-17 11:42:43 +0900 | [diff] [blame] | 699 | &s5p_device_hdmi, |
| 700 | &s5p_device_i2c_hdmiphy, |
Sachin Kamat | 965a330 | 2012-03-09 08:19:27 -0800 | [diff] [blame] | 701 | &s5p_device_jpeg, |
Sachin Kamat | df74a28 | 2011-10-13 15:38:21 +0900 | [diff] [blame] | 702 | &s5p_device_mfc, |
| 703 | &s5p_device_mfc_l, |
| 704 | &s5p_device_mfc_r, |
Sachin Kamat | 6ca3f8b | 2011-09-17 11:42:43 +0900 | [diff] [blame] | 705 | &s5p_device_mixer, |
Sachin Kamat | 84e6aef | 2012-05-12 16:33:46 +0900 | [diff] [blame] | 706 | #ifdef CONFIG_DRM_EXYNOS |
| 707 | &exynos_device_drm, |
| 708 | #endif |
Tushar Behera | 95de77d | 2011-12-24 12:09:06 +0900 | [diff] [blame] | 709 | &exynos4_device_ohci, |
Sachin Kamat | c86cfdd | 2011-09-16 21:41:25 +0900 | [diff] [blame] | 710 | &origen_device_gpiokeys, |
Tushar Behera | 9421a76 | 2011-10-03 09:12:56 +0900 | [diff] [blame] | 711 | &origen_lcd_hv070wsa, |
Ricardo Salveti de Araujo | 29e7d58 | 2012-07-19 14:46:36 +0900 | [diff] [blame] | 712 | &origen_leds_gpio, |
Sangwook Lee | 62d30f8 | 2011-11-03 16:14:14 +0900 | [diff] [blame] | 713 | &origen_device_bluetooth, |
JeongHyeon Kim | 699efdd | 2011-07-21 16:19:19 +0900 | [diff] [blame] | 714 | }; |
| 715 | |
Giridhar Maruthy | 9edff0f | 2011-08-31 15:58:52 +0900 | [diff] [blame] | 716 | /* LCD Backlight data */ |
| 717 | static struct samsung_bl_gpio_info origen_bl_gpio_info = { |
Inderpal Singh | 6e01280 | 2011-10-03 08:51:20 +0900 | [diff] [blame] | 718 | .no = EXYNOS4_GPD0(0), |
| 719 | .func = S3C_GPIO_SFN(2), |
Giridhar Maruthy | 9edff0f | 2011-08-31 15:58:52 +0900 | [diff] [blame] | 720 | }; |
| 721 | |
| 722 | static struct platform_pwm_backlight_data origen_bl_data = { |
Inderpal Singh | 6e01280 | 2011-10-03 08:51:20 +0900 | [diff] [blame] | 723 | .pwm_id = 0, |
| 724 | .pwm_period_ns = 1000, |
Giridhar Maruthy | 9edff0f | 2011-08-31 15:58:52 +0900 | [diff] [blame] | 725 | }; |
| 726 | |
Sangwook Lee | 62d30f8 | 2011-11-03 16:14:14 +0900 | [diff] [blame] | 727 | static void __init origen_bt_setup(void) |
| 728 | { |
| 729 | gpio_request(EXYNOS4_GPA0(0), "GPIO BT_UART"); |
| 730 | /* 4 UART Pins configuration */ |
| 731 | s3c_gpio_cfgrange_nopull(EXYNOS4_GPA0(0), 4, S3C_GPIO_SFN(2)); |
| 732 | /* Setup BT Reset, this gpio will be requesed by rfkill-gpio */ |
| 733 | s3c_gpio_cfgpin(EXYNOS4_GPX2(2), S3C_GPIO_OUTPUT); |
| 734 | s3c_gpio_setpull(EXYNOS4_GPX2(2), S3C_GPIO_PULL_NONE); |
| 735 | } |
| 736 | |
Sachin Kamat | 3c76669 | 2011-10-03 09:16:53 +0900 | [diff] [blame] | 737 | static void s5p_tv_setup(void) |
| 738 | { |
| 739 | /* Direct HPD to HDMI chip */ |
| 740 | gpio_request_one(EXYNOS4_GPX3(7), GPIOF_IN, "hpd-plug"); |
| 741 | s3c_gpio_cfgpin(EXYNOS4_GPX3(7), S3C_GPIO_SFN(0x3)); |
| 742 | s3c_gpio_setpull(EXYNOS4_GPX3(7), S3C_GPIO_PULL_NONE); |
| 743 | } |
| 744 | |
JeongHyeon Kim | 699efdd | 2011-07-21 16:19:19 +0900 | [diff] [blame] | 745 | static void __init origen_map_io(void) |
| 746 | { |
Kukjin Kim | cc511b8 | 2011-12-27 08:18:36 +0100 | [diff] [blame] | 747 | exynos_init_io(NULL, 0); |
Kukjin Kim | 2e27437 | 2012-07-12 18:03:52 +0900 | [diff] [blame] | 748 | s3c24xx_init_clocks(clk_xusbxti.rate); |
JeongHyeon Kim | 699efdd | 2011-07-21 16:19:19 +0900 | [diff] [blame] | 749 | s3c24xx_init_uarts(origen_uartcfgs, ARRAY_SIZE(origen_uartcfgs)); |
| 750 | } |
| 751 | |
Inderpal Singh | 6e01280 | 2011-10-03 08:51:20 +0900 | [diff] [blame] | 752 | static void __init origen_power_init(void) |
| 753 | { |
| 754 | gpio_request(EXYNOS4_GPX0(4), "PMIC_IRQ"); |
| 755 | s3c_gpio_cfgpin(EXYNOS4_GPX0(4), S3C_GPIO_SFN(0xf)); |
| 756 | s3c_gpio_setpull(EXYNOS4_GPX0(4), S3C_GPIO_PULL_NONE); |
| 757 | } |
| 758 | |
Sachin Kamat | df74a28 | 2011-10-13 15:38:21 +0900 | [diff] [blame] | 759 | static void __init origen_reserve(void) |
| 760 | { |
| 761 | s5p_mfc_reserve_mem(0x43000000, 8 << 20, 0x51000000, 8 << 20); |
| 762 | } |
| 763 | |
JeongHyeon Kim | 699efdd | 2011-07-21 16:19:19 +0900 | [diff] [blame] | 764 | static void __init origen_machine_init(void) |
| 765 | { |
Inderpal Singh | 6e01280 | 2011-10-03 08:51:20 +0900 | [diff] [blame] | 766 | origen_power_init(); |
| 767 | |
| 768 | s3c_i2c0_set_platdata(NULL); |
| 769 | i2c_register_board_info(0, i2c0_devs, ARRAY_SIZE(i2c0_devs)); |
| 770 | |
Tushar Behera | cf1dad9 | 2011-08-31 16:57:37 +0900 | [diff] [blame] | 771 | /* |
| 772 | * Since sdhci instance 2 can contain a bootable media, |
| 773 | * sdhci instance 0 is registered after instance 2. |
| 774 | */ |
JeongHyeon Kim | 699efdd | 2011-07-21 16:19:19 +0900 | [diff] [blame] | 775 | s3c_sdhci2_set_platdata(&origen_hsmmc2_pdata); |
Tushar Behera | cf1dad9 | 2011-08-31 16:57:37 +0900 | [diff] [blame] | 776 | s3c_sdhci0_set_platdata(&origen_hsmmc0_pdata); |
Sachin Kamat | 24f9e1f | 2011-08-31 15:47:16 +0900 | [diff] [blame] | 777 | |
| 778 | origen_ehci_init(); |
Tushar Behera | 95de77d | 2011-12-24 12:09:06 +0900 | [diff] [blame] | 779 | origen_ohci_init(); |
Sachin Kamat | 9c278d5 | 2012-05-20 07:46:40 +0900 | [diff] [blame] | 780 | s3c_hsotg_set_platdata(&origen_hsotg_pdata); |
Sachin Kamat | 24f9e1f | 2011-08-31 15:47:16 +0900 | [diff] [blame] | 781 | |
Sachin Kamat | 3c76669 | 2011-10-03 09:16:53 +0900 | [diff] [blame] | 782 | s5p_tv_setup(); |
Sachin Kamat | 6ca3f8b | 2011-09-17 11:42:43 +0900 | [diff] [blame] | 783 | s5p_i2c_hdmiphy_set_platdata(NULL); |
| 784 | |
Sachin Kamat | 84e6aef | 2012-05-12 16:33:46 +0900 | [diff] [blame] | 785 | #ifdef CONFIG_DRM_EXYNOS |
| 786 | s5p_device_fimd0.dev.platform_data = &drm_fimd_pdata; |
| 787 | exynos4_fimd0_gpio_setup_24bpp(); |
| 788 | #else |
Tushar Behera | 9421a76 | 2011-10-03 09:12:56 +0900 | [diff] [blame] | 789 | s5p_fimd0_set_platdata(&origen_lcd_pdata); |
Sachin Kamat | 84e6aef | 2012-05-12 16:33:46 +0900 | [diff] [blame] | 790 | #endif |
Tushar Behera | 9421a76 | 2011-10-03 09:12:56 +0900 | [diff] [blame] | 791 | |
JeongHyeon Kim | 699efdd | 2011-07-21 16:19:19 +0900 | [diff] [blame] | 792 | platform_add_devices(origen_devices, ARRAY_SIZE(origen_devices)); |
Sachin Kamat | df74a28 | 2011-10-13 15:38:21 +0900 | [diff] [blame] | 793 | |
Giridhar Maruthy | 9edff0f | 2011-08-31 15:58:52 +0900 | [diff] [blame] | 794 | samsung_bl_set(&origen_bl_gpio_info, &origen_bl_data); |
Sangwook Lee | 62d30f8 | 2011-11-03 16:14:14 +0900 | [diff] [blame] | 795 | |
| 796 | origen_bt_setup(); |
JeongHyeon Kim | 699efdd | 2011-07-21 16:19:19 +0900 | [diff] [blame] | 797 | } |
| 798 | |
| 799 | MACHINE_START(ORIGEN, "ORIGEN") |
| 800 | /* Maintainer: JeongHyeon Kim <jhkim@insignal.co.kr> */ |
Tushar Behera | 1abd328 | 2011-09-19 20:09:01 +0900 | [diff] [blame] | 801 | .atag_offset = 0x100, |
JeongHyeon Kim | 699efdd | 2011-07-21 16:19:19 +0900 | [diff] [blame] | 802 | .init_irq = exynos4_init_irq, |
| 803 | .map_io = origen_map_io, |
Marc Zyngier | 4e44d2c | 2011-05-30 11:04:53 +0100 | [diff] [blame] | 804 | .handle_irq = gic_handle_irq, |
JeongHyeon Kim | 699efdd | 2011-07-21 16:19:19 +0900 | [diff] [blame] | 805 | .init_machine = origen_machine_init, |
Shawn Guo | bb13fab | 2012-04-26 10:35:40 +0800 | [diff] [blame] | 806 | .init_late = exynos_init_late, |
JeongHyeon Kim | 699efdd | 2011-07-21 16:19:19 +0900 | [diff] [blame] | 807 | .timer = &exynos4_timer, |
Sachin Kamat | df74a28 | 2011-10-13 15:38:21 +0900 | [diff] [blame] | 808 | .reserve = &origen_reserve, |
Russell King | 9eb4859 | 2012-01-03 11:56:53 +0100 | [diff] [blame] | 809 | .restart = exynos4_restart, |
JeongHyeon Kim | 699efdd | 2011-07-21 16:19:19 +0900 | [diff] [blame] | 810 | MACHINE_END |