summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaiane Angolini <daiane.angolini@freescale.com>2012-03-22 14:44:32 -0500
committerOtavio Salvador <otavio@ossystems.com.br>2012-03-23 18:29:18 +0000
commit0485c60ff7794de5a2f2af0ddb9e8e6b78ecdbc1 (patch)
tree7adc59f65afbb409fd350373f25867654b0c9b42
parenta7ab8fab103f7626453996943dd8eff8a46342d4 (diff)
downloadmeta-fsl-arm-0485c60ff7794de5a2f2af0ddb9e8e6b78ecdbc1.tar.gz
u-boot: add mx6qsabrelite support
Add patches needed for loading a kernel without Device Tree support Signed-off-by: Daiane Angolini <daiane.angolini@freescale.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
-rw-r--r--recipes-bsp/u-boot/u-boot/mx6qsabrelite_add_CONFIG_REVISION_TAG.patch48
-rw-r--r--recipes-bsp/u-boot/u-boot/mx6qsabrelite_add_MACH_TYPE_MX6Q_SABRELITE.patch25
-rw-r--r--recipes-bsp/u-boot/u-boot_git.bb6
3 files changed, 77 insertions, 2 deletions
diff --git a/recipes-bsp/u-boot/u-boot/mx6qsabrelite_add_CONFIG_REVISION_TAG.patch b/recipes-bsp/u-boot/u-boot/mx6qsabrelite_add_CONFIG_REVISION_TAG.patch
new file mode 100644
index 0000000..f9614fe
--- /dev/null
+++ b/recipes-bsp/u-boot/u-boot/mx6qsabrelite_add_CONFIG_REVISION_TAG.patch
@@ -0,0 +1,48 @@
1From: Eric Nelson <eric.nelson@boundarydevices.com>
2Date: Mon, 12 Mar 2012 15:04:12 +0000 (+0000)
3Subject: i.MX6: mx6q_sabrelite: add CONFIG_REVISION_TAG
4X-Git-Url: http://git.denx.de/?p=u-boot%2Fu-boot-imx.git;a=commitdiff_plain;h=044cd2a7318a6480346c4e0824956d0dd25e9ec3;hp=b0634306b222cca35ad4754091c718a59f912bc0
5
6i.MX6: mx6q_sabrelite: add CONFIG_REVISION_TAG
7
8This is needed to support Freescale-supplied userspaces.
9
10At the moment, both the IPU and VPU libraries provided by Freescale
11in the "imx-lib" package contain routines which scrape the system
12revision from /proc/cpuinfo. In the VPU library, this information is
13used to load the proper firmware, allowing a single binary to be used
14across various i.MX processors.
15
16Signed-off-by: Eric Nelson <eric.nelson@boundarydevices.com>
17Acked-by: Marek Vasut <marex@denx.de>
18Acked-by: Stefano Babic <sbabic@denx.de>
19---
20
21diff --git a/board/freescale/mx6qsabrelite/mx6qsabrelite.c b/board/freescale/mx6qsabrelite/mx6qsabrelite.c
22index 7fe2dc9..1d09a72 100644
23--- a/board/freescale/mx6qsabrelite/mx6qsabrelite.c
24+++ b/board/freescale/mx6qsabrelite/mx6qsabrelite.c
25@@ -215,6 +215,11 @@ int board_mmc_init(bd_t *bis)
26 }
27 #endif
28
29+u32 get_board_rev(void)
30+{
31+ return 0x63000 ;
32+}
33+
34 #ifdef CONFIG_MXC_SPI
35 iomux_v3_cfg_t ecspi1_pads[] = {
36 /* SS1 */
37diff --git a/include/configs/mx6qsabrelite.h b/include/configs/mx6qsabrelite.h
38index bb3a46b..a1a2267 100644
39--- a/include/configs/mx6qsabrelite.h
40+++ b/include/configs/mx6qsabrelite.h
41@@ -33,6 +33,7 @@
42 #define CONFIG_CMDLINE_TAG
43 #define CONFIG_SETUP_MEMORY_TAGS
44 #define CONFIG_INITRD_TAG
45+#define CONFIG_REVISION_TAG
46
47 /* Size of malloc() pool */
48 #define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + 2 * 1024 * 1024)
diff --git a/recipes-bsp/u-boot/u-boot/mx6qsabrelite_add_MACH_TYPE_MX6Q_SABRELITE.patch b/recipes-bsp/u-boot/u-boot/mx6qsabrelite_add_MACH_TYPE_MX6Q_SABRELITE.patch
new file mode 100644
index 0000000..09c74af
--- /dev/null
+++ b/recipes-bsp/u-boot/u-boot/mx6qsabrelite_add_MACH_TYPE_MX6Q_SABRELITE.patch
@@ -0,0 +1,25 @@
1From: Eric Nelson <eric.nelson@boundarydevices.com>
2Date: Sun, 4 Mar 2012 10:51:36 +0000 (+0000)
3Subject: i.MX6: mx6qsabrelite: add MACH_TYPE_MX6Q_SABRELITE
4X-Git-Url: http://git.denx.de/?p=u-boot%2Fu-boot-imx.git;a=commitdiff_plain;h=5152d09fe89768a119b016b21fc763bc0231d1e8;hp=044cd2a7318a6480346c4e0824956d0dd25e9ec3
5
6i.MX6: mx6qsabrelite: add MACH_TYPE_MX6Q_SABRELITE
7
8Allow non-dt kernels to boot
9
10Signed-off-by: Troy Kisky <troy.kisky@boundarydevices.com>
11---
12
13diff --git a/include/configs/mx6qsabrelite.h b/include/configs/mx6qsabrelite.h
14index a1a2267..8bc8a83 100644
15--- a/include/configs/mx6qsabrelite.h
16+++ b/include/configs/mx6qsabrelite.h
17@@ -28,6 +28,8 @@
18 #define CONFIG_DISPLAY_CPUINFO
19 #define CONFIG_DISPLAY_BOARDINFO
20
21+#define CONFIG_MACH_TYPE 3769
22+
23 #include <asm/arch/imx-regs.h>
24
25 #define CONFIG_CMDLINE_TAG
diff --git a/recipes-bsp/u-boot/u-boot_git.bb b/recipes-bsp/u-boot/u-boot_git.bb
index 85f8a0e..2d94670 100644
--- a/recipes-bsp/u-boot/u-boot_git.bb
+++ b/recipes-bsp/u-boot/u-boot_git.bb
@@ -6,14 +6,16 @@ COMPATIBLE_MACHINE = "(imx53qsb|imx53ard|imx51evk|imx28evk|imx6qsabrelite)"
6 6
7DEPENDS_mxs += "elftosb-native" 7DEPENDS_mxs += "elftosb-native"
8 8
9PR = "r1" 9PR = "r2"
10 10
11SRCREV = "6751b05f855bbe56005d5b88d4eb58bcd52170d2" 11SRCREV = "6751b05f855bbe56005d5b88d4eb58bcd52170d2"
12 12
13PV = "v2011.12+git" 13PV = "v2011.12+git"
14 14
15SRC_URI = "git://git.denx.de/u-boot.git;branch=master;protocol=git \ 15SRC_URI = "git://git.denx.de/u-boot.git;branch=master;protocol=git \
16 file://mx53-fix-uart-clock.patch" 16 file://mx53-fix-uart-clock.patch \
17 file://mx6qsabrelite_add_CONFIG_REVISION_TAG.patch \
18 file://mx6qsabrelite_add_MACH_TYPE_MX6Q_SABRELITE.patch "
17 19
18S = "${WORKDIR}/git" 20S = "${WORKDIR}/git"
19 21