diff options
author | Nathan Rossi <nathan.rossi@xilinx.com> | 2015-04-21 13:42:38 +1000 |
---|---|---|
committer | Nathan Rossi <nathan.rossi@xilinx.com> | 2015-04-21 13:42:38 +1000 |
commit | 771ca5f0e643a72eddcccde9cd19fbf49ff81650 (patch) | |
tree | b96fc41ed1b3dff3066d55ac619465fbf91216af | |
parent | 620e72b2ddee1c1198a1ea3e9c26b44b20628d6e (diff) | |
download | meta-xilinx-771ca5f0e643a72eddcccde9cd19fbf49ff81650.tar.gz |
u-boot-xlnx_2015.01: Add patches to fix MicroBlaze issues
* Add patch to fix issue with EMAC lite #define's
* Add patch to disable OF_CONTROL and SPL building for the
microblaze-generic board
Signed-off-by: Nathan Rossi <nathan.rossi@xilinx.com>
3 files changed, 58 insertions, 0 deletions
diff --git a/recipes-bsp/u-boot/u-boot-xlnx-2015.01.inc b/recipes-bsp/u-boot/u-boot-xlnx-2015.01.inc index a0ac7551..8ee028ed 100644 --- a/recipes-bsp/u-boot/u-boot-xlnx-2015.01.inc +++ b/recipes-bsp/u-boot/u-boot-xlnx-2015.01.inc | |||
@@ -5,6 +5,8 @@ PV = "v2015.01${XILINX_EXTENSION}+git${SRCPV}" | |||
5 | FILESEXTRAPATHS_prepend := "${THISDIR}/u-boot-xlnx:" | 5 | FILESEXTRAPATHS_prepend := "${THISDIR}/u-boot-xlnx:" |
6 | SRC_URI += " \ | 6 | SRC_URI += " \ |
7 | file://zynq-Add-Zynq-PicoZed-board-support.patch \ | 7 | file://zynq-Add-Zynq-PicoZed-board-support.patch \ |
8 | file://microblaze-Fix-EMAC-Lite-initialization.patch \ | ||
9 | file://microblaze-generic_defconfig-Disable-configs.patch \ | ||
8 | " | 10 | " |
9 | 11 | ||
10 | LIC_FILES_CHKSUM = "file://README;beginline=1;endline=6;md5=157ab8408beab40cd8ce1dc69f702a6c" | 12 | LIC_FILES_CHKSUM = "file://README;beginline=1;endline=6;md5=157ab8408beab40cd8ce1dc69f702a6c" |
diff --git a/recipes-bsp/u-boot/u-boot-xlnx/microblaze-Fix-EMAC-Lite-initialization.patch b/recipes-bsp/u-boot/u-boot-xlnx/microblaze-Fix-EMAC-Lite-initialization.patch new file mode 100644 index 00000000..09c48fbc --- /dev/null +++ b/recipes-bsp/u-boot/u-boot-xlnx/microblaze-Fix-EMAC-Lite-initialization.patch | |||
@@ -0,0 +1,31 @@ | |||
1 | From 83f0e6e733aba458b9afac67f3c95c4e29712263 Mon Sep 17 00:00:00 2001 | ||
2 | From: Nathan Rossi <nathan.rossi@xilinx.com> | ||
3 | Date: Tue, 14 Apr 2015 15:35:57 +1000 | ||
4 | Subject: [PATCH] microblaze: Fix EMAC Lite initialization | ||
5 | |||
6 | It is possible for CONFIG_XILINX_EMACLITE to be defined without | ||
7 | XILINX_EMACLITE_BASEADDR being defined as the EMAC Lite driver support | ||
8 | OF init. Check that the driver is enabled and the base address is | ||
9 | available before initializing with a static base address. | ||
10 | |||
11 | Signed-off-by: Nathan Rossi <nathan.rossi@xilinx.com> | ||
12 | --- | ||
13 | board/xilinx/microblaze-generic/microblaze-generic.c | 2 +- | ||
14 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
15 | |||
16 | diff --git a/board/xilinx/microblaze-generic/microblaze-generic.c b/board/xilinx/microblaze-generic/microblaze-generic.c | ||
17 | index eee5f6b..8c926a2 100644 | ||
18 | --- a/board/xilinx/microblaze-generic/microblaze-generic.c | ||
19 | +++ b/board/xilinx/microblaze-generic/microblaze-generic.c | ||
20 | @@ -63,7 +63,7 @@ int board_eth_init(bd_t *bis) | ||
21 | XILINX_AXIDMA_BASEADDR); | ||
22 | #endif | ||
23 | |||
24 | -#ifdef CONFIG_XILINX_EMACLITE | ||
25 | +#if defined(CONFIG_XILINX_EMACLITE) && defined(XILINX_EMACLITE_BASEADDR) | ||
26 | u32 txpp = 0; | ||
27 | u32 rxpp = 0; | ||
28 | # ifdef CONFIG_XILINX_EMACLITE_TX_PING_PONG | ||
29 | -- | ||
30 | 1.7.10.4 | ||
31 | |||
diff --git a/recipes-bsp/u-boot/u-boot-xlnx/microblaze-generic_defconfig-Disable-configs.patch b/recipes-bsp/u-boot/u-boot-xlnx/microblaze-generic_defconfig-Disable-configs.patch new file mode 100644 index 00000000..6de7b0e7 --- /dev/null +++ b/recipes-bsp/u-boot/u-boot-xlnx/microblaze-generic_defconfig-Disable-configs.patch | |||
@@ -0,0 +1,25 @@ | |||
1 | From 4955e7593d4d9b22761c0d1cac53d3f2ce7bc329 Mon Sep 17 00:00:00 2001 | ||
2 | From: Nathan Rossi <nathan.rossi@xilinx.com> | ||
3 | Date: Mon, 20 Apr 2015 17:57:34 +1000 | ||
4 | Subject: [PATCH] microblaze-generic_defconfig: Disable configs | ||
5 | |||
6 | Signed-off-by: Nathan Rossi <nathan.rossi@xilinx.com> | ||
7 | Upstream-Status: Configuration | ||
8 | --- | ||
9 | configs/microblaze-generic_defconfig | 3 --- | ||
10 | 1 file changed, 3 deletions(-) | ||
11 | |||
12 | diff --git a/configs/microblaze-generic_defconfig b/configs/microblaze-generic_defconfig | ||
13 | index 5cfd596..5ce5492 100644 | ||
14 | --- a/configs/microblaze-generic_defconfig | ||
15 | +++ b/configs/microblaze-generic_defconfig | ||
16 | @@ -1,6 +1,3 @@ | ||
17 | -CONFIG_SPL=y | ||
18 | +S:CONFIG_MICROBLAZE=y | ||
19 | +S:CONFIG_TARGET_MICROBLAZE_GENERIC=y | ||
20 | -CONFIG_OF_CONTROL=y | ||
21 | -CONFIG_OF_EMBED=y | ||
22 | CONFIG_DEFAULT_DEVICE_TREE="microblaze-generic" | ||
23 | -- | ||
24 | 1.7.10.4 | ||
25 | |||