diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-03-17 22:08:06 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-03-17 22:08:06 -0400 |
| commit | 411f5c7a502769ccc0377c5ba36cb0b283847ba8 (patch) | |
| tree | 2c3a29671e3f923de48c55f94194849264a7bf53 /arch/arm/mach-s5pv210 | |
| parent | 6d7ed21d17e640b120b902a314143e5ef4917a70 (diff) | |
| parent | 9ced9f03d12d7539e86b0bff5bc750153c976c34 (diff) | |
Merge branch 'devel-stable' of master.kernel.org:/home/rmk/linux-2.6-arm
* 'devel-stable' of master.kernel.org:/home/rmk/linux-2.6-arm: (289 commits)
davinci: DM644x EVM: register MUSB device earlier
davinci: add spi devices on tnetv107x evm
davinci: add ssp config for tnetv107x evm board
davinci: add tnetv107x ssp platform device
spi: add ti-ssp spi master driver
mfd: add driver for sequencer serial port
ARM: EXYNOS4: Implement Clock gating for System MMU
ARM: EXYNOS4: Enhancement of System MMU driver
ARM: EXYNOS4: Add support for gpio interrupts
ARM: S5P: Add function to register gpio interrupt bank data
ARM: S5P: Cleanup S5P gpio interrupt code
ARM: EXYNOS4: Add missing GPYx banks
ARM: S3C64XX: Fix section mismatch from cpufreq init
ARM: EXYNOS4: Add keypad device to the SMDKV310
ARM: EXYNOS4: Update clocks for keypad
ARM: EXYNOS4: Update keypad base address
ARM: EXYNOS4: Add keypad device helpers
ARM: EXYNOS4: Add support for SATA on ARMLEX4210
plat-nomadik: make GPIO interrupts work with cpuidle ApSleep
mach-u300: define a dummy filter function for coh901318
...
Fix up various conflicts in
- arch/arm/mach-exynos4/cpufreq.c
- arch/arm/mach-mxs/gpio.c
- drivers/net/Kconfig
- drivers/tty/serial/Kconfig
- drivers/tty/serial/Makefile
- drivers/usb/gadget/fsl_mxc_udc.c
- drivers/video/Kconfig
Diffstat (limited to 'arch/arm/mach-s5pv210')
| -rw-r--r-- | arch/arm/mach-s5pv210/Kconfig | 7 | ||||
| -rw-r--r-- | arch/arm/mach-s5pv210/Makefile | 1 | ||||
| -rw-r--r-- | arch/arm/mach-s5pv210/gpiolib.c | 1 | ||||
| -rw-r--r-- | arch/arm/mach-s5pv210/include/mach/regs-clock.h | 5 | ||||
| -rw-r--r-- | arch/arm/mach-s5pv210/mach-aquila.c | 56 | ||||
| -rw-r--r-- | arch/arm/mach-s5pv210/mach-goni.c | 107 | ||||
| -rw-r--r-- | arch/arm/mach-s5pv210/mach-smdkc110.c | 4 | ||||
| -rw-r--r-- | arch/arm/mach-s5pv210/mach-smdkv210.c | 47 | ||||
| -rw-r--r-- | arch/arm/mach-s5pv210/mach-torbreck.c | 4 | ||||
| -rw-r--r-- | arch/arm/mach-s5pv210/setup-fimc.c | 43 |
10 files changed, 190 insertions, 85 deletions
diff --git a/arch/arm/mach-s5pv210/Kconfig b/arch/arm/mach-s5pv210/Kconfig index 53aabef1e9c..37b5a97594a 100644 --- a/arch/arm/mach-s5pv210/Kconfig +++ b/arch/arm/mach-s5pv210/Kconfig | |||
| @@ -13,6 +13,7 @@ config CPU_S5PV210 | |||
| 13 | bool | 13 | bool |
| 14 | select S3C_PL330_DMA | 14 | select S3C_PL330_DMA |
| 15 | select S5P_EXT_INT | 15 | select S5P_EXT_INT |
| 16 | select S5P_HRT | ||
| 16 | select S5PV210_PM if PM | 17 | select S5PV210_PM if PM |
| 17 | help | 18 | help |
| 18 | Enable S5PV210 CPU support | 19 | Enable S5PV210 CPU support |
| @@ -53,6 +54,11 @@ config S5PV210_SETUP_SDHCI_GPIO | |||
| 53 | help | 54 | help |
| 54 | Common setup code for SDHCI gpio. | 55 | Common setup code for SDHCI gpio. |
| 55 | 56 | ||
| 57 | config S5PV210_SETUP_FIMC | ||
| 58 | bool | ||
| 59 | help | ||
| 60 | Common setup code for the camera interfaces. | ||
| 61 | |||
| 56 | menu "S5PC110 Machines" | 62 | menu "S5PC110 Machines" |
| 57 | 63 | ||
| 58 | config MACH_AQUILA | 64 | config MACH_AQUILA |
| @@ -130,6 +136,7 @@ config MACH_SMDKV210 | |||
| 130 | select SAMSUNG_DEV_ADC | 136 | select SAMSUNG_DEV_ADC |
| 131 | select SAMSUNG_DEV_IDE | 137 | select SAMSUNG_DEV_IDE |
| 132 | select SAMSUNG_DEV_KEYPAD | 138 | select SAMSUNG_DEV_KEYPAD |
| 139 | select SAMSUNG_DEV_PWM | ||
| 133 | select SAMSUNG_DEV_TS | 140 | select SAMSUNG_DEV_TS |
| 134 | select S5PV210_SETUP_FB_24BPP | 141 | select S5PV210_SETUP_FB_24BPP |
| 135 | select S5PV210_SETUP_I2C1 | 142 | select S5PV210_SETUP_I2C1 |
diff --git a/arch/arm/mach-s5pv210/Makefile b/arch/arm/mach-s5pv210/Makefile index ff1a0db57a2..11f17907b4e 100644 --- a/arch/arm/mach-s5pv210/Makefile +++ b/arch/arm/mach-s5pv210/Makefile | |||
| @@ -31,6 +31,7 @@ obj-y += dev-audio.o | |||
| 31 | obj-$(CONFIG_S3C64XX_DEV_SPI) += dev-spi.o | 31 | obj-$(CONFIG_S3C64XX_DEV_SPI) += dev-spi.o |
| 32 | 32 | ||
| 33 | obj-$(CONFIG_S5PV210_SETUP_FB_24BPP) += setup-fb-24bpp.o | 33 | obj-$(CONFIG_S5PV210_SETUP_FB_24BPP) += setup-fb-24bpp.o |
| 34 | obj-$(CONFIG_S5PV210_SETUP_FIMC) += setup-fimc.o | ||
| 34 | obj-$(CONFIG_S5PV210_SETUP_I2C1) += setup-i2c1.o | 35 | obj-$(CONFIG_S5PV210_SETUP_I2C1) += setup-i2c1.o |
| 35 | obj-$(CONFIG_S5PV210_SETUP_I2C2) += setup-i2c2.o | 36 | obj-$(CONFIG_S5PV210_SETUP_I2C2) += setup-i2c2.o |
| 36 | obj-$(CONFIG_S5PV210_SETUP_IDE) += setup-ide.o | 37 | obj-$(CONFIG_S5PV210_SETUP_IDE) += setup-ide.o |
diff --git a/arch/arm/mach-s5pv210/gpiolib.c b/arch/arm/mach-s5pv210/gpiolib.c index ab673effd76..1ba20a703e0 100644 --- a/arch/arm/mach-s5pv210/gpiolib.c +++ b/arch/arm/mach-s5pv210/gpiolib.c | |||
| @@ -281,6 +281,7 @@ static __init int s5pv210_gpiolib_init(void) | |||
| 281 | } | 281 | } |
| 282 | 282 | ||
| 283 | samsung_gpiolib_add_4bit_chips(s5pv210_gpio_4bit, nr_chips); | 283 | samsung_gpiolib_add_4bit_chips(s5pv210_gpio_4bit, nr_chips); |
| 284 | s5p_register_gpioint_bank(IRQ_GPIOINT, 0, S5P_GPIOINT_GROUP_MAXNR); | ||
| 284 | 285 | ||
| 285 | return 0; | 286 | return 0; |
| 286 | } | 287 | } |
diff --git a/arch/arm/mach-s5pv210/include/mach/regs-clock.h b/arch/arm/mach-s5pv210/include/mach/regs-clock.h index 4c45b74def5..78925c51634 100644 --- a/arch/arm/mach-s5pv210/include/mach/regs-clock.h +++ b/arch/arm/mach-s5pv210/include/mach/regs-clock.h | |||
| @@ -146,6 +146,10 @@ | |||
| 146 | #define S5P_OM_STAT S5P_CLKREG(0xE100) | 146 | #define S5P_OM_STAT S5P_CLKREG(0xE100) |
| 147 | #define S5P_USB_PHY_CONTROL S5P_CLKREG(0xE80C) | 147 | #define S5P_USB_PHY_CONTROL S5P_CLKREG(0xE80C) |
| 148 | #define S5P_DAC_CONTROL S5P_CLKREG(0xE810) | 148 | #define S5P_DAC_CONTROL S5P_CLKREG(0xE810) |
| 149 | #define S5P_MIPI_DPHY_CONTROL(x) S5P_CLKREG(0xE814) | ||
| 150 | #define S5P_MIPI_DPHY_ENABLE (1 << 0) | ||
| 151 | #define S5P_MIPI_DPHY_SRESETN (1 << 1) | ||
| 152 | #define S5P_MIPI_DPHY_MRESETN (1 << 2) | ||
| 149 | 153 | ||
| 150 | #define S5P_INFORM0 S5P_CLKREG(0xF000) | 154 | #define S5P_INFORM0 S5P_CLKREG(0xF000) |
| 151 | #define S5P_INFORM1 S5P_CLKREG(0xF004) | 155 | #define S5P_INFORM1 S5P_CLKREG(0xF004) |
| @@ -161,7 +165,6 @@ | |||
| 161 | #define S5P_MDNIE_SEL S5P_CLKREG(0x7008) | 165 | #define S5P_MDNIE_SEL S5P_CLKREG(0x7008) |
| 162 | #define S5P_MIPI_PHY_CON0 S5P_CLKREG(0x7200) | 166 | #define S5P_MIPI_PHY_CON0 S5P_CLKREG(0x7200) |
| 163 | #define S5P_MIPI_PHY_CON1 S5P_CLKREG(0x7204) | 167 | #define S5P_MIPI_PHY_CON1 S5P_CLKREG(0x7204) |
| 164 | #define S5P_MIPI_DPHY_CONTROL S5P_CLKREG(0xE814) | ||
| 165 | 168 | ||
| 166 | #define S5P_IDLE_CFG_TL_MASK (3 << 30) | 169 | #define S5P_IDLE_CFG_TL_MASK (3 << 30) |
| 167 | #define S5P_IDLE_CFG_TM_MASK (3 << 28) | 170 | #define S5P_IDLE_CFG_TM_MASK (3 << 28) |
diff --git a/arch/arm/mach-s5pv210/mach-aquila.c b/arch/arm/mach-s5pv210/mach-aquila.c index 557add4fc56..4e1d8ff5ae5 100644 --- a/arch/arm/mach-s5pv210/mach-aquila.c +++ b/arch/arm/mach-s5pv210/mach-aquila.c | |||
| @@ -39,6 +39,7 @@ | |||
| 39 | #include <plat/fb.h> | 39 | #include <plat/fb.h> |
| 40 | #include <plat/fimc-core.h> | 40 | #include <plat/fimc-core.h> |
| 41 | #include <plat/sdhci.h> | 41 | #include <plat/sdhci.h> |
| 42 | #include <plat/s5p-time.h> | ||
| 42 | 43 | ||
| 43 | /* Following are default values for UCON, ULCON and UFCON UART registers */ | 44 | /* Following are default values for UCON, ULCON and UFCON UART registers */ |
| 44 | #define AQUILA_UCON_DEFAULT (S3C2410_UCON_TXILEVEL | \ | 45 | #define AQUILA_UCON_DEFAULT (S3C2410_UCON_TXILEVEL | \ |
| @@ -296,13 +297,11 @@ static struct regulator_init_data aquila_ldo17_data = { | |||
| 296 | }; | 297 | }; |
| 297 | 298 | ||
| 298 | /* BUCK */ | 299 | /* BUCK */ |
| 299 | static struct regulator_consumer_supply buck1_consumer[] = { | 300 | static struct regulator_consumer_supply buck1_consumer = |
| 300 | { .supply = "vddarm", }, | 301 | REGULATOR_SUPPLY("vddarm", NULL); |
| 301 | }; | ||
| 302 | 302 | ||
| 303 | static struct regulator_consumer_supply buck2_consumer[] = { | 303 | static struct regulator_consumer_supply buck2_consumer = |
| 304 | { .supply = "vddint", }, | 304 | REGULATOR_SUPPLY("vddint", NULL); |
| 305 | }; | ||
| 306 | 305 | ||
| 307 | static struct regulator_init_data aquila_buck1_data = { | 306 | static struct regulator_init_data aquila_buck1_data = { |
| 308 | .constraints = { | 307 | .constraints = { |
| @@ -313,8 +312,8 @@ static struct regulator_init_data aquila_buck1_data = { | |||
| 313 | .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE | | 312 | .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE | |
| 314 | REGULATOR_CHANGE_STATUS, | 313 | REGULATOR_CHANGE_STATUS, |
| 315 | }, | 314 | }, |
| 316 | .num_consumer_supplies = ARRAY_SIZE(buck1_consumer), | 315 | .num_consumer_supplies = 1, |
| 317 | .consumer_supplies = buck1_consumer, | 316 | .consumer_supplies = &buck1_consumer, |
| 318 | }; | 317 | }; |
| 319 | 318 | ||
| 320 | static struct regulator_init_data aquila_buck2_data = { | 319 | static struct regulator_init_data aquila_buck2_data = { |
| @@ -326,8 +325,8 @@ static struct regulator_init_data aquila_buck2_data = { | |||
| 326 | .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE | | 325 | .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE | |
| 327 | REGULATOR_CHANGE_STATUS, | 326 | REGULATOR_CHANGE_STATUS, |
| 328 | }, | 327 | }, |
| 329 | .num_consumer_supplies = ARRAY_SIZE(buck2_consumer), | 328 | .num_consumer_supplies = 1, |
| 330 | .consumer_supplies = buck2_consumer, | 329 | .consumer_supplies = &buck2_consumer, |
| 331 | }; | 330 | }; |
| 332 | 331 | ||
| 333 | static struct regulator_init_data aquila_buck3_data = { | 332 | static struct regulator_init_data aquila_buck3_data = { |
| @@ -391,26 +390,14 @@ static struct max8998_platform_data aquila_max8998_pdata = { | |||
| 391 | #endif | 390 | #endif |
| 392 | 391 | ||
| 393 | static struct regulator_consumer_supply wm8994_fixed_voltage0_supplies[] = { | 392 | static struct regulator_consumer_supply wm8994_fixed_voltage0_supplies[] = { |
| 394 | { | 393 | REGULATOR_SUPPLY("DBVDD", "5-001a"), |
| 395 | .dev_name = "5-001a", | 394 | REGULATOR_SUPPLY("AVDD2", "5-001a"), |
| 396 | .supply = "DBVDD", | 395 | REGULATOR_SUPPLY("CPVDD", "5-001a"), |
| 397 | }, { | ||
| 398 | .dev_name = "5-001a", | ||
| 399 | .supply = "AVDD2", | ||
| 400 | }, { | ||
| 401 | .dev_name = "5-001a", | ||
| 402 | .supply = "CPVDD", | ||
| 403 | }, | ||
| 404 | }; | 396 | }; |
| 405 | 397 | ||
| 406 | static struct regulator_consumer_supply wm8994_fixed_voltage1_supplies[] = { | 398 | static struct regulator_consumer_supply wm8994_fixed_voltage1_supplies[] = { |
| 407 | { | 399 | REGULATOR_SUPPLY("SPKVDD1", "5-001a"), |
| 408 | .dev_name = "5-001a", | 400 | REGULATOR_SUPPLY("SPKVDD2", "5-001a"), |
| 409 | .supply = "SPKVDD1", | ||
| 410 | }, { | ||
| 411 | .dev_name = "5-001a", | ||
| 412 | .supply = "SPKVDD2", | ||
| 413 | }, | ||
| 414 | }; | 401 | }; |
| 415 | 402 | ||
| 416 | static struct regulator_init_data wm8994_fixed_voltage0_init_data = { | 403 | static struct regulator_init_data wm8994_fixed_voltage0_init_data = { |
| @@ -459,15 +446,11 @@ static struct platform_device wm8994_fixed_voltage1 = { | |||
| 459 | }, | 446 | }, |
| 460 | }; | 447 | }; |
| 461 | 448 | ||
| 462 | static struct regulator_consumer_supply wm8994_avdd1_supply = { | 449 | static struct regulator_consumer_supply wm8994_avdd1_supply = |
| 463 | .dev_name = "5-001a", | 450 | REGULATOR_SUPPLY("AVDD1", "5-001a"); |
| 464 | .supply = "AVDD1", | ||
| 465 | }; | ||
| 466 | 451 | ||
| 467 | static struct regulator_consumer_supply wm8994_dcvdd_supply = { | 452 | static struct regulator_consumer_supply wm8994_dcvdd_supply = |
| 468 | .dev_name = "5-001a", | 453 | REGULATOR_SUPPLY("DCVDD", "5-001a"); |
| 469 | .supply = "DCVDD", | ||
| 470 | }; | ||
| 471 | 454 | ||
| 472 | static struct regulator_init_data wm8994_ldo1_data = { | 455 | static struct regulator_init_data wm8994_ldo1_data = { |
| 473 | .constraints = { | 456 | .constraints = { |
| @@ -664,6 +647,7 @@ static void __init aquila_map_io(void) | |||
| 664 | s5p_init_io(NULL, 0, S5P_VA_CHIPID); | 647 | s5p_init_io(NULL, 0, S5P_VA_CHIPID); |
| 665 | s3c24xx_init_clocks(24000000); | 648 | s3c24xx_init_clocks(24000000); |
| 666 | s3c24xx_init_uarts(aquila_uartcfgs, ARRAY_SIZE(aquila_uartcfgs)); | 649 | s3c24xx_init_uarts(aquila_uartcfgs, ARRAY_SIZE(aquila_uartcfgs)); |
| 650 | s5p_set_timer_source(S5P_PWM3, S5P_PWM4); | ||
| 667 | } | 651 | } |
| 668 | 652 | ||
| 669 | static void __init aquila_machine_init(void) | 653 | static void __init aquila_machine_init(void) |
| @@ -698,5 +682,5 @@ MACHINE_START(AQUILA, "Aquila") | |||
| 698 | .init_irq = s5pv210_init_irq, | 682 | .init_irq = s5pv210_init_irq, |
| 699 | .map_io = aquila_map_io, | 683 | .map_io = aquila_map_io, |
| 700 | .init_machine = aquila_machine_init, | 684 | .init_machine = aquila_machine_init, |
| 701 | .timer = &s3c24xx_timer, | 685 | .timer = &s5p_timer, |
| 702 | MACHINE_END | 686 | MACHINE_END |
diff --git a/arch/arm/mach-s5pv210/mach-goni.c b/arch/arm/mach-s5pv210/mach-goni.c index 056f5c769b0..243291722c6 100644 --- a/arch/arm/mach-s5pv210/mach-goni.c +++ b/arch/arm/mach-s5pv210/mach-goni.c | |||
| @@ -45,6 +45,7 @@ | |||
| 45 | #include <plat/keypad.h> | 45 | #include <plat/keypad.h> |
| 46 | #include <plat/sdhci.h> | 46 | #include <plat/sdhci.h> |
| 47 | #include <plat/clock.h> | 47 | #include <plat/clock.h> |
| 48 | #include <plat/s5p-time.h> | ||
| 48 | 49 | ||
| 49 | /* Following are default values for UCON, ULCON and UFCON UART registers */ | 50 | /* Following are default values for UCON, ULCON and UFCON UART registers */ |
| 50 | #define GONI_UCON_DEFAULT (S3C2410_UCON_TXILEVEL | \ | 51 | #define GONI_UCON_DEFAULT (S3C2410_UCON_TXILEVEL | \ |
| @@ -108,6 +109,8 @@ static struct s3c_fb_pd_win goni_fb_win0 = { | |||
| 108 | }, | 109 | }, |
| 109 | .max_bpp = 32, | 110 | .max_bpp = 32, |
| 110 | .default_bpp = 16, | 111 | .default_bpp = 16, |
| 112 | .virtual_x = 480, | ||
| 113 | .virtual_y = 2 * 800, | ||
| 111 | }; | 114 | }; |
| 112 | 115 | ||
| 113 | static struct s3c_fb_platdata goni_lcd_pdata __initdata = { | 116 | static struct s3c_fb_platdata goni_lcd_pdata __initdata = { |
| @@ -269,10 +272,30 @@ static void __init goni_tsp_init(void) | |||
| 269 | /* MAX8998 regulators */ | 272 | /* MAX8998 regulators */ |
| 270 | #if defined(CONFIG_REGULATOR_MAX8998) || defined(CONFIG_REGULATOR_MAX8998_MODULE) | 273 | #if defined(CONFIG_REGULATOR_MAX8998) || defined(CONFIG_REGULATOR_MAX8998_MODULE) |
| 271 | 274 | ||
| 275 | static struct regulator_consumer_supply goni_ldo3_consumers[] = { | ||
| 276 | REGULATOR_SUPPLY("vusb_a", "s3c-hsotg"), | ||
| 277 | }; | ||
| 278 | |||
| 272 | static struct regulator_consumer_supply goni_ldo5_consumers[] = { | 279 | static struct regulator_consumer_supply goni_ldo5_consumers[] = { |
| 273 | REGULATOR_SUPPLY("vmmc", "s3c-sdhci.0"), | 280 | REGULATOR_SUPPLY("vmmc", "s3c-sdhci.0"), |
| 274 | }; | 281 | }; |
| 275 | 282 | ||
| 283 | static struct regulator_consumer_supply goni_ldo8_consumers[] = { | ||
| 284 | REGULATOR_SUPPLY("vusb_d", "s3c-hsotg"), | ||
| 285 | }; | ||
| 286 | |||
| 287 | static struct regulator_consumer_supply goni_ldo11_consumers[] = { | ||
| 288 | REGULATOR_SUPPLY("vddio", "0-0030"), /* "CAM_IO_2.8V" */ | ||
| 289 | }; | ||
| 290 | |||
| 291 | static struct regulator_consumer_supply goni_ldo13_consumers[] = { | ||
| 292 | REGULATOR_SUPPLY("vdda", "0-0030"), /* "CAM_A_2.8V" */ | ||
| 293 | }; | ||
| 294 | |||
| 295 | static struct regulator_consumer_supply goni_ldo14_consumers[] = { | ||
| 296 | REGULATOR_SUPPLY("vdd_core", "0-0030"), /* "CAM_CIF_1.8V" */ | ||
| 297 | }; | ||
| 298 | |||
| 276 | static struct regulator_init_data goni_ldo2_data = { | 299 | static struct regulator_init_data goni_ldo2_data = { |
| 277 | .constraints = { | 300 | .constraints = { |
| 278 | .name = "VALIVE_1.1V", | 301 | .name = "VALIVE_1.1V", |
| @@ -292,8 +315,10 @@ static struct regulator_init_data goni_ldo3_data = { | |||
| 292 | .min_uV = 1100000, | 315 | .min_uV = 1100000, |
| 293 | .max_uV = 1100000, | 316 | .max_uV = 1100000, |
| 294 | .apply_uV = 1, | 317 | .apply_uV = 1, |
| 295 | .always_on = 1, | 318 | .valid_ops_mask = REGULATOR_CHANGE_STATUS, |
| 296 | }, | 319 | }, |
| 320 | .num_consumer_supplies = ARRAY_SIZE(goni_ldo3_consumers), | ||
| 321 | .consumer_supplies = goni_ldo3_consumers, | ||
| 297 | }; | 322 | }; |
| 298 | 323 | ||
| 299 | static struct regulator_init_data goni_ldo4_data = { | 324 | static struct regulator_init_data goni_ldo4_data = { |
| @@ -311,6 +336,7 @@ static struct regulator_init_data goni_ldo5_data = { | |||
| 311 | .min_uV = 2800000, | 336 | .min_uV = 2800000, |
| 312 | .max_uV = 2800000, | 337 | .max_uV = 2800000, |
| 313 | .apply_uV = 1, | 338 | .apply_uV = 1, |
| 339 | .valid_ops_mask = REGULATOR_CHANGE_STATUS, | ||
| 314 | }, | 340 | }, |
| 315 | .num_consumer_supplies = ARRAY_SIZE(goni_ldo5_consumers), | 341 | .num_consumer_supplies = ARRAY_SIZE(goni_ldo5_consumers), |
| 316 | .consumer_supplies = goni_ldo5_consumers, | 342 | .consumer_supplies = goni_ldo5_consumers, |
| @@ -341,8 +367,10 @@ static struct regulator_init_data goni_ldo8_data = { | |||
| 341 | .min_uV = 3300000, | 367 | .min_uV = 3300000, |
| 342 | .max_uV = 3300000, | 368 | .max_uV = 3300000, |
| 343 | .apply_uV = 1, | 369 | .apply_uV = 1, |
| 344 | .always_on = 1, | 370 | .valid_ops_mask = REGULATOR_CHANGE_STATUS, |
| 345 | }, | 371 | }, |
| 372 | .num_consumer_supplies = ARRAY_SIZE(goni_ldo8_consumers), | ||
| 373 | .consumer_supplies = goni_ldo8_consumers, | ||
| 346 | }; | 374 | }; |
| 347 | 375 | ||
| 348 | static struct regulator_init_data goni_ldo9_data = { | 376 | static struct regulator_init_data goni_ldo9_data = { |
| @@ -351,7 +379,6 @@ static struct regulator_init_data goni_ldo9_data = { | |||
| 351 | .min_uV = 2800000, | 379 | .min_uV = 2800000, |
| 352 | .max_uV = 2800000, | 380 | .max_uV = 2800000, |
| 353 | .apply_uV = 1, | 381 | .apply_uV = 1, |
| 354 | .always_on = 1, | ||
| 355 | }, | 382 | }, |
| 356 | }; | 383 | }; |
| 357 | 384 | ||
| @@ -371,8 +398,10 @@ static struct regulator_init_data goni_ldo11_data = { | |||
| 371 | .min_uV = 2800000, | 398 | .min_uV = 2800000, |
| 372 | .max_uV = 2800000, | 399 | .max_uV = 2800000, |
| 373 | .apply_uV = 1, | 400 | .apply_uV = 1, |
| 374 | .always_on = 1, | 401 | .valid_ops_mask = REGULATOR_CHANGE_STATUS, |
| 375 | }, | 402 | }, |
| 403 | .num_consumer_supplies = ARRAY_SIZE(goni_ldo11_consumers), | ||
| 404 | .consumer_supplies = goni_ldo11_consumers, | ||
| 376 | }; | 405 | }; |
| 377 | 406 | ||
| 378 | static struct regulator_init_data goni_ldo12_data = { | 407 | static struct regulator_init_data goni_ldo12_data = { |
| @@ -381,7 +410,6 @@ static struct regulator_init_data goni_ldo12_data = { | |||
| 381 | .min_uV = 1200000, | 410 | .min_uV = 1200000, |
| 382 | .max_uV = 1200000, | 411 | .max_uV = 1200000, |
| 383 | .apply_uV = 1, | 412 | .apply_uV = 1, |
| 384 | .always_on = 1, | ||
| 385 | }, | 413 | }, |
| 386 | }; | 414 | }; |
| 387 | 415 | ||
| @@ -391,8 +419,10 @@ static struct regulator_init_data goni_ldo13_data = { | |||
| 391 | .min_uV = 2800000, | 419 | .min_uV = 2800000, |
| 392 | .max_uV = 2800000, | 420 | .max_uV = 2800000, |
| 393 | .apply_uV = 1, | 421 | .apply_uV = 1, |
| 394 | .always_on = 1, | 422 | .valid_ops_mask = REGULATOR_CHANGE_STATUS, |
| 395 | }, | 423 | }, |
| 424 | .num_consumer_supplies = ARRAY_SIZE(goni_ldo13_consumers), | ||
| 425 | .consumer_supplies = goni_ldo13_consumers, | ||
| 396 | }; | 426 | }; |
| 397 | 427 | ||
| 398 | static struct regulator_init_data goni_ldo14_data = { | 428 | static struct regulator_init_data goni_ldo14_data = { |
| @@ -401,8 +431,10 @@ static struct regulator_init_data goni_ldo14_data = { | |||
| 401 | .min_uV = 1800000, | 431 | .min_uV = 1800000, |
| 402 | .max_uV = 1800000, | 432 | .max_uV = 1800000, |
| 403 | .apply_uV = 1, | 433 | .apply_uV = 1, |
| 404 | .always_on = 1, | 434 | .valid_ops_mask = REGULATOR_CHANGE_STATUS, |
| 405 | }, | 435 | }, |
| 436 | .num_consumer_supplies = ARRAY_SIZE(goni_ldo14_consumers), | ||
| 437 | .consumer_supplies = goni_ldo14_consumers, | ||
| 406 | }; | 438 | }; |
| 407 | 439 | ||
| 408 | static struct regulator_init_data goni_ldo15_data = { | 440 | static struct regulator_init_data goni_ldo15_data = { |
| @@ -411,7 +443,6 @@ static struct regulator_init_data goni_ldo15_data = { | |||
| 411 | .min_uV = 3300000, | 443 | .min_uV = 3300000, |
| 412 | .max_uV = 3300000, | 444 | .max_uV = 3300000, |
| 413 | .apply_uV = 1, | 445 | .apply_uV = 1, |
| 414 | .always_on = 1, | ||
| 415 | }, | 446 | }, |
| 416 | }; | 447 | }; |
| 417 | 448 | ||
| @@ -421,7 +452,6 @@ static struct regulator_init_data goni_ldo16_data = { | |||
| 421 | .min_uV = 1800000, | 452 | .min_uV = 1800000, |
| 422 | .max_uV = 1800000, | 453 | .max_uV = 1800000, |
| 423 | .apply_uV = 1, | 454 | .apply_uV = 1, |
| 424 | .always_on = 1, | ||
| 425 | }, | 455 | }, |
| 426 | }; | 456 | }; |
| 427 | 457 | ||
| @@ -436,13 +466,11 @@ static struct regulator_init_data goni_ldo17_data = { | |||
| 436 | }; | 466 | }; |
| 437 | 467 | ||
| 438 | /* BUCK */ | 468 | /* BUCK */ |
| 439 | static struct regulator_consumer_supply buck1_consumer[] = { | 469 | static struct regulator_consumer_supply buck1_consumer = |
| 440 | { .supply = "vddarm", }, | 470 | REGULATOR_SUPPLY("vddarm", NULL); |
| 441 | }; | ||
| 442 | 471 | ||
| 443 | static struct regulator_consumer_supply buck2_consumer[] = { | 472 | static struct regulator_consumer_supply buck2_consumer = |
| 444 | { .supply = "vddint", }, | 473 | REGULATOR_SUPPLY("vddint", NULL); |
| 445 | }; | ||
| 446 | 474 | ||
| 447 | static struct regulator_init_data goni_buck1_data = { | 475 | static struct regulator_init_data goni_buck1_data = { |
| 448 | .constraints = { | 476 | .constraints = { |
| @@ -453,8 +481,8 @@ static struct regulator_init_data goni_buck1_data = { | |||
| 453 | .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE | | 481 | .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE | |
| 454 | REGULATOR_CHANGE_STATUS, | 482 | REGULATOR_CHANGE_STATUS, |
| 455 | }, | 483 | }, |
| 456 | .num_consumer_supplies = ARRAY_SIZE(buck1_consumer), | 484 | .num_consumer_supplies = 1, |
| 457 | .consumer_supplies = buck1_consumer, | 485 | .consumer_supplies = &buck1_consumer, |
| 458 | }; | 486 | }; |
| 459 | 487 | ||
| 460 | static struct regulator_init_data goni_buck2_data = { | 488 | static struct regulator_init_data goni_buck2_data = { |
| @@ -466,8 +494,8 @@ static struct regulator_init_data goni_buck2_data = { | |||
| 466 | .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE | | 494 | .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE | |
| 467 | REGULATOR_CHANGE_STATUS, | 495 | REGULATOR_CHANGE_STATUS, |
| 468 | }, | 496 | }, |
| 469 | .num_consumer_supplies = ARRAY_SIZE(buck2_consumer), | 497 | .num_consumer_supplies = 1, |
| 470 | .consumer_supplies = buck2_consumer, | 498 | .consumer_supplies = &buck2_consumer, |
| 471 | }; | 499 | }; |
| 472 | 500 | ||
| 473 | static struct regulator_init_data goni_buck3_data = { | 501 | static struct regulator_init_data goni_buck3_data = { |
| @@ -531,26 +559,14 @@ static struct max8998_platform_data goni_max8998_pdata = { | |||
| 531 | #endif | 559 | #endif |
| 532 | 560 | ||
| 533 | static struct regulator_consumer_supply wm8994_fixed_voltage0_supplies[] = { | 561 | static struct regulator_consumer_supply wm8994_fixed_voltage0_supplies[] = { |
| 534 | { | 562 | REGULATOR_SUPPLY("DBVDD", "5-001a"), |
| 535 | .dev_name = "5-001a", | 563 | REGULATOR_SUPPLY("AVDD2", "5-001a"), |
| 536 | .supply = "DBVDD", | 564 | REGULATOR_SUPPLY("CPVDD", "5-001a"), |
| 537 | }, { | ||
| 538 | .dev_name = "5-001a", | ||
| 539 | .supply = "AVDD2", | ||
| 540 | }, { | ||
| 541 | .dev_name = "5-001a", | ||
| 542 | .supply = "CPVDD", | ||
| 543 | }, | ||
| 544 | }; | 565 | }; |
| 545 | 566 | ||
| 546 | static struct regulator_consumer_supply wm8994_fixed_voltage1_supplies[] = { | 567 | static struct regulator_consumer_supply wm8994_fixed_voltage1_supplies[] = { |
| 547 | { | 568 | REGULATOR_SUPPLY("SPKVDD1", "5-001a"), |
| 548 | .dev_name = "5-001a", | 569 | REGULATOR_SUPPLY("SPKVDD2", "5-001a"), |
| 549 | .supply = "SPKVDD1", | ||
| 550 | }, { | ||
| 551 | .dev_name = "5-001a", | ||
| 552 | .supply = "SPKVDD2", | ||
| 553 | }, | ||
| 554 | }; | 570 | }; |
| 555 | 571 | ||
| 556 | static struct regulator_init_data wm8994_fixed_voltage0_init_data = { | 572 | static struct regulator_init_data wm8994_fixed_voltage0_init_data = { |
| @@ -599,15 +615,11 @@ static struct platform_device wm8994_fixed_voltage1 = { | |||
| 599 | }, | 615 | }, |
| 600 | }; | 616 | }; |
| 601 | 617 | ||
| 602 | static struct regulator_consumer_supply wm8994_avdd1_supply = { | 618 | static struct regulator_consumer_supply wm8994_avdd1_supply = |
| 603 | .dev_name = "5-001a", | 619 | REGULATOR_SUPPLY("AVDD1", "5-001a"); |
| 604 | .supply = "AVDD1", | ||
| 605 | }; | ||
| 606 | 620 | ||
| 607 | static struct regulator_consumer_supply wm8994_dcvdd_supply = { | 621 | static struct regulator_consumer_supply wm8994_dcvdd_supply = |
| 608 | .dev_name = "5-001a", | 622 | REGULATOR_SUPPLY("DCVDD", "5-001a"); |
| 609 | .supply = "DCVDD", | ||
| 610 | }; | ||
| 611 | 623 | ||
| 612 | static struct regulator_init_data wm8994_ldo1_data = { | 624 | static struct regulator_init_data wm8994_ldo1_data = { |
| 613 | .constraints = { | 625 | .constraints = { |
| @@ -794,6 +806,7 @@ static struct platform_device *goni_devices[] __initdata = { | |||
| 794 | &goni_i2c_gpio5, | 806 | &goni_i2c_gpio5, |
| 795 | &mmc2_fixed_voltage, | 807 | &mmc2_fixed_voltage, |
| 796 | &goni_device_gpiokeys, | 808 | &goni_device_gpiokeys, |
| 809 | &s3c_device_i2c0, | ||
| 797 | &s5p_device_fimc0, | 810 | &s5p_device_fimc0, |
| 798 | &s5p_device_fimc1, | 811 | &s5p_device_fimc1, |
| 799 | &s5p_device_fimc2, | 812 | &s5p_device_fimc2, |
| @@ -823,6 +836,7 @@ static void __init goni_map_io(void) | |||
| 823 | s5p_init_io(NULL, 0, S5P_VA_CHIPID); | 836 | s5p_init_io(NULL, 0, S5P_VA_CHIPID); |
| 824 | s3c24xx_init_clocks(24000000); | 837 | s3c24xx_init_clocks(24000000); |
| 825 | s3c24xx_init_uarts(goni_uartcfgs, ARRAY_SIZE(goni_uartcfgs)); | 838 | s3c24xx_init_uarts(goni_uartcfgs, ARRAY_SIZE(goni_uartcfgs)); |
| 839 | s5p_set_timer_source(S5P_PWM3, S5P_PWM4); | ||
| 826 | } | 840 | } |
| 827 | 841 | ||
| 828 | static void __init goni_machine_init(void) | 842 | static void __init goni_machine_init(void) |
| @@ -830,6 +844,9 @@ static void __init goni_machine_init(void) | |||
| 830 | /* Radio: call before I2C 1 registeration */ | 844 | /* Radio: call before I2C 1 registeration */ |
| 831 | goni_radio_init(); | 845 | goni_radio_init(); |
| 832 | 846 | ||
| 847 | /* I2C0 */ | ||
| 848 | s3c_i2c0_set_platdata(NULL); | ||
| 849 | |||
| 833 | /* I2C1 */ | 850 | /* I2C1 */ |
| 834 | s3c_i2c1_set_platdata(NULL); | 851 | s3c_i2c1_set_platdata(NULL); |
| 835 | i2c_register_board_info(1, i2c1_devs, ARRAY_SIZE(i2c1_devs)); | 852 | i2c_register_board_info(1, i2c1_devs, ARRAY_SIZE(i2c1_devs)); |
| @@ -873,5 +890,5 @@ MACHINE_START(GONI, "GONI") | |||
| 873 | .init_irq = s5pv210_init_irq, | 890 | .init_irq = s5pv210_init_irq, |
| 874 | .map_io = goni_map_io, | 891 | .map_io = goni_map_io, |
| 875 | .init_machine = goni_machine_init, | 892 | .init_machine = goni_machine_init, |
| 876 | .timer = &s3c24xx_timer, | 893 | .timer = &s5p_timer, |
| 877 | MACHINE_END | 894 | MACHINE_END |
diff --git a/arch/arm/mach-s5pv210/mach-smdkc110.c b/arch/arm/mach-s5pv210/mach-smdkc110.c index ce11a02eabf..6c412c8cecc 100644 --- a/arch/arm/mach-s5pv210/mach-smdkc110.c +++ b/arch/arm/mach-s5pv210/mach-smdkc110.c | |||
| @@ -30,6 +30,7 @@ | |||
| 30 | #include <plat/ata.h> | 30 | #include <plat/ata.h> |
| 31 | #include <plat/iic.h> | 31 | #include <plat/iic.h> |
| 32 | #include <plat/pm.h> | 32 | #include <plat/pm.h> |
| 33 | #include <plat/s5p-time.h> | ||
| 33 | 34 | ||
| 34 | /* Following are default values for UCON, ULCON and UFCON UART registers */ | 35 | /* Following are default values for UCON, ULCON and UFCON UART registers */ |
| 35 | #define SMDKC110_UCON_DEFAULT (S3C2410_UCON_TXILEVEL | \ | 36 | #define SMDKC110_UCON_DEFAULT (S3C2410_UCON_TXILEVEL | \ |
| @@ -111,6 +112,7 @@ static void __init smdkc110_map_io(void) | |||
| 111 | s5p_init_io(NULL, 0, S5P_VA_CHIPID); | 112 | s5p_init_io(NULL, 0, S5P_VA_CHIPID); |
| 112 | s3c24xx_init_clocks(24000000); | 113 | s3c24xx_init_clocks(24000000); |
| 113 | s3c24xx_init_uarts(smdkv210_uartcfgs, ARRAY_SIZE(smdkv210_uartcfgs)); | 114 | s3c24xx_init_uarts(smdkv210_uartcfgs, ARRAY_SIZE(smdkv210_uartcfgs)); |
| 115 | s5p_set_timer_source(S5P_PWM3, S5P_PWM4); | ||
| 114 | } | 116 | } |
| 115 | 117 | ||
| 116 | static void __init smdkc110_machine_init(void) | 118 | static void __init smdkc110_machine_init(void) |
| @@ -138,5 +140,5 @@ MACHINE_START(SMDKC110, "SMDKC110") | |||
| 138 | .init_irq = s5pv210_init_irq, | 140 | .init_irq = s5pv210_init_irq, |
| 139 | .map_io = smdkc110_map_io, | 141 | .map_io = smdkc110_map_io, |
| 140 | .init_machine = smdkc110_machine_init, | 142 | .init_machine = smdkc110_machine_init, |
| 141 | .timer = &s3c24xx_timer, | 143 | .timer = &s5p_timer, |
| 142 | MACHINE_END | 144 | MACHINE_END |
diff --git a/arch/arm/mach-s5pv210/mach-smdkv210.c b/arch/arm/mach-s5pv210/mach-smdkv210.c index bc9fdb52a02..bc08ac42e7c 100644 --- a/arch/arm/mach-s5pv210/mach-smdkv210.c +++ b/arch/arm/mach-s5pv210/mach-smdkv210.c | |||
| @@ -18,6 +18,7 @@ | |||
| 18 | #include <linux/fb.h> | 18 | #include <linux/fb.h> |
| 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 | 22 | ||
| 22 | #include <asm/mach/arch.h> | 23 | #include <asm/mach/arch.h> |
| 23 | #include <asm/mach/map.h> | 24 | #include <asm/mach/map.h> |
| @@ -43,6 +44,8 @@ | |||
| 43 | #include <plat/keypad.h> | 44 | #include <plat/keypad.h> |
| 44 | #include <plat/pm.h> | 45 | #include <plat/pm.h> |
| 45 | #include <plat/fb.h> | 46 | #include <plat/fb.h> |
| 47 | #include <plat/gpio-cfg.h> | ||
| 48 | #include <plat/s5p-time.h> | ||
| 46 | 49 | ||
| 47 | /* Following are default values for UCON, ULCON and UFCON UART registers */ | 50 | /* Following are default values for UCON, ULCON and UFCON UART registers */ |
| 48 | #define SMDKV210_UCON_DEFAULT (S3C2410_UCON_TXILEVEL | \ | 51 | #define SMDKV210_UCON_DEFAULT (S3C2410_UCON_TXILEVEL | \ |
| @@ -208,6 +211,45 @@ static struct s3c_fb_platdata smdkv210_lcd0_pdata __initdata = { | |||
| 208 | .setup_gpio = s5pv210_fb_gpio_setup_24bpp, | 211 | .setup_gpio = s5pv210_fb_gpio_setup_24bpp, |
| 209 | }; | 212 | }; |
| 210 | 213 | ||
| 214 | static int smdkv210_backlight_init(struct device *dev) | ||
| 215 | { | ||
| 216 | int ret; | ||
| 217 | |||
| 218 | ret = gpio_request(S5PV210_GPD0(3), "Backlight"); | ||
| 219 | if (ret) { | ||
| 220 | printk(KERN_ERR "failed to request GPD for PWM-OUT 3\n"); | ||
| 221 | return ret; | ||
| 222 | } | ||
| 223 | |||
| 224 | /* Configure GPIO pin with S5PV210_GPD_0_3_TOUT_3 */ | ||
| 225 | s3c_gpio_cfgpin(S5PV210_GPD0(3), S3C_GPIO_SFN(2)); | ||
| 226 | |||
| 227 | return 0; | ||
| 228 | } | ||
| 229 | |||
| 230 | static void smdkv210_backlight_exit(struct device *dev) | ||
| 231 | { | ||
| 232 | s3c_gpio_cfgpin(S5PV210_GPD0(3), S3C_GPIO_OUTPUT); | ||
| 233 | gpio_free(S5PV210_GPD0(3)); | ||
| 234 | } | ||
| 235 | |||
| 236 | static struct platform_pwm_backlight_data smdkv210_backlight_data = { | ||
| 237 | .pwm_id = 3, | ||
| 238 | .max_brightness = 255, | ||
| 239 | .dft_brightness = 255, | ||
| 240 | .pwm_period_ns = 78770, | ||
| 241 | .init = smdkv210_backlight_init, | ||
| 242 | .exit = smdkv210_backlight_exit, | ||
| 243 | }; | ||
| 244 | |||
| 245 | static struct platform_device smdkv210_backlight_device = { | ||
| 246 | .name = "pwm-backlight", | ||
| 247 | .dev = { | ||
| 248 | .parent = &s3c_device_timer[3].dev, | ||
| 249 | .platform_data = &smdkv210_backlight_data, | ||
| 250 | }, | ||
| 251 | }; | ||
| 252 | |||
| 211 | static struct platform_device *smdkv210_devices[] __initdata = { | 253 | static struct platform_device *smdkv210_devices[] __initdata = { |
| 212 | &s3c_device_adc, | 254 | &s3c_device_adc, |
| 213 | &s3c_device_cfcon, | 255 | &s3c_device_cfcon, |
| @@ -229,6 +271,8 @@ static struct platform_device *smdkv210_devices[] __initdata = { | |||
| 229 | &samsung_device_keypad, | 271 | &samsung_device_keypad, |
| 230 | &smdkv210_dm9000, | 272 | &smdkv210_dm9000, |
| 231 | &smdkv210_lcd_lte480wv, | 273 | &smdkv210_lcd_lte480wv, |
| 274 | &s3c_device_timer[3], | ||
| 275 | &smdkv210_backlight_device, | ||
| 232 | }; | 276 | }; |
| 233 | 277 | ||
| 234 | static void __init smdkv210_dm9000_init(void) | 278 | static void __init smdkv210_dm9000_init(void) |
| @@ -272,6 +316,7 @@ static void __init smdkv210_map_io(void) | |||
| 272 | s5p_init_io(NULL, 0, S5P_VA_CHIPID); | 316 | s5p_init_io(NULL, 0, S5P_VA_CHIPID); |
| 273 | s3c24xx_init_clocks(24000000); | 317 | s3c24xx_init_clocks(24000000); |
| 274 | s3c24xx_init_uarts(smdkv210_uartcfgs, ARRAY_SIZE(smdkv210_uartcfgs)); | 318 | s3c24xx_init_uarts(smdkv210_uartcfgs, ARRAY_SIZE(smdkv210_uartcfgs)); |
| 319 | s5p_set_timer_source(S5P_PWM2, S5P_PWM4); | ||
| 275 | } | 320 | } |
| 276 | 321 | ||
| 277 | static void __init smdkv210_machine_init(void) | 322 | static void __init smdkv210_machine_init(void) |
| @@ -306,5 +351,5 @@ MACHINE_START(SMDKV210, "SMDKV210") | |||
| 306 | .init_irq = s5pv210_init_irq, | 351 | .init_irq = s5pv210_init_irq, |
| 307 | .map_io = smdkv210_map_io, | 352 | .map_io = smdkv210_map_io, |
| 308 | .init_machine = smdkv210_machine_init, | 353 | .init_machine = smdkv210_machine_init, |
| 309 | .timer = &s3c24xx_timer, | 354 | .timer = &s5p_timer, |
| 310 | MACHINE_END | 355 | MACHINE_END |
diff --git a/arch/arm/mach-s5pv210/mach-torbreck.c b/arch/arm/mach-s5pv210/mach-torbreck.c index 043c938806b..925fc0dc625 100644 --- a/arch/arm/mach-s5pv210/mach-torbreck.c +++ b/arch/arm/mach-s5pv210/mach-torbreck.c | |||
| @@ -27,6 +27,7 @@ | |||
| 27 | #include <plat/devs.h> | 27 | #include <plat/devs.h> |
| 28 | #include <plat/cpu.h> | 28 | #include <plat/cpu.h> |
| 29 | #include <plat/iic.h> | 29 | #include <plat/iic.h> |
| 30 | #include <plat/s5p-time.h> | ||
| 30 | 31 | ||
| 31 | /* Following are default values for UCON, ULCON and UFCON UART registers */ | 32 | /* Following are default values for UCON, ULCON and UFCON UART registers */ |
| 32 | #define TORBRECK_UCON_DEFAULT (S3C2410_UCON_TXILEVEL | \ | 33 | #define TORBRECK_UCON_DEFAULT (S3C2410_UCON_TXILEVEL | \ |
| @@ -104,6 +105,7 @@ static void __init torbreck_map_io(void) | |||
| 104 | s5p_init_io(NULL, 0, S5P_VA_CHIPID); | 105 | s5p_init_io(NULL, 0, S5P_VA_CHIPID); |
| 105 | s3c24xx_init_clocks(24000000); | 106 | s3c24xx_init_clocks(24000000); |
| 106 | s3c24xx_init_uarts(torbreck_uartcfgs, ARRAY_SIZE(torbreck_uartcfgs)); | 107 | s3c24xx_init_uarts(torbreck_uartcfgs, ARRAY_SIZE(torbreck_uartcfgs)); |
| 108 | s5p_set_timer_source(S5P_PWM3, S5P_PWM4); | ||
| 107 | } | 109 | } |
| 108 | 110 | ||
| 109 | static void __init torbreck_machine_init(void) | 111 | static void __init torbreck_machine_init(void) |
| @@ -127,5 +129,5 @@ MACHINE_START(TORBRECK, "TORBRECK") | |||
| 127 | .init_irq = s5pv210_init_irq, | 129 | .init_irq = s5pv210_init_irq, |
| 128 | .map_io = torbreck_map_io, | 130 | .map_io = torbreck_map_io, |
| 129 | .init_machine = torbreck_machine_init, | 131 | .init_machine = torbreck_machine_init, |
| 130 | .timer = &s3c24xx_timer, | 132 | .timer = &s5p_timer, |
| 131 | MACHINE_END | 133 | MACHINE_END |
diff --git a/arch/arm/mach-s5pv210/setup-fimc.c b/arch/arm/mach-s5pv210/setup-fimc.c new file mode 100644 index 00000000000..54cc5b11be0 --- /dev/null +++ b/arch/arm/mach-s5pv210/setup-fimc.c | |||
| @@ -0,0 +1,43 @@ | |||
| 1 | /* | ||
| 2 | * Copyright (C) 2011 Samsung Electronics Co., Ltd. | ||
| 3 | * | ||
| 4 | * S5PV210 camera interface GPIO configuration. | ||
| 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/gpio.h> | ||
| 12 | #include <plat/gpio-cfg.h> | ||
| 13 | #include <plat/camport.h> | ||
| 14 | |||
| 15 | int s5pv210_fimc_setup_gpio(enum s5p_camport_id id) | ||
| 16 | { | ||
| 17 | u32 gpio8, gpio5; | ||
| 18 | int ret; | ||
| 19 | |||
| 20 | switch (id) { | ||
| 21 | case S5P_CAMPORT_A: | ||
| 22 | gpio8 = S5PV210_GPE0(0); | ||
| 23 | gpio5 = S5PV210_GPE1(0); | ||
| 24 | break; | ||
| 25 | |||
| 26 | case S5P_CAMPORT_B: | ||
| 27 | gpio8 = S5PV210_GPJ0(0); | ||
| 28 | gpio5 = S5PV210_GPJ1(0); | ||
| 29 | break; | ||
| 30 | |||
| 31 | default: | ||
| 32 | WARN(1, "Wrong camport id: %d\n", id); | ||
| 33 | return -EINVAL; | ||
| 34 | } | ||
| 35 | |||
| 36 | ret = s3c_gpio_cfgall_range(gpio8, 8, S3C_GPIO_SFN(2), | ||
| 37 | S3C_GPIO_PULL_UP); | ||
| 38 | if (ret) | ||
| 39 | return ret; | ||
| 40 | |||
| 41 | return s3c_gpio_cfgall_range(gpio5, 5, S3C_GPIO_SFN(2), | ||
| 42 | S3C_GPIO_PULL_UP); | ||
| 43 | } | ||
