diff options
author | Kukjin Kim <kgene.kim@samsung.com> | 2011-08-20 05:18:07 +0200 |
---|---|---|
committer | Kukjin Kim <kgene.kim@samsung.com> | 2011-08-24 12:25:19 +0200 |
commit | e6d1cb9f1fffd7e300af6d8f6731a486d6255e3f (patch) | |
tree | 7247b6f99084bfe78fbf17c5284121aa6ffc5f08 /arch/arm/plat-s5p | |
parent | ARM: S5P64X0: Use soc_is_s5p64x0() to distinguish cpu at runtime (diff) | |
download | linux-e6d1cb9f1fffd7e300af6d8f6731a486d6255e3f.tar.xz linux-e6d1cb9f1fffd7e300af6d8f6731a486d6255e3f.zip |
ARM: SAMSUNG: Add support for handling of cpu revision
This patch adds plat-samsung/cpu.c for detecting of cpu id and
silicon revision.
This patch was originally from Changhwan Youn <chaos.youn@samsung.com>
Acked-by: Changhwan Youn <chaos.youn@samsung.com>
Cc: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'arch/arm/plat-s5p')
-rw-r--r-- | arch/arm/plat-s5p/cpu.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/arm/plat-s5p/cpu.c b/arch/arm/plat-s5p/cpu.c index 3ef673482111..04392c70d055 100644 --- a/arch/arm/plat-s5p/cpu.c +++ b/arch/arm/plat-s5p/cpu.c @@ -119,6 +119,8 @@ void __init s5p_init_io(struct map_desc *mach_desc, if (mach_desc) iotable_init(mach_desc, size); - samsung_cpu_id = __raw_readl(cpuid_addr); + /* detect cpu id and rev. */ + s5p_init_cpu(cpuid_addr); + s3c_init_cpu(samsung_cpu_id, cpu_ids, ARRAY_SIZE(cpu_ids)); } |