summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2012-04-22 16:10:53 -0300
committerOtavio Salvador <otavio@ossystems.com.br>2012-04-22 18:10:26 -0300
commit0359d775e6ca41b2babe2fe78b3d5a1970e378ba (patch)
tree593e7390ffb107c23f8ac31eca451b0d46ba6c33
parent30385af56bcdf5fbe518909e4be373b8fc15a8fd (diff)
downloadmeta-fsl-arm-0359d775e6ca41b2babe2fe78b3d5a1970e378ba.tar.gz
u-boot: update to 2012.04 release
OE-Core has not yet been update to 2012.04 release so we are adding this to our layer and once it has been update there we move it to a bbappend. Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
-rw-r--r--recipes-bsp/u-boot/mx6qsabrelite-fix-console.patch26
-rw-r--r--recipes-bsp/u-boot/u-boot/mx53-fix-uart-clock.patch55
-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_2012.04.bb (renamed from recipes-bsp/u-boot/u-boot_git.bb)13
5 files changed, 3 insertions, 164 deletions
diff --git a/recipes-bsp/u-boot/mx6qsabrelite-fix-console.patch b/recipes-bsp/u-boot/mx6qsabrelite-fix-console.patch
deleted file mode 100644
index 4bbb490..0000000
--- a/recipes-bsp/u-boot/mx6qsabrelite-fix-console.patch
+++ /dev/null
@@ -1,26 +0,0 @@
1Date: Wed, 28 Mar 2012 16:42:27 -0300
2Subject: [PATCH] mx6qsabrelite: Fix the serial console port
3
4On mx6qsabrelite the console is ttymxc1.
5
6Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
7---
8 include/configs/mx6qsabrelite.h | 2 +-
9 1 files changed, 1 insertions(+), 1 deletions(-)
10
11diff --git a/include/configs/mx6qsabrelite.h b/include/configs/mx6qsabrelite.h
12index 8bc8a83..2643817 100644
13--- a/include/configs/mx6qsabrelite.h
14+++ b/include/configs/mx6qsabrelite.h
15@@ -116,7 +116,7 @@
16 #define CONFIG_EXTRA_ENV_SETTINGS \
17 "script=boot.scr\0" \
18 "uimage=uImage\0" \
19- "console=ttymxc3\0" \
20+ "console=ttymxc1\0" \
21 "fdt_high=0xffffffff\0" \
22 "initrd_high=0xffffffff\0" \
23 "mmcdev=0\0" \
24--
251.7.1
26
diff --git a/recipes-bsp/u-boot/u-boot/mx53-fix-uart-clock.patch b/recipes-bsp/u-boot/u-boot/mx53-fix-uart-clock.patch
deleted file mode 100644
index 7d4f6bc..0000000
--- a/recipes-bsp/u-boot/u-boot/mx53-fix-uart-clock.patch
+++ /dev/null
@@ -1,55 +0,0 @@
1Change the parent UART clock to be PLL2, so that U-boot can also boot
2a Freescale 2.6.35 kernel for mx53.
3
4FSL kernel and U-boot changed the UART parent from PLL3 to PLL2 to avoid
5conflicts with IPU clocks, so that the video resolution can be changed
6without affecting the UART clock.
7
8On a 2.6.35 kernel the serial console is messed up after IPU driver is loaded
9and this patch fixes this problem.
10
11Tested on a mx53loco board booting a FSL kernel and also a mainline kernel.
12
13Upstream-Status: Submitted [under review]
14
15Reported-by: Otavio Salvador <otavio@ossystems.com.br>
16Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
17---
18 arch/arm/cpu/armv7/mx5/lowlevel_init.S | 20 +++++++++++++++++---
19 1 files changed, 17 insertions(+), 3 deletions(-)
20
21diff --git a/arch/arm/cpu/armv7/mx5/lowlevel_init.S b/arch/arm/cpu/armv7/mx5/lowlevel_init.S
22index 01f6d75..90c6ec1 100644
23--- a/arch/arm/cpu/armv7/mx5/lowlevel_init.S
24+++ b/arch/arm/cpu/armv7/mx5/lowlevel_init.S
25@@ -284,10 +284,24 @@
26 ldr r1, =0x00C30321
27 str r1, [r0, #CLKCTL_CSCDR1]
28 #elif defined(CONFIG_MX53)
29+ /* Switch peripheral to PLL2 */
30+ ldr r0, =CCM_BASE_ADDR
31+ ldr r1, =0x00808145
32+ orr r1, r1, #(2 << 10)
33+ orr r1, r1, #(0 << 16)
34+ orr r1, r1, #(1 << 19)
35+ str r1, [r0, #CLKCTL_CBCDR]
36+
37+ ldr r1, =0x00016154
38+ str r1, [r0, #CLKCTL_CBCMR]
39+ /* Change uart clk parent to pll2*/
40+ ldr r1, [r0, #CLKCTL_CSCMR1]
41+ and r1, r1, #0xfcffffff
42+ orr r1, r1, #0x01000000
43+ str r1, [r0, #CLKCTL_CSCMR1]
44 ldr r1, [r0, #CLKCTL_CSCDR1]
45- orr r1, r1, #0x3f
46- eor r1, r1, #0x3f
47- orr r1, r1, #0x21
48+ and r1, r1, #0xffffffc0
49+ orr r1, r1, #0x0a
50 str r1, [r0, #CLKCTL_CSCDR1]
51 #endif
52 /* make sure divider effective */
53--
541.7.1
55
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
deleted file mode 100644
index f9614fe..0000000
--- a/recipes-bsp/u-boot/u-boot/mx6qsabrelite_add_CONFIG_REVISION_TAG.patch
+++ /dev/null
@@ -1,48 +0,0 @@
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
deleted file mode 100644
index 09c74af..0000000
--- a/recipes-bsp/u-boot/u-boot/mx6qsabrelite_add_MACH_TYPE_MX6Q_SABRELITE.patch
+++ /dev/null
@@ -1,25 +0,0 @@
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_2012.04.bb
index 7c1febf..4f24183 100644
--- a/recipes-bsp/u-boot/u-boot_git.bb
+++ b/recipes-bsp/u-boot/u-boot_2012.04.bb
@@ -6,18 +6,11 @@ COMPATIBLE_MACHINE = "(imx53qsb|imx53ard|imx51evk|imx28evk|imx6qsabrelite)"
6 6
7DEPENDS_mxs += "elftosb-native" 7DEPENDS_mxs += "elftosb-native"
8 8
9PR = "r3" 9SRCREV = "2790bf69dc12fb9aeb9836904e5f57c7f83d5552"
10 10
11SRCREV = "6751b05f855bbe56005d5b88d4eb58bcd52170d2" 11PV = "v2012.04"
12 12
13PV = "v2011.12+git" 13SRC_URI = "git://git.denx.de/u-boot.git;branch=master;protocol=git"
14
15SRC_URI = "git://git.denx.de/u-boot.git;branch=master;protocol=git \
16 file://mx53-fix-uart-clock.patch \
17 file://mx6qsabrelite_add_CONFIG_REVISION_TAG.patch \
18 file://mx6qsabrelite_add_MACH_TYPE_MX6Q_SABRELITE.patch \
19 file://mx6qsabrelite-fix-console.patch \
20 "
21 14
22S = "${WORKDIR}/git" 15S = "${WORKDIR}/git"
23 16