diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-06-07 07:18:59 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-06-07 07:18:59 -0400 |
commit | 7a4b35082c0f6997cb32b67a9cde169ec8e64706 (patch) | |
tree | c3fb875143d9c7862c2051bcd3447e26e354fdde /arch/arm | |
parent | defa4c738aa90e29e91eff43b0c1b3198367ce9c (diff) | |
parent | ea61623fe9badd5a195b3a0878e6d89a2f97ac0e (diff) |
Merge branch 'cpufreq-next' of git://git.linaro.org/people/vireshk/linux into pm-cpufreq
ARM cpufreq updates from Viresh Kumar.
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/boot/dts/exynos5250.dtsi | 15 | ||||
-rw-r--r-- | arch/arm/configs/exynos_defconfig | 54 | ||||
-rw-r--r-- | arch/arm/mach-exynos/Kconfig | 3 | ||||
-rw-r--r-- | arch/arm/mach-exynos/common.c | 39 | ||||
-rw-r--r-- | arch/arm/mach-exynos/common.h | 2 | ||||
-rw-r--r-- | arch/arm/mach-exynos/include/mach/pm-core.h | 14 | ||||
-rw-r--r-- | arch/arm/mach-exynos/mach-universal_c210.c | 5 | ||||
-rw-r--r-- | arch/arm/plat-samsung/devs.c | 6 |
8 files changed, 120 insertions, 18 deletions
diff --git a/arch/arm/boot/dts/exynos5250.dtsi b/arch/arm/boot/dts/exynos5250.dtsi index 98dfc3ea5c0b..0673524238a6 100644 --- a/arch/arm/boot/dts/exynos5250.dtsi +++ b/arch/arm/boot/dts/exynos5250.dtsi | |||
@@ -497,6 +497,21 @@ | |||
497 | clock-names = "usbhost"; | 497 | clock-names = "usbhost"; |
498 | }; | 498 | }; |
499 | 499 | ||
500 | usbphy@12130000 { | ||
501 | compatible = "samsung,exynos5250-usb2phy"; | ||
502 | reg = <0x12130000 0x100>; | ||
503 | clocks = <&clock 1>, <&clock 285>; | ||
504 | clock-names = "ext_xtal", "usbhost"; | ||
505 | #address-cells = <1>; | ||
506 | #size-cells = <1>; | ||
507 | ranges; | ||
508 | |||
509 | usbphy-sys { | ||
510 | reg = <0x10040704 0x8>, | ||
511 | <0x10050230 0x4>; | ||
512 | }; | ||
513 | }; | ||
514 | |||
500 | amba { | 515 | amba { |
501 | #address-cells = <1>; | 516 | #address-cells = <1>; |
502 | #size-cells = <1>; | 517 | #size-cells = <1>; |
diff --git a/arch/arm/configs/exynos_defconfig b/arch/arm/configs/exynos_defconfig index e40b435d204e..227abf9cc601 100644 --- a/arch/arm/configs/exynos_defconfig +++ b/arch/arm/configs/exynos_defconfig | |||
@@ -1,4 +1,4 @@ | |||
1 | CONFIG_EXPERIMENTAL=y | 1 | CONFIG_SYSVIPC=y |
2 | CONFIG_NO_HZ=y | 2 | CONFIG_NO_HZ=y |
3 | CONFIG_HIGH_RES_TIMERS=y | 3 | CONFIG_HIGH_RES_TIMERS=y |
4 | CONFIG_BLK_DEV_INITRD=y | 4 | CONFIG_BLK_DEV_INITRD=y |
@@ -7,17 +7,18 @@ CONFIG_MODULES=y | |||
7 | CONFIG_MODULE_UNLOAD=y | 7 | CONFIG_MODULE_UNLOAD=y |
8 | # CONFIG_BLK_DEV_BSG is not set | 8 | # CONFIG_BLK_DEV_BSG is not set |
9 | CONFIG_PARTITION_ADVANCED=y | 9 | CONFIG_PARTITION_ADVANCED=y |
10 | CONFIG_EFI_PARTITION=y | ||
11 | CONFIG_ARCH_EXYNOS=y | 10 | CONFIG_ARCH_EXYNOS=y |
12 | CONFIG_S3C_LOWLEVEL_UART_PORT=1 | 11 | CONFIG_S3C_LOWLEVEL_UART_PORT=3 |
13 | CONFIG_S3C24XX_PWM=y | 12 | CONFIG_S3C24XX_PWM=y |
14 | CONFIG_ARCH_EXYNOS5=y | 13 | CONFIG_ARCH_EXYNOS5=y |
15 | CONFIG_MACH_EXYNOS4_DT=y | 14 | CONFIG_MACH_EXYNOS4_DT=y |
16 | CONFIG_MACH_EXYNOS5_DT=y | ||
17 | CONFIG_SMP=y | 15 | CONFIG_SMP=y |
18 | CONFIG_NR_CPUS=2 | 16 | CONFIG_NR_CPUS=2 |
19 | CONFIG_PREEMPT=y | 17 | CONFIG_PREEMPT=y |
20 | CONFIG_AEABI=y | 18 | CONFIG_AEABI=y |
19 | CONFIG_HIGHMEM=y | ||
20 | CONFIG_ZBOOT_ROM_TEXT=0x0 | ||
21 | CONFIG_ZBOOT_ROM_BSS=0x0 | ||
21 | CONFIG_ARM_APPENDED_DTB=y | 22 | CONFIG_ARM_APPENDED_DTB=y |
22 | CONFIG_ARM_ATAG_DTB_COMPAT=y | 23 | CONFIG_ARM_ATAG_DTB_COMPAT=y |
23 | CONFIG_CMDLINE="root=/dev/ram0 rw ramdisk=8192 initrd=0x41000000,8M console=ttySAC1,115200 init=/linuxrc mem=256M" | 24 | CONFIG_CMDLINE="root=/dev/ram0 rw ramdisk=8192 initrd=0x41000000,8M console=ttySAC1,115200 init=/linuxrc mem=256M" |
@@ -30,35 +31,58 @@ CONFIG_NET_KEY=y | |||
30 | CONFIG_INET=y | 31 | CONFIG_INET=y |
31 | CONFIG_RFKILL_REGULATOR=y | 32 | CONFIG_RFKILL_REGULATOR=y |
32 | CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug" | 33 | CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug" |
34 | CONFIG_DEVTMPFS=y | ||
35 | CONFIG_DEVTMPFS_MOUNT=y | ||
33 | CONFIG_PROC_DEVICETREE=y | 36 | CONFIG_PROC_DEVICETREE=y |
34 | CONFIG_BLK_DEV_LOOP=y | 37 | CONFIG_BLK_DEV_LOOP=y |
38 | CONFIG_BLK_DEV_CRYPTOLOOP=y | ||
35 | CONFIG_BLK_DEV_RAM=y | 39 | CONFIG_BLK_DEV_RAM=y |
36 | CONFIG_BLK_DEV_RAM_SIZE=8192 | 40 | CONFIG_BLK_DEV_RAM_SIZE=8192 |
37 | CONFIG_SCSI=y | 41 | CONFIG_SCSI=y |
38 | CONFIG_BLK_DEV_SD=y | 42 | CONFIG_BLK_DEV_SD=y |
39 | CONFIG_CHR_DEV_SG=y | 43 | CONFIG_CHR_DEV_SG=y |
44 | CONFIG_MD=y | ||
45 | CONFIG_BLK_DEV_DM=y | ||
46 | CONFIG_DM_CRYPT=m | ||
40 | CONFIG_NETDEVICES=y | 47 | CONFIG_NETDEVICES=y |
41 | CONFIG_SMSC911X=y | 48 | CONFIG_SMSC911X=y |
42 | CONFIG_USB_USBNET=y | 49 | CONFIG_USB_USBNET=y |
43 | CONFIG_USB_NET_SMSC75XX=y | 50 | CONFIG_USB_NET_SMSC75XX=y |
44 | CONFIG_USB_NET_SMSC95XX=y | 51 | CONFIG_USB_NET_SMSC95XX=y |
45 | CONFIG_INPUT_EVDEV=y | 52 | CONFIG_INPUT_EVDEV=y |
46 | # CONFIG_INPUT_KEYBOARD is not set | 53 | CONFIG_KEYBOARD_CROS_EC=y |
47 | # CONFIG_INPUT_MOUSE is not set | 54 | # CONFIG_MOUSE_PS2 is not set |
55 | CONFIG_MOUSE_CYAPA=y | ||
48 | CONFIG_INPUT_TOUCHSCREEN=y | 56 | CONFIG_INPUT_TOUCHSCREEN=y |
49 | CONFIG_SERIAL_8250=y | 57 | CONFIG_SERIAL_8250=y |
50 | CONFIG_SERIAL_SAMSUNG=y | 58 | CONFIG_SERIAL_SAMSUNG=y |
51 | CONFIG_SERIAL_SAMSUNG_CONSOLE=y | 59 | CONFIG_SERIAL_SAMSUNG_CONSOLE=y |
52 | CONFIG_SERIAL_OF_PLATFORM=y | 60 | CONFIG_SERIAL_OF_PLATFORM=y |
53 | CONFIG_HW_RANDOM=y | 61 | CONFIG_HW_RANDOM=y |
62 | CONFIG_TCG_TPM=y | ||
63 | CONFIG_TCG_TIS_I2C_INFINEON=y | ||
54 | CONFIG_I2C=y | 64 | CONFIG_I2C=y |
65 | CONFIG_I2C_MUX=y | ||
66 | CONFIG_I2C_ARB_GPIO_CHALLENGE=y | ||
67 | CONFIG_I2C_S3C2410=y | ||
68 | CONFIG_DEBUG_GPIO=y | ||
55 | # CONFIG_HWMON is not set | 69 | # CONFIG_HWMON is not set |
70 | CONFIG_MFD_CROS_EC=y | ||
71 | CONFIG_MFD_CROS_EC_I2C=y | ||
72 | CONFIG_MFD_MAX77686=y | ||
73 | CONFIG_MFD_MAX8997=y | ||
74 | CONFIG_MFD_SEC_CORE=y | ||
56 | CONFIG_MFD_TPS65090=y | 75 | CONFIG_MFD_TPS65090=y |
57 | CONFIG_REGULATOR=y | 76 | CONFIG_REGULATOR=y |
58 | CONFIG_REGULATOR_FIXED_VOLTAGE=y | 77 | CONFIG_REGULATOR_FIXED_VOLTAGE=y |
59 | CONFIG_REGULATOR_GPIO=y | 78 | CONFIG_REGULATOR_GPIO=y |
79 | CONFIG_REGULATOR_MAX8997=y | ||
80 | CONFIG_REGULATOR_MAX77686=y | ||
81 | CONFIG_REGULATOR_S5M8767=y | ||
60 | CONFIG_REGULATOR_TPS65090=y | 82 | CONFIG_REGULATOR_TPS65090=y |
61 | CONFIG_FB=y | 83 | CONFIG_FB=y |
84 | CONFIG_FB_MODE_HELPERS=y | ||
85 | CONFIG_FB_SIMPLE=y | ||
62 | CONFIG_EXYNOS_VIDEO=y | 86 | CONFIG_EXYNOS_VIDEO=y |
63 | CONFIG_EXYNOS_MIPI_DSI=y | 87 | CONFIG_EXYNOS_MIPI_DSI=y |
64 | CONFIG_EXYNOS_DP=y | 88 | CONFIG_EXYNOS_DP=y |
@@ -67,6 +91,20 @@ CONFIG_FONTS=y | |||
67 | CONFIG_FONT_7x14=y | 91 | CONFIG_FONT_7x14=y |
68 | CONFIG_LOGO=y | 92 | CONFIG_LOGO=y |
69 | CONFIG_USB=y | 93 | CONFIG_USB=y |
94 | CONFIG_USB_EHCI_HCD=y | ||
95 | CONFIG_USB_EHCI_S5P=y | ||
96 | CONFIG_USB_STORAGE=y | ||
97 | CONFIG_USB_DWC3=y | ||
98 | CONFIG_USB_PHY=y | ||
99 | CONFIG_SAMSUNG_USB2PHY=y | ||
100 | CONFIG_SAMSUNG_USB3PHY=y | ||
101 | CONFIG_MMC=y | ||
102 | CONFIG_MMC_SDHCI=y | ||
103 | CONFIG_MMC_SDHCI_S3C=y | ||
104 | CONFIG_MMC_DW=y | ||
105 | CONFIG_MMC_DW_IDMAC=y | ||
106 | CONFIG_MMC_DW_EXYNOS=y | ||
107 | CONFIG_COMMON_CLK_MAX77686=y | ||
70 | CONFIG_EXT2_FS=y | 108 | CONFIG_EXT2_FS=y |
71 | CONFIG_EXT3_FS=y | 109 | CONFIG_EXT3_FS=y |
72 | CONFIG_EXT4_FS=y | 110 | CONFIG_EXT4_FS=y |
@@ -79,6 +117,7 @@ CONFIG_ROMFS_FS=y | |||
79 | CONFIG_NLS_CODEPAGE_437=y | 117 | CONFIG_NLS_CODEPAGE_437=y |
80 | CONFIG_NLS_ASCII=y | 118 | CONFIG_NLS_ASCII=y |
81 | CONFIG_NLS_ISO8859_1=y | 119 | CONFIG_NLS_ISO8859_1=y |
120 | CONFIG_PRINTK_TIME=y | ||
82 | CONFIG_MAGIC_SYSRQ=y | 121 | CONFIG_MAGIC_SYSRQ=y |
83 | CONFIG_DEBUG_KERNEL=y | 122 | CONFIG_DEBUG_KERNEL=y |
84 | CONFIG_DETECT_HUNG_TASK=y | 123 | CONFIG_DETECT_HUNG_TASK=y |
@@ -87,6 +126,5 @@ CONFIG_DEBUG_SPINLOCK=y | |||
87 | CONFIG_DEBUG_MUTEXES=y | 126 | CONFIG_DEBUG_MUTEXES=y |
88 | CONFIG_DEBUG_INFO=y | 127 | CONFIG_DEBUG_INFO=y |
89 | CONFIG_DEBUG_USER=y | 128 | CONFIG_DEBUG_USER=y |
90 | CONFIG_DEBUG_LL=y | 129 | CONFIG_CRYPTO_SHA256=y |
91 | CONFIG_EARLY_PRINTK=y | ||
92 | CONFIG_CRC_CCITT=y | 130 | CONFIG_CRC_CCITT=y |
diff --git a/arch/arm/mach-exynos/Kconfig b/arch/arm/mach-exynos/Kconfig index d19edff0ea6e..ff18fc2ea46f 100644 --- a/arch/arm/mach-exynos/Kconfig +++ b/arch/arm/mach-exynos/Kconfig | |||
@@ -250,6 +250,7 @@ config MACH_ARMLEX4210 | |||
250 | config MACH_UNIVERSAL_C210 | 250 | config MACH_UNIVERSAL_C210 |
251 | bool "Mobile UNIVERSAL_C210 Board" | 251 | bool "Mobile UNIVERSAL_C210 Board" |
252 | select CLKSRC_MMIO | 252 | select CLKSRC_MMIO |
253 | select CLKSRC_SAMSUNG_PWM | ||
253 | select CPU_EXYNOS4210 | 254 | select CPU_EXYNOS4210 |
254 | select EXYNOS4_SETUP_FIMC | 255 | select EXYNOS4_SETUP_FIMC |
255 | select EXYNOS4_SETUP_FIMD0 | 256 | select EXYNOS4_SETUP_FIMD0 |
@@ -281,7 +282,6 @@ config MACH_UNIVERSAL_C210 | |||
281 | select S5P_DEV_TV | 282 | select S5P_DEV_TV |
282 | select S5P_GPIO_INT | 283 | select S5P_GPIO_INT |
283 | select S5P_SETUP_MIPIPHY | 284 | select S5P_SETUP_MIPIPHY |
284 | select SAMSUNG_HRT | ||
285 | help | 285 | help |
286 | Machine support for Samsung Mobile Universal S5PC210 Reference | 286 | Machine support for Samsung Mobile Universal S5PC210 Reference |
287 | Board. | 287 | Board. |
@@ -410,6 +410,7 @@ config MACH_EXYNOS4_DT | |||
410 | depends on ARCH_EXYNOS4 | 410 | depends on ARCH_EXYNOS4 |
411 | select ARM_AMBA | 411 | select ARM_AMBA |
412 | select CLKSRC_OF | 412 | select CLKSRC_OF |
413 | select CLKSRC_SAMSUNG_PWM if CPU_EXYNOS4210 | ||
413 | select CPU_EXYNOS4210 | 414 | select CPU_EXYNOS4210 |
414 | select KEYBOARD_SAMSUNG if INPUT_KEYBOARD | 415 | select KEYBOARD_SAMSUNG if INPUT_KEYBOARD |
415 | select PINCTRL | 416 | select PINCTRL |
diff --git a/arch/arm/mach-exynos/common.c b/arch/arm/mach-exynos/common.c index 745e304ad0de..027c9e7f0d13 100644 --- a/arch/arm/mach-exynos/common.c +++ b/arch/arm/mach-exynos/common.c | |||
@@ -10,12 +10,14 @@ | |||
10 | */ | 10 | */ |
11 | 11 | ||
12 | #include <linux/kernel.h> | 12 | #include <linux/kernel.h> |
13 | #include <linux/bitops.h> | ||
13 | #include <linux/interrupt.h> | 14 | #include <linux/interrupt.h> |
14 | #include <linux/irq.h> | 15 | #include <linux/irq.h> |
15 | #include <linux/irqchip.h> | 16 | #include <linux/irqchip.h> |
16 | #include <linux/io.h> | 17 | #include <linux/io.h> |
17 | #include <linux/device.h> | 18 | #include <linux/device.h> |
18 | #include <linux/gpio.h> | 19 | #include <linux/gpio.h> |
20 | #include <clocksource/samsung_pwm.h> | ||
19 | #include <linux/sched.h> | 21 | #include <linux/sched.h> |
20 | #include <linux/serial_core.h> | 22 | #include <linux/serial_core.h> |
21 | #include <linux/of.h> | 23 | #include <linux/of.h> |
@@ -302,6 +304,13 @@ static struct map_desc exynos5440_iodesc0[] __initdata = { | |||
302 | }, | 304 | }, |
303 | }; | 305 | }; |
304 | 306 | ||
307 | static struct samsung_pwm_variant exynos4_pwm_variant = { | ||
308 | .bits = 32, | ||
309 | .div_base = 0, | ||
310 | .has_tint_cstat = true, | ||
311 | .tclk_mask = 0, | ||
312 | }; | ||
313 | |||
305 | void exynos4_restart(char mode, const char *cmd) | 314 | void exynos4_restart(char mode, const char *cmd) |
306 | { | 315 | { |
307 | __raw_writel(0x1, S5P_SWRESET); | 316 | __raw_writel(0x1, S5P_SWRESET); |
@@ -317,9 +326,16 @@ void exynos5_restart(char mode, const char *cmd) | |||
317 | val = 0x1; | 326 | val = 0x1; |
318 | addr = EXYNOS_SWRESET; | 327 | addr = EXYNOS_SWRESET; |
319 | } else if (of_machine_is_compatible("samsung,exynos5440")) { | 328 | } else if (of_machine_is_compatible("samsung,exynos5440")) { |
329 | u32 status; | ||
320 | np = of_find_compatible_node(NULL, NULL, "samsung,exynos5440-clock"); | 330 | np = of_find_compatible_node(NULL, NULL, "samsung,exynos5440-clock"); |
331 | |||
332 | addr = of_iomap(np, 0) + 0xbc; | ||
333 | status = __raw_readl(addr); | ||
334 | |||
321 | addr = of_iomap(np, 0) + 0xcc; | 335 | addr = of_iomap(np, 0) + 0xcc; |
322 | val = (0xfff << 20) | (0x1 << 16); | 336 | val = __raw_readl(addr); |
337 | |||
338 | val = (val & 0xffff0000) | (status & 0xffff); | ||
323 | } else { | 339 | } else { |
324 | pr_err("%s: cannot support non-DT\n", __func__); | 340 | pr_err("%s: cannot support non-DT\n", __func__); |
325 | return; | 341 | return; |
@@ -442,8 +458,20 @@ static void __init exynos5440_map_io(void) | |||
442 | iotable_init(exynos5440_iodesc0, ARRAY_SIZE(exynos5440_iodesc0)); | 458 | iotable_init(exynos5440_iodesc0, ARRAY_SIZE(exynos5440_iodesc0)); |
443 | } | 459 | } |
444 | 460 | ||
461 | void __init exynos_set_timer_source(u8 channels) | ||
462 | { | ||
463 | exynos4_pwm_variant.output_mask = BIT(SAMSUNG_PWM_NUM) - 1; | ||
464 | exynos4_pwm_variant.output_mask &= ~channels; | ||
465 | } | ||
466 | |||
445 | void __init exynos_init_time(void) | 467 | void __init exynos_init_time(void) |
446 | { | 468 | { |
469 | unsigned int timer_irqs[SAMSUNG_PWM_NUM] = { | ||
470 | EXYNOS4_IRQ_TIMER0_VIC, EXYNOS4_IRQ_TIMER1_VIC, | ||
471 | EXYNOS4_IRQ_TIMER2_VIC, EXYNOS4_IRQ_TIMER3_VIC, | ||
472 | EXYNOS4_IRQ_TIMER4_VIC, | ||
473 | }; | ||
474 | |||
447 | if (of_have_populated_dt()) { | 475 | if (of_have_populated_dt()) { |
448 | #ifdef CONFIG_OF | 476 | #ifdef CONFIG_OF |
449 | of_clk_init(NULL); | 477 | of_clk_init(NULL); |
@@ -455,7 +483,14 @@ void __init exynos_init_time(void) | |||
455 | exynos4_clk_init(NULL, !soc_is_exynos4210(), S5P_VA_CMU, readl(S5P_VA_CHIPID + 8) & 1); | 483 | exynos4_clk_init(NULL, !soc_is_exynos4210(), S5P_VA_CMU, readl(S5P_VA_CHIPID + 8) & 1); |
456 | exynos4_clk_register_fixed_ext(xxti_f, xusbxti_f); | 484 | exynos4_clk_register_fixed_ext(xxti_f, xusbxti_f); |
457 | #endif | 485 | #endif |
458 | mct_init(S5P_VA_SYSTIMER, EXYNOS4_IRQ_MCT_G0, EXYNOS4_IRQ_MCT_L0, EXYNOS4_IRQ_MCT_L1); | 486 | #ifdef CONFIG_CLKSRC_SAMSUNG_PWM |
487 | if (soc_is_exynos4210() && samsung_rev() == EXYNOS4210_REV_0) | ||
488 | samsung_pwm_clocksource_init(S3C_VA_TIMER, | ||
489 | timer_irqs, &exynos4_pwm_variant); | ||
490 | else | ||
491 | #endif | ||
492 | mct_init(S5P_VA_SYSTIMER, EXYNOS4_IRQ_MCT_G0, | ||
493 | EXYNOS4_IRQ_MCT_L0, EXYNOS4_IRQ_MCT_L1); | ||
459 | } | 494 | } |
460 | } | 495 | } |
461 | 496 | ||
diff --git a/arch/arm/mach-exynos/common.h b/arch/arm/mach-exynos/common.h index 60dd35cc01a6..11fc1e29819b 100644 --- a/arch/arm/mach-exynos/common.h +++ b/arch/arm/mach-exynos/common.h | |||
@@ -32,6 +32,8 @@ void exynos4_clk_register_fixed_ext(unsigned long, unsigned long); | |||
32 | 32 | ||
33 | void exynos_firmware_init(void); | 33 | void exynos_firmware_init(void); |
34 | 34 | ||
35 | void exynos_set_timer_source(u8 channels); | ||
36 | |||
35 | #ifdef CONFIG_PM_GENERIC_DOMAINS | 37 | #ifdef CONFIG_PM_GENERIC_DOMAINS |
36 | int exynos_pm_late_initcall(void); | 38 | int exynos_pm_late_initcall(void); |
37 | #else | 39 | #else |
diff --git a/arch/arm/mach-exynos/include/mach/pm-core.h b/arch/arm/mach-exynos/include/mach/pm-core.h index 7dbbfec13ea5..296090e7f423 100644 --- a/arch/arm/mach-exynos/include/mach/pm-core.h +++ b/arch/arm/mach-exynos/include/mach/pm-core.h | |||
@@ -18,8 +18,15 @@ | |||
18 | #ifndef __ASM_ARCH_PM_CORE_H | 18 | #ifndef __ASM_ARCH_PM_CORE_H |
19 | #define __ASM_ARCH_PM_CORE_H __FILE__ | 19 | #define __ASM_ARCH_PM_CORE_H __FILE__ |
20 | 20 | ||
21 | #include <linux/of.h> | ||
21 | #include <mach/regs-pmu.h> | 22 | #include <mach/regs-pmu.h> |
22 | 23 | ||
24 | #ifdef CONFIG_PINCTRL_EXYNOS | ||
25 | extern u32 exynos_get_eint_wake_mask(void); | ||
26 | #else | ||
27 | static inline u32 exynos_get_eint_wake_mask(void) { return 0xffffffff; } | ||
28 | #endif | ||
29 | |||
23 | static inline void s3c_pm_debug_init_uart(void) | 30 | static inline void s3c_pm_debug_init_uart(void) |
24 | { | 31 | { |
25 | /* nothing here yet */ | 32 | /* nothing here yet */ |
@@ -27,7 +34,12 @@ static inline void s3c_pm_debug_init_uart(void) | |||
27 | 34 | ||
28 | static inline void s3c_pm_arch_prepare_irqs(void) | 35 | static inline void s3c_pm_arch_prepare_irqs(void) |
29 | { | 36 | { |
30 | __raw_writel(s3c_irqwake_eintmask, S5P_EINT_WAKEUP_MASK); | 37 | u32 eintmask = s3c_irqwake_eintmask; |
38 | |||
39 | if (of_have_populated_dt()) | ||
40 | eintmask = exynos_get_eint_wake_mask(); | ||
41 | |||
42 | __raw_writel(eintmask, S5P_EINT_WAKEUP_MASK); | ||
31 | __raw_writel(s3c_irqwake_intmask & ~(1 << 31), S5P_WAKEUP_MASK); | 43 | __raw_writel(s3c_irqwake_intmask & ~(1 << 31), S5P_WAKEUP_MASK); |
32 | } | 44 | } |
33 | 45 | ||
diff --git a/arch/arm/mach-exynos/mach-universal_c210.c b/arch/arm/mach-exynos/mach-universal_c210.c index 327d50d4681d..74ddb2b55614 100644 --- a/arch/arm/mach-exynos/mach-universal_c210.c +++ b/arch/arm/mach-exynos/mach-universal_c210.c | |||
@@ -41,7 +41,6 @@ | |||
41 | #include <plat/mfc.h> | 41 | #include <plat/mfc.h> |
42 | #include <plat/sdhci.h> | 42 | #include <plat/sdhci.h> |
43 | #include <plat/fimc-core.h> | 43 | #include <plat/fimc-core.h> |
44 | #include <plat/samsung-time.h> | ||
45 | #include <plat/camport.h> | 44 | #include <plat/camport.h> |
46 | 45 | ||
47 | #include <mach/map.h> | 46 | #include <mach/map.h> |
@@ -1094,7 +1093,7 @@ static void __init universal_map_io(void) | |||
1094 | { | 1093 | { |
1095 | exynos_init_io(NULL, 0); | 1094 | exynos_init_io(NULL, 0); |
1096 | s3c24xx_init_uarts(universal_uartcfgs, ARRAY_SIZE(universal_uartcfgs)); | 1095 | s3c24xx_init_uarts(universal_uartcfgs, ARRAY_SIZE(universal_uartcfgs)); |
1097 | samsung_set_timer_source(SAMSUNG_PWM2, SAMSUNG_PWM4); | 1096 | exynos_set_timer_source(BIT(2) | BIT(4)); |
1098 | xxti_f = 0; | 1097 | xxti_f = 0; |
1099 | xusbxti_f = 24000000; | 1098 | xusbxti_f = 24000000; |
1100 | } | 1099 | } |
@@ -1154,7 +1153,7 @@ MACHINE_START(UNIVERSAL_C210, "UNIVERSAL_C210") | |||
1154 | .map_io = universal_map_io, | 1153 | .map_io = universal_map_io, |
1155 | .init_machine = universal_machine_init, | 1154 | .init_machine = universal_machine_init, |
1156 | .init_late = exynos_init_late, | 1155 | .init_late = exynos_init_late, |
1157 | .init_time = samsung_timer_init, | 1156 | .init_time = exynos_init_time, |
1158 | .reserve = &universal_reserve, | 1157 | .reserve = &universal_reserve, |
1159 | .restart = exynos4_restart, | 1158 | .restart = exynos4_restart, |
1160 | MACHINE_END | 1159 | MACHINE_END |
diff --git a/arch/arm/plat-samsung/devs.c b/arch/arm/plat-samsung/devs.c index 30c2fe243f76..0f9c3f431a5f 100644 --- a/arch/arm/plat-samsung/devs.c +++ b/arch/arm/plat-samsung/devs.c | |||
@@ -311,9 +311,9 @@ struct platform_device s5p_device_jpeg = { | |||
311 | #ifdef CONFIG_S5P_DEV_FIMD0 | 311 | #ifdef CONFIG_S5P_DEV_FIMD0 |
312 | static struct resource s5p_fimd0_resource[] = { | 312 | static struct resource s5p_fimd0_resource[] = { |
313 | [0] = DEFINE_RES_MEM(S5P_PA_FIMD0, SZ_32K), | 313 | [0] = DEFINE_RES_MEM(S5P_PA_FIMD0, SZ_32K), |
314 | [1] = DEFINE_RES_IRQ(IRQ_FIMD0_VSYNC), | 314 | [1] = DEFINE_RES_IRQ_NAMED(IRQ_FIMD0_VSYNC, "vsync"), |
315 | [2] = DEFINE_RES_IRQ(IRQ_FIMD0_FIFO), | 315 | [2] = DEFINE_RES_IRQ_NAMED(IRQ_FIMD0_FIFO, "fifo"), |
316 | [3] = DEFINE_RES_IRQ(IRQ_FIMD0_SYSTEM), | 316 | [3] = DEFINE_RES_IRQ_NAMED(IRQ_FIMD0_SYSTEM, "lcd_sys"), |
317 | }; | 317 | }; |
318 | 318 | ||
319 | struct platform_device s5p_device_fimd0 = { | 319 | struct platform_device s5p_device_fimd0 = { |