clocksource
Subsystems (4)
cover clocksource
HI,
the smp twd patch was not udpated realted to the dev_err
add nomadik drivers
The following changes since commit df80e395477857b34aaf0bae0785413a9ed8ffe3:
net mdio_bus: Add missing bus_register (2012-10-04 17:08:06 +0200)
are available in the git repository at:
git://git.jcrosoft.org/barebox.git tags/clocksource
for you to fetch changes up to ebf6e1d052b6a846d0adab673385df6a427cfe51:
arm: move nomadik timer to drivers/clocksource (2012-10-04 18:54:12 +0800)
----------------------------------------------------------------
introduce clocksource
move common clocksource to drivers/clocksource
move nomadik one as it's shared between 8815 and ux5x0 add generic Cortex A9/A5 smp twd timer support
----------------------------------------------------------------
Jean-Christophe PLAGNIOL-VILLARD (2):
arm: add generic smp twd timer
arm: move nomadik timer to drivers/clocksource
arch/arm/Kconfig | 1 + arch/arm/mach-nomadik/8815.c | 5 +++++ arch/arm/mach-nomadik/include/mach/mtu.h | 46 ---------------------------------------------- arch/arm/mach-nomadik/include/mach/timex.h | 6 ------ arch/arm/mach-nomadik/timer.c | 54 +++--------------------------------------------------- drivers/Kconfig | 1 + drivers/Makefile | 1 + drivers/clocksource/Kconfig | 7 +++++++ drivers/clocksource/Makefile | 2 ++ drivers/clocksource/arm_smp_twd.c | 101 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ drivers/clocksource/nomadik.c | 147 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 11 files changed, 268 insertions(+), 103 deletions(-) delete mode 100644 arch/arm/mach-nomadik/include/mach/mtu.h delete mode 100644 arch/arm/mach-nomadik/include/mach/timex.h create mode 100644 drivers/clocksource/Kconfig create mode 100644 drivers/clocksource/Makefile create mode 100644 drivers/clocksource/arm_smp_twd.c create mode 100644 drivers/clocksource/nomadik.c
Best Regards,
J.
_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
PATCH 1/2 arm: add generic smp twd timer
on Cortex A9 and Cortex A5 we have a generic timer which we can use as clocksource
Limit the timer frequency to < 25Mhz
--- drivers/Kconfig | 1 + drivers/Makefile | 1 + drivers/clocksource/Kconfig | 3 ++ drivers/clocksource/Makefile | 1 + drivers/clocksource/arm_smp_twd.c | 101 +++++++++++++++++++++++++++++++++++++ 5 files changed, 107 insertions(+) create mode 100644 drivers/clocksource/Kconfig create mode 100644 drivers/clocksource/Makefile create mode 100644 drivers/clocksource/arm_smp_twd.c
drivers/Kconfig +1 -0
@@ -11,6 +11,7 @@ source "drivers/usb/Kconfig" source "drivers/video/Kconfig" source "drivers/mci/Kconfig" source "drivers/clk/Kconfig" +source "drivers/clocksource/Kconfig" source "drivers/mfd/Kconfig" source "drivers/misc/Kconfig" source "drivers/led/Kconfig"
drivers/Makefile +1 -0
@@ -11,6 +11,7 @@ obj-$(CONFIG_I2C) += i2c/ obj-$(CONFIG_MCI) += mci/ obj-$(CONFIG_VIDEO) += video/ obj-y += clk/ +obj-y += clocksource/ obj-y += mfd/ obj-$(CONFIG_LED) += led/ obj-y += eeprom/
drivers/clocksource/Kconfig new file +3 -0
@@ -0,0 +1,3 @@ +config ARM_SMP_TWD + bool + depends on ARM && CPU_V7
drivers/clocksource/Makefile new file +1 -0
@@ -0,0 +1 @@ +obj-$(CONFIG_ARM_SMP_TWD) += arm_smp_twd.o
drivers/clocksource/arm_smp_twd.c new file +101 -0
101 lines not on this page · raw message
Signature · 7 lines
1.7.10.4 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
PATCH 2/2 arm: move nomadik timer to drivers/clocksource
as this timer is shared with multiple arch
--- arch/arm/Kconfig | 1 + arch/arm/mach-nomadik/8815.c | 5 + arch/arm/mach-nomadik/include/mach/mtu.h | 46 --------- arch/arm/mach-nomadik/include/mach/timex.h | 6 -- arch/arm/mach-nomadik/timer.c | 114 +++++++-------------- drivers/clocksource/Kconfig | 4 + drivers/clocksource/Makefile | 1 + drivers/clocksource/nomadik.c | 147 ++++++++++++++++++++++++++++ 8 files changed, 191 insertions(+), 133 deletions(-) delete mode 100644 arch/arm/mach-nomadik/include/mach/mtu.h delete mode 100644 arch/arm/mach-nomadik/include/mach/timex.h rewrite arch/arm/mach-nomadik/timer.c (60%) create mode 100644 drivers/clocksource/nomadik.c
arch/arm/Kconfig +1 -0
@@ -54,6 +54,7 @@ config ARCH_NETX config ARCH_NOMADIK bool "STMicroelectronics Nomadik" select CPU_ARM926T + select CLOCKSOURCE_NOMADIK help Support for the Nomadik platform by ST-Ericsson
arch/arm/mach-nomadik/8815.c +5 -0
@@ -29,6 +29,10 @@ static struct clk st8815_clk_48 = { .rate = 48 * 1000 * 1000, }; +static struct clk st8815_clk_2_4 = { + .rate =2400000 , +}; +static struct clk st8815_dummy;void st8815_add_device_sdram (u32 size)
@@ -38,6 +42,7 @@ void st8815_add_device_sdram(u32 size)static struct clk_lookup clocks_lookups[] = {CLKDEV_CON_ID ("apb_pclk" , &st8815_dummy), +CLKDEV_CON_ID ("nomadik_mtu" , &st8815_clk_2_4),CLKDEV_DEV_ID ("uart-pl0110" , &st8815_clk_48),CLKDEV_DEV_ID ("uart-pl0111" , &st8815_clk_48), };
arch/arm/mach-nomadik/include/mach/mtu.h deleted +0 -46
46 lines not on this page · raw message
arch/arm/mach-nomadik/include/mach/timex.h deleted +0 -6
@@ -1,6 +0,0 @@ -#ifndef __ASM_ARCH_TIMEX_H -#define __ASM_ARCH_TIMEX_H - -#define CLOCK_TICK_RATE 2400000 - -#endif
arch/arm/mach-nomadik/timer.c +33 -81
114 lines not on this page · raw message
drivers/clocksource/Kconfig +4 -0
@@ -1,3 +1,7 @@ config ARM_SMP_TWD bool depends on ARM && CPU_V7 + +config CLOCKSOURCE_NOMADIK + bool + depends on ARM
drivers/clocksource/Makefile +1 -0
@@ -1 +1,2 @@ obj-$(CONFIG_ARM_SMP_TWD) += arm_smp_twd.o +obj-$(CONFIG_CLOCKSOURCE_NOMADIK) += nomadik.o
drivers/clocksource/nomadik.c new file +147 -0
147 lines not on this page · raw message
Signature · 7 lines
1.7.10.4 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Quoted 6 lines · Jean-Christophe PLAGNIOL-VILLARD
HI,
the smp twd patch was not udpated realted to the
dev_erradd nomadik drivers
Quoted 7 lines
The following changes since commit
df80e395477857b34aaf0bae0785413a9ed8ffe3:net
mdio_bus: Add missingbus_register(2012-10-04 17:08:06 +0200)are available in the git repository at:
git://git.jcrosoft.org/barebox.gittags/clocksource
Pulled, thanks
Sascha
Quoted 47 lines
for you to fetch changes up to
ebf6e1d052b6a846d0adab673385df6a427cfe51:arm: move nomadik timer to
drivers/clocksource(2012-10-04 18:54:12 +0800)----------------------------------------------------------------
introduce clocksourcemove common clocksource to
drivers/clocksourcemove nomadik one as it's shared between 8815 and ux5x0 add generic Cortex A9/A5 smp twd timer support
Signed-off-by Jean-Christophe PLAGNIOL-VILLARD <[email protected]>----------------------------------------------------------------
Jean-Christophe PLAGNIOL-VILLARD (2):
arm: add generic smp twd timer
arm: move nomadik timer todrivers/clocksourcearch/arm/Kconfig | 1 + arch/arm/mach-nomadik/8815.c | 5 +++++ arch/arm/mach-nomadik/include/mach/mtu.h | 46 ---------------------------------------------- arch/arm/mach-nomadik/include/mach/timex.h | 6 ------ arch/arm/mach-nomadik/timer.c | 54 +++--------------------------------------------------- drivers/Kconfig | 1 + drivers/Makefile | 1 + drivers/clocksource/Kconfig | 7 +++++++ drivers/clocksource/Makefile | 2 ++ drivers/clocksource/arm_smp_twd.c | 101 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ drivers/clocksource/nomadik.c | 147 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 11 files changed, 268 insertions(+), 103 deletions(-) delete mode 100644 arch/arm/mach-nomadik/include/mach/mtu.h delete mode 100644 arch/arm/mach-nomadik/include/mach/timex.h create mode 100644 drivers/clocksource/Kconfig create mode 100644 drivers/clocksource/Makefile create mode 100644 drivers/clocksource/arm_smp_twd.c create mode 100644 drivers/clocksource/nomadik.cBest Regards,
J._______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Signature · 9 lines
Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox