aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-ux500/include
diff options
context:
space:
mode:
authorOlof Johansson <olof@lixom.net>2013-01-29 19:05:48 -0500
committerOlof Johansson <olof@lixom.net>2013-01-29 19:06:03 -0500
commit0b79f2772a0c49266e611a36d55a2d0e2a241929 (patch)
treecbb54756a3d47ecba7162741756609ce1a3229d6 /arch/arm/mach-ux500/include
parent1576a31c61d41a0bb549a3aabd10f42c5e233de4 (diff)
parent7a4f26097d389c16c9956bc03b81532698d97d64 (diff)
Merge tag 'ux500-no-idh' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-stericsson into next/cleanup
From Linus Walleij: Removal of the <mach/id.h> include from ux500 - First an ACKed MFD patch deleting the only consumer of these cpu_is* functions outside of mach-ux500 - Introduce a new local cpu_is_u8580() in this patch set to avoid clashing with other patch sets. - Finally de-globalize <mach/id.h>. * tag 'ux500-no-idh' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-stericsson: ARM: ux500: de-globalize <mach/id.h> ARM: ux500: Introduce cpu_is_u8580() mfd: prcmu: delete pin control helpers Signed-off-by: Olof Johansson <olof@lixom.net>
Diffstat (limited to 'arch/arm/mach-ux500/include')
-rw-r--r--arch/arm/mach-ux500/include/mach/hardware.h1
-rw-r--r--arch/arm/mach-ux500/include/mach/id.h125
2 files changed, 0 insertions, 126 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>
43extern void __iomem *_PRCMU_BASE; 42extern 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 */
17struct dbx500_asic_id {
18 u16 partnumber;
19 u8 revision;
20 u8 process;
21};
22
23extern struct dbx500_asic_id dbx500_id;
24
25static inline unsigned int __attribute_const__ dbx500_partnumber(void)
26{
27 return dbx500_id.partnumber;
28}
29
30static inline unsigned int __attribute_const__ dbx500_revision(void)
31{
32 return dbx500_id.revision;
33}
34
35/*
36 * SOCs
37 */
38
39static inline bool __attribute_const__ cpu_is_u8500(void)
40{
41 return dbx500_partnumber() == 0x8500;
42}
43
44static inline bool __attribute_const__ cpu_is_u8520(void)
45{
46 return dbx500_partnumber() == 0x8520;
47}
48
49static inline bool cpu_is_u8500_family(void)
50{
51 return cpu_is_u8500() || cpu_is_u8520();
52}
53
54static inline bool __attribute_const__ cpu_is_u9540(void)
55{
56 return dbx500_partnumber() == 0x9540;
57}
58
59static inline bool __attribute_const__ cpu_is_u8540(void)
60{
61 return dbx500_partnumber() == 0x8540;
62}
63
64static inline bool cpu_is_ux540_family(void)
65{
66 return cpu_is_u9540() || cpu_is_u8540();
67}
68
69/*
70 * 8500 revisions
71 */
72
73static inline bool __attribute_const__ cpu_is_u8500ed(void)
74{
75 return cpu_is_u8500() && dbx500_revision() == 0x00;
76}
77
78static inline bool __attribute_const__ cpu_is_u8500v1(void)
79{
80 return cpu_is_u8500() && (dbx500_revision() & 0xf0) == 0xA0;
81}
82
83static inline bool __attribute_const__ cpu_is_u8500v10(void)
84{
85 return cpu_is_u8500() && dbx500_revision() == 0xA0;
86}
87
88static inline bool __attribute_const__ cpu_is_u8500v11(void)
89{
90 return cpu_is_u8500() && dbx500_revision() == 0xA1;
91}
92
93static inline bool __attribute_const__ cpu_is_u8500v2(void)
94{
95 return cpu_is_u8500() && ((dbx500_revision() & 0xf0) == 0xB0);
96}
97
98static inline bool cpu_is_u8500v20(void)
99{
100 return cpu_is_u8500() && (dbx500_revision() == 0xB0);
101}
102
103static inline bool cpu_is_u8500v21(void)
104{
105 return cpu_is_u8500() && (dbx500_revision() == 0xB1);
106}
107
108static inline bool cpu_is_u8500v22(void)
109{
110 return cpu_is_u8500() && (dbx500_revision() == 0xB2);
111}
112
113static inline bool cpu_is_u8500v20_or_later(void)
114{
115 return (cpu_is_u8500() && !cpu_is_u8500v10() && !cpu_is_u8500v11());
116}
117
118static inline bool ux500_is_svp(void)
119{
120 return false;
121}
122
123#define ux500_unknown_soc() BUG()
124
125#endif