diff options
author | Ye Li <ye.li@nxp.com> | 2019-07-22 20:53:31 -0700 |
---|---|---|
committer | Ye Li <ye.li@nxp.com> | 2020-04-26 23:36:22 -0700 |
commit | 6d6cfa10864c1a464d83a1adb212eba99547e4bc (patch) | |
tree | 9f2f6c1f14d919a37eb134d2a2c9d8bd05560d0c | |
parent | f88aa30c717e3a6f22c6f0d440c9fc770dd773c0 (diff) |
MLK-22293-12 mx6q/qp: Update SATA codes and configs for sabre boards
Enable the SCSI and imx AHCI driver in imx6q/qp sabreauto and sabresd
SATA configs. Removed unused codes for old SATA driver.
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit ee39101f3a5cc62bfdc08332ac3f945abdb19c0c)
-rw-r--r-- | board/freescale/mx6sabreauto/mx6sabreauto.c | 8 | ||||
-rw-r--r-- | board/freescale/mx6sabresd/mx6sabresd.c | 7 | ||||
-rw-r--r-- | configs/mx6qpsabreauto_sata_defconfig | 13 | ||||
-rw-r--r-- | configs/mx6qpsabresd_sata_defconfig | 14 | ||||
-rw-r--r-- | configs/mx6qsabreauto_sata_defconfig | 13 | ||||
-rw-r--r-- | configs/mx6qsabresd_sata_defconfig | 13 | ||||
-rw-r--r-- | include/configs/mx6sabre_common.h | 18 |
7 files changed, 40 insertions, 46 deletions
diff --git a/board/freescale/mx6sabreauto/mx6sabreauto.c b/board/freescale/mx6sabreauto/mx6sabreauto.c index 18c71a8e0ab..9705c2c9c33 100644 --- a/board/freescale/mx6sabreauto/mx6sabreauto.c +++ b/board/freescale/mx6sabreauto/mx6sabreauto.c @@ -33,10 +33,6 @@ #include <power/pmic.h> #include <power/pfuze100_pmic.h> #include "../common/pfuze.h" - -#ifdef CONFIG_SATA -#include <asm/mach-imx/sata.h> -#endif #ifdef CONFIG_FSL_FASTBOOT #include <fb_fsl.h> #ifdef CONFIG_ANDROID_RECOVERY @@ -675,10 +671,6 @@ int board_init(void) setup_spinor(); #endif -#ifdef CONFIG_SATA - setup_sata(); -#endif - #ifdef CONFIG_MTD_NOR_FLASH setup_iomux_eimnor(); #endif diff --git a/board/freescale/mx6sabresd/mx6sabresd.c b/board/freescale/mx6sabresd/mx6sabresd.c index 0fa10e1ff49..fa05d6a0d60 100644 --- a/board/freescale/mx6sabresd/mx6sabresd.c +++ b/board/freescale/mx6sabresd/mx6sabresd.c @@ -38,9 +38,6 @@ #include <lcd.h> #include <mxc_epdc_fb.h> #endif -#ifdef CONFIG_SATA -#include <asm/mach-imx/sata.h> -#endif #ifdef CONFIG_FSL_FASTBOOT #include <fb_fsl.h> #ifdef CONFIG_ANDROID_RECOVERY @@ -840,10 +837,6 @@ int board_init(void) setup_epdc(); #endif -#ifdef CONFIG_SATA - setup_sata(); -#endif - #ifdef CONFIG_FEC_MXC setup_fec(); #endif diff --git a/configs/mx6qpsabreauto_sata_defconfig b/configs/mx6qpsabreauto_sata_defconfig index 8aea4302027..61d8700e81d 100644 --- a/configs/mx6qpsabreauto_sata_defconfig +++ b/configs/mx6qpsabreauto_sata_defconfig @@ -11,8 +11,6 @@ CONFIG_SYS_WHITE_ON_BLACK=y CONFIG_VIDEO_IPUV3=y CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=board/freescale/mx6sabreauto/mx6qp.cfg" CONFIG_SATA_BOOT=y -CONFIG_CMD_SATA=y -CONFIG_SATA=y CONFIG_ENV_IS_IN_SATA=y CONFIG_BOOTDELAY=3 # CONFIG_CONSOLE_MUX is not set @@ -24,7 +22,6 @@ CONFIG_HUSH_PARSER=y CONFIG_CMD_BOOTZ=y # CONFIG_CMD_IMLS is not set # CONFIG_CMD_FLASH is not set -# CONFIG_BLK is not set CONFIG_CMD_MEMTEST=y CONFIG_CMD_MMC=y CONFIG_CMD_PART=y @@ -82,6 +79,14 @@ CONFIG_USB_FUNCTION_FASTBOOT=y CONFIG_FASTBOOT_UUU_SUPPORT=y CONFIG_FASTBOOT=y CONFIG_FASTBOOT_BUF_ADDR=0x12C00000 -CONFIG_FASTBOOT_BUF_SIZE=0x19000000 +CONFIG_FASTBOOT_BUF_SIZE=0x40000000 CONFIG_FASTBOOT_FLASH=y CONFIG_EFI_PARTITION=y + +CONFIG_REGMAP=y +CONFIG_SYSCON=y +CONFIG_AHCI=y +CONFIG_IMX_AHCI=y +CONFIG_DM_SCSI=y +CONFIG_SCSI=y +CONFIG_CMD_SCSI=y diff --git a/configs/mx6qpsabresd_sata_defconfig b/configs/mx6qpsabresd_sata_defconfig index 90bc735bdba..a58b2640267 100644 --- a/configs/mx6qpsabresd_sata_defconfig +++ b/configs/mx6qpsabresd_sata_defconfig @@ -11,8 +11,6 @@ CONFIG_SYS_WHITE_ON_BLACK=y CONFIG_VIDEO_IPUV3=y CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=board/freescale/mx6sabresd/mx6qp.cfg" CONFIG_SATA_BOOT=y -CONFIG_CMD_SATA=y -CONFIG_SATA=y CONFIG_ENV_IS_IN_SATA=y CONFIG_BOOTDELAY=3 # CONFIG_CONSOLE_MUX is not set @@ -24,7 +22,6 @@ CONFIG_HUSH_PARSER=y CONFIG_CMD_BOOTZ=y # CONFIG_CMD_IMLS is not set # CONFIG_CMD_FLASH is not set -# CONFIG_BLK is not set CONFIG_CMD_MEMTEST=y CONFIG_CMD_MMC=y CONFIG_CMD_PART=y @@ -32,7 +29,6 @@ CONFIG_CMD_PCI=y CONFIG_CMD_SF=y CONFIG_CMD_I2C=y CONFIG_CMD_USB=y -CONFIG_CMD_DFU=y CONFIG_CMD_USB_MASS_STORAGE=y CONFIG_CMD_GPIO=y CONFIG_CMD_DHCP=y @@ -92,6 +88,14 @@ CONFIG_USB_FUNCTION_FASTBOOT=y CONFIG_FASTBOOT_UUU_SUPPORT=y CONFIG_FASTBOOT=y CONFIG_FASTBOOT_BUF_ADDR=0x12C00000 -CONFIG_FASTBOOT_BUF_SIZE=0x19000000 +CONFIG_FASTBOOT_BUF_SIZE=0x40000000 CONFIG_FASTBOOT_FLASH=y CONFIG_EFI_PARTITION=y + +CONFIG_REGMAP=y +CONFIG_SYSCON=y +CONFIG_AHCI=y +CONFIG_IMX_AHCI=y +CONFIG_DM_SCSI=y +CONFIG_SCSI=y +CONFIG_CMD_SCSI=y diff --git a/configs/mx6qsabreauto_sata_defconfig b/configs/mx6qsabreauto_sata_defconfig index 9e865d97f02..5541e5b0409 100644 --- a/configs/mx6qsabreauto_sata_defconfig +++ b/configs/mx6qsabreauto_sata_defconfig @@ -11,8 +11,6 @@ CONFIG_SYS_WHITE_ON_BLACK=y CONFIG_VIDEO_IPUV3=y CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=board/freescale/mx6sabreauto/imximage.cfg" CONFIG_SATA_BOOT=y -CONFIG_CMD_SATA=y -CONFIG_SATA=y CONFIG_ENV_IS_IN_SATA=y CONFIG_BOOTDELAY=3 # CONFIG_CONSOLE_MUX is not set @@ -24,7 +22,6 @@ CONFIG_HUSH_PARSER=y CONFIG_CMD_BOOTZ=y # CONFIG_CMD_IMLS is not set # CONFIG_CMD_FLASH is not set -# CONFIG_BLK is not set CONFIG_CMD_MEMTEST=y CONFIG_CMD_MMC=y CONFIG_CMD_PART=y @@ -82,6 +79,14 @@ CONFIG_USB_FUNCTION_FASTBOOT=y CONFIG_FASTBOOT_UUU_SUPPORT=y CONFIG_FASTBOOT=y CONFIG_FASTBOOT_BUF_ADDR=0x12C00000 -CONFIG_FASTBOOT_BUF_SIZE=0x19000000 +CONFIG_FASTBOOT_BUF_SIZE=0x40000000 CONFIG_FASTBOOT_FLASH=y CONFIG_EFI_PARTITION=y + +CONFIG_REGMAP=y +CONFIG_SYSCON=y +CONFIG_AHCI=y +CONFIG_IMX_AHCI=y +CONFIG_DM_SCSI=y +CONFIG_SCSI=y +CONFIG_CMD_SCSI=y diff --git a/configs/mx6qsabresd_sata_defconfig b/configs/mx6qsabresd_sata_defconfig index a4836931cc2..26ecddcdb82 100644 --- a/configs/mx6qsabresd_sata_defconfig +++ b/configs/mx6qsabresd_sata_defconfig @@ -11,8 +11,6 @@ CONFIG_SYS_WHITE_ON_BLACK=y CONFIG_VIDEO_IPUV3=y CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=board/freescale/mx6sabresd/mx6q_4x_mt41j128.cfg" CONFIG_SATA_BOOT=y -CONFIG_CMD_SATA=y -CONFIG_SATA=y CONFIG_ENV_IS_IN_SATA=y CONFIG_BOOTDELAY=3 # CONFIG_CONSOLE_MUX is not set @@ -24,7 +22,6 @@ CONFIG_HUSH_PARSER=y CONFIG_CMD_BOOTZ=y # CONFIG_CMD_IMLS is not set # CONFIG_CMD_FLASH is not set -# CONFIG_BLK is not set CONFIG_CMD_MEMTEST=y CONFIG_CMD_MMC=y CONFIG_CMD_PART=y @@ -91,6 +88,14 @@ CONFIG_USB_FUNCTION_FASTBOOT=y CONFIG_FASTBOOT_UUU_SUPPORT=y CONFIG_FASTBOOT=y CONFIG_FASTBOOT_BUF_ADDR=0x12C00000 -CONFIG_FASTBOOT_BUF_SIZE=0x19000000 +CONFIG_FASTBOOT_BUF_SIZE=0x40000000 CONFIG_FASTBOOT_FLASH=y CONFIG_EFI_PARTITION=y + +CONFIG_REGMAP=y +CONFIG_SYSCON=y +CONFIG_AHCI=y +CONFIG_IMX_AHCI=y +CONFIG_DM_SCSI=y +CONFIG_SCSI=y +CONFIG_CMD_SCSI=y diff --git a/include/configs/mx6sabre_common.h b/include/configs/mx6sabre_common.h index f293a91c9ad..812a992fd8f 100644 --- a/include/configs/mx6sabre_common.h +++ b/include/configs/mx6sabre_common.h @@ -157,12 +157,12 @@ "bootargs=console=" CONSOLE_DEV ",115200 \0"\ "bootargs_sata=setenv bootargs ${bootargs} " \ "root=/dev/sda2 rootwait rw \0" \ - "bootcmd_sata=run bootargs_sata; sata init; " \ + "bootcmd_sata=run bootargs_sata; scsi scan; " \ "run findfdt; run findtee;" \ - "fatload sata 0:1 ${loadaddr} ${image}; " \ - "fatload sata 0:1 ${fdt_addr} ${fdt_file}; " \ + "fatload scsi 0:1 ${loadaddr} ${image}; " \ + "fatload scsi 0:1 ${fdt_addr} ${fdt_file}; " \ "if test ${tee} = yes; then " \ - "fatload sata 0:1 ${tee_addr} ${tee_file}; " \ + "fatload scsi 0:1 ${tee_addr} ${tee_file}; " \ "bootm ${tee_addr} - ${fdt_addr}; " \ "else " \ "bootz ${loadaddr} - ${fdt_addr}; " \ @@ -338,15 +338,6 @@ #define CONFIG_SYS_INIT_SP_ADDR \ (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_SP_OFFSET) -#ifdef CONFIG_SATA -#define CONFIG_DWC_AHSATA -#define CONFIG_SYS_SATA_MAX_DEVICE 1 -#define CONFIG_DWC_AHSATA_PORT_ID 0 -#define CONFIG_DWC_AHSATA_BASE_ADDR SATA_ARB_BASE_ADDR -#define CONFIG_LBA48 -#define CONFIG_LIBATA -#endif - #ifdef CONFIG_MTD_NOR_FLASH #define CONFIG_SYS_FLASH_BASE WEIM_ARB_BASE_ADDR #define CONFIG_SYS_FLASH_SECT_SIZE (128 * 1024) @@ -379,7 +370,6 @@ #elif defined(CONFIG_ENV_IS_IN_NAND) #elif defined(CONFIG_ENV_IS_IN_SATA) #define CONFIG_SYS_SATA_ENV_DEV 0 -#define CONFIG_SYS_DCACHE_OFF /* remove when sata driver support cache */ #endif /* I2C Configs */ |