ARM: ux500: remove cpu_is_u* helpers
[deliverable/linux.git] / arch / arm / mach-ux500 / id.h
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 #define ux500_unknown_soc() BUG()
36
37 #endif
This page took 0.047566 seconds and 5 git commands to generate.