diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2014-06-02 19:14:07 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-06-02 19:14:07 -0400 |
commit | 0a58471541cc823ef8056d23945c39fec154481c (patch) | |
tree | 04a8499be0659ac16f82f3b0d0d8d2c2ccafe4dd /arch/arm/plat-omap | |
parent | ff933a0817f95efbeb97bec5ca609a13f8aed686 (diff) | |
parent | 08d38bebb4dcd6414944f8277ea5ea30010664fe (diff) |
Merge tag 'cleanup-for-3.16' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc into next
Pull ARM SoC cleanups from Olof Johansson:
"Cleanups for 3.16. Among these are:
- a bunch of misc cleanups for Broadcom platforms, mostly
housekeeping
- enabling Common Clock Framework on the older s3c24xx Samsung
chipsets
- cleanup of the Versatile Express system controller code, moving it
to syscon
- power management cleanups for OMAP platforms
plus a handful of other cleanups across the place"
* tag 'cleanup-for-3.16' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc: (87 commits)
ARM: kconfig: allow PCI support to be selected with ARCH_MULTIPLATFORM
clk: samsung: fix build error
ARM: vexpress: refine dependencies for new code
clk: samsung: clk-s3c2410-dlck: do not use PNAME macro as it declares __initdata
cpufreq: exynos: Fix the compile error
ARM: S3C24XX: move debug-macro.S into the common space
ARM: S3C24XX: use generic DEBUG_UART_PHY/_VIRT in debug macro
ARM: S3C24XX: trim down debug uart handling
ARM: compressed/head.S: remove s3c24xx special case
ARM: EXYNOS: Remove unnecessary inclusion of cpu.h
ARM: EXYNOS: Migrate Exynos specific macros from plat to mach
ARM: EXYNOS: Remove exynos_subsys registration
ARM: EXYNOS: Remove duplicate lines in Makefile
ARM: EXYNOS: use v7_exit_coherency_flush macro for cache disabling
ARM: OMAP4: PRCM: remove references to cm-regbits-44xx.h from PRCM core files
ARM: OMAP3/4: PRM: add support of late_init call to prm_ll_ops
ARM: OMAP3/OMAP4: PRM: add prm_features flags and add IO wakeup under it
ARM: OMAP3/4: PRM: provide io chain reconfig function through irq setup
ARM: OMAP2+: PRM: remove unnecessary cpu_is_XXX calls from prm_init / exit
ARM: OMAP2+: PRCM: cleanup some header includes
...
Diffstat (limited to 'arch/arm/plat-omap')
-rw-r--r-- | arch/arm/plat-omap/counter_32k.c | 6 | ||||
-rw-r--r-- | arch/arm/plat-omap/debug-leds.c | 14 | ||||
-rw-r--r-- | arch/arm/plat-omap/dmtimer.c | 8 | ||||
-rw-r--r-- | arch/arm/plat-omap/include/plat/dmtimer.h | 16 |
4 files changed, 22 insertions, 22 deletions
diff --git a/arch/arm/plat-omap/counter_32k.c b/arch/arm/plat-omap/counter_32k.c index 384a776d8eb2..61b4d705c267 100644 --- a/arch/arm/plat-omap/counter_32k.c +++ b/arch/arm/plat-omap/counter_32k.c | |||
@@ -40,7 +40,7 @@ static void __iomem *sync32k_cnt_reg; | |||
40 | 40 | ||
41 | static u64 notrace omap_32k_read_sched_clock(void) | 41 | static u64 notrace omap_32k_read_sched_clock(void) |
42 | { | 42 | { |
43 | return sync32k_cnt_reg ? __raw_readl(sync32k_cnt_reg) : 0; | 43 | return sync32k_cnt_reg ? readl_relaxed(sync32k_cnt_reg) : 0; |
44 | } | 44 | } |
45 | 45 | ||
46 | /** | 46 | /** |
@@ -64,7 +64,7 @@ static void omap_read_persistent_clock(struct timespec *ts) | |||
64 | spin_lock_irqsave(&read_persistent_clock_lock, flags); | 64 | spin_lock_irqsave(&read_persistent_clock_lock, flags); |
65 | 65 | ||
66 | last_cycles = cycles; | 66 | last_cycles = cycles; |
67 | cycles = sync32k_cnt_reg ? __raw_readl(sync32k_cnt_reg) : 0; | 67 | cycles = sync32k_cnt_reg ? readl_relaxed(sync32k_cnt_reg) : 0; |
68 | 68 | ||
69 | nsecs = clocksource_cyc2ns(cycles - last_cycles, | 69 | nsecs = clocksource_cyc2ns(cycles - last_cycles, |
70 | persistent_mult, persistent_shift); | 70 | persistent_mult, persistent_shift); |
@@ -95,7 +95,7 @@ int __init omap_init_clocksource_32k(void __iomem *vbase) | |||
95 | * The 'SCHEME' bits(30-31) of the revision register is used | 95 | * The 'SCHEME' bits(30-31) of the revision register is used |
96 | * to identify the version. | 96 | * to identify the version. |
97 | */ | 97 | */ |
98 | if (__raw_readl(vbase + OMAP2_32KSYNCNT_REV_OFF) & | 98 | if (readl_relaxed(vbase + OMAP2_32KSYNCNT_REV_OFF) & |
99 | OMAP2_32KSYNCNT_REV_SCHEME) | 99 | OMAP2_32KSYNCNT_REV_SCHEME) |
100 | sync32k_cnt_reg = vbase + OMAP2_32KSYNCNT_CR_OFF_HIGH; | 100 | sync32k_cnt_reg = vbase + OMAP2_32KSYNCNT_CR_OFF_HIGH; |
101 | else | 101 | else |
diff --git a/arch/arm/plat-omap/debug-leds.c b/arch/arm/plat-omap/debug-leds.c index aa7ebc6bcd65..48b69de89a5d 100644 --- a/arch/arm/plat-omap/debug-leds.c +++ b/arch/arm/plat-omap/debug-leds.c | |||
@@ -85,12 +85,12 @@ static void dbg_led_set(struct led_classdev *cdev, | |||
85 | struct dbg_led *led = container_of(cdev, struct dbg_led, cdev); | 85 | struct dbg_led *led = container_of(cdev, struct dbg_led, cdev); |
86 | u16 reg; | 86 | u16 reg; |
87 | 87 | ||
88 | reg = __raw_readw(&fpga->leds); | 88 | reg = readw_relaxed(&fpga->leds); |
89 | if (b != LED_OFF) | 89 | if (b != LED_OFF) |
90 | reg |= led->mask; | 90 | reg |= led->mask; |
91 | else | 91 | else |
92 | reg &= ~led->mask; | 92 | reg &= ~led->mask; |
93 | __raw_writew(reg, &fpga->leds); | 93 | writew_relaxed(reg, &fpga->leds); |
94 | } | 94 | } |
95 | 95 | ||
96 | static enum led_brightness dbg_led_get(struct led_classdev *cdev) | 96 | static enum led_brightness dbg_led_get(struct led_classdev *cdev) |
@@ -98,7 +98,7 @@ static enum led_brightness dbg_led_get(struct led_classdev *cdev) | |||
98 | struct dbg_led *led = container_of(cdev, struct dbg_led, cdev); | 98 | struct dbg_led *led = container_of(cdev, struct dbg_led, cdev); |
99 | u16 reg; | 99 | u16 reg; |
100 | 100 | ||
101 | reg = __raw_readw(&fpga->leds); | 101 | reg = readw_relaxed(&fpga->leds); |
102 | return (reg & led->mask) ? LED_FULL : LED_OFF; | 102 | return (reg & led->mask) ? LED_FULL : LED_OFF; |
103 | } | 103 | } |
104 | 104 | ||
@@ -112,7 +112,7 @@ static int fpga_probe(struct platform_device *pdev) | |||
112 | return -ENODEV; | 112 | return -ENODEV; |
113 | 113 | ||
114 | fpga = ioremap(iomem->start, resource_size(iomem)); | 114 | fpga = ioremap(iomem->start, resource_size(iomem)); |
115 | __raw_writew(0xff, &fpga->leds); | 115 | writew_relaxed(0xff, &fpga->leds); |
116 | 116 | ||
117 | for (i = 0; i < ARRAY_SIZE(dbg_leds); i++) { | 117 | for (i = 0; i < ARRAY_SIZE(dbg_leds); i++) { |
118 | struct dbg_led *led; | 118 | struct dbg_led *led; |
@@ -138,15 +138,15 @@ static int fpga_probe(struct platform_device *pdev) | |||
138 | 138 | ||
139 | static int fpga_suspend_noirq(struct device *dev) | 139 | static int fpga_suspend_noirq(struct device *dev) |
140 | { | 140 | { |
141 | fpga_led_state = __raw_readw(&fpga->leds); | 141 | fpga_led_state = readw_relaxed(&fpga->leds); |
142 | __raw_writew(0xff, &fpga->leds); | 142 | writew_relaxed(0xff, &fpga->leds); |
143 | 143 | ||
144 | return 0; | 144 | return 0; |
145 | } | 145 | } |
146 | 146 | ||
147 | static int fpga_resume_noirq(struct device *dev) | 147 | static int fpga_resume_noirq(struct device *dev) |
148 | { | 148 | { |
149 | __raw_writew(~fpga_led_state, &fpga->leds); | 149 | writew_relaxed(~fpga_led_state, &fpga->leds); |
150 | return 0; | 150 | return 0; |
151 | } | 151 | } |
152 | 152 | ||
diff --git a/arch/arm/plat-omap/dmtimer.c b/arch/arm/plat-omap/dmtimer.c index 869254cebf84..db10169a08de 100644 --- a/arch/arm/plat-omap/dmtimer.c +++ b/arch/arm/plat-omap/dmtimer.c | |||
@@ -103,7 +103,7 @@ static void omap_timer_restore_context(struct omap_dm_timer *timer) | |||
103 | timer->context.tmar); | 103 | timer->context.tmar); |
104 | omap_dm_timer_write_reg(timer, OMAP_TIMER_IF_CTRL_REG, | 104 | omap_dm_timer_write_reg(timer, OMAP_TIMER_IF_CTRL_REG, |
105 | timer->context.tsicr); | 105 | timer->context.tsicr); |
106 | __raw_writel(timer->context.tier, timer->irq_ena); | 106 | writel_relaxed(timer->context.tier, timer->irq_ena); |
107 | omap_dm_timer_write_reg(timer, OMAP_TIMER_CTRL_REG, | 107 | omap_dm_timer_write_reg(timer, OMAP_TIMER_CTRL_REG, |
108 | timer->context.tclr); | 108 | timer->context.tclr); |
109 | } | 109 | } |
@@ -699,9 +699,9 @@ int omap_dm_timer_set_int_disable(struct omap_dm_timer *timer, u32 mask) | |||
699 | omap_dm_timer_enable(timer); | 699 | omap_dm_timer_enable(timer); |
700 | 700 | ||
701 | if (timer->revision == 1) | 701 | if (timer->revision == 1) |
702 | l = __raw_readl(timer->irq_ena) & ~mask; | 702 | l = readl_relaxed(timer->irq_ena) & ~mask; |
703 | 703 | ||
704 | __raw_writel(l, timer->irq_dis); | 704 | writel_relaxed(l, timer->irq_dis); |
705 | l = omap_dm_timer_read_reg(timer, OMAP_TIMER_WAKEUP_EN_REG) & ~mask; | 705 | l = omap_dm_timer_read_reg(timer, OMAP_TIMER_WAKEUP_EN_REG) & ~mask; |
706 | omap_dm_timer_write_reg(timer, OMAP_TIMER_WAKEUP_EN_REG, l); | 706 | omap_dm_timer_write_reg(timer, OMAP_TIMER_WAKEUP_EN_REG, l); |
707 | 707 | ||
@@ -722,7 +722,7 @@ unsigned int omap_dm_timer_read_status(struct omap_dm_timer *timer) | |||
722 | return 0; | 722 | return 0; |
723 | } | 723 | } |
724 | 724 | ||
725 | l = __raw_readl(timer->irq_stat); | 725 | l = readl_relaxed(timer->irq_stat); |
726 | 726 | ||
727 | return l; | 727 | return l; |
728 | } | 728 | } |
diff --git a/arch/arm/plat-omap/include/plat/dmtimer.h b/arch/arm/plat-omap/include/plat/dmtimer.h index 2861b155485a..dd79f3005cdf 100644 --- a/arch/arm/plat-omap/include/plat/dmtimer.h +++ b/arch/arm/plat-omap/include/plat/dmtimer.h | |||
@@ -280,20 +280,20 @@ static inline u32 __omap_dm_timer_read(struct omap_dm_timer *timer, u32 reg, | |||
280 | int posted) | 280 | int posted) |
281 | { | 281 | { |
282 | if (posted) | 282 | if (posted) |
283 | while (__raw_readl(timer->pend) & (reg >> WPSHIFT)) | 283 | while (readl_relaxed(timer->pend) & (reg >> WPSHIFT)) |
284 | cpu_relax(); | 284 | cpu_relax(); |
285 | 285 | ||
286 | return __raw_readl(timer->func_base + (reg & 0xff)); | 286 | return readl_relaxed(timer->func_base + (reg & 0xff)); |
287 | } | 287 | } |
288 | 288 | ||
289 | static inline void __omap_dm_timer_write(struct omap_dm_timer *timer, | 289 | static inline void __omap_dm_timer_write(struct omap_dm_timer *timer, |
290 | u32 reg, u32 val, int posted) | 290 | u32 reg, u32 val, int posted) |
291 | { | 291 | { |
292 | if (posted) | 292 | if (posted) |
293 | while (__raw_readl(timer->pend) & (reg >> WPSHIFT)) | 293 | while (readl_relaxed(timer->pend) & (reg >> WPSHIFT)) |
294 | cpu_relax(); | 294 | cpu_relax(); |
295 | 295 | ||
296 | __raw_writel(val, timer->func_base + (reg & 0xff)); | 296 | writel_relaxed(val, timer->func_base + (reg & 0xff)); |
297 | } | 297 | } |
298 | 298 | ||
299 | static inline void __omap_dm_timer_init_regs(struct omap_dm_timer *timer) | 299 | static inline void __omap_dm_timer_init_regs(struct omap_dm_timer *timer) |
@@ -301,7 +301,7 @@ static inline void __omap_dm_timer_init_regs(struct omap_dm_timer *timer) | |||
301 | u32 tidr; | 301 | u32 tidr; |
302 | 302 | ||
303 | /* Assume v1 ip if bits [31:16] are zero */ | 303 | /* Assume v1 ip if bits [31:16] are zero */ |
304 | tidr = __raw_readl(timer->io_base); | 304 | tidr = readl_relaxed(timer->io_base); |
305 | if (!(tidr >> 16)) { | 305 | if (!(tidr >> 16)) { |
306 | timer->revision = 1; | 306 | timer->revision = 1; |
307 | timer->irq_stat = timer->io_base + OMAP_TIMER_V1_STAT_OFFSET; | 307 | timer->irq_stat = timer->io_base + OMAP_TIMER_V1_STAT_OFFSET; |
@@ -385,7 +385,7 @@ static inline void __omap_dm_timer_stop(struct omap_dm_timer *timer, | |||
385 | } | 385 | } |
386 | 386 | ||
387 | /* Ack possibly pending interrupt */ | 387 | /* Ack possibly pending interrupt */ |
388 | __raw_writel(OMAP_TIMER_INT_OVERFLOW, timer->irq_stat); | 388 | writel_relaxed(OMAP_TIMER_INT_OVERFLOW, timer->irq_stat); |
389 | } | 389 | } |
390 | 390 | ||
391 | static inline void __omap_dm_timer_load_start(struct omap_dm_timer *timer, | 391 | static inline void __omap_dm_timer_load_start(struct omap_dm_timer *timer, |
@@ -399,7 +399,7 @@ static inline void __omap_dm_timer_load_start(struct omap_dm_timer *timer, | |||
399 | static inline void __omap_dm_timer_int_enable(struct omap_dm_timer *timer, | 399 | static inline void __omap_dm_timer_int_enable(struct omap_dm_timer *timer, |
400 | unsigned int value) | 400 | unsigned int value) |
401 | { | 401 | { |
402 | __raw_writel(value, timer->irq_ena); | 402 | writel_relaxed(value, timer->irq_ena); |
403 | __omap_dm_timer_write(timer, OMAP_TIMER_WAKEUP_EN_REG, value, 0); | 403 | __omap_dm_timer_write(timer, OMAP_TIMER_WAKEUP_EN_REG, value, 0); |
404 | } | 404 | } |
405 | 405 | ||
@@ -412,7 +412,7 @@ __omap_dm_timer_read_counter(struct omap_dm_timer *timer, int posted) | |||
412 | static inline void __omap_dm_timer_write_status(struct omap_dm_timer *timer, | 412 | static inline void __omap_dm_timer_write_status(struct omap_dm_timer *timer, |
413 | unsigned int value) | 413 | unsigned int value) |
414 | { | 414 | { |
415 | __raw_writel(value, timer->irq_stat); | 415 | writel_relaxed(value, timer->irq_stat); |
416 | } | 416 | } |
417 | 417 | ||
418 | #endif /* __ASM_ARCH_DMTIMER_H */ | 418 | #endif /* __ASM_ARCH_DMTIMER_H */ |