OMAP: rename timer divisor
PATCH 2/3 OMAP: rename timer divisor
Divisor field is called PTV not PVT.
Signed-off-by Ladislav Michl <[email protected]>
--- cpu/arm925t/interrupts.c | 2 +- include/configs/SX1.h | 6 +++--- include/configs/apollon.h | 6 ++---- include/configs/netstar.h | 4 ++-- include/configs/omap1510inn.h | 6 +++--- include/configs/omap1610h2.h | 4 ++-- include/configs/omap1610inn.h | 4 ++-- include/configs/omap2420h4.h | 10 +++++----- include/configs/omap3_beagle.h | 6 ++---- include/configs/omap3_evm.h | 6 ++---- include/configs/omap3_overo.h | 6 ++---- include/configs/omap3_pandora.h | 6 ++---- include/configs/omap3_zoom1.h | 6 ++---- include/configs/omap5912osk.h | 4 ++-- include/configs/omap730p2.h | 7 +++---- include/configs/voiceblue.h | 6 +++--- 16 files changed, 38 insertions(+), 51 deletions(-)
cpu/arm925t/interrupts.c +1 -1
@@ -51,7 +51,7 @@ int interrupt_init (void)/* Start the decrementer ticking down from 0xffffffff */ *((int32_t *) (CONFIG_SYS_TIMERBASE +LOAD_TIM )) =TIMER_LOAD_VAL ; - val =MPUTIM_ST |MPUTIM_AR |MPUTIM_CLOCK_ENABLE | (CONFIG_SYS_PVT <<MPUTIM_PTV_BIT ); + val =MPUTIM_ST |MPUTIM_AR |MPUTIM_CLOCK_ENABLE | (CONFIG_SYS_PTV <<MPUTIM_PTV_BIT ); *((int32_t *) (CONFIG_SYS_TIMERBASE +CNTL_TIMER )) = val;/* init the timestamp and lastdec value */
include/configs/SX1.h +3 -3
@@ -140,9 +140,9 @@/* The 1510 has 3 timers, they can be driven by the RefClk (12Mhz) or by DPLL1. * This time is further subdivided by a local divisor. */ -#define CONFIG_SYS_TIMERBASE 0xFFFEC500/* use timer 1 */ -#define CONFIG_SYS_PVT 7/* 2^(pvt+1), divide by 256 */ -#define CONFIG_SYS_HZ ((CONFIG_SYS_CLK_FREQ)/(2 << CONFIG_SYS_PVT)) +#define CONFIG_SYS_TIMERBASE OMAP1510_TIMER1_BASE/* use timer 1 */ +#define CONFIG_SYS_PTV 7/* 2^(PTV+1), divide by 256 */ +#define CONFIG_SYS_HZ ((CONFIG_SYS_CLK_FREQ)/(2 << CONFIG_SYS_PTV))/*----------------------------------------------------------------------- * Stack sizes
include/configs/apollon.h +2 -4
@@ -204,11 +204,9 @@* or by 32KHz clk, or from external sig. This rate is divided by a local * divisor. */ -#define V_PVT 7/* use with 12MHz/128 */ -#define CONFIG_SYS_TIMERBASE OMAP2420_GPT2 -#define CONFIG_SYS_PVT V_PVT/* 2^(pvt+1) */ -#define CONFIG_SYS_HZ ((CONFIG_SYS_CLK_FREQ)/(2 << CONFIG_SYS_PVT)) +#define CONFIG_SYS_PTV 7/* 2^(PTV+1) */ +#define CONFIG_SYS_HZ ((CONFIG_SYS_CLK_FREQ)/(2 << CONFIG_SYS_PTV))/*----------------------------------------------------------------------- * Stack sizes
include/configs/netstar.h +2 -2
@@ -219,8 +219,8 @@* This time is further subdivided by a local divisor. */ #define CONFIG_SYS_TIMERBASE OMAP1510_TIMER1_BASE -#define CONFIG_SYS_PVT 7/* 2^(pvt+1), divide by 256 */ -#define CONFIG_SYS_HZ ((CONFIG_SYS_CLK_FREQ)/(2 << CONFIG_SYS_PVT)) +#define CONFIG_SYS_PTV 7/* 2^(pvt+1), divide by 256 */ +#define CONFIG_SYS_HZ ((CONFIG_SYS_CLK_FREQ)/(2 << CONFIG_SYS_PTV))#define OMAP5910_DPLL_DIV 1#define OMAP5910_DPLL_MUL ((CONFIG_SYS_CLK_FREQ * \
include/configs/omap1510inn.h +3 -3
@@ -137,9 +137,9 @@/* The 1510 has 3 timers, they can be driven by the RefClk (12Mhz) or by DPLL1. * This time is further subdivided by a local divisor. */ -#define CONFIG_SYS_TIMERBASE 0xFFFEC500/* use timer 1 */ -#define CONFIG_SYS_PVT 7/* 2^(pvt+1), divide by 256 */ -#define CONFIG_SYS_HZ ((CONFIG_SYS_CLK_FREQ)/(2 << CONFIG_SYS_PVT)) +#define CONFIG_SYS_TIMERBASE OMAP1510_TIMER1_BASE/* use timer 1 */ +#define CONFIG_SYS_PTV 7/* 2^(PTV+1), divide by 256 */ +#define CONFIG_SYS_HZ ((CONFIG_SYS_CLK_FREQ)/(2 << CONFIG_SYS_PTV))/*----------------------------------------------------------------------- * Stack sizes
include/configs/omap1610h2.h +2 -2
@@ -133,8 +133,8 @@* DPLL1. This time is further subdivided by a local divisor. */ #define CONFIG_SYS_TIMERBASE 0xFFFEC500/* use timer 1 */ -#define CONFIG_SYS_PVT 7/* 2^(pvt+1), divide by 256 */ -#define CONFIG_SYS_HZ ((CONFIG_SYS_CLK_FREQ)/(2 << CONFIG_SYS_PVT)) +#define CONFIG_SYS_PTV 7/* 2^(PTV+1), divide by 256 */ +#define CONFIG_SYS_HZ ((CONFIG_SYS_CLK_FREQ)/(2 << CONFIG_SYS_PTV))/*----------------------------------------------------------------------- * Stack sizes
include/configs/omap1610inn.h +2 -2
@@ -138,8 +138,8 @@* DPLL1. This time is further subdivided by a local divisor. */ #define CONFIG_SYS_TIMERBASE 0xFFFEC500/* use timer 1 */ -#define CONFIG_SYS_PVT 7/* 2^(pvt+1), divide by 256 */ -#define CONFIG_SYS_HZ ((CONFIG_SYS_CLK_FREQ)/(2 << CONFIG_SYS_PVT)) +#define CONFIG_SYS_PTV 7/* 2^(PTV+1), divide by 256 */ +#define CONFIG_SYS_HZ ((CONFIG_SYS_CLK_FREQ)/(2 << CONFIG_SYS_PTV))/*----------------------------------------------------------------------- * Stack sizes
include/configs/omap2420h4.h +5 -5
@@ -224,14 +224,14 @@* 32KHz clk, or from external sig. This rate is divided by a local divisor. */ #ifdef CONFIG_APTIX -#define V_PVT 3 +#define V_PTV 3#else -#define V_PVT 7/* use with 12MHz/128 */ +#define V_PTV 7/* use with 12MHz/128 */ #endif -#define CONFIG_SYS_TIMERBASE OMAP2420_GPT2 -#define CONFIG_SYS_PVT V_PVT/* 2^(pvt+1) */ -#define CONFIG_SYS_HZ ((CONFIG_SYS_CLK_FREQ)/(2 << CONFIG_SYS_PVT)) +#define CONFIG_SYS_TIMERBASE OMAP2420_GPT2 +#define CONFIG_SYS_PTV V_PTV/* 2^(PTV+1) */ +#define CONFIG_SYS_HZ ((CONFIG_SYS_CLK_FREQ)/(2 << CONFIG_SYS_PTV))/*----------------------------------------------------------------------- * Stack sizes
include/configs/omap3_beagle.h +2 -4
@@ -223,11 +223,9 @@* 2430 has 12 GP timers, they can be driven by the SysClk (12/13/19.2) or by * 32KHz clk, or from external sig. This rate is divided by a local divisor. */ -#define V_PVT 7 -#define CONFIG_SYS_TIMERBASE (OMAP34XX_GPT2) -#define CONFIG_SYS_PVT V_PVT/* 2^(pvt+1) */ -#define CONFIG_SYS_HZ ((V_SCLK) / (2 << CONFIG_SYS_PVT)) +#define CONFIG_SYS_PVT 7/* 2^(PTV+1) */ +#define CONFIG_SYS_HZ ((V_SCLK) / (2 << CONFIG_SYS_PTV))/*----------------------------------------------------------------------- * Stack sizes
include/configs/omap3_evm.h +2 -4
@@ -222,11 +222,9 @@* 2430 has 12 GP timers, they can be driven by the SysClk (12/13/19.2) or by * 32KHz clk, or from external sig. This rate is divided by a local divisor. */ -#define V_PVT 7 -#define CONFIG_SYS_TIMERBASE OMAP34XX_GPT2 -#define CONFIG_SYS_PVT V_PVT/* 2^(pvt+1) */ -#define CONFIG_SYS_HZ ((V_SCLK) / (2 << CONFIG_SYS_PVT)) +#define CONFIG_SYS_PTV 7/* 2^(PTV+1) */ +#define CONFIG_SYS_HZ ((V_SCLK) / (2 << CONFIG_SYS_PTV))/*----------------------------------------------------------------------- * Stack sizes
include/configs/omap3_overo.h +2 -4
@@ -216,11 +216,9 @@* 2430 has 12 GP timers, they can be driven by the SysClk (12/13/19.2) or by * 32KHz clk, or from external sig. This rate is divided by a local divisor. */ -#define V_PVT 7 -#define CONFIG_SYS_TIMERBASE (OMAP34XX_GPT2) -#define CONFIG_SYS_PVT V_PVT/* 2^(pvt+1) */ -#define CONFIG_SYS_HZ ((V_SCLK) / (2 << CONFIG_SYS_PVT)) +#define CONFIG_SYS_PTV 7/* 2^(PTV+1) */ +#define CONFIG_SYS_HZ ((V_SCLK) / (2 << CONFIG_SYS_PTV))/*----------------------------------------------------------------------- * Stack sizes
include/configs/omap3_pandora.h +2 -4
@@ -218,11 +218,9 @@* 2430 has 12 GP timers, they can be driven by the SysClk (12/13/19.2) or by * 32KHz clk, or from external sig. This rate is divided by a local divisor. */ -#define V_PVT 7 -#define CONFIG_SYS_TIMERBASE (OMAP34XX_GPT2) -#define CONFIG_SYS_PVT V_PVT/* 2^(pvt+1) */ -#define CONFIG_SYS_HZ ((V_SCLK) / (2 << CONFIG_SYS_PVT)) +#define CONFIG_SYS_PTV 7/* 2^(PTV+1) */ +#define CONFIG_SYS_HZ ((V_SCLK) / (2 << CONFIG_SYS_PTV))/*----------------------------------------------------------------------- * Stack sizes
include/configs/omap3_zoom1.h +2 -4
@@ -225,11 +225,9 @@* 2430 has 12 GP timers, they can be driven by the SysClk (12/13/19.2) or by * 32KHz clk, or from external sig. This rate is divided by a local divisor. */ -#define V_PVT 7 -#define CONFIG_SYS_TIMERBASE (OMAP34XX_GPT2) -#define CONFIG_SYS_PVT V_PVT/* 2^(pvt+1) */ -#define CONFIG_SYS_HZ ((V_SCLK) / (2 << CONFIG_SYS_PVT)) +#define CONFIG_SYS_PTV 7/* 2^(PTV+1) */ +#define CONFIG_SYS_HZ ((V_SCLK) / (2 << CONFIG_SYS_PTV))/*----------------------------------------------------------------------- * Stack sizes
include/configs/omap5912osk.h +2 -2
@@ -142,8 +142,8 @@* DPLL1. This time is further subdivided by a local divisor. */ #define CONFIG_SYS_TIMERBASE 0xFFFEC500/* use timer 1 */ -#define CONFIG_SYS_PVT 7/* 2^(pvt+1), divide by 256 */ -#define CONFIG_SYS_HZ ((CONFIG_SYS_CLK_FREQ)/(2 << CONFIG_SYS_PVT)) +#define CONFIG_SYS_PTV 7/* 2^(PTV+1), divide by 256 */ +#define CONFIG_SYS_HZ ((CONFIG_SYS_CLK_FREQ)/(2 << CONFIG_SYS_PTV))/*----------------------------------------------------------------------- * Stack sizes
include/configs/omap730p2.h +3 -4
@@ -150,10 +150,9 @@* the RefClk (12Mhz) or by DPLL1. This time is further subdivided by a * local divisor. */ - -#define CONFIG_SYS_TIMERBASE 0xFFFEC500/* use timer 1 */ -#define CONFIG_SYS_PVT 7/* 2^(pvt+1), divide by 256 */ -#define CONFIG_SYS_HZ ((CONFIG_SYS_CLK_FREQ)/(2 << CONFIG_SYS_PVT)) +#define CONFIG_SYS_TIMERBASE 0xFFFEC500/* use timer 1 */ +#define CONFIG_SYS_PVT 7/* 2^(PTV+1), divide by 256 */ +#define CONFIG_SYS_HZ ((CONFIG_SYS_CLK_FREQ)/(2 << CONFIG_SYS_PTV))/*----------------------------------------------------------------------- * Stack sizes
include/configs/voiceblue.h +3 -3
@@ -215,9 +215,9 @@/* The 1510 has 3 timers, they can be driven by the RefClk (12Mhz) or by DPLL1. * This time is further subdivided by a local divisor. */ -#define CONFIG_SYS_TIMERBASE OMAP1510_TIMER1_BASE -#define CONFIG_SYS_PVT 7/* 2^(pvt+1), divide by 256 */ -#define CONFIG_SYS_HZ ((CONFIG_SYS_CLK_FREQ)/(2 << CONFIG_SYS_PVT)) +#define CONFIG_SYS_TIMERBASE OMAP1510_TIMER1_BASE +#define CONFIG_SYS_PTV 7/* 2^(PTV+1), divide by 256 */ +#define CONFIG_SYS_HZ ((CONFIG_SYS_CLK_FREQ)/(2 << CONFIG_SYS_PTV))#define OMAP5910_DPLL_DIV 1#define OMAP5910_DPLL_MUL ((CONFIG_SYS_CLK_FREQ * \
Signature · 1 line
1.5.3.8
PATCH v2 1/1 OMAP: rename timer divisor
From: Ladislav Michl <[email protected]>
Divisor field is called PTV not PVT.
Signed-off-by Ladislav Michl <[email protected]>
Signed-off-by Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
---
V2:
Fix Remaing CONFIG_SYS_PVT
Best Regards,
J.
cpu/arm1136/omap24xx/interrupts.c | 2 +- cpu/arm925t/interrupts.c | 2 +- cpu/arm926ejs/omap/timer.c | 2 +- cpu/arm_cortexa8/omap3/interrupts.c | 2 +- include/configs/SX1.h | 6 +++--- include/configs/apollon.h | 6 ++---- include/configs/netstar.h | 4 ++-- include/configs/omap1510inn.h | 6 +++--- include/configs/omap1610h2.h | 4 ++-- include/configs/omap1610inn.h | 4 ++-- include/configs/omap2420h4.h | 10 +++++----- include/configs/omap3_beagle.h | 6 ++---- include/configs/omap3_evm.h | 6 ++---- include/configs/omap3_overo.h | 6 ++---- include/configs/omap3_pandora.h | 6 ++---- include/configs/omap3_zoom1.h | 6 ++---- include/configs/omap5912osk.h | 4 ++-- include/configs/omap730p2.h | 7 +++---- include/configs/voiceblue.h | 6 +++--- 19 files changed, 41 insertions(+), 54 deletions(-)
cpu/arm1136/omap24xx/interrupts.c +1 -1
@@ -49,7 +49,7 @@ int interrupt_init (void)/* Start the counter ticking up */ *((int32_t *) (CONFIG_SYS_TIMERBASE +TLDR )) =TIMER_LOAD_VAL ;/* reload value on overflow*/ - val = (CONFIG_SYS_PVT <<2 ) |BIT5 |BIT1 |BIT0 ;/* mask to enable timer*/ + val = (CONFIG_SYS_PTV <<2 ) |BIT5 |BIT1 |BIT0 ;/* mask to enable timer*/ *((int32_t *) (CONFIG_SYS_TIMERBASE +TCLR )) = val;/* start timer */ reset_timer_masked ();/* init the timestamp and lastinc value */
cpu/arm925t/interrupts.c +1 -1
@@ -51,7 +51,7 @@ int interrupt_init (void)/* Start the decrementer ticking down from 0xffffffff */ *((int32_t *) (CONFIG_SYS_TIMERBASE +LOAD_TIM )) =TIMER_LOAD_VAL ; - val =MPUTIM_ST |MPUTIM_AR |MPUTIM_CLOCK_ENABLE | (CONFIG_SYS_PVT <<MPUTIM_PTV_BIT ); + val =MPUTIM_ST |MPUTIM_AR |MPUTIM_CLOCK_ENABLE | (CONFIG_SYS_PTV <<MPUTIM_PTV_BIT ); *((int32_t *) (CONFIG_SYS_TIMERBASE +CNTL_TIMER )) = val;/* init the timestamp and lastdec value */
cpu/arm926ejs/omap/timer.c +1 -1
@@ -52,7 +52,7 @@ int timer_init (void)/* Start the decrementer ticking down from 0xffffffff */ *((int32_t *) (CONFIG_SYS_TIMERBASE +LOAD_TIM )) =TIMER_LOAD_VAL ; - val =MPUTIM_ST |MPUTIM_AR |MPUTIM_CLOCK_ENABLE | (CONFIG_SYS_PVT <<MPUTIM_PTV_BIT ); + val =MPUTIM_ST |MPUTIM_AR |MPUTIM_CLOCK_ENABLE | (CONFIG_SYS_PTV <<MPUTIM_PTV_BIT ); *((int32_t *) (CONFIG_SYS_TIMERBASE +CNTL_TIMER )) = val;/* init the timestamp and lastdec value */
cpu/arm_cortexa8/omap3/interrupts.c +1 -1
@@ -47,7 +47,7 @@ int interrupt_init(void)/* start the counter ticking up, reload value on overflow */ writel (TIMER_LOAD_VAL , &timer_base->tldr);/* enable timer */ -writel ((CONFIG_SYS_PVT <<2 ) |TCLR_PRE |TCLR_AR |TCLR_ST , +writel ((CONFIG_SYS_PTV <<2 ) |TCLR_PRE |TCLR_AR |TCLR_ST , &timer_base->tclr);reset_timer_masked ();/* init the timestamp and lastinc value */
include/configs/SX1.h +3 -3
@@ -138,9 +138,9 @@/* The 1510 has 3 timers, they can be driven by the RefClk (12Mhz) or by DPLL1. * This time is further subdivided by a local divisor. */ -#define CONFIG_SYS_TIMERBASE 0xFFFEC500/* use timer 1 */ -#define CONFIG_SYS_PVT 7/* 2^(pvt+1), divide by 256 */ -#define CONFIG_SYS_HZ ((CONFIG_SYS_CLK_FREQ)/(2 << CONFIG_SYS_PVT)) +#define CONFIG_SYS_TIMERBASE OMAP1510_TIMER1_BASE/* use timer 1 */ +#define CONFIG_SYS_PTV 7/* 2^(PTV+1), divide by 256 */ +#define CONFIG_SYS_HZ ((CONFIG_SYS_CLK_FREQ)/(2 << CONFIG_SYS_PTV))/*----------------------------------------------------------------------- * Stack sizes
include/configs/apollon.h +2 -4
@@ -203,11 +203,9 @@* or by 32KHz clk, or from external sig. This rate is divided by a local * divisor. */ -#define V_PVT 7/* use with 12MHz/128 */ -#define CONFIG_SYS_TIMERBASE OMAP2420_GPT2 -#define CONFIG_SYS_PVT V_PVT/* 2^(pvt+1) */ -#define CONFIG_SYS_HZ ((CONFIG_SYS_CLK_FREQ)/(2 << CONFIG_SYS_PVT)) +#define CONFIG_SYS_PTV 7/* 2^(PTV+1) */ +#define CONFIG_SYS_HZ ((CONFIG_SYS_CLK_FREQ)/(2 << CONFIG_SYS_PTV))/*----------------------------------------------------------------------- * Stack sizes
include/configs/netstar.h +2 -2
@@ -226,8 +226,8 @@* This time is further subdivided by a local divisor. */ #define CONFIG_SYS_TIMERBASE OMAP1510_TIMER1_BASE -#define CONFIG_SYS_PVT 7/* 2^(pvt+1), divide by 256 */ -#define CONFIG_SYS_HZ ((CONFIG_SYS_CLK_FREQ)/(2 << CONFIG_SYS_PVT)) +#define CONFIG_SYS_PTV 7/* 2^(pvt+1), divide by 256 */ +#define CONFIG_SYS_HZ ((CONFIG_SYS_CLK_FREQ)/(2 << CONFIG_SYS_PTV))#define OMAP5910_DPLL_DIV 1#define OMAP5910_DPLL_MUL ((CONFIG_SYS_CLK_FREQ * \
include/configs/omap1510inn.h +3 -3
@@ -135,9 +135,9 @@/* The 1510 has 3 timers, they can be driven by the RefClk (12Mhz) or by DPLL1. * This time is further subdivided by a local divisor. */ -#define CONFIG_SYS_TIMERBASE 0xFFFEC500/* use timer 1 */ -#define CONFIG_SYS_PVT 7/* 2^(pvt+1), divide by 256 */ -#define CONFIG_SYS_HZ ((CONFIG_SYS_CLK_FREQ)/(2 << CONFIG_SYS_PVT)) +#define CONFIG_SYS_TIMERBASE OMAP1510_TIMER1_BASE/* use timer 1 */ +#define CONFIG_SYS_PTV 7/* 2^(PTV+1), divide by 256 */ +#define CONFIG_SYS_HZ ((CONFIG_SYS_CLK_FREQ)/(2 << CONFIG_SYS_PTV))/*----------------------------------------------------------------------- * Stack sizes
include/configs/omap1610h2.h +2 -2
@@ -131,8 +131,8 @@* DPLL1. This time is further subdivided by a local divisor. */ #define CONFIG_SYS_TIMERBASE 0xFFFEC500/* use timer 1 */ -#define CONFIG_SYS_PVT 7/* 2^(pvt+1), divide by 256 */ -#define CONFIG_SYS_HZ ((CONFIG_SYS_CLK_FREQ)/(2 << CONFIG_SYS_PVT)) +#define CONFIG_SYS_PTV 7/* 2^(PTV+1), divide by 256 */ +#define CONFIG_SYS_HZ ((CONFIG_SYS_CLK_FREQ)/(2 << CONFIG_SYS_PTV))/*----------------------------------------------------------------------- * Stack sizes
include/configs/omap1610inn.h +2 -2
@@ -136,8 +136,8 @@* DPLL1. This time is further subdivided by a local divisor. */ #define CONFIG_SYS_TIMERBASE 0xFFFEC500/* use timer 1 */ -#define CONFIG_SYS_PVT 7/* 2^(pvt+1), divide by 256 */ -#define CONFIG_SYS_HZ ((CONFIG_SYS_CLK_FREQ)/(2 << CONFIG_SYS_PVT)) +#define CONFIG_SYS_PTV 7/* 2^(PTV+1), divide by 256 */ +#define CONFIG_SYS_HZ ((CONFIG_SYS_CLK_FREQ)/(2 << CONFIG_SYS_PTV))/*----------------------------------------------------------------------- * Stack sizes
include/configs/omap2420h4.h +5 -5
@@ -222,14 +222,14 @@* 32KHz clk, or from external sig. This rate is divided by a local divisor. */ #ifdef CONFIG_APTIX -#define V_PVT 3 +#define V_PTV 3#else -#define V_PVT 7/* use with 12MHz/128 */ +#define V_PTV 7/* use with 12MHz/128 */ #endif -#define CONFIG_SYS_TIMERBASE OMAP2420_GPT2 -#define CONFIG_SYS_PVT V_PVT/* 2^(pvt+1) */ -#define CONFIG_SYS_HZ ((CONFIG_SYS_CLK_FREQ)/(2 << CONFIG_SYS_PVT)) +#define CONFIG_SYS_TIMERBASE OMAP2420_GPT2 +#define CONFIG_SYS_PTV V_PTV/* 2^(PTV+1) */ +#define CONFIG_SYS_HZ ((CONFIG_SYS_CLK_FREQ)/(2 << CONFIG_SYS_PTV))/*----------------------------------------------------------------------- * Stack sizes
include/configs/omap3_beagle.h +2 -4
@@ -226,11 +226,9 @@* 2430 has 12 GP timers, they can be driven by the SysClk (12/13/19.2) or by * 32KHz clk, or from external sig. This rate is divided by a local divisor. */ -#define V_PVT 7 -#define CONFIG_SYS_TIMERBASE (OMAP34XX_GPT2) -#define CONFIG_SYS_PVT V_PVT/* 2^(pvt+1) */ -#define CONFIG_SYS_HZ ((V_SCLK) / (2 << CONFIG_SYS_PVT)) +#define CONFIG_SYS_PTV 7/* 2^(PTV+1) */ +#define CONFIG_SYS_HZ ((V_SCLK) / (2 << CONFIG_SYS_PTV))/*----------------------------------------------------------------------- * Stack sizes
include/configs/omap3_evm.h +2 -4
@@ -219,11 +219,9 @@* 2430 has 12 GP timers, they can be driven by the SysClk (12/13/19.2) or by * 32KHz clk, or from external sig. This rate is divided by a local divisor. */ -#define V_PVT 7 -#define CONFIG_SYS_TIMERBASE OMAP34XX_GPT2 -#define CONFIG_SYS_PVT V_PVT/* 2^(pvt+1) */ -#define CONFIG_SYS_HZ ((V_SCLK) / (2 << CONFIG_SYS_PVT)) +#define CONFIG_SYS_PTV 7/* 2^(PTV+1) */ +#define CONFIG_SYS_HZ ((V_SCLK) / (2 << CONFIG_SYS_PTV))/*----------------------------------------------------------------------- * Stack sizes
include/configs/omap3_overo.h +2 -4
@@ -213,11 +213,9 @@* 2430 has 12 GP timers, they can be driven by the SysClk (12/13/19.2) or by * 32KHz clk, or from external sig. This rate is divided by a local divisor. */ -#define V_PVT 7 -#define CONFIG_SYS_TIMERBASE (OMAP34XX_GPT2) -#define CONFIG_SYS_PVT V_PVT/* 2^(pvt+1) */ -#define CONFIG_SYS_HZ ((V_SCLK) / (2 << CONFIG_SYS_PVT)) +#define CONFIG_SYS_PTV 7/* 2^(PTV+1) */ +#define CONFIG_SYS_HZ ((V_SCLK) / (2 << CONFIG_SYS_PTV))/*----------------------------------------------------------------------- * Stack sizes
include/configs/omap3_pandora.h +2 -4
@@ -215,11 +215,9 @@* 2430 has 12 GP timers, they can be driven by the SysClk (12/13/19.2) or by * 32KHz clk, or from external sig. This rate is divided by a local divisor. */ -#define V_PVT 7 -#define CONFIG_SYS_TIMERBASE (OMAP34XX_GPT2) -#define CONFIG_SYS_PVT V_PVT/* 2^(pvt+1) */ -#define CONFIG_SYS_HZ ((V_SCLK) / (2 << CONFIG_SYS_PVT)) +#define CONFIG_SYS_PTV 7/* 2^(PTV+1) */ +#define CONFIG_SYS_HZ ((V_SCLK) / (2 << CONFIG_SYS_PTV))/*----------------------------------------------------------------------- * Stack sizes
include/configs/omap3_zoom1.h +2 -4
@@ -223,11 +223,9 @@* 2430 has 12 GP timers, they can be driven by the SysClk (12/13/19.2) or by * 32KHz clk, or from external sig. This rate is divided by a local divisor. */ -#define V_PVT 7 -#define CONFIG_SYS_TIMERBASE (OMAP34XX_GPT2) -#define CONFIG_SYS_PVT V_PVT/* 2^(pvt+1) */ -#define CONFIG_SYS_HZ ((V_SCLK) / (2 << CONFIG_SYS_PVT)) +#define CONFIG_SYS_PTV 7/* 2^(PTV+1) */ +#define CONFIG_SYS_HZ ((V_SCLK) / (2 << CONFIG_SYS_PTV))/*----------------------------------------------------------------------- * Stack sizes
include/configs/omap5912osk.h +2 -2
@@ -140,8 +140,8 @@* DPLL1. This time is further subdivided by a local divisor. */ #define CONFIG_SYS_TIMERBASE 0xFFFEC500/* use timer 1 */ -#define CONFIG_SYS_PVT 7/* 2^(pvt+1), divide by 256 */ -#define CONFIG_SYS_HZ ((CONFIG_SYS_CLK_FREQ)/(2 << CONFIG_SYS_PVT)) +#define CONFIG_SYS_PTV 7/* 2^(PTV+1), divide by 256 */ +#define CONFIG_SYS_HZ ((CONFIG_SYS_CLK_FREQ)/(2 << CONFIG_SYS_PTV))/*----------------------------------------------------------------------- * Stack sizes
include/configs/omap730p2.h +3 -4
@@ -148,10 +148,9 @@* the RefClk (12Mhz) or by DPLL1. This time is further subdivided by a * local divisor. */ - -#define CONFIG_SYS_TIMERBASE 0xFFFEC500/* use timer 1 */ -#define CONFIG_SYS_PVT 7/* 2^(pvt+1), divide by 256 */ -#define CONFIG_SYS_HZ ((CONFIG_SYS_CLK_FREQ)/(2 << CONFIG_SYS_PVT)) +#define CONFIG_SYS_TIMERBASE 0xFFFEC500/* use timer 1 */ +#define CONFIG_SYS_PTV 7/* 2^(PTV+1), divide by 256 */ +#define CONFIG_SYS_HZ ((CONFIG_SYS_CLK_FREQ)/(2 << CONFIG_SYS_PTV))/*----------------------------------------------------------------------- * Stack sizes
include/configs/voiceblue.h +3 -3
@@ -213,9 +213,9 @@/* The 1510 has 3 timers, they can be driven by the RefClk (12Mhz) or by DPLL1. * This time is further subdivided by a local divisor. */ -#define CONFIG_SYS_TIMERBASE OMAP1510_TIMER1_BASE -#define CONFIG_SYS_PVT 7/* 2^(pvt+1), divide by 256 */ -#define CONFIG_SYS_HZ ((CONFIG_SYS_CLK_FREQ)/(2 << CONFIG_SYS_PVT)) +#define CONFIG_SYS_TIMERBASE OMAP1510_TIMER1_BASE +#define CONFIG_SYS_PTV 7/* 2^(PTV+1), divide by 256 */ +#define CONFIG_SYS_HZ ((CONFIG_SYS_CLK_FREQ)/(2 << CONFIG_SYS_PTV))#define OMAP5910_DPLL_DIV 1#define OMAP5910_DPLL_MUL ((CONFIG_SYS_CLK_FREQ * \
Signature · 1 line
1.6.1.3