summaryrefslogtreecommitdiff
path: root/arch/arm/include
diff options
context:
space:
mode:
authorMinkyu Kang <mk7.kang@samsung.com>2011-05-16 19:45:54 +0900
committerMinkyu Kang <mk7.kang@samsung.com>2011-05-26 19:31:11 +0900
commit5d845f2758d86f9287e2ac3d48fdcbe80ad1d21b (patch)
tree6b19d647fecb10aa1609a6846d2b5c6c01bdb5e2 /arch/arm/include
parentb0ad8621777048c2781393a8b6a42112598218cf (diff)
downloadu-boot-imx-5d845f2758d86f9287e2ac3d48fdcbe80ad1d21b.zip
u-boot-imx-5d845f2758d86f9287e2ac3d48fdcbe80ad1d21b.tar.gz
u-boot-imx-5d845f2758d86f9287e2ac3d48fdcbe80ad1d21b.tar.bz2
S5PC2XX: Support the cpu revision
S5PC210 SoC have two cpu revisions, and have some difference. So, support the cpu revision for each revision. Signed-off-by: Minkyu Kang <mk7.kang@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Diffstat (limited to 'arch/arm/include')
-rw-r--r--arch/arm/include/asm/arch-s5pc2xx/cpu.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/arch/arm/include/asm/arch-s5pc2xx/cpu.h b/arch/arm/include/asm/arch-s5pc2xx/cpu.h
index d56ee80..f9015c7 100644
--- a/arch/arm/include/asm/arch-s5pc2xx/cpu.h
+++ b/arch/arm/include/asm/arch-s5pc2xx/cpu.h
@@ -51,6 +51,12 @@
#include <asm/io.h>
/* CPU detection macros */
extern unsigned int s5p_cpu_id;
+extern unsigned int s5p_cpu_rev;
+
+static inline int s5p_get_cpu_rev(void)
+{
+ return s5p_cpu_rev;
+}
static inline void s5p_set_cpu_id(void)
{
@@ -61,8 +67,12 @@ static inline void s5p_set_cpu_id(void)
* 0xC200: S5PC210 EVT0
* 0xC210: S5PC210 EVT1
*/
- if (s5p_cpu_id == 0xC200)
+ if (s5p_cpu_id == 0xC200) {
s5p_cpu_id |= 0x10;
+ s5p_cpu_rev = 0;
+ } else if (s5p_cpu_id == 0xC210) {
+ s5p_cpu_rev = 1;
+ }
}
#define IS_SAMSUNG_TYPE(type, id) \