summaryrefslogtreecommitdiff
path: root/include/configs
diff options
context:
space:
mode:
authorJason Liu <r64343@freescale.com>2013-06-25 12:59:59 +0800
committerJason Liu <r64343@freescale.com>2013-06-26 10:30:00 +0800
commitc1405103fd83ed3d9d36e5fd2e7c59660afec990 (patch)
treefb77f9c8e6d25145153684fdc8741f482de09d2a /include/configs
parent3cf770f74f07a6a5a65b429b017b4806004fd902 (diff)
downloadu-boot-imx-c1405103fd83ed3d9d36e5fd2e7c59660afec990.zip
u-boot-imx-c1405103fd83ed3d9d36e5fd2e7c59660afec990.tar.gz
u-boot-imx-c1405103fd83ed3d9d36e5fd2e7c59660afec990.tar.bz2
ENGR00268557 imx6q:sabresd: add SATA support
This patch adds the SATA support for i.mx6qsabresd board Signed-off-by: Jason Liu <r64343@freescale.com>
Diffstat (limited to 'include/configs')
-rw-r--r--include/configs/mx6qsabre_common.h33
1 files changed, 30 insertions, 3 deletions
diff --git a/include/configs/mx6qsabre_common.h b/include/configs/mx6qsabre_common.h
index a11731f..31fcdc6 100644
--- a/include/configs/mx6qsabre_common.h
+++ b/include/configs/mx6qsabre_common.h
@@ -85,7 +85,7 @@
#define CONFIG_SYS_TEXT_BASE 0x17800000
#define CONFIG_SYS_MMC_IMG_LOAD_PART 1
-#ifdef CONFIG_SYS_BOOT_NAND
+#if defined(CONFIG_SYS_BOOT_NAND)
/*
* The partions' layout for NAND is:
* mtd0: 16M (uboot)
@@ -103,9 +103,21 @@
"nand read ${fdt_addr} 0x2000000 0x100000;"\
"bootm ${loadaddr} - ${fdt_addr}\0"
-#else /* the following is used by the non-NAND boot. */
+#elif defined(CONFIG_SYS_BOOT_SATA)
#define CONFIG_EXTRA_ENV_SETTINGS \
+ "fdt_addr=0x18000000\0" \
+ "fdt_high=0xffffffff\0" \
+ "bootargs=console=" CONFIG_CONSOLE_DEV ",115200 \0"\
+ "bootargs_sata=setenv bootargs ${bootargs} " \
+ "root=/dev/sda1 rootwait rw \0" \
+ "bootcmd_sata=run bootargs_sata; sata init; " \
+ "sata read ${loadaddr} 0x800 0x4000; " \
+ "sata read ${fdt_addr} 0x8000 0x800; " \
+ "bootm ${loadaddr} - ${fdt_addr} \0" \
+ "bootcmd=run bootcmd_sata \0"
+#else
+#define CONFIG_EXTRA_ENV_SETTINGS \
"script=boot.scr\0" \
"uimage=uImage\0" \
"fdt_file=" CONFIG_DEFAULT_FDT_FILE "\0" \
@@ -180,7 +192,6 @@
"fi; " \
"else run netboot; fi"
#endif
-
#define CONFIG_ARP_TIMEOUT 200UL
/* Miscellaneous configurable options */
@@ -237,10 +248,22 @@
#elif defined CONFIG_SYS_BOOT_NAND
#define CONFIG_SYS_USE_NAND
#define CONFIG_ENV_IS_IN_NAND
+#elif defined CONFIG_SYS_BOOT_SATA
+#define CONFIG_ENV_IS_IN_SATA
+#define CONFIG_CMD_SATA
#else
#define CONFIG_ENV_IS_IN_MMC
#endif
+#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
+
#ifdef CONFIG_SYS_USE_SPINOR
#define CONFIG_CMD_SF
#define CONFIG_SPI_FLASH
@@ -300,6 +323,10 @@
#define CONFIG_ENV_OFFSET (8 << 20)
#define CONFIG_ENV_SECT_SIZE (128 << 10)
#define CONFIG_ENV_SIZE CONFIG_ENV_SECT_SIZE
+#elif defined(CONFIG_ENV_IS_IN_SATA)
+#define CONFIG_ENV_OFFSET (768 * 1024)
+#define CONFIG_SATA_ENV_DEV 0
+#define CONFIG_SYS_DCACHE_OFF /* remove when sata driver support cache */
#endif
#define CONFIG_OF_LIBFDT