arm: kirkwood: lsxl: enable DM for SATA
authorMichael Walle <michael@walle.cc>
Wed, 3 Apr 2019 21:28:31 +0000 (23:28 +0200)
committerStefan Roese <sr@denx.de>
Fri, 12 Apr 2019 05:04:18 +0000 (07:04 +0200)
Switch from legacy IDE driver to sata_mv driver.

Signed-off-by: Michael Walle <michael@walle.cc>
Reviewed-by: Stefan Roese <sr@denx.de>
Signed-off-by: Stefan Roese <sr@denx.de>
configs/lschlv2_defconfig
configs/lsxhl_defconfig
include/configs/lsxl.h

index e1ff355731261cf028c47a0f8b2707815a99a5eb..c550798bcd4a9e609376ffdad7ca3da32024b0ee 100644 (file)
@@ -16,7 +16,7 @@ CONFIG_SYS_CONSOLE_INFO_QUIET=y
 CONFIG_MISC_INIT_R=y
 # CONFIG_DISPLAY_BOARDINFO is not set
 # CONFIG_CMD_FLASH is not set
-CONFIG_CMD_IDE=y
+CONFIG_CMD_SATA=y
 CONFIG_CMD_SF=y
 CONFIG_CMD_SPI=y
 CONFIG_CMD_USB=y
@@ -26,7 +26,7 @@ CONFIG_DEFAULT_DEVICE_TREE="kirkwood-lschlv2"
 CONFIG_ENV_IS_IN_SPI_FLASH=y
 CONFIG_NET_RANDOM_ETHADDR=y
 CONFIG_DM=y
-CONFIG_MVSATA_IDE=y
+CONFIG_SATA_MV=y
 CONFIG_BLK=y
 # CONFIG_MMC is not set
 CONFIG_DM_SPI_FLASH=y
index 48678bdb8fed7769760a54dd72afc5efb887ce47..efcce455a4871495a5b9c3af17fb202d198ac42b 100644 (file)
@@ -16,7 +16,7 @@ CONFIG_SYS_CONSOLE_INFO_QUIET=y
 CONFIG_MISC_INIT_R=y
 # CONFIG_DISPLAY_BOARDINFO is not set
 # CONFIG_CMD_FLASH is not set
-CONFIG_CMD_IDE=y
+CONFIG_CMD_SATA=y
 CONFIG_CMD_SF=y
 CONFIG_CMD_SPI=y
 CONFIG_CMD_USB=y
@@ -26,7 +26,7 @@ CONFIG_DEFAULT_DEVICE_TREE="kirkwood-lsxhl"
 CONFIG_ENV_IS_IN_SPI_FLASH=y
 CONFIG_NET_RANDOM_ETHADDR=y
 CONFIG_DM=y
-CONFIG_MVSATA_IDE=y
+CONFIG_SATA_MV=y
 CONFIG_BLK=y
 # CONFIG_MMC is not set
 CONFIG_DM_SPI_FLASH=y
index 72e62658d0ccc7a201e134111706a148b3160b23..55c4e633254755d54f21998ac4e6eedbd9e2207e 100644 (file)
@@ -76,9 +76,9 @@
        "kernel_addr=0x00800000\0"                                      \
        "ramdisk_addr=0x01000000\0"                                     \
        "fdt_addr=0x00ff0000\0"                                         \
-       "bootcmd_legacy=ide reset "                                     \
-               "&& load ide ${hdpart} ${kernel_addr} /uImage.buffalo " \
-               "&& load ide ${hdpart} ${ramdisk_addr} /initrd.buffalo "\
+       "bootcmd_legacy=sata init "                                     \
+               "&& load sata ${hdpart} ${kernel_addr} /uImage.buffalo "\
+               "&& load sata ${hdpart} ${ramdisk_addr} /initrd.buffalo "\
                "&& bootm ${kernel_addr} ${ramdisk_addr}\0"             \
        "bootcmd_net=bootp ${kernel_addr} vmlinuz "                     \
                "&& tftpboot ${ramdisk_addr} initrd.img "               \
                "&& tftpboot ${fdt_addr} " CONFIG_FDTFILE " "           \
                "&& bootz ${kernel_addr} "                              \
                        "${ramdisk_addr}:${ramdisk_len} ${fdt_addr}\0"  \
-       "bootcmd_hdd=ide reset "                                        \
-               "&& load ide ${hdpart} ${kernel_addr} /vmlinuz "        \
-               "&& load ide ${hdpart} ${ramdisk_addr} /initrd.img "    \
+       "bootcmd_hdd=sata init "                                        \
+               "&& load sata ${hdpart} ${kernel_addr} /vmlinuz "       \
+               "&& load sata ${hdpart} ${ramdisk_addr} /initrd.img "   \
                "&& setenv ramdisk_len ${filesize} "                    \
-               "&& load ide ${hdpart} ${fdt_addr} /dtb "               \
+               "&& load sata ${hdpart} ${fdt_addr} /dtb "              \
                "&& bootz ${kernel_addr} "                              \
                        "${ramdisk_addr}:${ramdisk_len} ${fdt_addr}\0"  \
        "bootcmd_usb=usb start "                                        \
 #undef CONFIG_RESET_PHY_R
 #endif /* CONFIG_CMD_NET */
 
-#ifdef CONFIG_IDE
-#undef CONFIG_SYS_IDE_MAXBUS
-#define CONFIG_SYS_IDE_MAXBUS          1
-#undef CONFIG_SYS_IDE_MAXDEVICE
-#define CONFIG_SYS_IDE_MAXDEVICE       1
-#define CONFIG_SYS_ATA_IDE0_OFFSET     MV_SATA_PORT0_OFFSET
+#ifdef CONFIG_SATA
+#define CONFIG_SYS_SATA_MAX_DEVICE 1
 #define CONFIG_SYS_64BIT_LBA
+#define CONFIG_LBA48
 #endif
 
 #endif /* _CONFIG_LSXL_H */