mx6cuboxi: Add support for sata
PATCH 1/1 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.
--- board/solidrun/mx6cuboxi/mx6cuboxi.c | 5 +++++ include/configs/mx6cuboxi.h | 12 ++++++++++++ 2 files changed, 17 insertions(+)
board/solidrun/mx6cuboxi/mx6cuboxi.c +5 -0
@@ -22,6 +22,7 @@#include <linux/errno.h> #include <asm/gpio.h> #include <asm/imx-common/iomux-v3.h> +#include <asm/imx-common/sata.h> #include <asm/imx-common/video.h> #include <mmc.h> #include <fsl_esdhc.h>
@@ -314,6 +315,10 @@ int board_early_init_f(void) ret =setup_display ();#endif +#ifdef CONFIG_CMD_SATA +setup_sata (); +#endif +#ifdef CONFIG_USB_EHCI_MX6 setup_usb ();#endif
include/configs/mx6cuboxi.h +12 -0
@@ -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)
Signature · 1 line
2.13.0
PATCH 1/1 mx6cuboxi: Add support for sata
Quoted 7 lines · Peter Robinson
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 <[email protected]>Signed-off-by Peter Robinson <[email protected]>
PATCH 1/1 mx6cuboxi: Add support for sata
Quoted 11 lines · Fabio Estevam
Quoted 7 lines · Peter Robinson
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 <[email protected]>Signed-off-by Peter Robinson <[email protected]>Acked-by Fabio Estevam <[email protected]>
Applied to u-boot-imx, -next, thanks !
Best regards,
Stefano Babic
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de =====================================================================