* [PATCH 0/3] arm: am4: initialiaze twd local timer
@ 2015-09-14 13:42 ` Felipe Balbi
0 siblings, 0 replies; 6+ messages in thread
From: Felipe Balbi @ 2015-09-14 13:42 UTC (permalink / raw)
To: linux-arm-kernel
Hi,
the following patches are a rebase of the old series [1] to make use
of TWD/Global timers with AM437x devices.
Note that this depends on another patch which used to be part of this
series, but now it was sent separately [2].
[1] http://marc.info/?l=linux-omap&m=143940944508625&w=2
[2] http://www.arm.linux.org.uk/developer/patches/viewpatch.php?id=8434/1
Felipe Balbi (2):
arm: omap2: Kconfig: select TWD and global timer on AM43xx devices
arm: omap2: board-generic: use omap4_local_timer_init for AM437x
arch/arm/kernel/smp_twd.c | 4 ----
arch/arm/mach-omap2/Kconfig | 3 +++
arch/arm/mach-omap2/board-generic.c | 2 +-
3 files changed, 4 insertions(+), 5 deletions(-)
--
2.5.0
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH 0/3] arm: am4: initialiaze twd local timer
@ 2015-09-14 13:42 ` Felipe Balbi
0 siblings, 0 replies; 6+ messages in thread
From: Felipe Balbi @ 2015-09-14 13:42 UTC (permalink / raw)
To: Tony Lindgren
Cc: Linux OMAP Mailing List, Felipe Balbi,
Linux ARM Kernel Mailing List
Hi,
the following patches are a rebase of the old series [1] to make use
of TWD/Global timers with AM437x devices.
Note that this depends on another patch which used to be part of this
series, but now it was sent separately [2].
[1] http://marc.info/?l=linux-omap&m=143940944508625&w=2
[2] http://www.arm.linux.org.uk/developer/patches/viewpatch.php?id=8434/1
Felipe Balbi (2):
arm: omap2: Kconfig: select TWD and global timer on AM43xx devices
arm: omap2: board-generic: use omap4_local_timer_init for AM437x
arch/arm/kernel/smp_twd.c | 4 ----
arch/arm/mach-omap2/Kconfig | 3 +++
arch/arm/mach-omap2/board-generic.c | 2 +-
3 files changed, 4 insertions(+), 5 deletions(-)
--
2.5.0
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH 1/2] arm: omap2: Kconfig: select TWD and global timer on AM43xx devices
2015-09-14 13:42 ` Felipe Balbi
@ 2015-09-14 13:42 ` Felipe Balbi
-1 siblings, 0 replies; 6+ messages in thread
From: Felipe Balbi @ 2015-09-14 13:42 UTC (permalink / raw)
To: linux-arm-kernel
Make sure to tell the kernel that AM437x has
TWD and global timers.
Signed-off-by: Felipe Balbi <balbi@ti.com>
---
arch/arm/mach-omap2/Kconfig | 3 +++
1 file changed, 3 insertions(+)
diff --git a/arch/arm/mach-omap2/Kconfig b/arch/arm/mach-omap2/Kconfig
index 07d2e100caab..88ef10b2d415 100644
--- a/arch/arm/mach-omap2/Kconfig
+++ b/arch/arm/mach-omap2/Kconfig
@@ -63,6 +63,9 @@ config SOC_AM43XX
select MACH_OMAP_GENERIC
select MIGHT_HAVE_CACHE_L2X0
select HAVE_ARM_SCU
+ select HAVE_ARM_TWD
+ select ARM_GLOBAL_TIMER
+ select CLKSRC_ARM_GLOBAL_TIMER_SCHED_CLOCK
config SOC_DRA7XX
bool "TI DRA7XX"
--
2.5.0
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH 1/2] arm: omap2: Kconfig: select TWD and global timer on AM43xx devices
@ 2015-09-14 13:42 ` Felipe Balbi
0 siblings, 0 replies; 6+ messages in thread
From: Felipe Balbi @ 2015-09-14 13:42 UTC (permalink / raw)
To: Tony Lindgren
Cc: Linux OMAP Mailing List, Felipe Balbi,
Linux ARM Kernel Mailing List
Make sure to tell the kernel that AM437x has
TWD and global timers.
Signed-off-by: Felipe Balbi <balbi@ti.com>
---
arch/arm/mach-omap2/Kconfig | 3 +++
1 file changed, 3 insertions(+)
diff --git a/arch/arm/mach-omap2/Kconfig b/arch/arm/mach-omap2/Kconfig
index 07d2e100caab..88ef10b2d415 100644
--- a/arch/arm/mach-omap2/Kconfig
+++ b/arch/arm/mach-omap2/Kconfig
@@ -63,6 +63,9 @@ config SOC_AM43XX
select MACH_OMAP_GENERIC
select MIGHT_HAVE_CACHE_L2X0
select HAVE_ARM_SCU
+ select HAVE_ARM_TWD
+ select ARM_GLOBAL_TIMER
+ select CLKSRC_ARM_GLOBAL_TIMER_SCHED_CLOCK
config SOC_DRA7XX
bool "TI DRA7XX"
--
2.5.0
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH 2/2] arm: omap2: board-generic: use omap4_local_timer_init for AM437x
2015-09-14 13:42 ` Felipe Balbi
@ 2015-09-14 13:42 ` Felipe Balbi
-1 siblings, 0 replies; 6+ messages in thread
From: Felipe Balbi @ 2015-09-14 13:42 UTC (permalink / raw)
To: linux-arm-kernel
AM437x-based boards, can use omap4_local_timer_init()
just fine. Let's use that instead.
Signed-off-by: Felipe Balbi <balbi@ti.com>
---
arch/arm/mach-omap2/board-generic.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/mach-omap2/board-generic.c b/arch/arm/mach-omap2/board-generic.c
index 24c9afc9e8a7..89bf39663d61 100644
--- a/arch/arm/mach-omap2/board-generic.c
+++ b/arch/arm/mach-omap2/board-generic.c
@@ -279,7 +279,7 @@ DT_MACHINE_START(AM43_DT, "Generic AM43 (Flattened Device Tree)")
.init_late = am43xx_init_late,
.init_irq = omap_gic_of_init,
.init_machine = omap_generic_init,
- .init_time = omap3_gptimer_timer_init,
+ .init_time = omap4_local_timer_init,
.dt_compat = am43_boards_compat,
.restart = omap44xx_restart,
MACHINE_END
--
2.5.0
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH 2/2] arm: omap2: board-generic: use omap4_local_timer_init for AM437x
@ 2015-09-14 13:42 ` Felipe Balbi
0 siblings, 0 replies; 6+ messages in thread
From: Felipe Balbi @ 2015-09-14 13:42 UTC (permalink / raw)
To: Tony Lindgren
Cc: Linux OMAP Mailing List, Felipe Balbi,
Linux ARM Kernel Mailing List
AM437x-based boards, can use omap4_local_timer_init()
just fine. Let's use that instead.
Signed-off-by: Felipe Balbi <balbi@ti.com>
---
arch/arm/mach-omap2/board-generic.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/mach-omap2/board-generic.c b/arch/arm/mach-omap2/board-generic.c
index 24c9afc9e8a7..89bf39663d61 100644
--- a/arch/arm/mach-omap2/board-generic.c
+++ b/arch/arm/mach-omap2/board-generic.c
@@ -279,7 +279,7 @@ DT_MACHINE_START(AM43_DT, "Generic AM43 (Flattened Device Tree)")
.init_late = am43xx_init_late,
.init_irq = omap_gic_of_init,
.init_machine = omap_generic_init,
- .init_time = omap3_gptimer_timer_init,
+ .init_time = omap4_local_timer_init,
.dt_compat = am43_boards_compat,
.restart = omap44xx_restart,
MACHINE_END
--
2.5.0
^ permalink raw reply related [flat|nested] 6+ messages in thread
end of thread, other threads:[~2015-09-14 13:42 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-14 13:42 [PATCH 0/3] arm: am4: initialiaze twd local timer Felipe Balbi
2015-09-14 13:42 ` Felipe Balbi
2015-09-14 13:42 ` [PATCH 1/2] arm: omap2: Kconfig: select TWD and global timer on AM43xx devices Felipe Balbi
2015-09-14 13:42 ` Felipe Balbi
2015-09-14 13:42 ` [PATCH 2/2] arm: omap2: board-generic: use omap4_local_timer_init for AM437x Felipe Balbi
2015-09-14 13:42 ` Felipe Balbi
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.