diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2013-02-21 17:58:40 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-02-21 17:58:40 -0500 |
commit | b274776c54c320763bc12eb035c0e244f76ccb43 (patch) | |
tree | c75b70d0824a7ae029229b19d61884039abf2127 /arch/arm/mach-ux500/include | |
parent | b24174b0cbbe383c5bb6097aeb24480b8fd2d338 (diff) | |
parent | 3b1209e7994c4d31ff9932a7f566ae1c96b3c443 (diff) |
Merge tag 'cleanup' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc
Pull ARM SoC cleanups from Arnd Bergmann:
"A large number of cleanups, all over the platforms. This is dominated
largely by the Samsung platforms (s3c, s5p, exynos) and a few of the
others moving code out of arch/arm into more appropriate subsystems.
The clocksource and irqchip drivers are now abstracted to the point
where platforms that are already cleaned up do not need to even
specify the driver they use, it can all get configured from the device
tree as we do for normal device drivers. The clocksource changes
basically touch every single platform in the process.
We further clean up the use of platform specific header files here,
with the goal of turning more of the platforms over to being
"multiplatform" enabled, which implies that they cannot expose their
headers to architecture independent code any more.
It is expected that no functional changes are part of the cleanup.
The overall reduction in total code lines is mostly the result of
removing broken and obsolete code."
* tag 'cleanup' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc: (133 commits)
ARM: mvebu: correct gated clock documentation
ARM: kirkwood: add missing include for nsa310
ARM: exynos: move exynos4210-combiner to drivers/irqchip
mfd: db8500-prcmu: update resource passing
drivers/db8500-cpufreq: delete dangling include
ARM: at91: remove NEOCORE 926 board
sunxi: Cleanup the reset code and add meaningful registers defines
ARM: S3C24XX: header mach/regs-mem.h local
ARM: S3C24XX: header mach/regs-power.h local
ARM: S3C24XX: header mach/regs-s3c2412-mem.h local
ARM: S3C24XX: Remove plat-s3c24xx directory in arch/arm/
ARM: S3C24XX: transform s3c2443 subirqs into new structure
ARM: S3C24XX: modify s3c2443 irq init to initialize all irqs
ARM: S3C24XX: move s3c2443 irq code to irq.c
ARM: S3C24XX: transform s3c2416 irqs into new structure
ARM: S3C24XX: modify s3c2416 irq init to initialize all irqs
ARM: S3C24XX: move s3c2416 irq init to common irq code
ARM: S3C24XX: Modify s3c_irq_wake to use the hwirq property
ARM: S3C24XX: Move irq syscore-ops to irq-pm
clocksource: always define CLOCKSOURCE_OF_DECLARE
...
Diffstat (limited to 'arch/arm/mach-ux500/include')
-rw-r--r-- | arch/arm/mach-ux500/include/mach/hardware.h | 1 | ||||
-rw-r--r-- | arch/arm/mach-ux500/include/mach/id.h | 125 | ||||
-rw-r--r-- | arch/arm/mach-ux500/include/mach/setup.h | 3 | ||||
-rw-r--r-- | arch/arm/mach-ux500/include/mach/uncompress.h | 2 |
4 files changed, 1 insertions, 130 deletions
diff --git a/arch/arm/mach-ux500/include/mach/hardware.h b/arch/arm/mach-ux500/include/mach/hardware.h index 28d16e744bfd..5201ddace503 100644 --- a/arch/arm/mach-ux500/include/mach/hardware.h +++ b/arch/arm/mach-ux500/include/mach/hardware.h | |||
@@ -39,7 +39,6 @@ | |||
39 | 39 | ||
40 | #ifndef __ASSEMBLY__ | 40 | #ifndef __ASSEMBLY__ |
41 | 41 | ||
42 | #include <mach/id.h> | ||
43 | extern void __iomem *_PRCMU_BASE; | 42 | extern void __iomem *_PRCMU_BASE; |
44 | 43 | ||
45 | #define ARRAY_AND_SIZE(x) (x), ARRAY_SIZE(x) | 44 | #define ARRAY_AND_SIZE(x) (x), ARRAY_SIZE(x) |
diff --git a/arch/arm/mach-ux500/include/mach/id.h b/arch/arm/mach-ux500/include/mach/id.h deleted file mode 100644 index 9c42642ab168..000000000000 --- a/arch/arm/mach-ux500/include/mach/id.h +++ /dev/null | |||
@@ -1,125 +0,0 @@ | |||
1 | /* | ||
2 | * Copyright (C) ST-Ericsson SA 2010 | ||
3 | * | ||
4 | * Author: Rabin Vincent <rabin.vincent@stericsson.com> for ST-Ericsson | ||
5 | * License terms: GNU General Public License (GPL) version 2 | ||
6 | */ | ||
7 | |||
8 | #ifndef __MACH_UX500_ID | ||
9 | #define __MACH_UX500_ID | ||
10 | |||
11 | /** | ||
12 | * struct dbx500_asic_id - fields of the ASIC ID | ||
13 | * @process: the manufacturing process, 0x40 is 40 nm 0x00 is "standard" | ||
14 | * @partnumber: hithereto 0x8500 for DB8500 | ||
15 | * @revision: version code in the series | ||
16 | */ | ||
17 | struct dbx500_asic_id { | ||
18 | u16 partnumber; | ||
19 | u8 revision; | ||
20 | u8 process; | ||
21 | }; | ||
22 | |||
23 | extern struct dbx500_asic_id dbx500_id; | ||
24 | |||
25 | static inline unsigned int __attribute_const__ dbx500_partnumber(void) | ||
26 | { | ||
27 | return dbx500_id.partnumber; | ||
28 | } | ||
29 | |||
30 | static inline unsigned int __attribute_const__ dbx500_revision(void) | ||
31 | { | ||
32 | return dbx500_id.revision; | ||
33 | } | ||
34 | |||
35 | /* | ||
36 | * SOCs | ||
37 | */ | ||
38 | |||
39 | static inline bool __attribute_const__ cpu_is_u8500(void) | ||
40 | { | ||
41 | return dbx500_partnumber() == 0x8500; | ||
42 | } | ||
43 | |||
44 | static inline bool __attribute_const__ cpu_is_u8520(void) | ||
45 | { | ||
46 | return dbx500_partnumber() == 0x8520; | ||
47 | } | ||
48 | |||
49 | static inline bool cpu_is_u8500_family(void) | ||
50 | { | ||
51 | return cpu_is_u8500() || cpu_is_u8520(); | ||
52 | } | ||
53 | |||
54 | static inline bool __attribute_const__ cpu_is_u9540(void) | ||
55 | { | ||
56 | return dbx500_partnumber() == 0x9540; | ||
57 | } | ||
58 | |||
59 | static inline bool __attribute_const__ cpu_is_u8540(void) | ||
60 | { | ||
61 | return dbx500_partnumber() == 0x8540; | ||
62 | } | ||
63 | |||
64 | static inline bool cpu_is_ux540_family(void) | ||
65 | { | ||
66 | return cpu_is_u9540() || cpu_is_u8540(); | ||
67 | } | ||
68 | |||
69 | /* | ||
70 | * 8500 revisions | ||
71 | */ | ||
72 | |||
73 | static inline bool __attribute_const__ cpu_is_u8500ed(void) | ||
74 | { | ||
75 | return cpu_is_u8500() && dbx500_revision() == 0x00; | ||
76 | } | ||
77 | |||
78 | static inline bool __attribute_const__ cpu_is_u8500v1(void) | ||
79 | { | ||
80 | return cpu_is_u8500() && (dbx500_revision() & 0xf0) == 0xA0; | ||
81 | } | ||
82 | |||
83 | static inline bool __attribute_const__ cpu_is_u8500v10(void) | ||
84 | { | ||
85 | return cpu_is_u8500() && dbx500_revision() == 0xA0; | ||
86 | } | ||
87 | |||
88 | static inline bool __attribute_const__ cpu_is_u8500v11(void) | ||
89 | { | ||
90 | return cpu_is_u8500() && dbx500_revision() == 0xA1; | ||
91 | } | ||
92 | |||
93 | static inline bool __attribute_const__ cpu_is_u8500v2(void) | ||
94 | { | ||
95 | return cpu_is_u8500() && ((dbx500_revision() & 0xf0) == 0xB0); | ||
96 | } | ||
97 | |||
98 | static inline bool cpu_is_u8500v20(void) | ||
99 | { | ||
100 | return cpu_is_u8500() && (dbx500_revision() == 0xB0); | ||
101 | } | ||
102 | |||
103 | static inline bool cpu_is_u8500v21(void) | ||
104 | { | ||
105 | return cpu_is_u8500() && (dbx500_revision() == 0xB1); | ||
106 | } | ||
107 | |||
108 | static inline bool cpu_is_u8500v22(void) | ||
109 | { | ||
110 | return cpu_is_u8500() && (dbx500_revision() == 0xB2); | ||
111 | } | ||
112 | |||
113 | static inline bool cpu_is_u8500v20_or_later(void) | ||
114 | { | ||
115 | return (cpu_is_u8500() && !cpu_is_u8500v10() && !cpu_is_u8500v11()); | ||
116 | } | ||
117 | |||
118 | static inline bool ux500_is_svp(void) | ||
119 | { | ||
120 | return false; | ||
121 | } | ||
122 | |||
123 | #define ux500_unknown_soc() BUG() | ||
124 | |||
125 | #endif | ||
diff --git a/arch/arm/mach-ux500/include/mach/setup.h b/arch/arm/mach-ux500/include/mach/setup.h index 6be4c4d2ab88..bddce2b49372 100644 --- a/arch/arm/mach-ux500/include/mach/setup.h +++ b/arch/arm/mach-ux500/include/mach/setup.h | |||
@@ -28,8 +28,7 @@ extern struct device *ux500_soc_device_init(const char *soc_id); | |||
28 | struct amba_device; | 28 | struct amba_device; |
29 | extern void __init amba_add_devices(struct amba_device *devs[], int num); | 29 | extern void __init amba_add_devices(struct amba_device *devs[], int num); |
30 | 30 | ||
31 | struct sys_timer; | 31 | extern void ux500_timer_init(void); |
32 | extern struct sys_timer ux500_timer; | ||
33 | 32 | ||
34 | #define __IO_DEV_DESC(x, sz) { \ | 33 | #define __IO_DEV_DESC(x, sz) { \ |
35 | .virtual = IO_ADDRESS(x), \ | 34 | .virtual = IO_ADDRESS(x), \ |
diff --git a/arch/arm/mach-ux500/include/mach/uncompress.h b/arch/arm/mach-ux500/include/mach/uncompress.h index d60ecd1753f0..36969d52e53a 100644 --- a/arch/arm/mach-ux500/include/mach/uncompress.h +++ b/arch/arm/mach-ux500/include/mach/uncompress.h | |||
@@ -54,6 +54,4 @@ static inline void arch_decomp_setup(void) | |||
54 | ux500_uart_base = (void __iomem *)U8500_UART2_BASE; | 54 | ux500_uart_base = (void __iomem *)U8500_UART2_BASE; |
55 | } | 55 | } |
56 | 56 | ||
57 | #define arch_decomp_wdog() /* nothing to do here */ | ||
58 | |||
59 | #endif /* __ASM_ARCH_UNCOMPRESS_H */ | 57 | #endif /* __ASM_ARCH_UNCOMPRESS_H */ |