summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManjukumar Matha <manjukumar.harthikote-matha@xilinx.com>2016-12-01 12:44:25 -0800
committerNathan Rossi <nathan@nathanrossi.com>2016-12-04 20:50:39 +1000
commit8f68051ce43c6adcb916e8809564e6aa09c38f79 (patch)
treeee4816fcd33222b1c30c2dd08e67b13431c93599
parentabad77439a8f0aab1157d046720df8c541d1a885 (diff)
downloadmeta-xilinx-8f68051ce43c6adcb916e8809564e6aa09c38f79.tar.gz
kc705-microblazeel: Update to 2016.3 Xilinx design
Change kc705-microblazeel to reflect v2016.3 Xilinx tools. Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com> Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
-rw-r--r--recipes-bsp/device-tree/files/kc705/pl.dtsi51
-rw-r--r--recipes-bsp/device-tree/files/kc705/system-conf.dtsi21
-rw-r--r--recipes-bsp/u-boot/u-boot-xlnx/microblaze-kc705-Convert-microblaze-generic-to-k.patch641
-rw-r--r--recipes-kernel/linux/config/xilinx-machine/bsp/kc705-microblazeel/kc705-microblazeel.cfg4
4 files changed, 335 insertions, 382 deletions
diff --git a/recipes-bsp/device-tree/files/kc705/pl.dtsi b/recipes-bsp/device-tree/files/kc705/pl.dtsi
index e80b99b0..8f064671 100644
--- a/recipes-bsp/device-tree/files/kc705/pl.dtsi
+++ b/recipes-bsp/device-tree/files/kc705/pl.dtsi
@@ -1,7 +1,7 @@
1/* 1/*
2 * CAUTION: This file is automatically generated by Xilinx. 2 * CAUTION: This file is automatically generated by Xilinx.
3 * Version: HSI 2016.1 3 * Version: HSI 2016.3
4 * Today is: Tue Apr 19 17:57:03 2016 4 * Today is: Tue Sep 13 19:30:07 2016
5*/ 5*/
6 6
7 7
@@ -60,6 +60,7 @@
60 xlnx,debug-enabled = <0x1>; 60 xlnx,debug-enabled = <0x1>;
61 xlnx,debug-event-counters = <0x5>; 61 xlnx,debug-event-counters = <0x5>;
62 xlnx,debug-external-trace = <0x0>; 62 xlnx,debug-external-trace = <0x0>;
63 xlnx,debug-interface = <0x0>;
63 xlnx,debug-latency-counters = <0x1>; 64 xlnx,debug-latency-counters = <0x1>;
64 xlnx,debug-profile-size = <0x0>; 65 xlnx,debug-profile-size = <0x0>;
65 xlnx,debug-trace-size = <0x2000>; 66 xlnx,debug-trace-size = <0x2000>;
@@ -93,6 +94,7 @@
93 xlnx,interrupt-is-edge = <0x0>; 94 xlnx,interrupt-is-edge = <0x0>;
94 xlnx,interrupt-mon = <0x0>; 95 xlnx,interrupt-mon = <0x0>;
95 xlnx,ip-axi-mon = <0x0>; 96 xlnx,ip-axi-mon = <0x0>;
97 xlnx,lockstep-master = <0x0>;
96 xlnx,lockstep-select = <0x0>; 98 xlnx,lockstep-select = <0x0>;
97 xlnx,lockstep-slave = <0x0>; 99 xlnx,lockstep-slave = <0x0>;
98 xlnx,mmu-dtlb-size = <0x4>; 100 xlnx,mmu-dtlb-size = <0x4>;
@@ -114,6 +116,12 @@
114 xlnx,pvr-user1 = <0x00>; 116 xlnx,pvr-user1 = <0x00>;
115 xlnx,pvr-user2 = <0x00000000>; 117 xlnx,pvr-user2 = <0x00000000>;
116 xlnx,reset-msr = <0x00000000>; 118 xlnx,reset-msr = <0x00000000>;
119 xlnx,reset-msr-bip = <0x0>;
120 xlnx,reset-msr-dce = <0x0>;
121 xlnx,reset-msr-ee = <0x0>;
122 xlnx,reset-msr-eip = <0x0>;
123 xlnx,reset-msr-ice = <0x0>;
124 xlnx,reset-msr-ie = <0x0>;
117 xlnx,sco = <0x0>; 125 xlnx,sco = <0x0>;
118 xlnx,trace = <0x0>; 126 xlnx,trace = <0x0>;
119 xlnx,unaligned-exceptions = <0x1>; 127 xlnx,unaligned-exceptions = <0x1>;
@@ -173,7 +181,11 @@
173 xlnx = <0x0>; 181 xlnx = <0x0>;
174 xlnx,axiliteclkrate = <0x0>; 182 xlnx,axiliteclkrate = <0x0>;
175 xlnx,axisclkrate = <0x0>; 183 xlnx,axisclkrate = <0x0>;
184 xlnx,enableasyncsgmii = <0x0>;
176 xlnx,gt-type = <0x0>; 185 xlnx,gt-type = <0x0>;
186 xlnx,gtinex = <0x0>;
187 xlnx,gtlocation = <0x0>;
188 xlnx,gtrefclksrc = <0x0>;
177 xlnx,phy-type = <0x1>; 189 xlnx,phy-type = <0x1>;
178 xlnx,phyaddr = <0x1>; 190 xlnx,phyaddr = <0x1>;
179 xlnx,rable = <0x0>; 191 xlnx,rable = <0x0>;
@@ -195,7 +207,10 @@
195 #dma-cells = <1>; 207 #dma-cells = <1>;
196 axistream-connected = <&axi_ethernet>; 208 axistream-connected = <&axi_ethernet>;
197 axistream-control-connected = <&axi_ethernet>; 209 axistream-control-connected = <&axi_ethernet>;
198 compatible = "xlnx,axi-dma-1.00.a"; 210 clock-frequency = <200000000>;
211 clock-names = "s_axi_lite_aclk";
212 clocks = <&clk_bus_0>;
213 compatible = "xlnx,eth-dma";
199 interrupt-parent = <&microblaze_0_axi_intc>; 214 interrupt-parent = <&microblaze_0_axi_intc>;
200 interrupts = <3 2 2 2>; 215 interrupts = <3 2 2 2>;
201 reg = <0x41e00000 0x10000>; 216 reg = <0x41e00000 0x10000>;
@@ -214,7 +229,7 @@
214 xlnx,trig0-assert = <0x1>; 229 xlnx,trig0-assert = <0x1>;
215 xlnx,trig1-assert = <0x1>; 230 xlnx,trig1-assert = <0x1>;
216 }; 231 };
217 dip_switches_4bits: gpio@40010000 { 232 calib_complete_gpio: gpio@40010000 {
218 #gpio-cells = <2>; 233 #gpio-cells = <2>;
219 compatible = "xlnx,xps-gpio-1.00.a"; 234 compatible = "xlnx,xps-gpio-1.00.a";
220 gpio-controller ; 235 gpio-controller ;
@@ -225,6 +240,24 @@
225 xlnx,all-outputs-2 = <0x0>; 240 xlnx,all-outputs-2 = <0x0>;
226 xlnx,dout-default = <0x00000000>; 241 xlnx,dout-default = <0x00000000>;
227 xlnx,dout-default-2 = <0x00000000>; 242 xlnx,dout-default-2 = <0x00000000>;
243 xlnx,gpio-width = <0x1>;
244 xlnx,gpio2-width = <0x20>;
245 xlnx,interrupt-present = <0x0>;
246 xlnx,is-dual = <0x0>;
247 xlnx,tri-default = <0xFFFFFFFF>;
248 xlnx,tri-default-2 = <0xFFFFFFFF>;
249 };
250 dip_switches_4bits: gpio@40020000 {
251 #gpio-cells = <2>;
252 compatible = "xlnx,xps-gpio-1.00.a";
253 gpio-controller ;
254 reg = <0x40020000 0x10000>;
255 xlnx,all-inputs = <0x1>;
256 xlnx,all-inputs-2 = <0x0>;
257 xlnx,all-outputs = <0x0>;
258 xlnx,all-outputs-2 = <0x0>;
259 xlnx,dout-default = <0x00000000>;
260 xlnx,dout-default-2 = <0x00000000>;
228 xlnx,gpio-width = <0x4>; 261 xlnx,gpio-width = <0x4>;
229 xlnx,gpio2-width = <0x20>; 262 xlnx,gpio2-width = <0x20>;
230 xlnx,interrupt-present = <0x0>; 263 xlnx,interrupt-present = <0x0>;
@@ -235,16 +268,18 @@
235 iic_main: i2c@40800000 { 268 iic_main: i2c@40800000 {
236 #address-cells = <1>; 269 #address-cells = <1>;
237 #size-cells = <0>; 270 #size-cells = <0>;
271 clock-frequency = <200000000>;
272 clocks = <&clk_bus_0>;
238 compatible = "xlnx,xps-iic-2.00.a"; 273 compatible = "xlnx,xps-iic-2.00.a";
239 interrupt-parent = <&microblaze_0_axi_intc>; 274 interrupt-parent = <&microblaze_0_axi_intc>;
240 interrupts = <1 2>; 275 interrupts = <1 2>;
241 reg = <0x40800000 0x10000>; 276 reg = <0x40800000 0x10000>;
242 }; 277 };
243 led_8bits: gpio@40020000 { 278 led_8bits: gpio@40030000 {
244 #gpio-cells = <2>; 279 #gpio-cells = <2>;
245 compatible = "xlnx,xps-gpio-1.00.a"; 280 compatible = "xlnx,xps-gpio-1.00.a";
246 gpio-controller ; 281 gpio-controller ;
247 reg = <0x40020000 0x10000>; 282 reg = <0x40030000 0x10000>;
248 xlnx,all-inputs = <0x0>; 283 xlnx,all-inputs = <0x0>;
249 xlnx,all-inputs-2 = <0x0>; 284 xlnx,all-inputs-2 = <0x0>;
250 xlnx,all-outputs = <0x1>; 285 xlnx,all-outputs = <0x1>;
@@ -349,11 +384,11 @@
349 xlnx,kind-of-intr = <0x0>; 384 xlnx,kind-of-intr = <0x0>;
350 xlnx,num-intr-inputs = <0x6>; 385 xlnx,num-intr-inputs = <0x6>;
351 }; 386 };
352 push_buttons_5bits: gpio@40030000 { 387 push_buttons_5bits: gpio@40040000 {
353 #gpio-cells = <2>; 388 #gpio-cells = <2>;
354 compatible = "xlnx,xps-gpio-1.00.a"; 389 compatible = "xlnx,xps-gpio-1.00.a";
355 gpio-controller ; 390 gpio-controller ;
356 reg = <0x40030000 0x10000>; 391 reg = <0x40040000 0x10000>;
357 xlnx,all-inputs = <0x1>; 392 xlnx,all-inputs = <0x1>;
358 xlnx,all-inputs-2 = <0x0>; 393 xlnx,all-inputs-2 = <0x0>;
359 xlnx,all-outputs = <0x0>; 394 xlnx,all-outputs = <0x0>;
diff --git a/recipes-bsp/device-tree/files/kc705/system-conf.dtsi b/recipes-bsp/device-tree/files/kc705/system-conf.dtsi
index 2293d8d6..2a824aec 100644
--- a/recipes-bsp/device-tree/files/kc705/system-conf.dtsi
+++ b/recipes-bsp/device-tree/files/kc705/system-conf.dtsi
@@ -1,6 +1,11 @@
1/*
2 * CAUTION: This file is automatically generated by PetaLinux SDK.
3 * DO NOT modify this file
4 */
5
1 6
2/ { 7/ {
3 model = "Xilinx-KC705-AXI-full-2016.1"; 8 model = "Xilinx-KC705-AXI-full-2016.3";
4 hard-reset-gpios = <&reset_gpio 0 1>; 9 hard-reset-gpios = <&reset_gpio 0 1>;
5 aliases { 10 aliases {
6 serial0 = &rs232_uart; 11 serial0 = &rs232_uart;
@@ -31,19 +36,19 @@
31 }; 36 };
32 partition@0x00b00000 { 37 partition@0x00b00000 {
33 label = "boot"; 38 label = "boot";
34 reg = <0x00b00000 0x00060000>; 39 reg = <0x00b00000 0x00080000>;
35 }; 40 };
36 partition@0x00b60000 { 41 partition@0x00b80000 {
37 label = "bootenv"; 42 label = "bootenv";
38 reg = <0x00b60000 0x00020000>; 43 reg = <0x00b80000 0x00020000>;
39 }; 44 };
40 partition@0x00b80000 { 45 partition@0x00ba0000 {
41 label = "kernel"; 46 label = "kernel";
42 reg = <0x00b80000 0x00c00000>; 47 reg = <0x00ba0000 0x00c00000>;
43 }; 48 };
44 partition@0x01780000 { 49 partition@0x017a0000 {
45 label = "spare"; 50 label = "spare";
46 reg = <0x01780000 0x00000000>; 51 reg = <0x017a0000 0x00000000>;
47 }; 52 };
48}; 53};
49 54
diff --git a/recipes-bsp/u-boot/u-boot-xlnx/microblaze-kc705-Convert-microblaze-generic-to-k.patch b/recipes-bsp/u-boot/u-boot-xlnx/microblaze-kc705-Convert-microblaze-generic-to-k.patch
index 05011f94..3959c552 100644
--- a/recipes-bsp/u-boot/u-boot-xlnx/microblaze-kc705-Convert-microblaze-generic-to-k.patch
+++ b/recipes-bsp/u-boot/u-boot-xlnx/microblaze-kc705-Convert-microblaze-generic-to-k.patch
@@ -1,6 +1,6 @@
1From 5b6177a13aa531125cf5a80cfca9746ea37d98e8 Mon Sep 17 00:00:00 2001 1From 5b6177a13aa531125cf5a80cfca9746ea37d98e8 Mon Sep 17 00:00:00 2001
2From: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com> 2From: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com>
3Date: Tue, 26 Apr 2016 17:16:25 -0700 3Date: Wed, 14 Sep 2016 14:34:48 -0700
4Subject: [PATCH] kc705-microblazeel: Convert microblaze-generic to kc705-microblazeel 4Subject: [PATCH] kc705-microblazeel: Convert microblaze-generic to kc705-microblazeel
5 5
6This is an update to earlier kc705-trd patch done by Nathan Rossi. Starting 6This is an update to earlier kc705-trd patch done by Nathan Rossi. Starting
@@ -14,61 +14,55 @@ microblaze boards.
14Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com> 14Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com>
15Upstream-Status: Not-Upstreamable [meta-xilinx/kc705 specific] 15Upstream-Status: Not-Upstreamable [meta-xilinx/kc705 specific]
16--- 16---
17 arch/microblaze/dts/microblaze-generic.dts | 515 ++++++++++++++++++++++++++++ 17 arch/microblaze/dts/microblaze-generic.dts | 442 ++++++++++++++++++++++++++
18 board/xilinx/microblaze-generic/config.mk | 24 +- 18 board/xilinx/microblaze-generic/config.mk | 30 +-
19 configs/microblaze-generic_defconfig | 17 +- 19 configs/microblaze-generic_defconfig | 17 +-
20 include/configs/microblaze-generic.h | 520 +++++++++++------------------ 20 include/configs/microblaze-generic.h | 488 +++++++++++------------------
21 4 files changed, 721 insertions(+), 355 deletions(-) 21 4 files changed, 631 insertions(+), 346 deletions(-)
22 22
23diff --git a/arch/microblaze/dts/microblaze-generic.dts b/arch/microblaze/dts/microblaze-generic.dts 23diff --git a/arch/microblaze/dts/microblaze-generic.dts b/arch/microblaze/dts/microblaze-generic.dts
24index 2033309..c97cf0d 100644 24index 08a1396..f46c185 100644
25--- a/arch/microblaze/dts/microblaze-generic.dts 25--- a/arch/microblaze/dts/microblaze-generic.dts
26+++ b/arch/microblaze/dts/microblaze-generic.dts 26+++ b/arch/microblaze/dts/microblaze-generic.dts
27@@ -2,6 +2,521 @@ 27@@ -2,8 +2,450 @@
28 / { 28 / {
29 #address-cells = <1>; 29 #address-cells = <1>;
30 #size-cells = <1>; 30 #size-cells = <1>;
31+ model = "Xilinx MicroBlaze"; 31+ model = "Xilinx MicroBlaze";
32+ hard-reset-gpios = <0x1 0x0 0x1>;
33+ compatible = "xlnx,microblaze"; 32+ compatible = "xlnx,microblaze";
34+
35 aliases { 33 aliases {
36+ serial0 = "/amba_pl/serial@44a00000"; 34+ serial0 = &rs232_uart;
37+ ethernet0 = "/amba_pl/ethernet@40c00000"; 35+ ethernet0 = &axi_ethernet;
38+ }; 36 } ;
39+ 37 chosen {
40+ chosen {
41+ bootargs = "console=ttyS0,115200 earlyprintk"; 38+ bootargs = "console=ttyS0,115200 earlyprintk";
42+ stdout-path = "serial0:115200ns"; 39+ stdout-path = "serial0:115200ns";
43+ }; 40 } ;
44+
45+ memory { 41+ memory {
46+ device_type = "memory"; 42+ device_type = "memory";
47+ reg = <0x80000000 0x40000000>; 43+ reg = <0x80000000 0x40000000>;
48+ }; 44+ };
49+
50+ cpus { 45+ cpus {
51+ #address-cells = <0x1>; 46+ #address-cells = <1>;
52+ #cpus = <0x1>; 47+ #cpus = <1>;
53+ #size-cells = <0x0>; 48+ #size-cells = <0>;
54+ 49+ microblaze_0: cpu@0 {
55+ cpu@0 { 50+ bus-handle = <&amba_pl>;
56+ bus-handle = <0x2>; 51+ clock-frequency = <200000000>;
57+ clock-frequency = <0xbebc200>; 52+ clocks = <&clk_cpu>;
58+ clocks = <0x3>;
59+ compatible = "xlnx,microblaze-9.6"; 53+ compatible = "xlnx,microblaze-9.6";
60+ d-cache-baseaddr = <0x80000000>; 54+ d-cache-baseaddr = <0x0000000080000000>;
61+ d-cache-highaddr = <0xbfffffff>; 55+ d-cache-highaddr = <0x00000000bfffffff>;
62+ d-cache-line-size = <0x20>; 56+ d-cache-line-size = <0x20>;
63+ d-cache-size = <0x4000>; 57+ d-cache-size = <0x4000>;
64+ device_type = "cpu"; 58+ device_type = "cpu";
65+ i-cache-baseaddr = <0x80000000>; 59+ i-cache-baseaddr = <0x0000000080000000>;
66+ i-cache-highaddr = <0xbfffffff>; 60+ i-cache-highaddr = <0x00000000BFFFFFFF>;
67+ i-cache-line-size = <0x10>; 61+ i-cache-line-size = <0x10>;
68+ i-cache-size = <0x4000>; 62+ i-cache-size = <0x4000>;
69+ interrupt-handle = <0x4>; 63+ interrupt-handle = <&microblaze_0_axi_intc>;
70+ model = "microblaze,9.6"; 64+ model = "microblaze,9.6";
71+ timebase-frequency = <0xbebc200>; 65+ timebase-frequency = <200000000>;
72+ xlnx,addr-size = <0x20>; 66+ xlnx,addr-size = <0x20>;
73+ xlnx,addr-tag-bits = <0x10>; 67+ xlnx,addr-tag-bits = <0x10>;
74+ xlnx,allow-dcache-wr = <0x1>; 68+ xlnx,allow-dcache-wr = <0x1>;
@@ -77,7 +71,7 @@ index 2033309..c97cf0d 100644
77+ xlnx,async-interrupt = <0x1>; 71+ xlnx,async-interrupt = <0x1>;
78+ xlnx,async-wakeup = <0x3>; 72+ xlnx,async-wakeup = <0x3>;
79+ xlnx,avoid-primitives = <0x0>; 73+ xlnx,avoid-primitives = <0x0>;
80+ xlnx,base-vectors = <0x0>; 74+ xlnx,base-vectors = <0x0000000000000000>;
81+ xlnx,branch-target-cache-size = <0x0>; 75+ xlnx,branch-target-cache-size = <0x0>;
82+ xlnx,cache-byte-size = <0x4000>; 76+ xlnx,cache-byte-size = <0x4000>;
83+ xlnx,d-axi = <0x1>; 77+ xlnx,d-axi = <0x1>;
@@ -98,6 +92,7 @@ index 2033309..c97cf0d 100644
98+ xlnx,debug-enabled = <0x1>; 92+ xlnx,debug-enabled = <0x1>;
99+ xlnx,debug-event-counters = <0x5>; 93+ xlnx,debug-event-counters = <0x5>;
100+ xlnx,debug-external-trace = <0x0>; 94+ xlnx,debug-external-trace = <0x0>;
95+ xlnx,debug-interface = <0x0>;
101+ xlnx,debug-latency-counters = <0x1>; 96+ xlnx,debug-latency-counters = <0x1>;
102+ xlnx,debug-profile-size = <0x0>; 97+ xlnx,debug-profile-size = <0x0>;
103+ xlnx,debug-trace-size = <0x2000>; 98+ xlnx,debug-trace-size = <0x2000>;
@@ -131,6 +126,7 @@ index 2033309..c97cf0d 100644
131+ xlnx,interrupt-is-edge = <0x0>; 126+ xlnx,interrupt-is-edge = <0x0>;
132+ xlnx,interrupt-mon = <0x0>; 127+ xlnx,interrupt-mon = <0x0>;
133+ xlnx,ip-axi-mon = <0x0>; 128+ xlnx,ip-axi-mon = <0x0>;
129+ xlnx,lockstep-master = <0x0>;
134+ xlnx,lockstep-select = <0x0>; 130+ xlnx,lockstep-select = <0x0>;
135+ xlnx,lockstep-slave = <0x0>; 131+ xlnx,lockstep-slave = <0x0>;
136+ xlnx,mmu-dtlb-size = <0x4>; 132+ xlnx,mmu-dtlb-size = <0x4>;
@@ -149,9 +145,15 @@ index 2033309..c97cf0d 100644
149+ xlnx,optimization = <0x0>; 145+ xlnx,optimization = <0x0>;
150+ xlnx,pc-width = <0x20>; 146+ xlnx,pc-width = <0x20>;
151+ xlnx,pvr = <0x2>; 147+ xlnx,pvr = <0x2>;
152+ xlnx,pvr-user1 = <0x0>; 148+ xlnx,pvr-user1 = <0x00>;
153+ xlnx,pvr-user2 = <0x0>; 149+ xlnx,pvr-user2 = <0x00000000>;
154+ xlnx,reset-msr = <0x0>; 150+ xlnx,reset-msr = <0x00000000>;
151+ xlnx,reset-msr-bip = <0x0>;
152+ xlnx,reset-msr-dce = <0x0>;
153+ xlnx,reset-msr-ee = <0x0>;
154+ xlnx,reset-msr-eip = <0x0>;
155+ xlnx,reset-msr-ice = <0x0>;
156+ xlnx,reset-msr-ie = <0x0>;
155+ xlnx,sco = <0x0>; 157+ xlnx,sco = <0x0>;
156+ xlnx,trace = <0x0>; 158+ xlnx,trace = <0x0>;
157+ xlnx,unaligned-exceptions = <0x1>; 159+ xlnx,unaligned-exceptions = <0x1>;
@@ -175,54 +177,47 @@ index 2033309..c97cf0d 100644
175+ xlnx,use-stack-protection = <0x0>; 177+ xlnx,use-stack-protection = <0x0>;
176+ }; 178+ };
177+ }; 179+ };
178+
179+ clocks { 180+ clocks {
180+ #address-cells = <0x1>; 181+ #address-cells = <1>;
181+ #size-cells = <0x0>; 182+ #size-cells = <0>;
182+ 183+ clk_cpu: clk_cpu@0 {
183+ clk_cpu@0 { 184+ #clock-cells = <0>;
184+ #clock-cells = <0x0>; 185+ clock-frequency = <200000000>;
185+ clock-frequency = <0xbebc200>;
186+ clock-output-names = "clk_cpu"; 186+ clock-output-names = "clk_cpu";
187+ compatible = "fixed-clock"; 187+ compatible = "fixed-clock";
188+ reg = <0x0>; 188+ reg = <0>;
189+ linux,phandle = <0x3>;
190+ phandle = <0x3>;
191+ }; 189+ };
192+ 190+ clk_bus_0: clk_bus_0@1 {
193+ clk_bus_0@1 { 191+ #clock-cells = <0>;
194+ #clock-cells = <0x0>; 192+ clock-frequency = <200000000>;
195+ clock-frequency = <0xbebc200>;
196+ clock-output-names = "clk_bus_0"; 193+ clock-output-names = "clk_bus_0";
197+ compatible = "fixed-clock"; 194+ compatible = "fixed-clock";
198+ reg = <0x1>; 195+ reg = <1>;
199+ linux,phandle = <0x8>;
200+ phandle = <0x8>;
201+ }; 196+ };
202+ }; 197+ };
203+ 198+ amba_pl: amba_pl {
204+ amba_pl { 199+ #address-cells = <1>;
205+ #address-cells = <0x1>; 200+ #size-cells = <1>;
206+ #size-cells = <0x1>;
207+ compatible = "simple-bus"; 201+ compatible = "simple-bus";
208+ ranges; 202+ ranges ;
209+ linux,phandle = <0x2>; 203+ axi_ethernet: ethernet@40c00000 {
210+ phandle = <0x2>; 204+ axistream-connected = <&axi_ethernet_dma>;
211+ 205+ axistream-control-connected = <&axi_ethernet_dma>;
212+ ethernet@40c00000 { 206+ clock-frequency = <100000000>;
213+ axistream-connected = <0x5>;
214+ axistream-control-connected = <0x5>;
215+ clock-frequency = <0x5f5e100>;
216+ compatible = "xlnx,axi-ethernet-1.00.a"; 207+ compatible = "xlnx,axi-ethernet-1.00.a";
217+ device_type = "network"; 208+ device_type = "network";
218+ interrupt-parent = <0x4>; 209+ interrupt-parent = <&microblaze_0_axi_intc>;
219+ interrupts = <0x4 0x2>; 210+ interrupts = <4 2>;
220+ phy-mode = "gmii"; 211+ phy-mode = "gmii";
221+ reg = <0x40c00000 0x40000>; 212+ reg = <0x40c00000 0x40000>;
222+ xlnx = <0x0>; 213+ xlnx = <0x0>;
223+ xlnx,axiliteclkrate = <0x0>; 214+ xlnx,axiliteclkrate = <0x0>;
224+ xlnx,axisclkrate = <0x0>; 215+ xlnx,axisclkrate = <0x0>;
216+ xlnx,enableasyncsgmii = <0x0>;
225+ xlnx,gt-type = <0x0>; 217+ xlnx,gt-type = <0x0>;
218+ xlnx,gtinex = <0x0>;
219+ xlnx,gtlocation = <0x0>;
220+ xlnx,gtrefclksrc = <0x0>;
226+ xlnx,phy-type = <0x1>; 221+ xlnx,phy-type = <0x1>;
227+ xlnx,phyaddr = <0x1>; 222+ xlnx,phyaddr = <0x1>;
228+ xlnx,rable = <0x0>; 223+ xlnx,rable = <0x0>;
@@ -235,43 +230,29 @@ index 2033309..c97cf0d 100644
235+ xlnx,txcsum = <0x0>; 230+ xlnx,txcsum = <0x0>;
236+ xlnx,txlane0-placement = <0x0>; 231+ xlnx,txlane0-placement = <0x0>;
237+ xlnx,txlane1-placement = <0x0>; 232+ xlnx,txlane1-placement = <0x0>;
238+ local-mac-address = [00 0a 35 00 22 01]; 233+ axi_ethernet_mdio: mdio {
239+ phy-handle = <0x6>; 234+ #address-cells = <1>;
240+ linux,phandle = <0x7>; 235+ #size-cells = <0>;
241+ phandle = <0x7>;
242+
243+ mdio {
244+ #address-cells = <0x1>;
245+ #size-cells = <0x0>;
246+
247+ phy@7 {
248+ compatible = "marvell,88e1111";
249+ device_type = "ethernet-phy";
250+ reg = <0x7>;
251+ linux,phandle = <0x6>;
252+ phandle = <0x6>;
253+ };
254+ }; 236+ };
255+ }; 237+ };
256+ 238+ axi_ethernet_dma: dma@41e00000 {
257+ dma@41e00000 { 239+ #dma-cells = <1>;
258+ #dma-cells = <0x1>; 240+ axistream-connected = <&axi_ethernet>;
259+ axistream-connected = <0x7>; 241+ axistream-control-connected = <&axi_ethernet>;
260+ axistream-control-connected = <0x7>; 242+ clock-frequency = <200000000>;
261+ compatible = "xlnx,axi-dma-1.00.a"; 243+ clock-names = "s_axi_lite_aclk";
262+ interrupt-parent = <0x4>; 244+ clocks = <&clk_bus_0>;
263+ interrupts = <0x3 0x2 0x2 0x2>; 245+ compatible = "xlnx,eth-dma";
246+ interrupt-parent = <&microblaze_0_axi_intc>;
247+ interrupts = <3 2 2 2>;
264+ reg = <0x41e00000 0x10000>; 248+ reg = <0x41e00000 0x10000>;
265+ linux,phandle = <0x5>;
266+ phandle = <0x5>;
267+ }; 249+ };
268+ 250+ axi_timer_0: timer@41c00000 {
269+ timer@41c00000 { 251+ clock-frequency = <200000000>;
270+ clock-frequency = <0xbebc200>; 252+ clocks = <&clk_bus_0>;
271+ clocks = <0x8>;
272+ compatible = "xlnx,xps-timer-1.00.a"; 253+ compatible = "xlnx,xps-timer-1.00.a";
273+ interrupt-parent = <0x4>; 254+ interrupt-parent = <&microblaze_0_axi_intc>;
274+ interrupts = <0x5 0x2>; 255+ interrupts = <5 2>;
275+ reg = <0x41c00000 0x10000>; 256+ reg = <0x41c00000 0x10000>;
276+ xlnx,count-width = <0x20>; 257+ xlnx,count-width = <0x20>;
277+ xlnx,gen0-assert = <0x1>; 258+ xlnx,gen0-assert = <0x1>;
@@ -280,89 +261,72 @@ index 2033309..c97cf0d 100644
280+ xlnx,trig0-assert = <0x1>; 261+ xlnx,trig0-assert = <0x1>;
281+ xlnx,trig1-assert = <0x1>; 262+ xlnx,trig1-assert = <0x1>;
282+ }; 263+ };
283+ 264+ calib_complete_gpio: gpio@40010000 {
284+ gpio@40010000 { 265+ #gpio-cells = <2>;
285+ #gpio-cells = <0x2>;
286+ compatible = "xlnx,xps-gpio-1.00.a"; 266+ compatible = "xlnx,xps-gpio-1.00.a";
287+ gpio-controller; 267+ gpio-controller ;
288+ reg = <0x40010000 0x10000>; 268+ reg = <0x40010000 0x10000>;
289+ xlnx,all-inputs = <0x1>; 269+ xlnx,all-inputs = <0x1>;
290+ xlnx,all-inputs-2 = <0x0>; 270+ xlnx,all-inputs-2 = <0x0>;
291+ xlnx,all-outputs = <0x0>; 271+ xlnx,all-outputs = <0x0>;
292+ xlnx,all-outputs-2 = <0x0>; 272+ xlnx,all-outputs-2 = <0x0>;
293+ xlnx,dout-default = <0x0>; 273+ xlnx,dout-default = <0x00000000>;
294+ xlnx,dout-default-2 = <0x0>; 274+ xlnx,dout-default-2 = <0x00000000>;
275+ xlnx,gpio-width = <0x1>;
276+ xlnx,gpio2-width = <0x20>;
277+ xlnx,interrupt-present = <0x0>;
278+ xlnx,is-dual = <0x0>;
279+ xlnx,tri-default = <0xFFFFFFFF>;
280+ xlnx,tri-default-2 = <0xFFFFFFFF>;
281+ };
282+ dip_switches_4bits: gpio@40020000 {
283+ #gpio-cells = <2>;
284+ compatible = "xlnx,xps-gpio-1.00.a";
285+ gpio-controller ;
286+ reg = <0x40020000 0x10000>;
287+ xlnx,all-inputs = <0x1>;
288+ xlnx,all-inputs-2 = <0x0>;
289+ xlnx,all-outputs = <0x0>;
290+ xlnx,all-outputs-2 = <0x0>;
291+ xlnx,dout-default = <0x00000000>;
292+ xlnx,dout-default-2 = <0x00000000>;
295+ xlnx,gpio-width = <0x4>; 293+ xlnx,gpio-width = <0x4>;
296+ xlnx,gpio2-width = <0x20>; 294+ xlnx,gpio2-width = <0x20>;
297+ xlnx,interrupt-present = <0x0>; 295+ xlnx,interrupt-present = <0x0>;
298+ xlnx,is-dual = <0x0>; 296+ xlnx,is-dual = <0x0>;
299+ xlnx,tri-default = <0xffffffff>; 297+ xlnx,tri-default = <0xFFFFFFFF>;
300+ xlnx,tri-default-2 = <0xffffffff>; 298+ xlnx,tri-default-2 = <0xFFFFFFFF>;
301+ }; 299+ };
302+ 300+ iic_main: i2c@40800000 {
303+ i2c@40800000 { 301+ #address-cells = <1>;
304+ #address-cells = <0x1>; 302+ #size-cells = <0>;
305+ #size-cells = <0x0>; 303+ clock-frequency = <200000000>;
304+ clocks = <&clk_bus_0>;
306+ compatible = "xlnx,xps-iic-2.00.a"; 305+ compatible = "xlnx,xps-iic-2.00.a";
307+ interrupt-parent = <0x4>; 306+ interrupt-parent = <&microblaze_0_axi_intc>;
308+ interrupts = <0x1 0x2>; 307+ interrupts = <1 2>;
309+ reg = <0x40800000 0x10000>; 308+ reg = <0x40800000 0x10000>;
310+
311+ i2cswitch@74 {
312+ compatible = "nxp,pca9548";
313+ #address-cells = <0x1>;
314+ #size-cells = <0x0>;
315+ reg = <0x74>;
316+
317+ i2c@0 {
318+ #address-cells = <0x1>;
319+ #size-cells = <0x0>;
320+ reg = <0x0>;
321+
322+ clock-generator@5d {
323+ #clock-cells = <0x0>;
324+ compatible = "silabs,si570";
325+ temperature-stability = <0x32>;
326+ reg = <0x5d>;
327+ factory-fout = <0x9502f90>;
328+ clock-frequency = <0x8d9ee20>;
329+ };
330+ };
331+
332+ i2c@3 {
333+ #address-cells = <0x1>;
334+ #size-cells = <0x0>;
335+ reg = <0x3>;
336+
337+ eeprom@54 {
338+ compatible = "at,24c08";
339+ reg = <0x54>;
340+ };
341+ };
342+ };
343+ }; 309+ };
344+ 310+ led_8bits: gpio@40030000 {
345+ gpio@40020000 { 311+ #gpio-cells = <2>;
346+ #gpio-cells = <0x2>;
347+ compatible = "xlnx,xps-gpio-1.00.a"; 312+ compatible = "xlnx,xps-gpio-1.00.a";
348+ gpio-controller; 313+ gpio-controller ;
349+ reg = <0x40020000 0x10000>; 314+ reg = <0x40030000 0x10000>;
350+ xlnx,all-inputs = <0x0>; 315+ xlnx,all-inputs = <0x0>;
351+ xlnx,all-inputs-2 = <0x0>; 316+ xlnx,all-inputs-2 = <0x0>;
352+ xlnx,all-outputs = <0x1>; 317+ xlnx,all-outputs = <0x1>;
353+ xlnx,all-outputs-2 = <0x0>; 318+ xlnx,all-outputs-2 = <0x0>;
354+ xlnx,dout-default = <0x0>; 319+ xlnx,dout-default = <0x00000000>;
355+ xlnx,dout-default-2 = <0x0>; 320+ xlnx,dout-default-2 = <0x00000000>;
356+ xlnx,gpio-width = <0x8>; 321+ xlnx,gpio-width = <0x8>;
357+ xlnx,gpio2-width = <0x20>; 322+ xlnx,gpio2-width = <0x20>;
358+ xlnx,interrupt-present = <0x0>; 323+ xlnx,interrupt-present = <0x0>;
359+ xlnx,is-dual = <0x0>; 324+ xlnx,is-dual = <0x0>;
360+ xlnx,tri-default = <0xffffffff>; 325+ xlnx,tri-default = <0xFFFFFFFF>;
361+ xlnx,tri-default-2 = <0xffffffff>; 326+ xlnx,tri-default-2 = <0xFFFFFFFF>;
362+ }; 327+ };
363+ 328+ linear_flash: flash@60000000 {
364+ flash@60000000 { 329+ bank-width = <2>;
365+ bank-width = <0x2>;
366+ compatible = "cfi-flash"; 330+ compatible = "cfi-flash";
367+ reg = <0x60000000 0x8000000>; 331+ reg = <0x60000000 0x8000000>;
368+ xlnx,axi-clk-period-ps = <0x1388>; 332+ xlnx,axi-clk-period-ps = <0x1388>;
@@ -443,98 +407,63 @@ index 2033309..c97cf0d 100644
443+ xlnx,wr-rec-time-mem-1 = <0x6978>; 407+ xlnx,wr-rec-time-mem-1 = <0x6978>;
444+ xlnx,wr-rec-time-mem-2 = <0x6978>; 408+ xlnx,wr-rec-time-mem-2 = <0x6978>;
445+ xlnx,wr-rec-time-mem-3 = <0x6978>; 409+ xlnx,wr-rec-time-mem-3 = <0x6978>;
446+ #address-cells = <0x1>;
447+ #size-cells = <0x1>;
448+
449+ partition@0x00000000 {
450+ label = "fpga";
451+ reg = <0x0 0xb00000>;
452+ };
453+
454+ partition@0x00b00000 {
455+ label = "boot";
456+ reg = <0xb00000 0x60000>;
457+ };
458+
459+ partition@0x00b60000 {
460+ label = "bootenv";
461+ reg = <0xb60000 0x20000>;
462+ };
463+
464+ partition@0x00b80000 {
465+ label = "kernel";
466+ reg = <0xb80000 0xc00000>;
467+ };
468+
469+ partition@0x01780000 {
470+ label = "spare";
471+ reg = <0x1780000 0x0>;
472+ };
473+ }; 410+ };
474+ 411+ microblaze_0_axi_intc: interrupt-controller@41200000 {
475+ interrupt-controller@41200000 { 412+ #interrupt-cells = <2>;
476+ #interrupt-cells = <0x2>;
477+ compatible = "xlnx,xps-intc-1.00.a"; 413+ compatible = "xlnx,xps-intc-1.00.a";
478+ interrupt-controller; 414+ interrupt-controller ;
479+ reg = <0x41200000 0x10000>; 415+ reg = <0x41200000 0x10000>;
480+ xlnx,kind-of-intr = <0x0>; 416+ xlnx,kind-of-intr = <0x0>;
481+ xlnx,num-intr-inputs = <0x6>; 417+ xlnx,num-intr-inputs = <0x6>;
482+ linux,phandle = <0x4>;
483+ phandle = <0x4>;
484+ }; 418+ };
485+ 419+ push_buttons_5bits: gpio@40040000 {
486+ gpio@40030000 { 420+ #gpio-cells = <2>;
487+ #gpio-cells = <0x2>;
488+ compatible = "xlnx,xps-gpio-1.00.a"; 421+ compatible = "xlnx,xps-gpio-1.00.a";
489+ gpio-controller; 422+ gpio-controller ;
490+ reg = <0x40030000 0x10000>; 423+ reg = <0x40040000 0x10000>;
491+ xlnx,all-inputs = <0x1>; 424+ xlnx,all-inputs = <0x1>;
492+ xlnx,all-inputs-2 = <0x0>; 425+ xlnx,all-inputs-2 = <0x0>;
493+ xlnx,all-outputs = <0x0>; 426+ xlnx,all-outputs = <0x0>;
494+ xlnx,all-outputs-2 = <0x0>; 427+ xlnx,all-outputs-2 = <0x0>;
495+ xlnx,dout-default = <0x0>; 428+ xlnx,dout-default = <0x00000000>;
496+ xlnx,dout-default-2 = <0x0>; 429+ xlnx,dout-default-2 = <0x00000000>;
497+ xlnx,gpio-width = <0x5>; 430+ xlnx,gpio-width = <0x5>;
498+ xlnx,gpio2-width = <0x20>; 431+ xlnx,gpio2-width = <0x20>;
499+ xlnx,interrupt-present = <0x0>; 432+ xlnx,interrupt-present = <0x0>;
500+ xlnx,is-dual = <0x0>; 433+ xlnx,is-dual = <0x0>;
501+ xlnx,tri-default = <0xffffffff>; 434+ xlnx,tri-default = <0xFFFFFFFF>;
502+ xlnx,tri-default-2 = <0xffffffff>; 435+ xlnx,tri-default-2 = <0xFFFFFFFF>;
503+ }; 436+ };
504+ 437+ reset_gpio: gpio@40000000 {
505+ gpio@40000000 { 438+ #gpio-cells = <2>;
506+ #gpio-cells = <0x2>;
507+ compatible = "xlnx,xps-gpio-1.00.a"; 439+ compatible = "xlnx,xps-gpio-1.00.a";
508+ gpio-controller; 440+ gpio-controller ;
509+ reg = <0x40000000 0x10000>; 441+ reg = <0x40000000 0x10000>;
510+ xlnx,all-inputs = <0x0>; 442+ xlnx,all-inputs = <0x0>;
511+ xlnx,all-inputs-2 = <0x0>; 443+ xlnx,all-inputs-2 = <0x0>;
512+ xlnx,all-outputs = <0x1>; 444+ xlnx,all-outputs = <0x1>;
513+ xlnx,all-outputs-2 = <0x0>; 445+ xlnx,all-outputs-2 = <0x0>;
514+ xlnx,dout-default = <0x0>; 446+ xlnx,dout-default = <0x00000000>;
515+ xlnx,dout-default-2 = <0x0>; 447+ xlnx,dout-default-2 = <0x00000000>;
516+ xlnx,gpio-width = <0x1>; 448+ xlnx,gpio-width = <0x1>;
517+ xlnx,gpio2-width = <0x20>; 449+ xlnx,gpio2-width = <0x20>;
518+ xlnx,interrupt-present = <0x0>; 450+ xlnx,interrupt-present = <0x0>;
519+ xlnx,is-dual = <0x0>; 451+ xlnx,is-dual = <0x0>;
520+ xlnx,tri-default = <0xffffffff>; 452+ xlnx,tri-default = <0xFFFFFFFF>;
521+ xlnx,tri-default-2 = <0xffffffff>; 453+ xlnx,tri-default-2 = <0xFFFFFFFF>;
522+ linux,phandle = <0x1>;
523+ phandle = <0x1>;
524+ }; 454+ };
525+ 455+ rs232_uart: serial@44a00000 {
526+ serial@44a00000 { 456+ clock-frequency = <200000000>;
527+ clock-frequency = <0xbebc200>; 457+ clocks = <&clk_bus_0>;
528+ clocks = <0x8>;
529+ compatible = "xlnx,xps-uart16550-2.00.a", "ns16550a"; 458+ compatible = "xlnx,xps-uart16550-2.00.a", "ns16550a";
530+ current-speed = <0x1c200>; 459+ current-speed = <115200>;
531+ device_type = "serial"; 460+ device_type = "serial";
532+ interrupt-parent = <0x4>; 461+ interrupt-parent = <&microblaze_0_axi_intc>;
533+ interrupts = <0x0 0x2>; 462+ interrupts = <0 2>;
534+ port-number = <0x0>; 463+ port-number = <0>;
535+ reg = <0x44a00000 0x10000>; 464+ reg = <0x44a00000 0x10000>;
536+ reg-offset = <0x1000>; 465+ reg-offset = <0x1000>;
537+ reg-shift = <0x2>; 466+ reg-shift = <2>;
538+ xlnx,external-xin-clk-hz = <0x17d7840>; 467+ xlnx,external-xin-clk-hz = <0x17d7840>;
539+ xlnx,external-xin-clk-hz-d = <0x19>; 468+ xlnx,external-xin-clk-hz-d = <0x19>;
540+ xlnx,has-external-rclk = <0x0>; 469+ xlnx,has-external-rclk = <0x0>;
@@ -544,33 +473,37 @@ index 2033309..c97cf0d 100644
544+ xlnx,use-modem-ports = <0x1>; 473+ xlnx,use-modem-ports = <0x1>;
545+ xlnx,use-user-ports = <0x1>; 474+ xlnx,use-user-ports = <0x1>;
546+ }; 475+ };
547 } ; 476+ };
548 } ; 477 } ;
549diff --git a/board/xilinx/microblaze-generic/config.mk b/board/xilinx/microblaze-generic/config.mk 478diff --git a/board/xilinx/microblaze-generic/config.mk b/board/xilinx/microblaze-generic/config.mk
550index 36bdd96..0b301bb 100644 479index 1dee2d6..cb75fde 100644
551--- a/board/xilinx/microblaze-generic/config.mk 480--- a/board/xilinx/microblaze-generic/config.mk
552+++ b/board/xilinx/microblaze-generic/config.mk 481+++ b/board/xilinx/microblaze-generic/config.mk
553@@ -1,18 +1,10 @@ 482@@ -1,20 +1,10 @@
554-# 483-#
555-# (C) Copyright 2007 Michal Simek 484-# (C) Copyright 2007 - 2016 Michal Simek
556-# 485-#
557-# Michal SIMEK <monstr@monstr.eu> 486-# Michal SIMEK <monstr@monstr.eu>
558-# 487-#
559-# SPDX-License-Identifier: GPL-2.0+ 488-# SPDX-License-Identifier: GPL-2.0+
560-# 489-#
561-# CAUTION: This file is a faked configuration !!! 490-
562-# There is no real target for the microblaze-generic 491-CPU_VER := $(shell echo $(CONFIG_XILINX_MICROBLAZE0_HW_VER))
563-# configuration. You have to replace this file with 492-
564-# the generated file from your Xilinx design flow. 493-# USE_HW_MUL can be 0, 1, or 2, defining a hierarchy of HW Mul support.
565-# 494-CPUFLAGS-$(subst 1,,$(CONFIG_XILINX_MICROBLAZE0_USE_HW_MUL)) += -mxl-multiply-high
495-CPUFLAGS-$(CONFIG_XILINX_MICROBLAZE0_USE_HW_MUL) += -mno-xl-soft-mul
496-CPUFLAGS-$(CONFIG_XILINX_MICROBLAZE0_USE_DIV) += -mno-xl-soft-div
497-CPUFLAGS-$(CONFIG_XILINX_MICROBLAZE0_USE_BARREL) += -mxl-barrel-shift
498-CPUFLAGS-$(CONFIG_XILINX_MICROBLAZE0_USE_PCMP_INSTR) += -mxl-pattern-compare
499-
500-CPUFLAGS-1 += $(call cc-option,-mcpu=v$(CPU_VER))
501-
502-PLATFORM_CPPFLAGS += $(CPUFLAGS-1) $(CPUFLAGS-2)
566+TEXT_BASE = 0x80400000 503+TEXT_BASE = 0x80400000
567+CONFIG_SYS_TEXT_BASE = 0x80400000 504+CONFIG_SYS_TEXT_BASE = 0x80400000
568 505+
569-CONFIG_SYS_TEXT_BASE = 0x29000000 506+PLATFORM_CPPFLAGS += -mxl-barrel-shift
570-
571-PLATFORM_CPPFLAGS += -mno-xl-soft-mul
572-PLATFORM_CPPFLAGS += -mno-xl-soft-div
573 PLATFORM_CPPFLAGS += -mxl-barrel-shift
574+PLATFORM_CPPFLAGS += -mno-xl-soft-div 507+PLATFORM_CPPFLAGS += -mno-xl-soft-div
575+PLATFORM_CPPFLAGS += -mxl-pattern-compare 508+PLATFORM_CPPFLAGS += -mxl-pattern-compare
576+PLATFORM_CPPFLAGS += -mxl-multiply-high 509+PLATFORM_CPPFLAGS += -mxl-multiply-high
@@ -578,41 +511,49 @@ index 36bdd96..0b301bb 100644
578+PLATFORM_CPPFLAGS += -mcpu=v9.6 511+PLATFORM_CPPFLAGS += -mcpu=v9.6
579+PLATFORM_CPPFLAGS += -fgnu89-inline 512+PLATFORM_CPPFLAGS += -fgnu89-inline
580diff --git a/configs/microblaze-generic_defconfig b/configs/microblaze-generic_defconfig 513diff --git a/configs/microblaze-generic_defconfig b/configs/microblaze-generic_defconfig
581index 21a7261..0d9e318 100644 514index a66cd3b..d90bd7c 100644
582--- a/configs/microblaze-generic_defconfig 515--- a/configs/microblaze-generic_defconfig
583+++ b/configs/microblaze-generic_defconfig 516+++ b/configs/microblaze-generic_defconfig
584@@ -1,23 +1,12 @@ 517@@ -1,31 +1,20 @@
585 CONFIG_MICROBLAZE=y 518 CONFIG_MICROBLAZE=y
586-CONFIG_SPL_SYS_MALLOC_SIMPLE=y 519-CONFIG_SPL_SYS_MALLOC_SIMPLE=y
587-CONFIG_SPL_DM=y 520-CONFIG_SPL_DM=y
588 CONFIG_TARGET_MICROBLAZE_GENERIC=y 521 CONFIG_TARGET_MICROBLAZE_GENERIC=y
522 CONFIG_XILINX_MICROBLAZE0_USE_MSR_INSTR=1
523 CONFIG_XILINX_MICROBLAZE0_USE_BARREL=1
524 CONFIG_XILINX_MICROBLAZE0_USE_DIV=1
525 CONFIG_XILINX_MICROBLAZE0_USE_HW_MUL=1
526-CONFIG_SYS_TEXT_BASE=0x29000000
527+CONFIG_SYS_TEXT_BASE=0x80400000
589 CONFIG_DEFAULT_DEVICE_TREE="microblaze-generic" 528 CONFIG_DEFAULT_DEVICE_TREE="microblaze-generic"
590-CONFIG_SPL=y 529-CONFIG_SPL=y
591-CONFIG_FIT=y 530-CONFIG_FIT=y
592-CONFIG_FIT_VERBOSE=y 531-CONFIG_FIT_VERBOSE=y
593-CONFIG_HUSH_PARSER=y 532-CONFIG_BOOTDELAY=-1
533+CONFIG_BOOTDELAY=4
534 CONFIG_HUSH_PARSER=y
594-CONFIG_SYS_PROMPT="U-Boot-mONStR> " 535-CONFIG_SYS_PROMPT="U-Boot-mONStR> "
595-CONFIG_CMD_GPIO=y
596+CONFIG_SYS_PROMPT="U-Boot> " 536+CONFIG_SYS_PROMPT="U-Boot> "
537 CONFIG_CMD_ASKENV=y
538-CONFIG_CMD_GPIO=y
597 # CONFIG_CMD_SETEXPR is not set 539 # CONFIG_CMD_SETEXPR is not set
598-CONFIG_CMD_TFTPPUT=y 540-CONFIG_CMD_TFTPPUT=y
599-CONFIG_CMD_DHCP=y 541 CONFIG_CMD_DHCP=y
542 CONFIG_CMD_MII=y
600 CONFIG_CMD_PING=y 543 CONFIG_CMD_PING=y
601-CONFIG_SPL_OF_CONTROL=y 544-CONFIG_SPL_OF_CONTROL=y
602 CONFIG_OF_EMBED=y 545 CONFIG_OF_EMBED=y
603-CONFIG_NETCONSOLE=y 546-CONFIG_NETCONSOLE=y
604 CONFIG_DM_ETH=y 547 CONFIG_DM_ETH=y
605+CONFIG_CMD_DHCP=y
606 CONFIG_XILINX_AXIEMAC=y 548 CONFIG_XILINX_AXIEMAC=y
607-CONFIG_XILINX_EMACLITE=y 549-CONFIG_XILINX_EMACLITE=y
608 CONFIG_SYS_NS16550=y 550 CONFIG_SYS_NS16550=y
609-CONFIG_XILINX_UARTLITE=y 551-CONFIG_XILINX_UARTLITE=y
610+CONFIG_REQUIRE_SERIAL_CONSOLE=y
611diff --git a/include/configs/microblaze-generic.h b/include/configs/microblaze-generic.h 552diff --git a/include/configs/microblaze-generic.h b/include/configs/microblaze-generic.h
612index b424782..4a1e079 100644 553index 6ae4e0d..c14c87e 100644
613--- a/include/configs/microblaze-generic.h 554--- a/include/configs/microblaze-generic.h
614+++ b/include/configs/microblaze-generic.h 555+++ b/include/configs/microblaze-generic.h
615@@ -1,343 +1,213 @@ 556@@ -1,330 +1,194 @@
616-/* 557-/*
617- * (C) Copyright 2007-2010 Michal Simek 558- * (C) Copyright 2007-2010 Michal Simek
618- * 559- *
@@ -654,7 +595,8 @@ index b424782..4a1e079 100644
654- 595-
655-/* setting reset address */ 596-/* setting reset address */
656-/*#define CONFIG_SYS_RESET_ADDRESS CONFIG_SYS_TEXT_BASE*/ 597-/*#define CONFIG_SYS_RESET_ADDRESS CONFIG_SYS_TEXT_BASE*/
657- 598+#define CONFIG_SYS_BAUDRATE_TABLE {9600, 19200, 38400, 57600, 115200, 230400}
599
658-/* gpio */ 600-/* gpio */
659-#ifdef XILINX_GPIO_BASEADDR 601-#ifdef XILINX_GPIO_BASEADDR
660-# define CONFIG_XILINX_GPIO 602-# define CONFIG_XILINX_GPIO
@@ -671,7 +613,10 @@ index b424782..4a1e079 100644
671-# define CONFIG_XILINX_TB_WATCHDOG 613-# define CONFIG_XILINX_TB_WATCHDOG
672-# endif 614-# endif
673-#endif 615-#endif
674- 616+/* use serial multi for all serial devices */
617+#define CONFIG_SERIAL_MULTI
618+#define CONFIG_SYS_CONSOLE_IS_IN_ENV 1
619
675-#define CONFIG_SYS_MALLOC_LEN 0xC0000 620-#define CONFIG_SYS_MALLOC_LEN 0xC0000
676- 621-
677-/* Stack location before relocation */ 622-/* Stack location before relocation */
@@ -771,7 +716,8 @@ index b424782..4a1e079 100644
771-#else 716-#else
772-# undef CONFIG_DCACHE 717-# undef CONFIG_DCACHE
773-#endif 718-#endif
774- 719+/* Board name */
720
775-#ifndef XILINX_DCACHE_BYTE_SIZE 721-#ifndef XILINX_DCACHE_BYTE_SIZE
776-#define XILINX_DCACHE_BYTE_SIZE 32768 722-#define XILINX_DCACHE_BYTE_SIZE 32768
777-#endif 723-#endif
@@ -779,19 +725,8 @@ index b424782..4a1e079 100644
779-/* 725-/*
780- * BOOTP options 726- * BOOTP options
781- */ 727- */
782+#define CONFIG_SYS_BAUDRATE_TABLE {9600, 19200, 38400, 57600, 115200, 230400}
783+
784+/* use serial multi for all serial devices */
785+#define CONFIG_SERIAL_MULTI
786+#define CONFIG_SYS_CONSOLE_IS_IN_ENV 1
787+
788+/* Board name */
789+#define XILINX_BOARD_NAME Xilinx-KC705-2016_1
790+#define CONFIG_HOSTNAME XILINX_BOARD_NAME
791+
792+/* processor - microblaze_0 */ 728+/* processor - microblaze_0 */
793+#define XILINX_USE_MSR_INSTR 1 729+#define XILINX_USE_MSR_INSTR 1
794+#define XILINX_FSL_LINKS 0
795+#define XILINX_USE_ICACHE 1 730+#define XILINX_USE_ICACHE 1
796+#define XILINX_USE_DCACHE 1 731+#define XILINX_USE_DCACHE 1
797+#define XILINX_DCACHE_BYTE_SIZE 16384 732+#define XILINX_DCACHE_BYTE_SIZE 16384
@@ -802,22 +737,20 @@ index b424782..4a1e079 100644
802+#define CONFIG_ICACHE 737+#define CONFIG_ICACHE
803+ 738+
804+/* main_memory - ddr3_sdram */ 739+/* main_memory - ddr3_sdram */
805+#define CONFIG_SYS_SDRAM_BASE 0x80000000
806+#define CONFIG_SYS_SDRAM_SIZE 0x40000000
807+ 740+
808+/* Memory testing handling */ 741+/* Memory testing handling */
809+#define CONFIG_SYS_MEMTEST_START CONFIG_SYS_SDRAM_BASE 742+#define CONFIG_SYS_MEMTEST_START 0x80000000
810+#define CONFIG_SYS_MEMTEST_END (CONFIG_SYS_SDRAM_BASE + 0x1000) 743+#define CONFIG_SYS_MEMTEST_END (0x80000000 + 0x1000)
811+#define CONFIG_SYS_LOAD_ADDR CONFIG_SYS_SDRAM_BASE /* default load address */ 744+#define CONFIG_SYS_LOAD_ADDR 0x80000000 /* default load address */
812+ 745+
813+/* global pointer options */ 746+/* global pointer options */
814+#define CONFIG_SYS_GBL_DATA_OFFSET (CONFIG_SYS_SDRAM_SIZE - GENERATED_GBL_DATA_SIZE) 747+#define CONFIG_SYS_GBL_DATA_OFFSET (0x40000000 - GENERATED_GBL_DATA_SIZE)
815+ 748+
816+/* Size of malloc() pool */ 749+/* Size of malloc() pool */
817+#define SIZE 0x100000 750+#define SIZE 0x100000
818+#define CONFIG_SYS_MALLOC_LEN SIZE 751+#define CONFIG_SYS_MALLOC_LEN SIZE
819+#define CONFIG_SYS_MONITOR_LEN SIZE 752+#define CONFIG_SYS_MONITOR_LEN SIZE
820+#define CONFIG_SYS_MONITOR_BASE (CONFIG_SYS_SDRAM_BASE + CONFIG_SYS_GBL_DATA_OFFSET - CONFIG_SYS_MONITOR_LEN - GENERATED_BD_INFO_SIZE) 753+#define CONFIG_SYS_MONITOR_BASE (0x80000000 + CONFIG_SYS_GBL_DATA_OFFSET - CONFIG_SYS_MONITOR_LEN - GENERATED_BD_INFO_SIZE)
821+#define CONFIG_SYS_MONITOR_END (CONFIG_SYS_MONITOR_BASE + CONFIG_SYS_MONITOR_LEN) 754+#define CONFIG_SYS_MONITOR_END (CONFIG_SYS_MONITOR_BASE + CONFIG_SYS_MONITOR_LEN)
822+#define CONFIG_SYS_MALLOC_BASE (CONFIG_SYS_MONITOR_BASE - CONFIG_SYS_MALLOC_LEN) 755+#define CONFIG_SYS_MALLOC_BASE (CONFIG_SYS_MONITOR_BASE - CONFIG_SYS_MALLOC_LEN)
823+ 756+
@@ -827,7 +760,6 @@ index b424782..4a1e079 100644
827+/* No of_control support yet*/ 760+/* No of_control support yet*/
828+ 761+
829+/* uart - rs232_uart */ 762+/* uart - rs232_uart */
830+#define XILINX_UART16550_BASEADDR 0x44A00000
831+#define CONFIG_UART16550 1 763+#define CONFIG_UART16550 1
832+#define CONFIG_CONS_INDEX 1 764+#define CONFIG_CONS_INDEX 1
833+#define CONFIG_SYS_NS16550_COM1 ((XILINX_UART16550_BASEADDR & ~0xF) + 0x1000) 765+#define CONFIG_SYS_NS16550_COM1 ((XILINX_UART16550_BASEADDR & ~0xF) + 0x1000)
@@ -840,18 +772,14 @@ index b424782..4a1e079 100644
840+#define CONFIG_BAUDRATE 115200 772+#define CONFIG_BAUDRATE 115200
841+ 773+
842+/* ethernet - axi_ethernet */ 774+/* ethernet - axi_ethernet */
843+#define XILINX_AXIEMAC_BASEADDR 0x40C00000
844+#define CONFIG_PHY_XILINX 775+#define CONFIG_PHY_XILINX
845+#define CONFIG_SYS_ENET
846+#define CONFIG_MII
847+#define CONFIG_PHY_GIGE 776+#define CONFIG_PHY_GIGE
848+#define CONFIG_PHY_MARVELL 777+#define CONFIG_PHY_MARVELL
849+#define CONFIG_PHY_NATSEMI 778+#define CONFIG_PHY_NATSEMI
850+#define CONFIG_NET_MULTI 779+#define CONFIG_NET_MULTI
851+#define CONFIG_BOOTP_MAY_FAIL 780+#define CONFIG_BOOTP_MAY_FAIL
852+#define CONFIG_NETCONSOLE 1 781+#define CONFIG_NETCONSOLE 1
853+#define XILINX_AXIDMA_BASEADDR 0x41E00000 782+#define CONFIG_SERVERIP 172.25.229.115
854+#define CONFIG_SERVERIP 172.19.5.102
855+#define CONFIG_IPADDR 783+#define CONFIG_IPADDR
856+ 784+
857+/* nor_flash - linear_flash */ 785+/* nor_flash - linear_flash */
@@ -865,7 +793,7 @@ index b424782..4a1e079 100644
865+#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE 793+#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE
866+#define CONFIG_SYS_MAX_FLASH_BANKS 1 794+#define CONFIG_SYS_MAX_FLASH_BANKS 1
867+#define CONFIG_ENV_IS_IN_FLASH 795+#define CONFIG_ENV_IS_IN_FLASH
868+#define CONFIG_ENV_ADDR 0x60b60000 796+#define CONFIG_ENV_ADDR 0x60b80000
869+#define CONFIG_ENV_SIZE 0x20000 797+#define CONFIG_ENV_SIZE 0x20000
870+#define CONFIG_ENV_SECT_SIZE 0x20000 798+#define CONFIG_ENV_SECT_SIZE 0x20000
871+ 799+
@@ -890,7 +818,7 @@ index b424782..4a1e079 100644
890+/* FPGA */ 818+/* FPGA */
891+ 819+
892+/* Make the BOOTM LEN big enough for the compressed image */ 820+/* Make the BOOTM LEN big enough for the compressed image */
893+#define CONFIG_SYS_BOOTM_LEN 0x1000000 821+#define CONFIG_SYS_BOOTM_LEN 0x4000000
894+ 822+
895+ 823+
896+/* BOOTP options */ 824+/* BOOTP options */
@@ -903,17 +831,9 @@ index b424782..4a1e079 100644
903-/* 831-/*
904- * Command line configuration. 832- * Command line configuration.
905- */ 833- */
906+/*Command line configuration.*/
907 #define CONFIG_CMD_ASKENV
908-#define CONFIG_CMD_IRQ 834-#define CONFIG_CMD_IRQ
909-#define CONFIG_CMD_MFSL 835-#define CONFIG_CMD_MFSL
910- 836-
911-#if defined(CONFIG_DCACHE) || defined(CONFIG_ICACHE)
912-# define CONFIG_CMD_CACHE
913-#else
914-# undef CONFIG_CMD_CACHE
915-#endif
916-
917-#if defined(FLASH) 837-#if defined(FLASH)
918-# define CONFIG_CMD_JFFS2 838-# define CONFIG_CMD_JFFS2
919-# define CONFIG_CMD_UBI 839-# define CONFIG_CMD_UBI
@@ -925,7 +845,6 @@ index b424782..4a1e079 100644
925- 845-
926-#else 846-#else
927-#if defined(SPIFLASH) 847-#if defined(SPIFLASH)
928-# define CONFIG_CMD_SF
929- 848-
930-# if !defined(RAMENV) 849-# if !defined(RAMENV)
931-# define CONFIG_CMD_SAVES 850-# define CONFIG_CMD_SAVES
@@ -975,34 +894,16 @@ index b424782..4a1e079 100644
975-/* default load address */ 894-/* default load address */
976-#define CONFIG_SYS_LOAD_ADDR 0 895-#define CONFIG_SYS_LOAD_ADDR 0
977- 896-
978-#define CONFIG_BOOTDELAY -1 /* -1 disables auto-boot */
979-#define CONFIG_BOOTARGS "root=romfs" 897-#define CONFIG_BOOTARGS "root=romfs"
980-#define CONFIG_HOSTNAME XILINX_BOARD_NAME 898-#define CONFIG_HOSTNAME XILINX_BOARD_NAME
981-#define CONFIG_BOOTCOMMAND "base 0;tftp 11000000 image.img;bootm" 899-#define CONFIG_BOOTCOMMAND "base 0;tftp 11000000 image.img;bootm"
982-#define CONFIG_IPADDR 192.168.0.3 900-
983-#define CONFIG_SERVERIP 192.168.0.5 901-/* architecture dependent code */
984-#define CONFIG_GATEWAYIP 192.168.0.1
985+#define CONFIG_CMDLINE_EDITING
986+#define CONFIG_CMD_SAVES
987+
988+/* Miscellaneous configurable options */
989+#define CONFIG_SYS_CBSIZE 2048/* Console I/O Buffer Size */
990+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16)
991+
992+/* Boot Argument Buffer Size */
993+#define CONFIG_SYS_MAXARGS 32 /* max number of command args */
994+#define CONFIG_SYS_LONGHELP
995
996 /* architecture dependent code */
997-#define CONFIG_SYS_USR_EXCEP /* user exception */ 902-#define CONFIG_SYS_USR_EXCEP /* user exception */
998+#define CONFIG_SYS_USR_EXCEP /* user exception */ 903-
999+#define CONFIG_SYS_HZ 1000
1000
1001-#define CONFIG_PREBOOT "echo U-BOOT for ${hostname};setenv preboot;echo" 904-#define CONFIG_PREBOOT "echo U-BOOT for ${hostname};setenv preboot;echo"
1002+/* Use the HUSH parser */ 905-
1003+#define CONFIG_SYS_HUSH_PARSER 906-#ifndef CONFIG_EXTRA_ENV_SETTINGS
1004+#define CONFIG_SYS_PROMPT_HUSH_PS2 "> "
1005
1006-#define CONFIG_EXTRA_ENV_SETTINGS "unlock=yes\0" \ 907-#define CONFIG_EXTRA_ENV_SETTINGS "unlock=yes\0" \
1007- "nor0=flash-0\0"\ 908- "nor0=flash-0\0"\
1008- "mtdparts=mtdparts=flash-0:"\ 909- "mtdparts=mtdparts=flash-0:"\
@@ -1012,26 +913,19 @@ index b424782..4a1e079 100644
1012- "setenv stdin nc\0" \ 913- "setenv stdin nc\0" \
1013- "serial=setenv stdout serial;"\ 914- "serial=setenv stdout serial;"\
1014- "setenv stdin serial\0" 915- "setenv stdin serial\0"
1015+/* auto-boot delay */ 916-#endif
1016+#define CONFIG_BOOTDELAY 4 917-
1017 918+/*Command line configuration.*/
1018-#define CONFIG_CMDLINE_EDITING 919 #define CONFIG_CMDLINE_EDITING
1019+/* Don't define BOOTARGS, we get it from the DTB chosen fragment */ 920+#define CONFIG_CMD_SAVES
1020+#undef CONFIG_BOOTARGS
1021 921
1022-#define CONFIG_SYS_CONSOLE_IS_IN_ENV 922-#define CONFIG_SYS_CONSOLE_IS_IN_ENV
1023+#define CONFIG_ENV_OVERWRITE /* Allow to overwrite the u-boot environment variables */ 923-
1024
1025-/* Enable flat device tree support */ 924-/* Enable flat device tree support */
1026-#define CONFIG_LMB 1 925-#define CONFIG_LMB 1
1027+/* FIT image support */
1028+#define CONFIG_FIT 1
1029+#define CONFIG_LMB
1030 #define CONFIG_OF_LIBFDT 1
1031- 926-
1032-#if defined(CONFIG_XILINX_AXIEMAC) 927-#if defined(CONFIG_XILINX_AXIEMAC)
1033-# define CONFIG_MII 1 928-# define CONFIG_MII 1
1034-# define CONFIG_CMD_MII 1
1035-# define CONFIG_PHY_GIGE 1 929-# define CONFIG_PHY_GIGE 1
1036-# define CONFIG_SYS_FAULT_ECHO_LINK_DOWN 1 930-# define CONFIG_SYS_FAULT_ECHO_LINK_DOWN 1
1037-# define CONFIG_PHY_ATHEROS 1 931-# define CONFIG_PHY_ATHEROS 1
@@ -1046,9 +940,11 @@ index b424782..4a1e079 100644
1046-# define CONFIG_PHY_VITESSE 1 940-# define CONFIG_PHY_VITESSE 1
1047-#else 941-#else
1048-# undef CONFIG_MII 942-# undef CONFIG_MII
1049-# undef CONFIG_CMD_MII
1050-#endif 943-#endif
1051- 944+/* Miscellaneous configurable options */
945+#define CONFIG_SYS_CBSIZE 2048/* Console I/O Buffer Size */
946+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16)
947
1052-/* SPL part */ 948-/* SPL part */
1053-#define CONFIG_CMD_SPL 949-#define CONFIG_CMD_SPL
1054-#define CONFIG_SPL_FRAMEWORK 950-#define CONFIG_SPL_FRAMEWORK
@@ -1056,47 +952,24 @@ index b424782..4a1e079 100644
1056-#define CONFIG_SPL_LIBGENERIC_SUPPORT 952-#define CONFIG_SPL_LIBGENERIC_SUPPORT
1057-#define CONFIG_SPL_SERIAL_SUPPORT 953-#define CONFIG_SPL_SERIAL_SUPPORT
1058-#define CONFIG_SPL_BOARD_INIT 954-#define CONFIG_SPL_BOARD_INIT
1059- 955+/* Boot Argument Buffer Size */
956+#define CONFIG_SYS_MAXARGS 32 /* max number of command args */
957+#define CONFIG_SYS_LONGHELP
958
1060-#define CONFIG_SPL_LDSCRIPT "arch/microblaze/cpu/u-boot-spl.lds" 959-#define CONFIG_SPL_LDSCRIPT "arch/microblaze/cpu/u-boot-spl.lds"
1061- 960+/* architecture dependent code */
1062-#define CONFIG_SPL_RAM_DEVICE 961+#define CONFIG_SYS_USR_EXCEP /* user exception */
1063-#ifdef CONFIG_SYS_FLASH_BASE 962+#define CONFIG_SYS_HZ 1000
1064-# define CONFIG_SPL_NOR_SUPPORT 963+
1065-# define CONFIG_SYS_UBOOT_BASE CONFIG_SYS_FLASH_BASE 964+/* Use the HUSH parser */
1066-#endif 965+#define CONFIG_SYS_PROMPT_HUSH_PS2 "> "
1067- 966+
1068-/* for booting directly linux */ 967+/* Don't define BOOTARGS, we get it from the DTB chosen fragment */
1069-#define CONFIG_SPL_OS_BOOT 968+#undef CONFIG_BOOTARGS
1070- 969+
1071-#define CONFIG_SYS_OS_BASE (CONFIG_SYS_FLASH_BASE + \ 970+#define CONFIG_ENV_OVERWRITE /* Allow to overwrite the u-boot environment variables */
1072- 0x60000) 971+
1073-#define CONFIG_SYS_FDT_BASE (CONFIG_SYS_FLASH_BASE + \ 972+#define CONFIG_LMB
1074- 0x40000)
1075-#define CONFIG_SYS_SPL_ARGS_ADDR (CONFIG_SYS_TEXT_BASE + \
1076- 0x1000000)
1077-
1078-/* SP location before relocation, must use scratch RAM */
1079-/* BRAM start */
1080-#define CONFIG_SYS_INIT_RAM_ADDR 0x0
1081-/* BRAM size - will be generated */
1082-#define CONFIG_SYS_INIT_RAM_SIZE 0x100000
1083-
1084-# define CONFIG_SPL_STACK_ADDR (CONFIG_SYS_INIT_RAM_ADDR + \
1085- CONFIG_SYS_INIT_RAM_SIZE - \
1086- CONFIG_SYS_MALLOC_F_LEN)
1087-
1088-/* Just for sure that there is a space for stack */
1089-#define CONFIG_SPL_STACK_SIZE 0x100
1090-
1091-#define CONFIG_SYS_UBOOT_START CONFIG_SYS_TEXT_BASE
1092-
1093-#define CONFIG_SPL_MAX_FOOTPRINT (CONFIG_SYS_INIT_RAM_SIZE - \
1094- CONFIG_SYS_INIT_RAM_ADDR - \
1095- CONFIG_SYS_MALLOC_F_LEN - \
1096- CONFIG_SPL_STACK_SIZE)
1097-
1098-#endif /* __CONFIG_H */
1099+#define CONFIG_FIT_VERBOSE 1 /* enable fit_format_{error,warning}() */
1100+ 973+
1101+/* Initial memory map for Linux */ 974+/* Initial memory map for Linux */
1102+#define CONFIG_SYS_BOOTMAPSZ 0x8000000 975+#define CONFIG_SYS_BOOTMAPSZ 0x8000000
@@ -1116,17 +989,17 @@ index b424782..4a1e079 100644
1116+ "netstart=0x81000000\0" \ 989+ "netstart=0x81000000\0" \
1117+ "dtbnetstart=0x82800000\0" \ 990+ "dtbnetstart=0x82800000\0" \
1118+ "loadaddr=0x81000000\0" \ 991+ "loadaddr=0x81000000\0" \
1119+ "bootsize=0x60000\0" \ 992+ "bootsize=0x80000\0" \
1120+ "bootstart=0x60b00000\0" \ 993+ "bootstart=0x60b00000\0" \
1121+ "boot_img=u-boot.bin\0" \ 994+ "boot_img=u-boot-s.bin\0" \
1122+ "load_boot=tftpboot ${clobstart} ${boot_img}\0" \ 995+ "load_boot=tftpboot ${clobstart} ${boot_img}\0" \
1123+ "update_boot=setenv img boot; setenv psize ${bootsize}; setenv installcmd \"install_boot\"; run load_boot test_img; setenv img; setenv psize; setenv installcmd\0" \ 996+ "update_boot=setenv img boot; setenv psize ${bootsize}; setenv installcmd \"install_boot\"; run load_boot test_img; setenv img; setenv psize; setenv installcmd\0" \
1124+ "install_boot=protect off ${bootstart} +${bootsize} && erase ${bootstart} +${bootsize} && " "cp.b ${clobstart} ${bootstart} ${filesize}\0" \ 997+ "install_boot=protect off ${bootstart} +${bootsize} && erase ${bootstart} +${bootsize} && " "cp.b ${clobstart} ${bootstart} ${filesize}\0" \
1125+ "bootenvsize=0x20000\0" \ 998+ "bootenvsize=0x20000\0" \
1126+ "bootenvstart=0x60b60000\0" \ 999+ "bootenvstart=0x60b80000\0" \
1127+ "eraseenv=protect off ${bootenvstart} +${bootenvsize} && erase ${bootenvstart} +${bootenvsize}\0" \ 1000+ "eraseenv=protect off ${bootenvstart} +${bootenvsize} && erase ${bootenvstart} +${bootenvsize}\0" \
1128+ "kernelsize=0xc00000\0" \ 1001+ "kernelsize=0xc00000\0" \
1129+ "kernelstart=0x60b80000\0" \ 1002+ "kernelstart=0x60ba0000\0" \
1130+ "kernel_img=image.ub\0" \ 1003+ "kernel_img=image.ub\0" \
1131+ "load_kernel=tftpboot ${clobstart} ${kernel_img}\0" \ 1004+ "load_kernel=tftpboot ${clobstart} ${kernel_img}\0" \
1132+ "update_kernel=setenv img kernel; setenv psize ${kernelsize}; setenv installcmd \"install_kernel\"; run load_kernel test_crc; setenv img; setenv psize; setenv installcmd\0" \ 1005+ "update_kernel=setenv img kernel; setenv psize ${kernelsize}; setenv installcmd \"install_kernel\"; run load_kernel test_crc; setenv img; setenv psize; setenv installcmd\0" \
@@ -1149,8 +1022,44 @@ index b424782..4a1e079 100644
1149+#define CONFIG_BOOTCOMMAND "run default_bootcmd" 1022+#define CONFIG_BOOTCOMMAND "run default_bootcmd"
1150+ 1023+
1151+#undef CONFIG_SPL_BUILD /* Disable SPL by default*/ 1024+#undef CONFIG_SPL_BUILD /* Disable SPL by default*/
1152+ 1025
1153+#endif /* __PLNX_CONFIG_H */ 1026-#define CONFIG_SPL_RAM_DEVICE
1027-#ifdef CONFIG_SYS_FLASH_BASE
1028-# define CONFIG_SPL_NOR_SUPPORT
1029-# define CONFIG_SYS_UBOOT_BASE CONFIG_SYS_FLASH_BASE
1030 #endif
1031-
1032-/* for booting directly linux */
1033-#define CONFIG_SPL_OS_BOOT
1034-
1035-#define CONFIG_SYS_OS_BASE (CONFIG_SYS_FLASH_BASE + \
1036- 0x60000)
1037-#define CONFIG_SYS_FDT_BASE (CONFIG_SYS_FLASH_BASE + \
1038- 0x40000)
1039-#define CONFIG_SYS_SPL_ARGS_ADDR (CONFIG_SYS_TEXT_BASE + \
1040- 0x1000000)
1041-
1042-/* SP location before relocation, must use scratch RAM */
1043-/* BRAM start */
1044-#define CONFIG_SYS_INIT_RAM_ADDR 0x0
1045-/* BRAM size - will be generated */
1046-#define CONFIG_SYS_INIT_RAM_SIZE 0x100000
1047-
1048-# define CONFIG_SPL_STACK_ADDR (CONFIG_SYS_INIT_RAM_ADDR + \
1049- CONFIG_SYS_INIT_RAM_SIZE - \
1050- CONFIG_SYS_MALLOC_F_LEN)
1051-
1052-/* Just for sure that there is a space for stack */
1053-#define CONFIG_SPL_STACK_SIZE 0x100
1054-
1055-#define CONFIG_SYS_UBOOT_START CONFIG_SYS_TEXT_BASE
1056-
1057-#define CONFIG_SPL_MAX_FOOTPRINT (CONFIG_SYS_INIT_RAM_SIZE - \
1058- CONFIG_SYS_INIT_RAM_ADDR - \
1059- CONFIG_SYS_MALLOC_F_LEN - \
1060- CONFIG_SPL_STACK_SIZE)
1061-
1062-#endif /* __CONFIG_H */
1154-- 1063--
11552.1.4 10642.7.4
1156 1065
diff --git a/recipes-kernel/linux/config/xilinx-machine/bsp/kc705-microblazeel/kc705-microblazeel.cfg b/recipes-kernel/linux/config/xilinx-machine/bsp/kc705-microblazeel/kc705-microblazeel.cfg
index 24200b08..48ea0a09 100644
--- a/recipes-kernel/linux/config/xilinx-machine/bsp/kc705-microblazeel/kc705-microblazeel.cfg
+++ b/recipes-kernel/linux/config/xilinx-machine/bsp/kc705-microblazeel/kc705-microblazeel.cfg
@@ -11,3 +11,7 @@ CONFIG_XILINX_MICROBLAZE0_HW_VER="9.6"
11 11
12# Memory Base Address 12# Memory Base Address
13CONFIG_KERNEL_BASE_ADDR=0x80000000 13CONFIG_KERNEL_BASE_ADDR=0x80000000
14
15CONFIG_XILINX_AXI_EMAC=y
16CONFIG_XILINX_PHY=y
17CONFIG_BLK_DEV_INITRD=y