diff options
author | Kukjin Kim <kgene.kim@samsung.com> | 2011-08-20 00:41:21 -0400 |
---|---|---|
committer | Kukjin Kim <kgene.kim@samsung.com> | 2011-08-24 07:26:03 -0400 |
commit | 56b209227a87b718450e917df904e627ddfca146 (patch) | |
tree | 4a271174ecec8bf1fb13e90a2bbca00918a4def8 /arch/arm/plat-samsung/include/plat/cpu.h | |
parent | e6d1cb9f1fffd7e300af6d8f6731a486d6255e3f (diff) |
ARM: EXYNOS4: Use samsung_rev() to distinguish silicon revision
This patch uses samsung_rev() to support variable silicon revision of
EXYNOS4210 so that can support for EXYNOS4210 REV0, REV1.0 and REV1.1.
Note: Need to change timer setting on REV0.
Acked-by: Changhwan Youn <chaos.youn@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'arch/arm/plat-samsung/include/plat/cpu.h')
-rw-r--r-- | arch/arm/plat-samsung/include/plat/cpu.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/plat-samsung/include/plat/cpu.h b/arch/arm/plat-samsung/include/plat/cpu.h index c22d110a1965..6fdd5ef5e7b1 100644 --- a/arch/arm/plat-samsung/include/plat/cpu.h +++ b/arch/arm/plat-samsung/include/plat/cpu.h | |||
@@ -100,6 +100,10 @@ IS_SAMSUNG_CPU(exynos4210, EXYNOS4210_CPU_ID, EXYNOS4_CPU_MASK) | |||
100 | # define soc_is_exynos4210() 0 | 100 | # define soc_is_exynos4210() 0 |
101 | #endif | 101 | #endif |
102 | 102 | ||
103 | #define EXYNOS4210_REV_0 (0x0) | ||
104 | #define EXYNOS4210_REV_1_0 (0x10) | ||
105 | #define EXYNOS4210_REV_1_1 (0x11) | ||
106 | |||
103 | #define IODESC_ENT(x) { (unsigned long)S3C24XX_VA_##x, __phys_to_pfn(S3C24XX_PA_##x), S3C24XX_SZ_##x, MT_DEVICE } | 107 | #define IODESC_ENT(x) { (unsigned long)S3C24XX_VA_##x, __phys_to_pfn(S3C24XX_PA_##x), S3C24XX_SZ_##x, MT_DEVICE } |
104 | 108 | ||
105 | #ifndef MHZ | 109 | #ifndef MHZ |
@@ -144,6 +148,8 @@ extern void s3c24xx_init_cpu(void); | |||
144 | extern void s3c64xx_init_cpu(void); | 148 | extern void s3c64xx_init_cpu(void); |
145 | extern void s5p_init_cpu(void __iomem *cpuid_addr); | 149 | extern void s5p_init_cpu(void __iomem *cpuid_addr); |
146 | 150 | ||
151 | extern unsigned int samsung_rev(void); | ||
152 | |||
147 | extern void s3c24xx_init_uarts(struct s3c2410_uartcfg *cfg, int no); | 153 | extern void s3c24xx_init_uarts(struct s3c2410_uartcfg *cfg, int no); |
148 | 154 | ||
149 | extern void s3c24xx_init_clocks(int xtal); | 155 | extern void s3c24xx_init_clocks(int xtal); |