aboutsummaryrefslogtreecommitdiff
path: root/board/st/stv0991/stv0991.c
diff options
context:
space:
mode:
authorVikas Manocha2015-07-02 18:29:40 -0700
committerJagan Teki2015-07-03 13:50:53 +0530
commit54afb5002514f88c41f3d462d1e14715a40f4107 (patch)
tree71eeed9270b7371134410e92702d02d5b6d8c81e /board/st/stv0991/stv0991.c
parentf59fa3b1811370f979c80f46d839a09f60c49e43 (diff)
stv0991: configure clock & pad muxing for qspi
stv0991 has cadence qspi controller for flash interfacing, this patch configures the device pads & clock for the controller. Signed-off-by: Vikas Manocha <vikas.manocha@st.com> Reviewed-by: Jagannadh Teki <jteki@openedev.com>
Diffstat (limited to 'board/st/stv0991/stv0991.c')
-rw-r--r--board/st/stv0991/stv0991.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/board/st/stv0991/stv0991.c b/board/st/stv0991/stv0991.c
index 09f973f403c..add1ce1a79a 100644
--- a/board/st/stv0991/stv0991.c
+++ b/board/st/stv0991/stv0991.c
@@ -55,12 +55,20 @@ int board_eth_enable(void)
return 0;
}
+int board_qspi_enable(void)
+{
+ stv0991_pinmux_config(QSPI_CS_CLK_PAD);
+ clock_setup(QSPI_CLOCK_CFG);
+ return 0;
+}
+
/*
* Miscellaneous platform dependent initialisations
*/
int board_init(void)
{
board_eth_enable();
+ board_qspi_enable();
return 0;
}