MX31: fix missing mxc_get_clk() call

Add missing case to be used in common MXC code.

Signed-off-by: Stefano Babic <sbabic@denx.de>
This commit is contained in:
Stefano Babic 2011-08-30 00:51:13 +00:00 committed by Wolfgang Denk
parent 10980d4a54
commit 67f463b06d
2 changed files with 2 additions and 0 deletions

View file

@ -85,6 +85,7 @@ unsigned int mxc_get_clock(enum mxc_clock clk)
case MXC_ARM_CLK: case MXC_ARM_CLK:
return mx31_get_mcu_main_clk(); return mx31_get_mcu_main_clk();
case MXC_IPG_CLK: case MXC_IPG_CLK:
case MXC_IPG_PERCLK:
case MXC_CSPI_CLK: case MXC_CSPI_CLK:
case MXC_UART_CLK: case MXC_UART_CLK:
return mx31_get_ipg_clk(); return mx31_get_ipg_clk();

View file

@ -27,6 +27,7 @@
enum mxc_clock { enum mxc_clock {
MXC_ARM_CLK, MXC_ARM_CLK,
MXC_IPG_CLK, MXC_IPG_CLK,
MXC_IPG_PERCLK,
MXC_CSPI_CLK, MXC_CSPI_CLK,
MXC_UART_CLK, MXC_UART_CLK,
}; };