diff options
Diffstat (limited to 'recipes-bsp/u-boot/u-boot-v2012.04.01/0006-MX53-mx53loco-Add-SATA-support.patch')
-rw-r--r-- | recipes-bsp/u-boot/u-boot-v2012.04.01/0006-MX53-mx53loco-Add-SATA-support.patch | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/recipes-bsp/u-boot/u-boot-v2012.04.01/0006-MX53-mx53loco-Add-SATA-support.patch b/recipes-bsp/u-boot/u-boot-v2012.04.01/0006-MX53-mx53loco-Add-SATA-support.patch new file mode 100644 index 0000000..54b69b0 --- /dev/null +++ b/recipes-bsp/u-boot/u-boot-v2012.04.01/0006-MX53-mx53loco-Add-SATA-support.patch @@ -0,0 +1,64 @@ +From d3ba981cb9e1e71abd34a23c06fa1d76ee722f77 Mon Sep 17 00:00:00 2001 +From: Stefano Babic <sbabic@denx.de> +Date: Wed, 22 Feb 2012 00:24:41 +0000 +Subject: [PATCH 06/56] 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> +--- + board/freescale/mx53loco/mx53loco.c | 3 +++ + include/configs/mx53loco.h | 11 +++++++++++ + 2 files changed, 14 insertions(+) + +diff --git a/board/freescale/mx53loco/mx53loco.c b/board/freescale/mx53loco/mx53loco.c +index d736141..7ea9f6e 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 34a4edd..af59307 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 */ +@@ -193,4 +194,14 @@ + + #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 */ +-- +1.7.10 + |