diff options
author | Joonyoung Shim <jy0922.shim@samsung.com> | 2012-05-12 19:25:24 -0400 |
---|---|---|
committer | Kukjin Kim <kgene.kim@samsung.com> | 2012-05-16 09:32:13 -0400 |
commit | 8d07dbb9e862832a6ecd4dfd98aa9e74aedc6159 (patch) | |
tree | 709d8c33a098e721e45318034881b3e718e943a0 /arch/arm | |
parent | 460dcb0220c369921fb55eccc70ea8d8f8bb3ba3 (diff) |
ARM: EXYNOS: Add s3c-hsotg device support for NURI board
This patch adds hsotg device to the NURI board.
Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
[Rebased on the newest git/kgene/linux-samsung #for-next]
Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/mach-exynos/Kconfig | 1 | ||||
-rw-r--r-- | arch/arm/mach-exynos/mach-nuri.c | 9 |
2 files changed, 9 insertions, 1 deletions
diff --git a/arch/arm/mach-exynos/Kconfig b/arch/arm/mach-exynos/Kconfig index b8df521fb68e..cbe0dad6c05e 100644 --- a/arch/arm/mach-exynos/Kconfig +++ b/arch/arm/mach-exynos/Kconfig | |||
@@ -280,6 +280,7 @@ config MACH_NURI | |||
280 | select S3C_DEV_I2C3 | 280 | select S3C_DEV_I2C3 |
281 | select S3C_DEV_I2C5 | 281 | select S3C_DEV_I2C5 |
282 | select S3C_DEV_I2C6 | 282 | select S3C_DEV_I2C6 |
283 | select S3C_DEV_USB_HSOTG | ||
283 | select S5P_DEV_CSIS0 | 284 | select S5P_DEV_CSIS0 |
284 | select S5P_DEV_JPEG | 285 | select S5P_DEV_JPEG |
285 | select S5P_DEV_FIMC0 | 286 | select S5P_DEV_FIMC0 |
diff --git a/arch/arm/mach-exynos/mach-nuri.c b/arch/arm/mach-exynos/mach-nuri.c index ed90aef404c3..f74c3b75da6a 100644 --- a/arch/arm/mach-exynos/mach-nuri.c +++ b/arch/arm/mach-exynos/mach-nuri.c | |||
@@ -351,6 +351,7 @@ static struct regulator_consumer_supply __initdata max8997_ldo1_[] = { | |||
351 | REGULATOR_SUPPLY("vdd", "s5p-adc"), /* Used by CPU's ADC drv */ | 351 | REGULATOR_SUPPLY("vdd", "s5p-adc"), /* Used by CPU's ADC drv */ |
352 | }; | 352 | }; |
353 | static struct regulator_consumer_supply __initdata max8997_ldo3_[] = { | 353 | static struct regulator_consumer_supply __initdata max8997_ldo3_[] = { |
354 | REGULATOR_SUPPLY("vusb_d", "s3c-hsotg"), /* USB */ | ||
354 | REGULATOR_SUPPLY("vdd11", "s5p-mipi-csis.0"), /* MIPI */ | 355 | REGULATOR_SUPPLY("vdd11", "s5p-mipi-csis.0"), /* MIPI */ |
355 | }; | 356 | }; |
356 | static struct regulator_consumer_supply __initdata max8997_ldo4_[] = { | 357 | static struct regulator_consumer_supply __initdata max8997_ldo4_[] = { |
@@ -366,7 +367,7 @@ static struct regulator_consumer_supply __initdata max8997_ldo7_[] = { | |||
366 | REGULATOR_SUPPLY("dig_18", "0-001f"), /* HCD803 */ | 367 | REGULATOR_SUPPLY("dig_18", "0-001f"), /* HCD803 */ |
367 | }; | 368 | }; |
368 | static struct regulator_consumer_supply __initdata max8997_ldo8_[] = { | 369 | static struct regulator_consumer_supply __initdata max8997_ldo8_[] = { |
369 | REGULATOR_SUPPLY("vusb_d", NULL), /* Used by CPU */ | 370 | REGULATOR_SUPPLY("vusb_a", "s3c-hsotg"), /* USB */ |
370 | REGULATOR_SUPPLY("vdac", NULL), /* Used by CPU */ | 371 | REGULATOR_SUPPLY("vdac", NULL), /* Used by CPU */ |
371 | }; | 372 | }; |
372 | static struct regulator_consumer_supply __initdata max8997_ldo11_[] = { | 373 | static struct regulator_consumer_supply __initdata max8997_ldo11_[] = { |
@@ -822,6 +823,7 @@ static struct regulator_init_data __initdata max8997_esafeout1_data = { | |||
822 | .constraints = { | 823 | .constraints = { |
823 | .name = "SAFEOUT1", | 824 | .name = "SAFEOUT1", |
824 | .valid_ops_mask = REGULATOR_CHANGE_STATUS, | 825 | .valid_ops_mask = REGULATOR_CHANGE_STATUS, |
826 | .always_on = 1, | ||
825 | .state_mem = { | 827 | .state_mem = { |
826 | .disabled = 1, | 828 | .disabled = 1, |
827 | }, | 829 | }, |
@@ -1079,6 +1081,9 @@ static void __init nuri_ehci_init(void) | |||
1079 | s5p_ehci_set_platdata(pdata); | 1081 | s5p_ehci_set_platdata(pdata); |
1080 | } | 1082 | } |
1081 | 1083 | ||
1084 | /* USB OTG */ | ||
1085 | static struct s3c_hsotg_plat nuri_hsotg_pdata; | ||
1086 | |||
1082 | /* CAMERA */ | 1087 | /* CAMERA */ |
1083 | static struct regulator_consumer_supply cam_vt_cam15_supply = | 1088 | static struct regulator_consumer_supply cam_vt_cam15_supply = |
1084 | REGULATOR_SUPPLY("vdd_core", "6-003c"); | 1089 | REGULATOR_SUPPLY("vdd_core", "6-003c"); |
@@ -1291,6 +1296,7 @@ static struct platform_device *nuri_devices[] __initdata = { | |||
1291 | &s5p_device_mfc_l, | 1296 | &s5p_device_mfc_l, |
1292 | &s5p_device_mfc_r, | 1297 | &s5p_device_mfc_r, |
1293 | &s5p_device_fimc_md, | 1298 | &s5p_device_fimc_md, |
1299 | &s3c_device_usb_hsotg, | ||
1294 | 1300 | ||
1295 | /* NURI Devices */ | 1301 | /* NURI Devices */ |
1296 | &nuri_gpio_keys, | 1302 | &nuri_gpio_keys, |
@@ -1339,6 +1345,7 @@ static void __init nuri_machine_init(void) | |||
1339 | nuri_camera_init(); | 1345 | nuri_camera_init(); |
1340 | 1346 | ||
1341 | nuri_ehci_init(); | 1347 | nuri_ehci_init(); |
1348 | s3c_hsotg_set_platdata(&nuri_hsotg_pdata); | ||
1342 | 1349 | ||
1343 | /* Last */ | 1350 | /* Last */ |
1344 | platform_add_devices(nuri_devices, ARRAY_SIZE(nuri_devices)); | 1351 | platform_add_devices(nuri_devices, ARRAY_SIZE(nuri_devices)); |