diff options
author | Kukjin Kim <kgene.kim@samsung.com> | 2012-02-10 11:57:53 +0900 |
---|---|---|
committer | Kukjin Kim <kgene.kim@samsung.com> | 2012-03-14 02:13:05 -0700 |
commit | 171c067c1a3f903fca78f2610794441a7d1e64f3 (patch) | |
tree | 62ea5441364f1c2288f5855dbbc6828e9f7808cb /arch/arm/mach-exynos/common.c | |
parent | b67545fd9b5335c38c028e7984a1bef9e789c8dc (diff) | |
download | blackbird-op-linux-171c067c1a3f903fca78f2610794441a7d1e64f3.tar.gz blackbird-op-linux-171c067c1a3f903fca78f2610794441a7d1e64f3.zip |
ARM: EXYNOS: add support uart for EXYNOS4 and EXYNOS5
Actually, the base address of uart is different between EXYNOS4
and EXYNOS5 and this patch enables to support uart for EXYNOS4
and EXYNOS5 SoCs at runtime.
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'arch/arm/mach-exynos/common.c')
-rw-r--r-- | arch/arm/mach-exynos/common.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/arm/mach-exynos/common.c b/arch/arm/mach-exynos/common.c index 02eed29c1580..4a82cf0071c3 100644 --- a/arch/arm/mach-exynos/common.c +++ b/arch/arm/mach-exynos/common.c @@ -477,7 +477,10 @@ static void __init exynos_init_uarts(struct s3c2410_uartcfg *cfg, int no) for (ucnt = 0; ucnt < no; ucnt++, tcfg++) tcfg->has_fracval = 1; - s3c24xx_init_uartdevs("exynos4210-uart", s5p_uart_resources, cfg, no); + if (soc_is_exynos5250()) + s3c24xx_init_uartdevs("exynos4210-uart", exynos5_uart_resources, cfg, no); + else + s3c24xx_init_uartdevs("exynos4210-uart", exynos4_uart_resources, cfg, no); } static DEFINE_SPINLOCK(eint_lock); |