From: Magnus Damm <magnus.damm@gmail.com>
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 02/04] ARM: shmobile: Add EMEV2 specific timer_init
Date: Wed, 06 Mar 2013 00:22:33 +0000 [thread overview]
Message-ID: <20130306002233.5430.86.sendpatchset@w520> (raw)
In-Reply-To: <20130306002214.5430.43766.sendpatchset@w520>
From: Magnus Damm <damm@opensource.se>
Add a emev2_timer_init() function to the EMEV2 setup
code. This is preparation work for EMEV2 TWD support.
To allow registration of the TWD driver from
the ->timer_init() callback the init code for EMEV2
clocks is from ->init_machine() to ->init_time().
This affects EMEV2 clock init order on the KZM9D board
but leaves the generic EMEV2 DT case as-is due to
no setup code for clocks in the DT case.
Signed-off-by: Magnus Damm <damm@opensource.se>
---
arch/arm/mach-shmobile/board-kzm9d.c | 2 +-
arch/arm/mach-shmobile/include/mach/emev2.h | 1 +
arch/arm/mach-shmobile/setup-emev2.c | 8 ++++++--
3 files changed, 8 insertions(+), 3 deletions(-)
--- 0001/arch/arm/mach-shmobile/board-kzm9d.c
+++ work/arch/arm/mach-shmobile/board-kzm9d.c 2013-03-05 18:31:45.000000000 +0900
@@ -90,6 +90,6 @@ DT_MACHINE_START(KZM9D_DT, "kzm9d")
.init_irq = emev2_init_irq,
.init_machine = kzm9d_add_standard_devices,
.init_late = shmobile_init_late,
- .init_time = shmobile_timer_init,
+ .init_time = emev2_timer_init,
.dt_compat = kzm9d_boards_compat_dt,
MACHINE_END
--- 0001/arch/arm/mach-shmobile/include/mach/emev2.h
+++ work/arch/arm/mach-shmobile/include/mach/emev2.h 2013-03-05 18:31:45.000000000 +0900
@@ -5,6 +5,7 @@ extern void emev2_map_io(void);
extern void emev2_init_irq(void);
extern void emev2_add_early_devices(void);
extern void emev2_add_standard_devices(void);
+extern void emev2_timer_init(void);
extern void emev2_clock_init(void);
extern void emev2_set_boot_vector(unsigned long value);
--- 0004/arch/arm/mach-shmobile/setup-emev2.c
+++ work/arch/arm/mach-shmobile/setup-emev2.c 2013-03-05 18:34:09.000000000 +0900
@@ -395,8 +395,6 @@ static struct platform_device *emev2_lat
void __init emev2_add_standard_devices(void)
{
- emev2_clock_init();
-
platform_add_devices(emev2_early_devices,
ARRAY_SIZE(emev2_early_devices));
@@ -404,6 +402,12 @@ void __init emev2_add_standard_devices(v
ARRAY_SIZE(emev2_late_devices));
}
+void __init emev2_timer_init(void)
+{
+ emev2_clock_init();
+ shmobile_timer_init();
+}
+
static void __init emev2_init_delay(void)
{
shmobile_setup_delay(533, 1, 3); /* Cortex-A9 @ 533MHz */
WARNING: multiple messages have this Message-ID (diff)
From: magnus.damm@gmail.com (Magnus Damm)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 02/04] ARM: shmobile: Add EMEV2 specific timer_init
Date: Wed, 06 Mar 2013 09:22:33 +0900 [thread overview]
Message-ID: <20130306002233.5430.86.sendpatchset@w520> (raw)
In-Reply-To: <20130306002214.5430.43766.sendpatchset@w520>
From: Magnus Damm <damm@opensource.se>
Add a emev2_timer_init() function to the EMEV2 setup
code. This is preparation work for EMEV2 TWD support.
To allow registration of the TWD driver from
the ->timer_init() callback the init code for EMEV2
clocks is from ->init_machine() to ->init_time().
This affects EMEV2 clock init order on the KZM9D board
but leaves the generic EMEV2 DT case as-is due to
no setup code for clocks in the DT case.
Signed-off-by: Magnus Damm <damm@opensource.se>
---
arch/arm/mach-shmobile/board-kzm9d.c | 2 +-
arch/arm/mach-shmobile/include/mach/emev2.h | 1 +
arch/arm/mach-shmobile/setup-emev2.c | 8 ++++++--
3 files changed, 8 insertions(+), 3 deletions(-)
--- 0001/arch/arm/mach-shmobile/board-kzm9d.c
+++ work/arch/arm/mach-shmobile/board-kzm9d.c 2013-03-05 18:31:45.000000000 +0900
@@ -90,6 +90,6 @@ DT_MACHINE_START(KZM9D_DT, "kzm9d")
.init_irq = emev2_init_irq,
.init_machine = kzm9d_add_standard_devices,
.init_late = shmobile_init_late,
- .init_time = shmobile_timer_init,
+ .init_time = emev2_timer_init,
.dt_compat = kzm9d_boards_compat_dt,
MACHINE_END
--- 0001/arch/arm/mach-shmobile/include/mach/emev2.h
+++ work/arch/arm/mach-shmobile/include/mach/emev2.h 2013-03-05 18:31:45.000000000 +0900
@@ -5,6 +5,7 @@ extern void emev2_map_io(void);
extern void emev2_init_irq(void);
extern void emev2_add_early_devices(void);
extern void emev2_add_standard_devices(void);
+extern void emev2_timer_init(void);
extern void emev2_clock_init(void);
extern void emev2_set_boot_vector(unsigned long value);
--- 0004/arch/arm/mach-shmobile/setup-emev2.c
+++ work/arch/arm/mach-shmobile/setup-emev2.c 2013-03-05 18:34:09.000000000 +0900
@@ -395,8 +395,6 @@ static struct platform_device *emev2_lat
void __init emev2_add_standard_devices(void)
{
- emev2_clock_init();
-
platform_add_devices(emev2_early_devices,
ARRAY_SIZE(emev2_early_devices));
@@ -404,6 +402,12 @@ void __init emev2_add_standard_devices(v
ARRAY_SIZE(emev2_late_devices));
}
+void __init emev2_timer_init(void)
+{
+ emev2_clock_init();
+ shmobile_timer_init();
+}
+
static void __init emev2_init_delay(void)
{
shmobile_setup_delay(533, 1, 3); /* Cortex-A9 @ 533MHz */
next prev parent reply other threads:[~2013-03-06 0:22 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-06 0:22 [PATCH 00/04] ARM: shmobile: TWD update Magnus Damm
2013-03-06 0:22 ` Magnus Damm
2013-03-06 0:22 ` [PATCH 01/04] ARM: shmobile: Register DT TWD from timer.c Magnus Damm
2013-03-06 0:22 ` Magnus Damm
2013-03-06 0:22 ` Magnus Damm [this message]
2013-03-06 0:22 ` [PATCH 02/04] ARM: shmobile: Add EMEV2 specific timer_init Magnus Damm
2013-03-06 0:22 ` [PATCH 03/04] ARM: shmobile: Add EMEV2 TWD support Magnus Damm
2013-03-06 0:22 ` Magnus Damm
2013-03-06 0:22 ` [PATCH 04/04] ARM: shmobile: Remove r8a7779_register_twd() from common.h Magnus Damm
2013-03-06 0:22 ` Magnus Damm
2013-03-06 1:51 ` [PATCH 00/04] ARM: shmobile: TWD update Simon Horman
2013-03-06 1:51 ` Simon Horman
2013-03-19 3:11 ` Simon Horman
2013-03-19 3:11 ` Simon Horman
2013-03-19 5:17 ` Magnus Damm
2013-03-19 5:17 ` Magnus Damm
2013-03-19 7:04 ` Simon Horman
2013-03-19 7:04 ` Simon Horman
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=20130306002233.5430.86.sendpatchset@w520 \
--to=magnus.damm@gmail.com \
--cc=linux-arm-kernel@lists.infradead.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.