Patchwork [U-Boot,1/2] MX31: fix missing mxc_get_clk() call

login
register
mail settings
Submitter Stefano Babic
Date Aug. 30, 2011, 10:51 a.m.
Message ID <1314701474-27854-1-git-send-email-sbabic@denx.de>
Download mbox | patch
Permalink /patch/112256/
State Accepted
Commit 67f463b06d00701b955ea4ac176fc96a8ecd416f
Headers show

Comments

Stefano Babic - Aug. 30, 2011, 10:51 a.m.
Add missing case to be used in common MXC code.

Signed-off-by: Stefano Babic <sbabic@denx.de>
---
 arch/arm/cpu/arm1136/mx31/generic.c    |    1 +
 arch/arm/include/asm/arch-mx31/clock.h |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)
Wolfgang Denk - Sept. 7, 2011, 8:11 p.m.
Dear Stefano Babic,

In message <1314701474-27854-1-git-send-email-sbabic@denx.de> you wrote:
> Add missing case to be used in common MXC code.
> 
> Signed-off-by: Stefano Babic <sbabic@denx.de>
> ---
>  arch/arm/cpu/arm1136/mx31/generic.c    |    1 +
>  arch/arm/include/asm/arch-mx31/clock.h |    1 +
>  2 files changed, 2 insertions(+), 0 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk

Patch

diff --git a/arch/arm/cpu/arm1136/mx31/generic.c b/arch/arm/cpu/arm1136/mx31/generic.c
index 248431b..e3a4d1b 100644
--- a/arch/arm/cpu/arm1136/mx31/generic.c
+++ b/arch/arm/cpu/arm1136/mx31/generic.c
@@ -85,6 +85,7 @@  unsigned int mxc_get_clock(enum mxc_clock clk)
 	case MXC_ARM_CLK:
 		return mx31_get_mcu_main_clk();
 	case MXC_IPG_CLK:
+	case MXC_IPG_PERCLK:
 	case MXC_CSPI_CLK:
 	case MXC_UART_CLK:
 		return mx31_get_ipg_clk();
diff --git a/arch/arm/include/asm/arch-mx31/clock.h b/arch/arm/include/asm/arch-mx31/clock.h
index b132676..cc99a75 100644
--- a/arch/arm/include/asm/arch-mx31/clock.h
+++ b/arch/arm/include/asm/arch-mx31/clock.h
@@ -27,6 +27,7 @@ 
 enum mxc_clock {
 	MXC_ARM_CLK,
 	MXC_IPG_CLK,
+	MXC_IPG_PERCLK,
 	MXC_CSPI_CLK,
 	MXC_UART_CLK,
 };