diff options
author | Kukjin Kim <kgene.kim@samsung.com> | 2011-08-20 12:18:07 +0900 |
---|---|---|
committer | Kukjin Kim <kgene.kim@samsung.com> | 2011-08-24 19:25:19 +0900 |
commit | e6d1cb9f1fffd7e300af6d8f6731a486d6255e3f (patch) | |
tree | 7247b6f99084bfe78fbf17c5284121aa6ffc5f08 /arch/arm/plat-s5p | |
parent | a3d9358406b7529373ccafbf6d264f811884959c (diff) |
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)); } |