summaryrefslogtreecommitdiff
path: root/include/configs/mx6cuboxi.h
diff options
context:
space:
mode:
authorPeter Robinson <pbrobinson@gmail.com>2017-07-01 18:44:03 +0100
committerStefano Babic <sbabic@denx.de>2017-07-12 09:44:22 +0200
commitff1815632563a826cfe49fc9496a36d00febb6e3 (patch)
tree33eaf54888edb9e9b7865acd50f2cc7613f9541b /include/configs/mx6cuboxi.h
parentd8fab10cb48e42c6ba84925af058349dca46dfa0 (diff)
mx6cuboxi: Add support for sata
The Cubox-i and Hummingboard series of devices have an option of SATA on board, and depending on how the fuses are blown even the option to boot SPL from SATA. So enable support for it so it can be used to boot the OS from if people desire. Cc: Fabio Estevam <fabio.estevam@nxp.com> Signed-off-by: Peter Robinson <pbrobinson@gmail.com> Acked-by: Fabio Estevam <fabio.estevam@nxp.com>
Diffstat (limited to 'include/configs/mx6cuboxi.h')
-rw-r--r--include/configs/mx6cuboxi.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/configs/mx6cuboxi.h b/include/configs/mx6cuboxi.h
index bc22f56d1d..71acc7c4db 100644
--- a/include/configs/mx6cuboxi.h
+++ b/include/configs/mx6cuboxi.h
@@ -21,6 +21,17 @@
/* MMC Configs */
#define CONFIG_SYS_FSL_ESDHC_ADDR USDHC2_BASE_ADDR
+/* SATA Configuration */
+#define CONFIG_CMD_SATA
+#ifdef CONFIG_CMD_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
+
/* Ethernet Configuration */
#define CONFIG_FEC_MXC
#define CONFIG_MII
@@ -116,6 +127,7 @@
#define BOOT_TARGET_DEVICES(func) \
func(MMC, mmc, 0) \
+ func(SATA, sata, 0) \
func(USB, usb, 0) \
func(PXE, pxe, na) \
func(DHCP, dhcp, na)