summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathan Rossi <nathan.rossi@xilinx.com>2015-04-21 13:42:38 +1000
committerNathan Rossi <nathan.rossi@xilinx.com>2015-04-21 13:42:38 +1000
commit771ca5f0e643a72eddcccde9cd19fbf49ff81650 (patch)
treeb96fc41ed1b3dff3066d55ac619465fbf91216af
parent620e72b2ddee1c1198a1ea3e9c26b44b20628d6e (diff)
downloadmeta-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>
-rw-r--r--recipes-bsp/u-boot/u-boot-xlnx-2015.01.inc2
-rw-r--r--recipes-bsp/u-boot/u-boot-xlnx/microblaze-Fix-EMAC-Lite-initialization.patch31
-rw-r--r--recipes-bsp/u-boot/u-boot-xlnx/microblaze-generic_defconfig-Disable-configs.patch25
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}"
5FILESEXTRAPATHS_prepend := "${THISDIR}/u-boot-xlnx:" 5FILESEXTRAPATHS_prepend := "${THISDIR}/u-boot-xlnx:"
6SRC_URI += " \ 6SRC_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
10LIC_FILES_CHKSUM = "file://README;beginline=1;endline=6;md5=157ab8408beab40cd8ce1dc69f702a6c" 12LIC_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 @@
1From 83f0e6e733aba458b9afac67f3c95c4e29712263 Mon Sep 17 00:00:00 2001
2From: Nathan Rossi <nathan.rossi@xilinx.com>
3Date: Tue, 14 Apr 2015 15:35:57 +1000
4Subject: [PATCH] microblaze: Fix EMAC Lite initialization
5
6It is possible for CONFIG_XILINX_EMACLITE to be defined without
7XILINX_EMACLITE_BASEADDR being defined as the EMAC Lite driver support
8OF init. Check that the driver is enabled and the base address is
9available before initializing with a static base address.
10
11Signed-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
16diff --git a/board/xilinx/microblaze-generic/microblaze-generic.c b/board/xilinx/microblaze-generic/microblaze-generic.c
17index 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--
301.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 @@
1From 4955e7593d4d9b22761c0d1cac53d3f2ce7bc329 Mon Sep 17 00:00:00 2001
2From: Nathan Rossi <nathan.rossi@xilinx.com>
3Date: Mon, 20 Apr 2015 17:57:34 +1000
4Subject: [PATCH] microblaze-generic_defconfig: Disable configs
5
6Signed-off-by: Nathan Rossi <nathan.rossi@xilinx.com>
7Upstream-Status: Configuration
8---
9 configs/microblaze-generic_defconfig | 3 ---
10 1 file changed, 3 deletions(-)
11
12diff --git a/configs/microblaze-generic_defconfig b/configs/microblaze-generic_defconfig
13index 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--
241.7.10.4
25