]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
MX53: mx53loco: Add SATA support
authorStefano Babic <sbabic@denx.de>
Wed, 22 Feb 2012 00:24:41 +0000 (00:24 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Tue, 15 May 2012 06:31:31 +0000 (08:31 +0200)
Signed-off-by: Stefano Babic <sbabic@denx.de>
CC: Jason Liu <jason.hui@linaro.org>
Acked-by: Jason Liu <jason.hui@linaro.org>
board/freescale/mx53loco/mx53loco.c
include/configs/mx53loco.h

index d736141e287ff8c68589292bccdea0bd05805743..7ea9f6eadd2535c8c851e1dae0d12741b50359c1 100644 (file)
@@ -27,6 +27,7 @@
 #include <asm/arch/mx5x_pins.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/arch/crm_regs.h>
+#include <asm/arch/clock.h>
 #include <asm/arch/iomux.h>
 #include <asm/arch/clock.h>
 #include <asm/errno.h>
@@ -302,6 +303,8 @@ int board_init(void)
 {
        gd->bd->bi_boot_params = PHYS_SDRAM_1 + 0x100;
 
+       mxc_set_sata_internal_clock();
+
        return 0;
 }
 
index 34a4edd41e921f038bc82716f9ad7b21af0c1f59..af59307293f78a40add4262c36549d314dfadbb8 100644 (file)
@@ -56,6 +56,7 @@
 #define CONFIG_CMD_MMC
 #define CONFIG_GENERIC_MMC
 #define CONFIG_CMD_FAT
+#define CONFIG_CMD_EXT2
 #define CONFIG_DOS_PARTITION
 
 /* Eth Configs */
 
 #define CONFIG_OF_LIBFDT
 
+#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_BASE_ADDR
+       #define CONFIG_LBA48
+       #define CONFIG_LIBATA
+#endif
+
 #endif                         /* __CONFIG_H */