diff options
author | Stefano Babic <sbabic@denx.de> | 2011-09-07 02:45:31 -0400 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2011-10-13 03:06:58 -0400 |
commit | ea42a0d058428845047206ff895e60520a7ff256 (patch) | |
tree | 25793af3f4cf89465aa65a62e02f7ee3ea14a3bc /arch/arm/mach-mxs/clock-mx28.c | |
parent | 976d167615b64e14bc1491ca51d424e2ba9a5e84 (diff) |
ARM: mxs: Add initial support for DENX MX28
Added initial support for DENX M28 module and M28EVK
board. Ethernet(FEC), SDHC, Display are supported.
Signed-off-by: Stefano Babic <sbabic@denx.de>
Reviewed-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-mxs/clock-mx28.c')
-rw-r--r-- | arch/arm/mach-mxs/clock-mx28.c | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/arch/arm/mach-mxs/clock-mx28.c b/arch/arm/mach-mxs/clock-mx28.c index 5dcc59d5b9ec..31223106ad6a 100644 --- a/arch/arm/mach-mxs/clock-mx28.c +++ b/arch/arm/mach-mxs/clock-mx28.c | |||
@@ -738,11 +738,17 @@ static int clk_misc_init(void) | |||
738 | __raw_writel(BM_CLKCTRL_CPU_INTERRUPT_WAIT, | 738 | __raw_writel(BM_CLKCTRL_CPU_INTERRUPT_WAIT, |
739 | CLKCTRL_BASE_ADDR + HW_CLKCTRL_CPU_SET); | 739 | CLKCTRL_BASE_ADDR + HW_CLKCTRL_CPU_SET); |
740 | 740 | ||
741 | /* Extra fec clock setting */ | 741 | /* |
742 | reg = __raw_readl(CLKCTRL_BASE_ADDR + HW_CLKCTRL_ENET); | 742 | * Extra fec clock setting |
743 | reg &= ~BM_CLKCTRL_ENET_SLEEP; | 743 | * The DENX M28 uses an external clock source |
744 | reg |= BM_CLKCTRL_ENET_CLK_OUT_EN; | 744 | * and the clock output must not be enabled |
745 | __raw_writel(reg, CLKCTRL_BASE_ADDR + HW_CLKCTRL_ENET); | 745 | */ |
746 | if (!machine_is_m28evk()) { | ||
747 | reg = __raw_readl(CLKCTRL_BASE_ADDR + HW_CLKCTRL_ENET); | ||
748 | reg &= ~BM_CLKCTRL_ENET_SLEEP; | ||
749 | reg |= BM_CLKCTRL_ENET_CLK_OUT_EN; | ||
750 | __raw_writel(reg, CLKCTRL_BASE_ADDR + HW_CLKCTRL_ENET); | ||
751 | } | ||
746 | 752 | ||
747 | /* | 753 | /* |
748 | * 480 MHz seems too high to be ssp clock source directly, | 754 | * 480 MHz seems too high to be ssp clock source directly, |