From: Otavio Salvador Date: Thu, 23 Jul 2015 14:02:31 +0000 (-0300) Subject: cgtqmx6eval: Add SATA support X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=6731bc8db4fe644b008e9b844aee043c6063f8af;p=u-boot.git cgtqmx6eval: Add SATA support Add SATA support. Signed-off-by: Otavio Salvador --- diff --git a/board/congatec/cgtqmx6eval/cgtqmx6eval.c b/board/congatec/cgtqmx6eval/cgtqmx6eval.c index e0d8d34d89..7de6460ca0 100644 --- a/board/congatec/cgtqmx6eval/cgtqmx6eval.c +++ b/board/congatec/cgtqmx6eval/cgtqmx6eval.c @@ -15,6 +15,7 @@ #include #include #include +#include #include #include #include @@ -450,6 +451,10 @@ int board_init(void) setup_i2c(1, CONFIG_SYS_I2C_SPEED, 0x7f, &i2c_pad_info1); +#ifdef CONFIG_CMD_SATA + setup_sata(); +#endif + return 0; } diff --git a/include/configs/cgtqmx6eval.h b/include/configs/cgtqmx6eval.h index 4a208ac839..c86413129f 100644 --- a/include/configs/cgtqmx6eval.h +++ b/include/configs/cgtqmx6eval.h @@ -88,6 +88,15 @@ #endif #define CONFIG_IMX_HDMI +/* SATA */ +#define 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 + #define CONFIG_DEFAULT_FDT_FILE "imx6q-congatec.dtb" #define CONFIG_EXTRA_ENV_SETTINGS \