From: Tomasz Figa <t.figa@samsung.com>
To: linux-arm-kernel@lists.infradead.org
Cc: devicetree-discuss@lists.ozlabs.org,
linux-samsung-soc@vger.kernel.org, kgene.kim@samsung.com,
kyungmin.park@samsung.com, m.szyprowski@samsung.com,
thomas.abraham@linaro.org, arnd@arndb.de,
Tomasz Figa <t.figa@samsung.com>
Subject: [PATCH v2 2/3] ARM: EXYNOS: Fix support of Exynos4210 rev0 SoC
Date: Mon, 15 Apr 2013 16:42:01 +0200 [thread overview]
Message-ID: <1366036922-4103-3-git-send-email-t.figa@samsung.com> (raw)
In-Reply-To: <1366036922-4103-1-git-send-email-t.figa@samsung.com>
This patch extends exynos_init_time() function to handle Exynos4210 rev0
SoC, which differs in availability of system timers and needs different
clocksource initialization.
This makes it possible to use exynos_init_time() function as init_time
callback for all Exynos-based boards, including Universal_C210, which
originally had to use samsung_timer_init().
Signed-off-by: Tomasz Figa <t.figa@samsung.com>
---
arch/arm/mach-exynos/common.c | 6 +++++-
arch/arm/mach-exynos/mach-universal_c210.c | 2 +-
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/arch/arm/mach-exynos/common.c b/arch/arm/mach-exynos/common.c
index b65229d..ec596fc 100644
--- a/arch/arm/mach-exynos/common.c
+++ b/arch/arm/mach-exynos/common.c
@@ -51,6 +51,7 @@
#include <plat/fimc-core.h>
#include <plat/iic-core.h>
#include <plat/tv-core.h>
+#include <plat/samsung-time.h>
#include <plat/spi-core.h>
#include <plat/regs-serial.h>
@@ -457,7 +458,10 @@ void __init exynos_init_time(void)
exynos4_clk_init(NULL);
exynos4_clk_register_fixed_ext(xxti_f, xusbxti_f);
#endif
- mct_init();
+ if (soc_is_exynos4210() && samsung_rev() == EXYNOS4210_REV_0)
+ samsung_timer_init();
+ else
+ mct_init();
}
}
diff --git a/arch/arm/mach-exynos/mach-universal_c210.c b/arch/arm/mach-exynos/mach-universal_c210.c
index 020e1f4..a728812 100644
--- a/arch/arm/mach-exynos/mach-universal_c210.c
+++ b/arch/arm/mach-exynos/mach-universal_c210.c
@@ -1177,7 +1177,7 @@ MACHINE_START(UNIVERSAL_C210, "UNIVERSAL_C210")
.map_io = universal_map_io,
.init_machine = universal_machine_init,
.init_late = exynos_init_late,
- .init_time = samsung_timer_init,
+ .init_time = exynos_init_time,
.reserve = &universal_reserve,
.restart = exynos4_restart,
MACHINE_END
--
1.8.1.5
next prev parent reply other threads:[~2013-04-15 14:42 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-15 14:41 [PATCH v2 0/3] ARM: EXYNOS: DT-enabled support for Universal C210 Tomasz Figa
2013-04-15 14:42 ` [PATCH v2 1/3] ARM: dts: exynos4: Add node for PWM device Tomasz Figa
[not found] ` <1366036922-4103-2-git-send-email-t.figa-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
2013-04-22 21:08 ` Arnd Bergmann
2013-04-15 14:42 ` Tomasz Figa [this message]
2013-04-22 21:10 ` [PATCH v2 2/3] ARM: EXYNOS: Fix support of Exynos4210 rev0 SoC Arnd Bergmann
2013-04-23 13:56 ` Kukjin Kim
2013-04-23 14:26 ` Tomasz Figa
2013-04-23 15:02 ` Kukjin Kim
2013-04-15 14:42 ` [PATCH v2 3/3] ARM: dts: exynos4210: Add basic dts file for universal_c210 board Tomasz Figa
2013-04-22 21:11 ` Arnd Bergmann
2013-04-22 17:40 ` [PATCH v2 0/3] ARM: EXYNOS: DT-enabled support for Universal C210 Kukjin Kim
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1366036922-4103-3-git-send-email-t.figa@samsung.com \
--to=t.figa@samsung.com \
--cc=arnd@arndb.de \
--cc=devicetree-discuss@lists.ozlabs.org \
--cc=kgene.kim@samsung.com \
--cc=kyungmin.park@samsung.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=m.szyprowski@samsung.com \
--cc=thomas.abraham@linaro.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).