aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorKukjin Kim <kgene.kim@samsung.com>2012-07-13 05:40:17 -0400
committerKukjin Kim <kgene.kim@samsung.com>2012-07-13 05:40:17 -0400
commitd6e2796b3b8d94b7048dc63162b93936c25485cd (patch)
treec0859044b7296e06b48804c0ff75abbdaef9599a /arch
parentbd0a521e88aa7a06ae7aabaed7ae196ed4ad867a (diff)
parent1521109318466c2e064dcbd732aa64f99a62852f (diff)
Merge branch 'next/board-samsung' into next/board-samsung-2
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-exynos/Kconfig2
-rw-r--r--arch/arm/mach-exynos/mach-origen.c6
-rw-r--r--arch/arm/mach-exynos/mach-smdk4x12.c10
-rw-r--r--arch/arm/mach-exynos/mach-smdkv310.c6
-rw-r--r--arch/arm/mach-s3c64xx/include/mach/crag6410.h4
-rw-r--r--arch/arm/mach-s3c64xx/mach-crag6410-module.c10
-rw-r--r--arch/arm/mach-s3c64xx/mach-crag6410.c1
-rw-r--r--arch/arm/mach-s5pv210/Kconfig2
-rw-r--r--arch/arm/mach-s5pv210/mach-smdkv210.c9
9 files changed, 41 insertions, 9 deletions
diff --git a/arch/arm/mach-exynos/Kconfig b/arch/arm/mach-exynos/Kconfig
index 6f6d13f91e4..498596b3adb 100644
--- a/arch/arm/mach-exynos/Kconfig
+++ b/arch/arm/mach-exynos/Kconfig
@@ -207,6 +207,7 @@ config MACH_SMDKV310
207 select S3C_DEV_HSMMC1 207 select S3C_DEV_HSMMC1
208 select S3C_DEV_HSMMC2 208 select S3C_DEV_HSMMC2
209 select S3C_DEV_HSMMC3 209 select S3C_DEV_HSMMC3
210 select S3C_DEV_USB_HSOTG
210 select SAMSUNG_DEV_BACKLIGHT 211 select SAMSUNG_DEV_BACKLIGHT
211 select EXYNOS_DEV_DRM 212 select EXYNOS_DEV_DRM
212 select EXYNOS_DEV_SYSMMU 213 select EXYNOS_DEV_SYSMMU
@@ -326,6 +327,7 @@ config MACH_ORIGEN
326 select S3C_DEV_WDT 327 select S3C_DEV_WDT
327 select S3C_DEV_HSMMC 328 select S3C_DEV_HSMMC
328 select S3C_DEV_HSMMC2 329 select S3C_DEV_HSMMC2
330 select S3C_DEV_USB_HSOTG
329 select S5P_DEV_FIMC0 331 select S5P_DEV_FIMC0
330 select S5P_DEV_FIMC1 332 select S5P_DEV_FIMC1
331 select S5P_DEV_FIMC2 333 select S5P_DEV_FIMC2
diff --git a/arch/arm/mach-exynos/mach-origen.c b/arch/arm/mach-exynos/mach-origen.c
index f5572be9d7b..9ed0229db8a 100644
--- a/arch/arm/mach-exynos/mach-origen.c
+++ b/arch/arm/mach-exynos/mach-origen.c
@@ -21,6 +21,7 @@
21#include <linux/mfd/max8997.h> 21#include <linux/mfd/max8997.h>
22#include <linux/lcd.h> 22#include <linux/lcd.h>
23#include <linux/rfkill-gpio.h> 23#include <linux/rfkill-gpio.h>
24#include <linux/platform_data/s3c-hsotg.h>
24 25
25#include <asm/mach/arch.h> 26#include <asm/mach/arch.h>
26#include <asm/hardware/gic.h> 27#include <asm/hardware/gic.h>
@@ -499,6 +500,9 @@ static void __init origen_ohci_init(void)
499 exynos4_ohci_set_platdata(pdata); 500 exynos4_ohci_set_platdata(pdata);
500} 501}
501 502
503/* USB OTG */
504static struct s3c_hsotg_plat origen_hsotg_pdata;
505
502static struct gpio_keys_button origen_gpio_keys_table[] = { 506static struct gpio_keys_button origen_gpio_keys_table[] = {
503 { 507 {
504 .code = KEY_MENU, 508 .code = KEY_MENU,
@@ -655,6 +659,7 @@ static struct platform_device *origen_devices[] __initdata = {
655 &s3c_device_hsmmc0, 659 &s3c_device_hsmmc0,
656 &s3c_device_i2c0, 660 &s3c_device_i2c0,
657 &s3c_device_rtc, 661 &s3c_device_rtc,
662 &s3c_device_usb_hsotg,
658 &s3c_device_wdt, 663 &s3c_device_wdt,
659 &s5p_device_ehci, 664 &s5p_device_ehci,
660 &s5p_device_fimc0, 665 &s5p_device_fimc0,
@@ -744,6 +749,7 @@ static void __init origen_machine_init(void)
744 749
745 origen_ehci_init(); 750 origen_ehci_init();
746 origen_ohci_init(); 751 origen_ohci_init();
752 s3c_hsotg_set_platdata(&origen_hsotg_pdata);
747 clk_xusbxti.rate = 24000000; 753 clk_xusbxti.rate = 24000000;
748 754
749 s5p_tv_setup(); 755 s5p_tv_setup();
diff --git a/arch/arm/mach-exynos/mach-smdk4x12.c b/arch/arm/mach-exynos/mach-smdk4x12.c
index fb09c70e195..e134c9562f1 100644
--- a/arch/arm/mach-exynos/mach-smdk4x12.c
+++ b/arch/arm/mach-exynos/mach-smdk4x12.c
@@ -219,8 +219,10 @@ static struct platform_pwm_backlight_data smdk4x12_bl_data = {
219 219
220static uint32_t smdk4x12_keymap[] __initdata = { 220static uint32_t smdk4x12_keymap[] __initdata = {
221 /* KEY(row, col, keycode) */ 221 /* KEY(row, col, keycode) */
222 KEY(1, 0, KEY_D), KEY(1, 1, KEY_A), KEY(1, 2, KEY_B), 222 KEY(1, 3, KEY_1), KEY(1, 4, KEY_2), KEY(1, 5, KEY_3),
223 KEY(1, 3, KEY_E), KEY(1, 4, KEY_C) 223 KEY(1, 6, KEY_4), KEY(1, 7, KEY_5),
224 KEY(2, 5, KEY_D), KEY(2, 6, KEY_A), KEY(2, 7, KEY_B),
225 KEY(0, 7, KEY_E), KEY(0, 5, KEY_C)
224}; 226};
225 227
226static struct matrix_keymap_data smdk4x12_keymap_data __initdata = { 228static struct matrix_keymap_data smdk4x12_keymap_data __initdata = {
@@ -230,8 +232,8 @@ static struct matrix_keymap_data smdk4x12_keymap_data __initdata = {
230 232
231static struct samsung_keypad_platdata smdk4x12_keypad_data __initdata = { 233static struct samsung_keypad_platdata smdk4x12_keypad_data __initdata = {
232 .keymap_data = &smdk4x12_keymap_data, 234 .keymap_data = &smdk4x12_keymap_data,
233 .rows = 2, 235 .rows = 3,
234 .cols = 5, 236 .cols = 8,
235}; 237};
236 238
237static struct platform_device *smdk4x12_devices[] __initdata = { 239static struct platform_device *smdk4x12_devices[] __initdata = {
diff --git a/arch/arm/mach-exynos/mach-smdkv310.c b/arch/arm/mach-exynos/mach-smdkv310.c
index 262e9e446a9..7b1b86663e5 100644
--- a/arch/arm/mach-exynos/mach-smdkv310.c
+++ b/arch/arm/mach-exynos/mach-smdkv310.c
@@ -19,6 +19,7 @@
19#include <linux/i2c.h> 19#include <linux/i2c.h>
20#include <linux/input.h> 20#include <linux/input.h>
21#include <linux/pwm_backlight.h> 21#include <linux/pwm_backlight.h>
22#include <linux/platform_data/s3c-hsotg.h>
22 23
23#include <asm/mach/arch.h> 24#include <asm/mach/arch.h>
24#include <asm/hardware/gic.h> 25#include <asm/hardware/gic.h>
@@ -271,6 +272,9 @@ static void __init smdkv310_ohci_init(void)
271 exynos4_ohci_set_platdata(pdata); 272 exynos4_ohci_set_platdata(pdata);
272} 273}
273 274
275/* USB OTG */
276static struct s3c_hsotg_plat smdkv310_hsotg_pdata;
277
274static struct platform_device *smdkv310_devices[] __initdata = { 278static struct platform_device *smdkv310_devices[] __initdata = {
275 &s3c_device_hsmmc0, 279 &s3c_device_hsmmc0,
276 &s3c_device_hsmmc1, 280 &s3c_device_hsmmc1,
@@ -279,6 +283,7 @@ static struct platform_device *smdkv310_devices[] __initdata = {
279 &s3c_device_i2c1, 283 &s3c_device_i2c1,
280 &s5p_device_i2c_hdmiphy, 284 &s5p_device_i2c_hdmiphy,
281 &s3c_device_rtc, 285 &s3c_device_rtc,
286 &s3c_device_usb_hsotg,
282 &s3c_device_wdt, 287 &s3c_device_wdt,
283 &s5p_device_ehci, 288 &s5p_device_ehci,
284 &s5p_device_fimc0, 289 &s5p_device_fimc0,
@@ -390,6 +395,7 @@ static void __init smdkv310_machine_init(void)
390 395
391 smdkv310_ehci_init(); 396 smdkv310_ehci_init();
392 smdkv310_ohci_init(); 397 smdkv310_ohci_init();
398 s3c_hsotg_set_platdata(&smdkv310_hsotg_pdata);
393 clk_xusbxti.rate = 24000000; 399 clk_xusbxti.rate = 24000000;
394 400
395 platform_add_devices(smdkv310_devices, ARRAY_SIZE(smdkv310_devices)); 401 platform_add_devices(smdkv310_devices, ARRAY_SIZE(smdkv310_devices));
diff --git a/arch/arm/mach-s3c64xx/include/mach/crag6410.h b/arch/arm/mach-s3c64xx/include/mach/crag6410.h
index 4cb2f951f1e..4c3c9994fc2 100644
--- a/arch/arm/mach-s3c64xx/include/mach/crag6410.h
+++ b/arch/arm/mach-s3c64xx/include/mach/crag6410.h
@@ -13,9 +13,7 @@
13 13
14#include <linux/gpio.h> 14#include <linux/gpio.h>
15 15
16#define BANFF_PMIC_IRQ_BASE IRQ_BOARD_START 16#define GLENFARCLAS_PMIC_IRQ_BASE IRQ_BOARD_START
17#define GLENFARCLAS_PMIC_IRQ_BASE (IRQ_BOARD_START + 64)
18#define CODEC_IRQ_BASE (IRQ_BOARD_START + 128)
19 17
20#define PCA935X_GPIO_BASE GPIO_BOARD_START 18#define PCA935X_GPIO_BASE GPIO_BOARD_START
21#define CODEC_GPIO_BASE (GPIO_BOARD_START + 8) 19#define CODEC_GPIO_BASE (GPIO_BOARD_START + 8)
diff --git a/arch/arm/mach-s3c64xx/mach-crag6410-module.c b/arch/arm/mach-s3c64xx/mach-crag6410-module.c
index 7a27f5603c7..4645aa15c82 100644
--- a/arch/arm/mach-s3c64xx/mach-crag6410-module.c
+++ b/arch/arm/mach-s3c64xx/mach-crag6410-module.c
@@ -39,6 +39,7 @@ static struct spi_board_info wm1253_devs[] = {
39 .bus_num = 0, 39 .bus_num = 0,
40 .chip_select = 0, 40 .chip_select = 0,
41 .mode = SPI_MODE_0, 41 .mode = SPI_MODE_0,
42 .irq = S3C_EINT(5),
42 .controller_data = &wm0010_spi_csinfo, 43 .controller_data = &wm0010_spi_csinfo,
43 }, 44 },
44}; 45};
@@ -168,7 +169,6 @@ static struct wm8994_pdata wm8994_pdata = {
168 .gpio_defaults = { 169 .gpio_defaults = {
169 0x3, /* IRQ out, active high, CMOS */ 170 0x3, /* IRQ out, active high, CMOS */
170 }, 171 },
171 .irq_base = CODEC_IRQ_BASE,
172 .ldo = { 172 .ldo = {
173 { .init_data = &wm8994_ldo1, }, 173 { .init_data = &wm8994_ldo1, },
174 { .init_data = &wm8994_ldo2, }, 174 { .init_data = &wm8994_ldo2, },
@@ -182,6 +182,11 @@ static const struct i2c_board_info wm1277_devs[] = {
182 }, 182 },
183}; 183};
184 184
185static const struct i2c_board_info wm5102_devs[] = {
186 { I2C_BOARD_INFO("wm5102", 0x1a),
187 .irq = GLENFARCLAS_PMIC_IRQ_BASE + WM831X_IRQ_GPIO_2, },
188};
189
185static const struct i2c_board_info wm6230_i2c_devs[] = { 190static const struct i2c_board_info wm6230_i2c_devs[] = {
186 { I2C_BOARD_INFO("wm9081", 0x6c), 191 { I2C_BOARD_INFO("wm9081", 0x6c),
187 .platform_data = &wm9081_pdata, }, 192 .platform_data = &wm9081_pdata, },
@@ -209,6 +214,7 @@ static __devinitdata const struct {
209 .spi_devs = wm1253_devs, .num_spi_devs = ARRAY_SIZE(wm1253_devs) }, 214 .spi_devs = wm1253_devs, .num_spi_devs = ARRAY_SIZE(wm1253_devs) },
210 { .id = 0x32, .name = "XXXX-EV1 Caol Illa" }, 215 { .id = 0x32, .name = "XXXX-EV1 Caol Illa" },
211 { .id = 0x33, .name = "XXXX-EV1 Oban" }, 216 { .id = 0x33, .name = "XXXX-EV1 Oban" },
217 { .id = 0x34, .name = "WM0010-6320-CS42 Balblair" },
212 { .id = 0x39, .name = "1254-EV1 Dallas Dhu", 218 { .id = 0x39, .name = "1254-EV1 Dallas Dhu",
213 .i2c_devs = wm1254_devs, .num_i2c_devs = ARRAY_SIZE(wm1254_devs) }, 219 .i2c_devs = wm1254_devs, .num_i2c_devs = ARRAY_SIZE(wm1254_devs) },
214 { .id = 0x3a, .name = "1259-EV1 Tobermory", 220 { .id = 0x3a, .name = "1259-EV1 Tobermory",
@@ -218,6 +224,8 @@ static __devinitdata const struct {
218 { .id = 0x3c, .name = "1273-EV1 Longmorn" }, 224 { .id = 0x3c, .name = "1273-EV1 Longmorn" },
219 { .id = 0x3d, .name = "1277-EV1 Littlemill", 225 { .id = 0x3d, .name = "1277-EV1 Littlemill",
220 .i2c_devs = wm1277_devs, .num_i2c_devs = ARRAY_SIZE(wm1277_devs) }, 226 .i2c_devs = wm1277_devs, .num_i2c_devs = ARRAY_SIZE(wm1277_devs) },
227 { .id = 0x3e, .name = "WM5102-6271-EV1-CS127",
228 .i2c_devs = wm5102_devs, .num_i2c_devs = ARRAY_SIZE(wm5102_devs) },
221}; 229};
222 230
223static __devinit int wlf_gf_module_probe(struct i2c_client *i2c, 231static __devinit int wlf_gf_module_probe(struct i2c_client *i2c,
diff --git a/arch/arm/mach-s3c64xx/mach-crag6410.c b/arch/arm/mach-s3c64xx/mach-crag6410.c
index d0c352d861f..161c3b6218a 100644
--- a/arch/arm/mach-s3c64xx/mach-crag6410.c
+++ b/arch/arm/mach-s3c64xx/mach-crag6410.c
@@ -525,7 +525,6 @@ static struct wm831x_touch_pdata touch_pdata __initdata = {
525 525
526static struct wm831x_pdata crag_pmic_pdata __initdata = { 526static struct wm831x_pdata crag_pmic_pdata __initdata = {
527 .wm831x_num = 1, 527 .wm831x_num = 1,
528 .irq_base = BANFF_PMIC_IRQ_BASE,
529 .gpio_base = BANFF_PMIC_GPIO_BASE, 528 .gpio_base = BANFF_PMIC_GPIO_BASE,
530 .soft_shutdown = true, 529 .soft_shutdown = true,
531 530
diff --git a/arch/arm/mach-s5pv210/Kconfig b/arch/arm/mach-s5pv210/Kconfig
index 88e983b0c82..77185c38188 100644
--- a/arch/arm/mach-s5pv210/Kconfig
+++ b/arch/arm/mach-s5pv210/Kconfig
@@ -152,6 +152,7 @@ config MACH_SMDKV210
152 select S3C_DEV_I2C1 152 select S3C_DEV_I2C1
153 select S3C_DEV_I2C2 153 select S3C_DEV_I2C2
154 select S3C_DEV_RTC 154 select S3C_DEV_RTC
155 select S3C_DEV_USB_HSOTG
155 select S3C_DEV_WDT 156 select S3C_DEV_WDT
156 select S5P_DEV_FIMC0 157 select S5P_DEV_FIMC0
157 select S5P_DEV_FIMC1 158 select S5P_DEV_FIMC1
@@ -170,6 +171,7 @@ config MACH_SMDKV210
170 select S5PV210_SETUP_IDE 171 select S5PV210_SETUP_IDE
171 select S5PV210_SETUP_KEYPAD 172 select S5PV210_SETUP_KEYPAD
172 select S5PV210_SETUP_SDHCI 173 select S5PV210_SETUP_SDHCI
174 select S5PV210_SETUP_USB_PHY
173 help 175 help
174 Machine support for Samsung SMDKV210 176 Machine support for Samsung SMDKV210
175 177
diff --git a/arch/arm/mach-s5pv210/mach-smdkv210.c b/arch/arm/mach-s5pv210/mach-smdkv210.c
index 0d7ddec88eb..c8997bce642 100644
--- a/arch/arm/mach-s5pv210/mach-smdkv210.c
+++ b/arch/arm/mach-s5pv210/mach-smdkv210.c
@@ -19,6 +19,7 @@
19#include <linux/gpio.h> 19#include <linux/gpio.h>
20#include <linux/delay.h> 20#include <linux/delay.h>
21#include <linux/pwm_backlight.h> 21#include <linux/pwm_backlight.h>
22#include <linux/platform_data/s3c-hsotg.h>
22 23
23#include <asm/hardware/vic.h> 24#include <asm/hardware/vic.h>
24#include <asm/mach/arch.h> 25#include <asm/mach/arch.h>
@@ -47,6 +48,7 @@
47#include <plat/backlight.h> 48#include <plat/backlight.h>
48#include <plat/regs-fb-v4.h> 49#include <plat/regs-fb-v4.h>
49#include <plat/mfc.h> 50#include <plat/mfc.h>
51#include <plat/clock.h>
50 52
51#include "common.h" 53#include "common.h"
52 54
@@ -203,6 +205,9 @@ static struct s3c_fb_platdata smdkv210_lcd0_pdata __initdata = {
203 .setup_gpio = s5pv210_fb_gpio_setup_24bpp, 205 .setup_gpio = s5pv210_fb_gpio_setup_24bpp,
204}; 206};
205 207
208/* USB OTG */
209static struct s3c_hsotg_plat smdkv210_hsotg_pdata;
210
206static struct platform_device *smdkv210_devices[] __initdata = { 211static struct platform_device *smdkv210_devices[] __initdata = {
207 &s3c_device_adc, 212 &s3c_device_adc,
208 &s3c_device_cfcon, 213 &s3c_device_cfcon,
@@ -216,6 +221,7 @@ static struct platform_device *smdkv210_devices[] __initdata = {
216 &s3c_device_i2c2, 221 &s3c_device_i2c2,
217 &s3c_device_rtc, 222 &s3c_device_rtc,
218 &s3c_device_ts, 223 &s3c_device_ts,
224 &s3c_device_usb_hsotg,
219 &s3c_device_wdt, 225 &s3c_device_wdt,
220 &s5p_device_fimc0, 226 &s5p_device_fimc0,
221 &s5p_device_fimc1, 227 &s5p_device_fimc1,
@@ -314,6 +320,9 @@ static void __init smdkv210_machine_init(void)
314 320
315 samsung_bl_set(&smdkv210_bl_gpio_info, &smdkv210_bl_data); 321 samsung_bl_set(&smdkv210_bl_gpio_info, &smdkv210_bl_data);
316 322
323 s3c_hsotg_set_platdata(&smdkv210_hsotg_pdata);
324 clk_xusbxti.rate = 24000000;
325
317 platform_add_devices(smdkv210_devices, ARRAY_SIZE(smdkv210_devices)); 326 platform_add_devices(smdkv210_devices, ARRAY_SIZE(smdkv210_devices));
318} 327}
319 328