diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2015-09-01 15:10:20 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-09-01 15:10:20 -0400 |
commit | c5fc249862af862df027030188cc083e072ecd19 (patch) | |
tree | 1205eaa47b07fc06b79e8c742a15dca5bcb1066c /arch/arm/mach-davinci | |
parent | 00e3fcc221f6fe6a890bf3e0e71c6b9944e58233 (diff) | |
parent | 97a2482d9891f0ad6a3710e0b6ae9949c140c7f1 (diff) |
Merge tag 'armsoc-cleanup' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc
Pull ARM SoC cleanups from Olof Johansson:
"A large cleanup branch this release, with a healthy 10k negative line
delta.
Most of this is removal of legacy (non-DT) support of shmobile
platforms. There is also removal of two non-DT platforms on OMAP, and
the plat-samsung directory is cleaned out by moving most of the
previously shared-location-but-not-actually-shared files from there to
the appropriate mach directories instead.
There are other sets of changes in here as well:
- Rob Herring removed use of set_irq_flags under all platforms and
moved to genirq alternatives
- a series of timer API conversions to set-state interface
- ep93xx, nomadik and ux500 cleanups from Linus Walleij
- __init annotation fixes from Nicolas Pitre
+ a bunch of other changes that all add up to a nice set of cleanups"
* tag 'armsoc-cleanup' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc: (108 commits)
ARM/fb: ep93xx: switch framebuffer to use modedb only
ARM: gemini: Setup timer3 as free running timer
ARM: gemini: Use timer1 for clockevent
ARM: gemini: Add missing register definitions for gemini timer
ARM: ep93xx/timer: Migrate to new 'set-state' interface
ARM: nomadik: push accelerometer down to boards
ARM: nomadik: move l2x0 setup to device tree
ARM: nomadik: selectively enable UART0 on boards
ARM: nomadik: move hog code to use DT hogs
ARM: shmobile: Fix mismerges
ARM: ux500: simplify secondary CPU boot
ARM: SAMSUNG: remove keypad-core header in plat-samsung
ARM: SAMSUNG: local watchdog-reset header in mach-s3c64xx
ARM: SAMSUNG: local onenand-core header in mach-s3c64xx
ARM: SAMSUNG: local irq-uart header in mach-s3c64xx
ARM: SAMSUNG: local backlight header in mach-s3c64xx
ARM: SAMSUNG: local ata-core header in mach-s3c64xx
ARM: SAMSUNG: local regs-usb-hsotg-phy header in mach-s3c64xx
ARM: SAMSUNG: local spi-core header in mach-s3c24xx
ARM: SAMSUNG: local nand-core header in mach-s3c24xx
...
Diffstat (limited to 'arch/arm/mach-davinci')
-rw-r--r-- | arch/arm/mach-davinci/cp_intc.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-davinci/da850.c | 4 | ||||
-rw-r--r-- | arch/arm/mach-davinci/da8xx-dt.c | 4 | ||||
-rw-r--r-- | arch/arm/mach-davinci/time.c | 54 |
4 files changed, 35 insertions, 29 deletions
diff --git a/arch/arm/mach-davinci/cp_intc.c b/arch/arm/mach-davinci/cp_intc.c index 006dae8dfe44..bf12ce64407a 100644 --- a/arch/arm/mach-davinci/cp_intc.c +++ b/arch/arm/mach-davinci/cp_intc.c | |||
@@ -112,7 +112,7 @@ static int cp_intc_host_map(struct irq_domain *h, unsigned int virq, | |||
112 | pr_debug("cp_intc_host_map(%d, 0x%lx)\n", virq, hw); | 112 | pr_debug("cp_intc_host_map(%d, 0x%lx)\n", virq, hw); |
113 | 113 | ||
114 | irq_set_chip(virq, &cp_intc_irq_chip); | 114 | irq_set_chip(virq, &cp_intc_irq_chip); |
115 | set_irq_flags(virq, IRQF_VALID | IRQF_PROBE); | 115 | irq_set_probe(virq); |
116 | irq_set_handler(virq, handle_edge_irq); | 116 | irq_set_handler(virq, handle_edge_irq); |
117 | return 0; | 117 | return 0; |
118 | } | 118 | } |
diff --git a/arch/arm/mach-davinci/da850.c b/arch/arm/mach-davinci/da850.c index 3b8740c083c4..676997895e13 100644 --- a/arch/arm/mach-davinci/da850.c +++ b/arch/arm/mach-davinci/da850.c | |||
@@ -715,7 +715,7 @@ const short da850_lcdcntl_pins[] __initconst = { | |||
715 | -1 | 715 | -1 |
716 | }; | 716 | }; |
717 | 717 | ||
718 | const short da850_vpif_capture_pins[] __initdata = { | 718 | const short da850_vpif_capture_pins[] __initconst = { |
719 | DA850_VPIF_DIN0, DA850_VPIF_DIN1, DA850_VPIF_DIN2, DA850_VPIF_DIN3, | 719 | DA850_VPIF_DIN0, DA850_VPIF_DIN1, DA850_VPIF_DIN2, DA850_VPIF_DIN3, |
720 | DA850_VPIF_DIN4, DA850_VPIF_DIN5, DA850_VPIF_DIN6, DA850_VPIF_DIN7, | 720 | DA850_VPIF_DIN4, DA850_VPIF_DIN5, DA850_VPIF_DIN6, DA850_VPIF_DIN7, |
721 | DA850_VPIF_DIN8, DA850_VPIF_DIN9, DA850_VPIF_DIN10, DA850_VPIF_DIN11, | 721 | DA850_VPIF_DIN8, DA850_VPIF_DIN9, DA850_VPIF_DIN10, DA850_VPIF_DIN11, |
@@ -725,7 +725,7 @@ const short da850_vpif_capture_pins[] __initdata = { | |||
725 | -1 | 725 | -1 |
726 | }; | 726 | }; |
727 | 727 | ||
728 | const short da850_vpif_display_pins[] __initdata = { | 728 | const short da850_vpif_display_pins[] __initconst = { |
729 | DA850_VPIF_DOUT0, DA850_VPIF_DOUT1, DA850_VPIF_DOUT2, DA850_VPIF_DOUT3, | 729 | DA850_VPIF_DOUT0, DA850_VPIF_DOUT1, DA850_VPIF_DOUT2, DA850_VPIF_DOUT3, |
730 | DA850_VPIF_DOUT4, DA850_VPIF_DOUT5, DA850_VPIF_DOUT6, DA850_VPIF_DOUT7, | 730 | DA850_VPIF_DOUT4, DA850_VPIF_DOUT5, DA850_VPIF_DOUT6, DA850_VPIF_DOUT7, |
731 | DA850_VPIF_DOUT8, DA850_VPIF_DOUT9, DA850_VPIF_DOUT10, | 731 | DA850_VPIF_DOUT8, DA850_VPIF_DOUT9, DA850_VPIF_DOUT10, |
diff --git a/arch/arm/mach-davinci/da8xx-dt.c b/arch/arm/mach-davinci/da8xx-dt.c index 438f68547f4c..06b6451225c1 100644 --- a/arch/arm/mach-davinci/da8xx-dt.c +++ b/arch/arm/mach-davinci/da8xx-dt.c | |||
@@ -20,7 +20,7 @@ | |||
20 | 20 | ||
21 | #define DA8XX_NUM_UARTS 3 | 21 | #define DA8XX_NUM_UARTS 3 |
22 | 22 | ||
23 | static const struct of_device_id da8xx_irq_match[] __initconst = { | 23 | static const struct of_device_id const da8xx_irq_match[] __initconst = { |
24 | { .compatible = "ti,cp-intc", .data = cp_intc_of_init, }, | 24 | { .compatible = "ti,cp-intc", .data = cp_intc_of_init, }, |
25 | { } | 25 | { } |
26 | }; | 26 | }; |
@@ -59,7 +59,7 @@ static void __init da850_init_machine(void) | |||
59 | 59 | ||
60 | } | 60 | } |
61 | 61 | ||
62 | static const char *da850_boards_compat[] __initdata = { | 62 | static const char *const da850_boards_compat[] __initconst = { |
63 | "enbw,cmc", | 63 | "enbw,cmc", |
64 | "ti,da850-evm", | 64 | "ti,da850-evm", |
65 | "ti,da850", | 65 | "ti,da850", |
diff --git a/arch/arm/mach-davinci/time.c b/arch/arm/mach-davinci/time.c index 160c9602f490..6c18445a4639 100644 --- a/arch/arm/mach-davinci/time.c +++ b/arch/arm/mach-davinci/time.c | |||
@@ -303,36 +303,42 @@ static int davinci_set_next_event(unsigned long cycles, | |||
303 | return 0; | 303 | return 0; |
304 | } | 304 | } |
305 | 305 | ||
306 | static void davinci_set_mode(enum clock_event_mode mode, | 306 | static int davinci_shutdown(struct clock_event_device *evt) |
307 | struct clock_event_device *evt) | ||
308 | { | 307 | { |
309 | struct timer_s *t = &timers[TID_CLOCKEVENT]; | 308 | struct timer_s *t = &timers[TID_CLOCKEVENT]; |
310 | 309 | ||
311 | switch (mode) { | 310 | t->opts &= ~TIMER_OPTS_STATE_MASK; |
312 | case CLOCK_EVT_MODE_PERIODIC: | 311 | t->opts |= TIMER_OPTS_DISABLED; |
313 | t->period = davinci_clock_tick_rate / (HZ); | 312 | return 0; |
314 | t->opts &= ~TIMER_OPTS_STATE_MASK; | 313 | } |
315 | t->opts |= TIMER_OPTS_PERIODIC; | 314 | |
316 | timer32_config(t); | 315 | static int davinci_set_oneshot(struct clock_event_device *evt) |
317 | break; | 316 | { |
318 | case CLOCK_EVT_MODE_ONESHOT: | 317 | struct timer_s *t = &timers[TID_CLOCKEVENT]; |
319 | t->opts &= ~TIMER_OPTS_STATE_MASK; | 318 | |
320 | t->opts |= TIMER_OPTS_ONESHOT; | 319 | t->opts &= ~TIMER_OPTS_STATE_MASK; |
321 | break; | 320 | t->opts |= TIMER_OPTS_ONESHOT; |
322 | case CLOCK_EVT_MODE_UNUSED: | 321 | return 0; |
323 | case CLOCK_EVT_MODE_SHUTDOWN: | 322 | } |
324 | t->opts &= ~TIMER_OPTS_STATE_MASK; | 323 | |
325 | t->opts |= TIMER_OPTS_DISABLED; | 324 | static int davinci_set_periodic(struct clock_event_device *evt) |
326 | break; | 325 | { |
327 | case CLOCK_EVT_MODE_RESUME: | 326 | struct timer_s *t = &timers[TID_CLOCKEVENT]; |
328 | break; | 327 | |
329 | } | 328 | t->period = davinci_clock_tick_rate / (HZ); |
329 | t->opts &= ~TIMER_OPTS_STATE_MASK; | ||
330 | t->opts |= TIMER_OPTS_PERIODIC; | ||
331 | timer32_config(t); | ||
332 | return 0; | ||
330 | } | 333 | } |
331 | 334 | ||
332 | static struct clock_event_device clockevent_davinci = { | 335 | static struct clock_event_device clockevent_davinci = { |
333 | .features = CLOCK_EVT_FEAT_PERIODIC | CLOCK_EVT_FEAT_ONESHOT, | 336 | .features = CLOCK_EVT_FEAT_PERIODIC | |
334 | .set_next_event = davinci_set_next_event, | 337 | CLOCK_EVT_FEAT_ONESHOT, |
335 | .set_mode = davinci_set_mode, | 338 | .set_next_event = davinci_set_next_event, |
339 | .set_state_shutdown = davinci_shutdown, | ||
340 | .set_state_periodic = davinci_set_periodic, | ||
341 | .set_state_oneshot = davinci_set_oneshot, | ||
336 | }; | 342 | }; |
337 | 343 | ||
338 | 344 | ||