Skip to content
Snippets Groups Projects
Commit ff181563 authored by Peter Robinson's avatar Peter Robinson Committed by Stefano Babic
Browse files

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: default avatarPeter Robinson <pbrobinson@gmail.com>
Acked-by: default avatarFabio Estevam <fabio.estevam@nxp.com>
parent d8fab10c
No related branches found
No related tags found
No related merge requests found
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
#include <linux/errno.h> #include <linux/errno.h>
#include <asm/gpio.h> #include <asm/gpio.h>
#include <asm/imx-common/iomux-v3.h> #include <asm/imx-common/iomux-v3.h>
#include <asm/imx-common/sata.h>
#include <asm/imx-common/video.h> #include <asm/imx-common/video.h>
#include <mmc.h> #include <mmc.h>
#include <fsl_esdhc.h> #include <fsl_esdhc.h>
...@@ -314,6 +315,10 @@ int board_early_init_f(void) ...@@ -314,6 +315,10 @@ int board_early_init_f(void)
ret = setup_display(); ret = setup_display();
#endif #endif
#ifdef CONFIG_CMD_SATA
setup_sata();
#endif
#ifdef CONFIG_USB_EHCI_MX6 #ifdef CONFIG_USB_EHCI_MX6
setup_usb(); setup_usb();
#endif #endif
......
...@@ -21,6 +21,17 @@ ...@@ -21,6 +21,17 @@
/* MMC Configs */ /* MMC Configs */
#define CONFIG_SYS_FSL_ESDHC_ADDR USDHC2_BASE_ADDR #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 */ /* Ethernet Configuration */
#define CONFIG_FEC_MXC #define CONFIG_FEC_MXC
#define CONFIG_MII #define CONFIG_MII
...@@ -116,6 +127,7 @@ ...@@ -116,6 +127,7 @@
#define BOOT_TARGET_DEVICES(func) \ #define BOOT_TARGET_DEVICES(func) \
func(MMC, mmc, 0) \ func(MMC, mmc, 0) \
func(SATA, sata, 0) \
func(USB, usb, 0) \ func(USB, usb, 0) \
func(PXE, pxe, na) \ func(PXE, pxe, na) \
func(DHCP, dhcp, na) func(DHCP, dhcp, na)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment