imx27: make 26MHz clock input value selectable from config files.
PATCH 1/1 imx27: make 26MHz clock input value selectable from config files.
Some boards like Freescale imx27-ipcam and Vista Silicon imx27_visstrim_m10 have 25MHz clocks connected to 26MHz input.
This patch allows this value to be specified from the board configuration file in the same way as it is done with 32KHz clock.
It does not break any existing board since its default value is 26MHz. Tested in imx27lite and imx27_visstrim_m10 board.
--
cpu/arm926ejs/mx27/generic.c | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-)
cpu/arm926ejs/mx27/generic.c +5 -3
@@ -26,7 +26,9 @@#ifdef CONFIG_MXC_MMC #include <asm/arch/mxcmmc.h> #endif - +#ifndef CONFIG_MX27_CLK26M +#define CONFIG_MX27_CLK26M 26000000 +#endif /* * get the system pll clock in Hz *
@@ -58,9 +60,9 @@ static ulong clk_in_26m(void)if (readl (&pll->cscr) &CSCR_OSC26M_DIV1P5 ) {/* divide by 1.5 */ -return 26000000 *2 /3 ; +return CONFIG_MX27_CLK26M *2 /3 ; }else { -return 26000000 ; +return CONFIG_MX27_CLK26M ; } }
Signature · 7 lines
Javier Martin Vista Silicon S.L. CDTUC - FASE C - Oficina S-345 Avda de los Castros s/n 39005- Santander. Cantabria. Spain +34 942 25 32 60 www.vista-silicon.com
PATCH 1/1 imx27: make 26MHz clock input value selectable from config files.
I think Fred Fan is currently responsible of acking this patch if there are no objections, but he seems missing since some weeks. Couldn't the patch be reviewed by a higher level maintainer?
Thanks.
Signature · 7 lines
Javier Martin Vista Silicon S.L. CDTUC - FASE C - Oficina S-345 Avda de los Castros s/n 39005- Santander. Cantabria. Spain +34 942 25 32 60 www.vista-silicon.com
PATCH 1/1 imx27: make 26MHz clock input value selectable from config files.
In reply to javier MartinDear javier Martin,
Quoted 8 lines · In message <[email protected]> you…
Some boards like Freescale imx27-ipcam and Vista Silicon
imx27_visstrim_m10have 25MHz clocks connected to 26MHz input.This patch allows this value to be specified from the board configuration file in the same way as it is done with 32KHz clock.
It does not break any existing board since its default value is 26MHz. Tested in imx27lite and
imx27_visstrim_m10board.
Sorry for the long delay.
Quoted 10 lines
Signed-off-by Javier Martin <[email protected]>--
cpu/arm926ejs/mx27/generic.c | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-)cpu/arm926ejs/mx27/generic.c +0
-0
cpu/arm926ejs/mx27/generic.c line 31
Quoted 7 lines
cpu/arm926ejs/mx27/generic.c +3
-1@@ -26,7 +26,9 @@#ifdef CONFIG_MXC_MMC #include <asm/arch/mxcmmc.h> #endif - +#ifndef CONFIG_MX27_CLK26M +#define CONFIG_MX27_CLK26M 26000000 +#endif
I agree with the patch in general, but it seems very strange to me to name the variable "CLK26M" when it could be, for example, 25M instead.
Please chose a better name and resubmit.
Best regards,
Wolfgang Denk
Signature · 6 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de You humans have that emotional need to express gratitude. "You're welcome," I believe, is the correct response. -- Spock, "Bread and Circuses", stardate 4041.2
PATCH 1/1 imx27: make 26MHz clock input value selectable from config files.
I agree with the patch in general, but it seems very strange to me to
Quoted 4 lines
name the variable "CLK26M" when it could be, for example, 25M instead.
Please chose a better name and resubmit.
Thank you for your comments I will pick up a better name and resubmit.
Signature · 7 lines
Javier Martin Vista Silicon S.L. CDTUC - FASE C - Oficina S-345 Avda de los Castros s/n 39005- Santander. Cantabria. Spain +34 942 25 32 60 www.vista-silicon.com