]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM64: zynqmp: Add support for SD1 with level shifters bootmode
authorSiva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Wed, 21 Sep 2016 06:15:05 +0000 (11:45 +0530)
committerMichal Simek <michal.simek@xilinx.com>
Tue, 15 Nov 2016 14:28:05 +0000 (15:28 +0100)
Add support for SD1 with level shifters bootmode.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
arch/arm/include/asm/arch-zynqmp/hardware.h
board/xilinx/zynqmp/zynqmp.c

index 456c1b0902e578c985dba3af3115873863102748..e7738faaf896d4b04576acd90c8ce817fb12fa0a 100644 (file)
@@ -79,6 +79,7 @@ struct iou_scntr_secure {
 #define NAND_MODE      0x00000004
 #define EMMC_MODE      0x00000006
 #define USB_MODE       0x00000007
+#define SD1_LSHFT_MODE 0x0000000E /* SD1 Level shifter */
 #define JTAG_MODE      0x00000000
 #define BOOT_MODE_USE_ALT      0x100
 #define BOOT_MODE_ALT_SHIFT    12
index 7e6728870931f6d6f3a341c760cdb30a6f8520d3..df72516239dc716fcd622b1302f1ac134fa8f364 100644 (file)
@@ -360,6 +360,9 @@ int board_late_init(void)
                puts("SD_MODE\n");
                mode = "mmc0";
                break;
+       case SD1_LSHFT_MODE:
+               puts("LVL_SHFT_");
+               /* fall through */
        case SD_MODE1:
                puts("SD_MODE1\n");
 #if defined(CONFIG_ZYNQ_SDHCI0) && defined(CONFIG_ZYNQ_SDHCI1)