summaryrefslogtreecommitdiff
path: root/board/freescale/ls1088a/ls1088a_qixis.h
diff options
context:
space:
mode:
authorYangbo Lu <yangbo.lu@nxp.com>2017-11-27 15:40:17 +0800
committerYork Sun <york.sun@nxp.com>2017-12-13 13:40:29 -0800
commit44cdb5b6a10a7eb2e240866cb842e44ff9999960 (patch)
tree3b83c5a70e36eea5d8df7be254ce02553b7a3668 /board/freescale/ls1088a/ls1088a_qixis.h
parentcf71338ee7a1dc16f13a4f1b89f32c624210df45 (diff)
armv8: ls1088ardb: support force SDHC mode by hwconfig
The BRDCFG5[SPISDHC] register field of Qixis device is used to control SPI and SDHC signal routing. 10 = Force SDHC Mode - SPI_CS[0] is routed to CPLD for SDHC_VS use. - SPI_CS[1] is unused. - SPI_CS[2:3] are routed to the TDMRiser slot. 11 = Force eMMC Mode - SPI_CS[0:3] are routed to the eMMC card. 0X = Auto Mode - If SDHC_CS_B=0 (SDHC card installed): Use SDHC mode described above. - Else SDHC_CS_B=1 (no SDHC card installed): Use eMMC mode described above. In default the hardware uses auto mode, but sometimes we need to use force SDHC mode to support SD card hotplug, or SD sleep waking up in kernel. This patch is to support force SDHC mode by hwconfig. Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com> Reviewed-by: York Sun <york.sun@nxp.com>
Diffstat (limited to 'board/freescale/ls1088a/ls1088a_qixis.h')
-rw-r--r--board/freescale/ls1088a/ls1088a_qixis.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/board/freescale/ls1088a/ls1088a_qixis.h b/board/freescale/ls1088a/ls1088a_qixis.h
index 4790461b47..6cad396cff 100644
--- a/board/freescale/ls1088a/ls1088a_qixis.h
+++ b/board/freescale/ls1088a/ls1088a_qixis.h
@@ -36,4 +36,10 @@
#define BRDCFG9_SFPTX_MASK 0x10
#define BRDCFG9_SFPTX_SHIFT 4
+/* Definitions of QIXIS Registers for LS1088ARDB */
+
+/* BRDCFG5 */
+#define BRDCFG5_SPISDHC_MASK 0x0C
+#define BRDCFG5_FORCE_SD 0x08
+
#endif