]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
wandboard: enable SATA with imx6q
authorGilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
Thu, 9 Jun 2016 08:33:27 +0000 (10:33 +0200)
committerStefano Babic <sbabic@denx.de>
Tue, 12 Jul 2016 15:58:48 +0000 (17:58 +0200)
Signed-off-by: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
board/wandboard/wandboard.c
include/configs/wandboard.h

index 4ce74cd9715f2de86ea8b2ccb939534d7857dda6..8340dd1a86a93acb5b962a18d6cb949ced719987 100644 (file)
@@ -345,6 +345,12 @@ int board_early_init_f(void)
 #if defined(CONFIG_VIDEO_IPUV3)
        setup_display();
 #endif
+#ifdef CONFIG_CMD_SATA
+       /* Only mx6q wandboard has SATA */
+       if (is_cpu_type(MXC_CPU_MX6Q))
+               setup_sata();
+#endif
+
        return 0;
 }
 
index 99f5c0cc52bfec4ae01611c685a91050d1fc6e70..92af6543dad3340ba08b48f5931e6b84acd744fa 100644 (file)
 #define CONFIG_MXC_UART
 #define CONFIG_MXC_UART_BASE           UART1_BASE
 
+/* SATA Configs */
+
+#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
+
 /* Command definition */
 #define CONFIG_CMD_BMODE