]> git.sur5r.net Git - u-boot/commitdiff
arm:s5pc110: add cpu revision
authorPiotr Wilczek <p.wilczek@samsung.com>
Wed, 22 Jan 2014 14:54:31 +0000 (15:54 +0100)
committerMinkyu Kang <mk7.kang@samsung.com>
Fri, 7 Feb 2014 01:06:24 +0000 (10:06 +0900)
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>
arch/arm/include/asm/arch-s5pc1xx/cpu.h

index 4fc5a0c3c9675a1015496ef461157f1e79abbcd9..5ae5c871693f76e035ca593bc2f58ed54dc2c018 100644 (file)
 #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);
 }