diff options
author | Daiane Angolini <daiane.angolini@freescale.com> | 2012-03-22 14:44:32 -0500 |
---|---|---|
committer | Otavio Salvador <otavio@ossystems.com.br> | 2012-03-23 18:29:18 +0000 |
commit | 0485c60ff7794de5a2f2af0ddb9e8e6b78ecdbc1 (patch) | |
tree | 7adc59f65afbb409fd350373f25867654b0c9b42 | |
parent | a7ab8fab103f7626453996943dd8eff8a46342d4 (diff) | |
download | meta-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>
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 @@ | |||
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 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 @@ | |||
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_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 | ||
7 | DEPENDS_mxs += "elftosb-native" | 7 | DEPENDS_mxs += "elftosb-native" |
8 | 8 | ||
9 | PR = "r1" | 9 | PR = "r2" |
10 | 10 | ||
11 | SRCREV = "6751b05f855bbe56005d5b88d4eb58bcd52170d2" | 11 | SRCREV = "6751b05f855bbe56005d5b88d4eb58bcd52170d2" |
12 | 12 | ||
13 | PV = "v2011.12+git" | 13 | PV = "v2011.12+git" |
14 | 14 | ||
15 | SRC_URI = "git://git.denx.de/u-boot.git;branch=master;protocol=git \ | 15 | SRC_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 | ||
18 | S = "${WORKDIR}/git" | 20 | S = "${WORKDIR}/git" |
19 | 21 | ||