]> git.sur5r.net Git - u-boot/commitdiff
udoo: Add SATA support on uDoo Board.
authorGiuseppe Pagano <giuseppe.pagano@seco.com>
Thu, 28 Nov 2013 11:32:49 +0000 (12:32 +0100)
committerStefano Babic <sbabic@denx.de>
Tue, 17 Dec 2013 17:14:21 +0000 (18:14 +0100)
Add SATA support on uDoo Board.

Signed-off-by: Giuseppe Pagano <giuseppe.pagano@seco.com>
CC: Stefano Babic <sbabic@denx.de>
CC: Fabio Estevam <fabio.estevam@freescale.com>
board/udoo/udoo.c
include/configs/udoo.h

index 081d517f53c2f80ef0b959f99ef0725aee647d69..e9236d444c848a955e863bf1a330a281a5839017 100644 (file)
@@ -14,6 +14,7 @@
 #include <asm/errno.h>
 #include <asm/gpio.h>
 #include <asm/imx-common/iomux-v3.h>
+#include <asm/imx-common/sata.h>
 #include <mmc.h>
 #include <fsl_esdhc.h>
 #include <asm/arch/crm_regs.h>
@@ -240,6 +241,9 @@ int board_init(void)
        /* address of boot parameters */
        gd->bd->bi_boot_params = PHYS_SDRAM + 0x100;
 
+#ifdef CONFIG_CMD_SATA
+       setup_sata();
+#endif
        return 0;
 }
 
index b9a493cd1ee82776fb4200b451c3f08bbbe4e35d..a1a1750cfddf5538ee72942486eee3089060adac 100644 (file)
 #define CONFIG_MXC_UART
 #define CONFIG_MXC_UART_BASE           UART2_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
+
 /* Network support */
 
 #define CONFIG_CMD_PING