diff options
author | Tom Rini <trini@ti.com> | 2014-02-17 14:22:02 -0500 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2014-02-17 14:22:02 -0500 |
commit | c4d376fd1c2bce8d64cec0431dd3f24957b6dec4 (patch) | |
tree | de17e3a67fa4a48f3b9571bff2399cb0a24558bc /arch/arm/include/asm/arch-s5pc1xx/cpu.h | |
parent | b1ad03c242dae3712b9be66026f5d8c6f919c00b (diff) | |
parent | 5e77a745b24d9b98aa635293972f04fd6f0c6b38 (diff) | |
download | u-boot-imx-c4d376fd1c2bce8d64cec0431dd3f24957b6dec4.zip u-boot-imx-c4d376fd1c2bce8d64cec0431dd3f24957b6dec4.tar.gz u-boot-imx-c4d376fd1c2bce8d64cec0431dd3f24957b6dec4.tar.bz2 |
Merge branch 'master' of git://git.denx.de/u-boot-arm
Diffstat (limited to 'arch/arm/include/asm/arch-s5pc1xx/cpu.h')
-rw-r--r-- | arch/arm/include/asm/arch-s5pc1xx/cpu.h | 7 |
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); } |