diff options
author | Vikas Manocha <vikas.manocha@st.com> | 2014-11-18 21:42:23 +0300 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2014-12-09 23:16:19 +0300 |
commit | 2ce4eaf4c89e371aeb69392b68dbb2f705c28144 (patch) | |
tree | 56c27ac25726f80f1bf7844222f8fadea3cdec8a /arch/arm/cpu/armv7/stv0991/pinmux.c | |
parent | 9fa32b12370236a39090d4e42b013910d123db61 (diff) | |
download | u-boot-2ce4eaf4c89e371aeb69392b68dbb2f705c28144.tar.xz |
stv0991: enable ethernet support
Signed-off-by: Vikas Manocha <vikas.manocha@st.com>
Diffstat (limited to 'arch/arm/cpu/armv7/stv0991/pinmux.c')
-rw-r--r-- | arch/arm/cpu/armv7/stv0991/pinmux.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/arm/cpu/armv7/stv0991/pinmux.c b/arch/arm/cpu/armv7/stv0991/pinmux.c index 6d4414aaa5..1d086a235d 100644 --- a/arch/arm/cpu/armv7/stv0991/pinmux.c +++ b/arch/arm/cpu/armv7/stv0991/pinmux.c @@ -41,6 +41,20 @@ int stv0991_pinmux_config(int peripheral) CFG_GPIOB_16_UART_TX, &stv0991_creg->mux7); break; + case ETH_GPIOB_10_31_C_0_4: + writel(readl(&stv0991_creg->mux6) & 0x000000FF, + &stv0991_creg->mux6); + writel(0x00000000, &stv0991_creg->mux7); + writel(0x00000000, &stv0991_creg->mux8); + writel(readl(&stv0991_creg->mux9) & 0xFFF00000, + &stv0991_creg->mux9); + /* Ethernet Voltage configuration to 1.8V*/ + writel((readl(&stv0991_creg->vdd_pad1) & VDD_ETH_PS_MASK) | + ETH_VDD_CFG, &stv0991_creg->vdd_pad1); + writel((readl(&stv0991_creg->vdd_pad1) & VDD_ETH_PS_MASK) | + ETH_M_VDD_CFG, &stv0991_creg->vdd_pad1); + + break; default: break; } |