diff options
author | Otavio Salvador <otavio@ossystems.com.br> | 2012-04-22 16:10:53 -0300 |
---|---|---|
committer | Otavio Salvador <otavio@ossystems.com.br> | 2012-04-22 18:10:26 -0300 |
commit | 0359d775e6ca41b2babe2fe78b3d5a1970e378ba (patch) | |
tree | 593e7390ffb107c23f8ac31eca451b0d46ba6c33 | |
parent | 30385af56bcdf5fbe518909e4be373b8fc15a8fd (diff) | |
download | meta-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.patch | 26 | ||||
-rw-r--r-- | recipes-bsp/u-boot/u-boot/mx53-fix-uart-clock.patch | 55 | ||||
-rw-r--r-- | recipes-bsp/u-boot/u-boot/mx6qsabrelite_add_CONFIG_REVISION_TAG.patch | 48 | ||||
-rw-r--r-- | recipes-bsp/u-boot/u-boot/mx6qsabrelite_add_MACH_TYPE_MX6Q_SABRELITE.patch | 25 | ||||
-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 @@ | |||
1 | Date: Wed, 28 Mar 2012 16:42:27 -0300 | ||
2 | Subject: [PATCH] mx6qsabrelite: Fix the serial console port | ||
3 | |||
4 | On mx6qsabrelite the console is ttymxc1. | ||
5 | |||
6 | Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com> | ||
7 | --- | ||
8 | include/configs/mx6qsabrelite.h | 2 +- | ||
9 | 1 files changed, 1 insertions(+), 1 deletions(-) | ||
10 | |||
11 | diff --git a/include/configs/mx6qsabrelite.h b/include/configs/mx6qsabrelite.h | ||
12 | index 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 | -- | ||
25 | 1.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 @@ | |||
1 | Change the parent UART clock to be PLL2, so that U-boot can also boot | ||
2 | a Freescale 2.6.35 kernel for mx53. | ||
3 | |||
4 | FSL kernel and U-boot changed the UART parent from PLL3 to PLL2 to avoid | ||
5 | conflicts with IPU clocks, so that the video resolution can be changed | ||
6 | without affecting the UART clock. | ||
7 | |||
8 | On a 2.6.35 kernel the serial console is messed up after IPU driver is loaded | ||
9 | and this patch fixes this problem. | ||
10 | |||
11 | Tested on a mx53loco board booting a FSL kernel and also a mainline kernel. | ||
12 | |||
13 | Upstream-Status: Submitted [under review] | ||
14 | |||
15 | Reported-by: Otavio Salvador <otavio@ossystems.com.br> | ||
16 | Signed-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 | |||
21 | diff --git a/arch/arm/cpu/armv7/mx5/lowlevel_init.S b/arch/arm/cpu/armv7/mx5/lowlevel_init.S | ||
22 | index 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 | -- | ||
54 | 1.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 @@ | |||
1 | From: Eric Nelson <eric.nelson@boundarydevices.com> | ||
2 | Date: Mon, 12 Mar 2012 15:04:12 +0000 (+0000) | ||
3 | Subject: i.MX6: mx6q_sabrelite: add CONFIG_REVISION_TAG | ||
4 | X-Git-Url: http://git.denx.de/?p=u-boot%2Fu-boot-imx.git;a=commitdiff_plain;h=044cd2a7318a6480346c4e0824956d0dd25e9ec3;hp=b0634306b222cca35ad4754091c718a59f912bc0 | ||
5 | |||
6 | i.MX6: mx6q_sabrelite: add CONFIG_REVISION_TAG | ||
7 | |||
8 | This is needed to support Freescale-supplied userspaces. | ||
9 | |||
10 | At the moment, both the IPU and VPU libraries provided by Freescale | ||
11 | in the "imx-lib" package contain routines which scrape the system | ||
12 | revision from /proc/cpuinfo. In the VPU library, this information is | ||
13 | used to load the proper firmware, allowing a single binary to be used | ||
14 | across various i.MX processors. | ||
15 | |||
16 | Signed-off-by: Eric Nelson <eric.nelson@boundarydevices.com> | ||
17 | Acked-by: Marek Vasut <marex@denx.de> | ||
18 | Acked-by: Stefano Babic <sbabic@denx.de> | ||
19 | --- | ||
20 | |||
21 | diff --git a/board/freescale/mx6qsabrelite/mx6qsabrelite.c b/board/freescale/mx6qsabrelite/mx6qsabrelite.c | ||
22 | index 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 */ | ||
37 | diff --git a/include/configs/mx6qsabrelite.h b/include/configs/mx6qsabrelite.h | ||
38 | index 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 @@ | |||
1 | From: Eric Nelson <eric.nelson@boundarydevices.com> | ||
2 | Date: Sun, 4 Mar 2012 10:51:36 +0000 (+0000) | ||
3 | Subject: i.MX6: mx6qsabrelite: add MACH_TYPE_MX6Q_SABRELITE | ||
4 | X-Git-Url: http://git.denx.de/?p=u-boot%2Fu-boot-imx.git;a=commitdiff_plain;h=5152d09fe89768a119b016b21fc763bc0231d1e8;hp=044cd2a7318a6480346c4e0824956d0dd25e9ec3 | ||
5 | |||
6 | i.MX6: mx6qsabrelite: add MACH_TYPE_MX6Q_SABRELITE | ||
7 | |||
8 | Allow non-dt kernels to boot | ||
9 | |||
10 | Signed-off-by: Troy Kisky <troy.kisky@boundarydevices.com> | ||
11 | --- | ||
12 | |||
13 | diff --git a/include/configs/mx6qsabrelite.h b/include/configs/mx6qsabrelite.h | ||
14 | index 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 | ||
7 | DEPENDS_mxs += "elftosb-native" | 7 | DEPENDS_mxs += "elftosb-native" |
8 | 8 | ||
9 | PR = "r3" | 9 | SRCREV = "2790bf69dc12fb9aeb9836904e5f57c7f83d5552" |
10 | 10 | ||
11 | SRCREV = "6751b05f855bbe56005d5b88d4eb58bcd52170d2" | 11 | PV = "v2012.04" |
12 | 12 | ||
13 | PV = "v2011.12+git" | 13 | SRC_URI = "git://git.denx.de/u-boot.git;branch=master;protocol=git" |
14 | |||
15 | SRC_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 | ||
22 | S = "${WORKDIR}/git" | 15 | S = "${WORKDIR}/git" |
23 | 16 | ||