diff options
author | Yuantian Tang <andy.tang@nxp.com> | 2018-01-03 15:53:10 +0800 |
---|---|---|
committer | York Sun <york.sun@nxp.com> | 2018-01-17 10:30:54 -0800 |
commit | ae02cf03bc47804e88bb2fbc7cae3560618e6547 (patch) | |
tree | 718166e19004d1d11d81b5927461092d21275161 /include/configs/ls1012a_common.h | |
parent | f216ef252eb857167d2f6e58d646ff8dbf28abd1 (diff) | |
download | u-boot-ae02cf03bc47804e88bb2fbc7cae3560618e6547.tar.gz |
arm64: ls1012a: Add sata distro boot support
Sata is equipped on ls1012a and can be a boot source. Add sata boot
support as an option if available.
Signed-off-by: Tang Yuantian <andy.tang@nxp.com>
Reviewed-by: York Sun <york.sun@nxp.com>
Diffstat (limited to 'include/configs/ls1012a_common.h')
-rw-r--r-- | include/configs/ls1012a_common.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/configs/ls1012a_common.h b/include/configs/ls1012a_common.h index 9cbc6249dc..7dbe231deb 100644 --- a/include/configs/ls1012a_common.h +++ b/include/configs/ls1012a_common.h @@ -69,6 +69,16 @@ #define CONFIG_ENV_SECT_SIZE 0x40000 #endif +/* SATA */ +#define CONFIG_SCSI_AHCI_PLAT + +#define CONFIG_SYS_SATA AHCI_BASE_ADDR + +#define CONFIG_SYS_SCSI_MAX_SCSI_ID 1 +#define CONFIG_SYS_SCSI_MAX_LUN 1 +#define CONFIG_SYS_SCSI_MAX_DEVICE (CONFIG_SYS_SCSI_MAX_SCSI_ID * \ + CONFIG_SYS_SCSI_MAX_LUN) + /* I2C */ #define CONFIG_SYS_I2C #define CONFIG_SYS_I2C_MXC @@ -90,6 +100,7 @@ #include <config_distro_defaults.h> #ifndef CONFIG_SPL_BUILD #define BOOT_TARGET_DEVICES(func) \ + func(SCSI, scsi, 0) \ func(MMC, mmc, 0) \ func(USB, usb, 0) #include <config_distro_bootcmd.h> |