summaryrefslogtreecommitdiff
path: root/arch/arm
diff options
context:
space:
mode:
authorPiotr Wilczek <p.wilczek@samsung.com>2014-01-22 15:54:31 +0100
committerMinkyu Kang <mk7.kang@samsung.com>2014-02-07 10:06:24 +0900
commitd1cbf0a5ad8af65c8c1b9a0c848363de7ede91fe (patch)
tree252f8a9c0b5fa7787f1f166f90bfadf237d9ec3d /arch/arm
parent34991bbf471bb126988e611596a163135852d3c4 (diff)
downloadu-boot-imx-d1cbf0a5ad8af65c8c1b9a0c848363de7ede91fe.zip
u-boot-imx-d1cbf0a5ad8af65c8c1b9a0c848363de7ede91fe.tar.gz
u-boot-imx-d1cbf0a5ad8af65c8c1b9a0c848363de7ede91fe.tar.bz2
arm:s5pc110: add cpu revision
This patch adds s5p_cpu_rev. Signed-off-by: Piotr Wilczek <p.wilczek@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/include/asm/arch-s5pc1xx/cpu.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/include/asm/arch-s5pc1xx/cpu.h b/arch/arm/include/asm/arch-s5pc1xx/cpu.h
index 4fc5a0c..5ae5c87 100644
--- a/arch/arm/include/asm/arch-s5pc1xx/cpu.h
+++ b/arch/arm/include/asm/arch-s5pc1xx/cpu.h
@@ -51,10 +51,17 @@
#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)
{
s5p_cpu_id = readl(S5PC100_PRO_ID);
+ s5p_cpu_rev = s5p_cpu_id & 0x000000FF;
s5p_cpu_id = 0xC000 | ((s5p_cpu_id & 0x00FFF000) >> 12);
}