aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefano Babic <sbabic@denx.de>2012-02-22 00:24:41 +0000
committerJohn Rigby <john.rigby@linaro.org>2012-05-04 16:28:46 -0600
commit566db728e2c6b4a9d92afeae3f31c4a0fd2e6768 (patch)
tree3f75c404d171137cabfa050d9335120a27aa73ca
parent87d03a53d0f210abed467dc351191950fb573c6e (diff)
MX53: mx53loco: Add SATA support
Signed-off-by: Stefano Babic <sbabic@denx.de> CC: Jason Liu <jason.hui@linaro.org> Acked-by: Jason Liu <jason.hui@linaro.org> Conflicts: include/configs/mx53loco.h
-rw-r--r--board/freescale/mx53loco/mx53loco.c3
-rw-r--r--include/configs/mx53loco.h11
2 files changed, 14 insertions, 0 deletions
diff --git a/board/freescale/mx53loco/mx53loco.c b/board/freescale/mx53loco/mx53loco.c
index d736141e2..7ea9f6ead 100644
--- a/board/freescale/mx53loco/mx53loco.c
+++ b/board/freescale/mx53loco/mx53loco.c
@@ -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;
}
diff --git a/include/configs/mx53loco.h b/include/configs/mx53loco.h
index 6f6d01e46..987a85d7f 100644
--- a/include/configs/mx53loco.h
+++ b/include/configs/mx53loco.h
@@ -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 */
@@ -220,4 +221,14 @@
/* Erratum */
#define CONFIG_SYS_FSL_ERRATUM_ESDHC111
+#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 */