aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-exynos
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/arm/mach-exynos
parentbd0a521e88aa7a06ae7aabaed7ae196ed4ad867a (diff)
parent1521109318466c2e064dcbd732aa64f99a62852f (diff)
Merge branch 'next/board-samsung' into next/board-samsung-2
Diffstat (limited to 'arch/arm/mach-exynos')
-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
4 files changed, 20 insertions, 4 deletions
diff --git a/arch/arm/mach-exynos/Kconfig b/arch/arm/mach-exynos/Kconfig
index 6f6d13f91e4c..498596b3adbb 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 f5572be9d7bf..9ed0229db8ae 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 fb09c70e195a..e134c9562f15 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 262e9e446a96..7b1b86663e51 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));