summaryrefslogtreecommitdiff
path: root/include/configs
diff options
context:
space:
mode:
authorTerry Lv <r65388@freescale.com>2010-05-12 22:49:24 +0800
committerTerry Lv <r65388@freescale.com>2010-06-24 16:54:31 +0800
commit90bfe6af18c84a7e3ba424cba0c2602d883bd286 (patch)
tree815e35b0cefc847806cef9a8df09bdad1c3955ad /include/configs
parent6fa1a0ea0c589b327e8106d13ffff115d2553284 (diff)
downloadu-boot-imx-90bfe6af18c84a7e3ba424cba0c2602d883bd286.zip
u-boot-imx-90bfe6af18c84a7e3ba424cba0c2602d883bd286.tar.gz
u-boot-imx-90bfe6af18c84a7e3ba424cba0c2602d883bd286.tar.bz2
ENGR00122651: Add dwc_ahsata support
Add dwc_ahsata support. Signed-off-by: Terry Lv <r65388@freescale.com>
Diffstat (limited to 'include/configs')
-rw-r--r--include/configs/mx53_arm2.h18
-rw-r--r--include/configs/mx53_evk.h14
2 files changed, 31 insertions, 1 deletions
diff --git a/include/configs/mx53_arm2.h b/include/configs/mx53_arm2.h
index 7265062..c28f6d3 100644
--- a/include/configs/mx53_arm2.h
+++ b/include/configs/mx53_arm2.h
@@ -100,6 +100,8 @@
#define CONFIG_CMD_CLOCK
#define CONFIG_REF_CLK_FREQ CONFIG_MX53_HCLK_FREQ
+#define CONFIG_CMD_SATA
+
#undef CONFIG_CMD_IMLS
#define CONFIG_BOOTDELAY 3
@@ -198,6 +200,19 @@
#define CONFIG_CMD_FAT 1
#define CONFIG_CMD_EXT2 1
#endif
+
+/*
+ * SATA Configs
+ */
+#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
+
/*-----------------------------------------------------------------------
* Stack sizes
*
@@ -212,7 +227,8 @@
#define PHYS_SDRAM_1 CSD0_BASE_ADDR
#define PHYS_SDRAM_1_SIZE (1024 * 1024 * 1024)
#define iomem_valid_addr(addr, size) \
- (addr >= PHYS_SDRAM_1 && addr <= (PHYS_SDRAM_1 + PHYS_SDRAM_1_SIZE))
+ (addr >= PHYS_SDRAM_1 && addr <= \
+ (unsigned long)(PHYS_SDRAM_1 + PHYS_SDRAM_1_SIZE))
/*-----------------------------------------------------------------------
* FLASH and environment organization
diff --git a/include/configs/mx53_evk.h b/include/configs/mx53_evk.h
index 760d4ac..4fa66f2 100644
--- a/include/configs/mx53_evk.h
+++ b/include/configs/mx53_evk.h
@@ -100,6 +100,7 @@
#define CONFIG_CMD_CLOCK
#define CONFIG_REF_CLK_FREQ CONFIG_MX53_HCLK_FREQ
+#define CONFIG_CMD_SATA
#undef CONFIG_CMD_IMLS
#define CONFIG_BOOTDELAY 3
@@ -198,6 +199,19 @@
#define CONFIG_CMD_FAT 1
#define CONFIG_CMD_EXT2 1
#endif
+
+/*
+ * SATA Configs
+ */
+#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
+
/*-----------------------------------------------------------------------
* Stack sizes
*