Re: [U-Boot] [PATCH 25/28] SPEAr : Enabling GPT clock explicitly
Dear Vipin KUMAR, In message 1279084204-3263-26-git-send-email-vipin.ku...@st.com you wrote: From: Vipin KUMAR vipin.ku...@st.com uboot needs gpt for timer operations. This clock was enabled from previous level booting software until now. This patch enables it in uboot explicitly Please note: the correct spelling is U-Boot. Best regards, Wolfgang Denk -- 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: w...@denx.de The majority of the stupid is invincible and guaranteed for all time. The terror of their tyranny, however, is alleviated by their lack of consistency. - Albert Einstein ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
[U-Boot] [PATCH 25/28] SPEAr : Enabling GPT clock explicitly
From: Vipin KUMAR vipin.ku...@st.com uboot needs gpt for timer operations. This clock was enabled from previous level booting software until now. This patch enables it in uboot explicitly Signed-off-by: Vipin Kumar vipin.ku...@st.com --- arch/arm/cpu/arm926ejs/spear/cpu.c |6 ++ arch/arm/include/asm/arch-spear/spr_misc.h |2 ++ 2 files changed, 8 insertions(+), 0 deletions(-) diff --git a/arch/arm/cpu/arm926ejs/spear/cpu.c b/arch/arm/cpu/arm926ejs/spear/cpu.c index 0f66e05..4dc7d69 100644 --- a/arch/arm/cpu/arm926ejs/spear/cpu.c +++ b/arch/arm/cpu/arm926ejs/spear/cpu.c @@ -35,6 +35,12 @@ int arch_cpu_init(void) periph1_clken = readl(misc_p-periph1_clken); +#if defined(CONFIG_SPEAR3XX) + periph1_clken |= MISC_GPT2ENB; +#elif defined(CONFIG_SPEAR600) + periph1_clken |= MISC_GPT3ENB; +#endif + #if defined(CONFIG_PL011_SERIAL) periph1_clken |= MISC_UART0ENB; #endif diff --git a/arch/arm/include/asm/arch-spear/spr_misc.h b/arch/arm/include/asm/arch-spear/spr_misc.h index 045d2bb..b10c726 100644 --- a/arch/arm/include/asm/arch-spear/spr_misc.h +++ b/arch/arm/include/asm/arch-spear/spr_misc.h @@ -128,6 +128,8 @@ struct misc_regs { #define MISC_USBDENB 0x0100 #define MISC_ETHENB0x0080 #define MISC_SMIENB0x0020 +#define MISC_GPT3ENB 0x0001 +#define MISC_GPT2ENB 0x0800 #define MISC_FSMCENB 0x0200 #define MISC_I2CENB0x0080 #define MISC_UART0ENB 0x0008 -- 1.6.0.2 ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot