Skip to contentSkip to conversation

fsl: common :qixis: Add ifc and emmc switching via qixis

PATCH New Ashish Kumar 2 participants 4 messages Jan 17, 2018 – Jan 24, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 fsl: common :qixis: Add ifc and emmc switching via qixis

Previously only SD, NAND etc were secondary boot source and had IFC-NOR as primary booting target. But for SoC like LS1088 IFC-NOR can be secondary boot source, while QSPI-NOR is primary booting target, So add options in qixis to switch to other targets using new commands.

E.g.
'=> qixis_reset ifc' : switch to ifc
'=> qixis_reset emmc' : switch to emmc

---
 board/freescale/common/qixis.c | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)
board/freescale/common/qixis.c +22 -0
index 0db0ed6..3029fcf 100644
@@ -236,6 +236,28 @@ int qixis_reset_cmd(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 #else
 		printf("Not implemented\n");
 #endif
+	} else if (strcmp(argv[1], "ifc") == 0) {
+#ifdef QIXIS_LBMAP_IFC
+		QIXIS_WRITE(rst_ctl, 0x30);
+		QIXIS_WRITE(rcfg_ctl, 0);
+		set_lbmap(QIXIS_LBMAP_IFC);
+		set_rcw_src(QIXIS_RCW_SRC_IFC);
+		QIXIS_WRITE(rcfg_ctl, 0x20);
+		QIXIS_WRITE(rcfg_ctl, 0x21);
+#else
+		printf("Not implemented\n");
+#endif
+	} else if (strcmp(argv[1], "emmc") == 0) {
+#ifdef QIXIS_LBMAP_EMMC
+		QIXIS_WRITE(rst_ctl, 0x30);
+		QIXIS_WRITE(rcfg_ctl, 0);
+		set_lbmap(QIXIS_LBMAP_EMMC);
+		set_rcw_src(QIXIS_RCW_SRC_EMMC);
+		QIXIS_WRITE(rcfg_ctl, 0x20);
+		QIXIS_WRITE(rcfg_ctl, 0x21);
+#else
+		printf("Not implemented\n");
+#endif
 	} else if (strcmp(argv[1], "sd_qspi") == 0) {
 #ifdef QIXIS_LBMAP_SD_QSPI
 		QIXIS_WRITE(rst_ctl, 0x30);
Signature · 1 line
2.7.4
#1 lore raw

PATCH 2/2 armv8: ls1088: Add ifc, emmc lbmap and rcw_src entry for ls1088

---
 include/configs/ls1088aqds.h | 4 ++++
 include/configs/ls1088ardb.h | 2 ++
 2 files changed, 6 insertions(+)
include/configs/ls1088aqds.h +4 -0
index d5075c3..5ff632c 100644
@@ -164,9 +164,13 @@ unsigned long get_board_ddr_clk(void);
 #define QIXIS_LBMAP_DFLTBANK		0x0e
 #define QIXIS_LBMAP_ALTBANK		0x2e
 #define QIXIS_LBMAP_SD			0x00
+#define QIXIS_LBMAP_EMMC		0x00
+#define QIXIS_LBMAP_IFC			0x00
 #define QIXIS_LBMAP_SD_QSPI		0x0e
 #define QIXIS_LBMAP_QSPI		0x0e
+#define QIXIS_RCW_SRC_IFC		0x25
 #define QIXIS_RCW_SRC_SD		0x40
+#define QIXIS_RCW_SRC_EMMC		0x41
 #define QIXIS_RCW_SRC_QSPI		0x62
 #define QIXIS_RST_CTL_RESET		0x41
 #define QIXIS_RCFG_CTL_RECONFIG_IDLE	0x20
include/configs/ls1088ardb.h +2 -0
index d0066e3..2abe822 100644
@@ -159,9 +159,11 @@
 #define QIXIS_LBMAP_DFLTBANK		0x00
 #define QIXIS_LBMAP_ALTBANK		0x20
 #define QIXIS_LBMAP_SD			0x00
+#define QIXIS_LBMAP_EMMC		0x00
 #define QIXIS_LBMAP_SD_QSPI		0x00
 #define QIXIS_LBMAP_QSPI		0x00
 #define QIXIS_RCW_SRC_SD		0x40
+#define QIXIS_RCW_SRC_EMMC		0x41
 #define QIXIS_RCW_SRC_QSPI		0x62
 #define QIXIS_RST_CTL_RESET		0x31
 #define QIXIS_RCFG_CTL_RECONFIG_IDLE	0x20
Signature · 1 line
2.7.4
#2 lore raw

PATCH 2/2 armv8: ls1088: Add ifc, emmc lbmap and rcw_src entry for ls1088

Quoted 2 lines · Ashish Kumar

---

Modified subject and add commit message.
Applied to fsl-qoriq master. Thanks.

York

#3 lore raw

PATCH 1/2 fsl: common :qixis: Add ifc and emmc switching via qixis

In reply to Ashish Kumar
Quoted 6 lines · Ashish Kumar

Previously only SD, NAND etc were secondary boot source and had IFC-NOR as primary booting target. But for SoC like LS1088 IFC-NOR can be secondary boot source, while QSPI-NOR is primary booting target, So add options in qixis to switch to other targets using new commands.

Quoted 6 lines

E.g.
'=> qixis_reset ifc' : switch to ifc
'=> qixis_reset emmc' : switch to emmc

---

Rewrote commit message.
Applied to fsl-qoriq master. Thanks.

York