summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathan Rossi <nathan@nathanrossi.com>2016-01-06 16:49:34 +1000
committerNathan Rossi <nathan@nathanrossi.com>2016-01-06 16:49:34 +1000
commitb5e4b37bff4749b22af6b8c94b5af7a654bb2b35 (patch)
tree0ff14e8031f3a29c89d19b1592d120126081e0c4
parentae3a05b5be811d4a7d7a9651a4b28b5bff5df2cb (diff)
downloadmeta-xilinx-b5e4b37bff4749b22af6b8c94b5af7a654bb2b35.tar.gz
u-boot-extra.inc: Retire use of this configuration framework
This is only used by MicroBlaze targets for U-Boot, and due to U-Boot moving to Device Model this is no longer sufficent to configure U-Boot. Instead support for MicroBlaze must be added by patches to U-Boot with partial DM and xparameters support. Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
-rw-r--r--conf/machine/boards/kc705/kc705-trd-microblazeel.xparameters.h48
-rw-r--r--conf/machine/kc705-trd-microblazeel.conf1
-rw-r--r--recipes-bsp/u-boot/u-boot-extra.inc52
-rw-r--r--recipes-bsp/u-boot/u-boot-xlnx-dev.bb1
4 files changed, 0 insertions, 102 deletions
diff --git a/conf/machine/boards/kc705/kc705-trd-microblazeel.xparameters.h b/conf/machine/boards/kc705/kc705-trd-microblazeel.xparameters.h
deleted file mode 100644
index 994a26e6..00000000
--- a/conf/machine/boards/kc705/kc705-trd-microblazeel.xparameters.h
+++ /dev/null
@@ -1,48 +0,0 @@
1/* Microblaze is microblaze_0 */
2#define XILINX_USE_MSR_INSTR 1
3#define XILINX_PVR 2
4#define XILINX_FSL_NUMBER 0
5#define XILINX_USE_ICACHE 1
6#define XILINX_USE_DCACHE 1
7#define XILINX_DCACHE_BYTE_SIZE 8192
8
9/* Interrupt controller is interrupt_cntlr */
10#define XILINX_INTC_BASEADDR 0x40100000
11#define XILINX_INTC_NUM_INTR_INPUTS 8
12
13/* Timer pheriphery is dual_timer_counter */
14#define XILINX_TIMER_BASEADDR 0x40300000
15#define XILINX_TIMER_IRQ 3
16
17/* System Timer Clock Frequency */
18#define XILINX_CLOCK_FREQ 100000000
19
20/* Uart console is rs232_uart_1 */
21#define XILINX_UART16550
22#define XILINX_UART16550_BASEADDR 0x40400000
23#define XILINX_UART16550_CLOCK_HZ 100000000
24#define XILINX_UARTLITE_BASEADDR 0x40200000
25#define CONFIG_CONS_INDEX 1
26
27/* IIC pheriphery is iic_eeprom */
28#define XILINX_IIC_0_BASEADDR 0x40a00000
29#define XILINX_IIC_0_FREQ 100000
30#define XILINX_IIC_0_BIT 0
31
32/* GPIO doesn't exist */
33
34/* SDIO doesn't exist */
35
36/* Main Memory is ddr3_sdram */
37#define XILINX_RAM_START 0x80000000
38#define XILINX_RAM_SIZE 0x40000000
39
40/* Flash Memory is linear_flash */
41#define XILINX_FLASH_START 0x48000000
42#define XILINX_FLASH_SIZE 0x08000000
43
44/* Sysace doesn't exist */
45
46/* Ethernet controller is soft_ethernet_mac */
47#define XILINX_AXIEMAC_BASEADDR 0x50100000
48#define XILINX_AXIDMA_BASEADDR 0x50000000
diff --git a/conf/machine/kc705-trd-microblazeel.conf b/conf/machine/kc705-trd-microblazeel.conf
index 9c35a3df..bcc18b76 100644
--- a/conf/machine/kc705-trd-microblazeel.conf
+++ b/conf/machine/kc705-trd-microblazeel.conf
@@ -23,7 +23,6 @@ USE_VT = ""
23SERIAL_CONSOLE = "115200 ttyS0" 23SERIAL_CONSOLE = "115200 ttyS0"
24 24
25MACHINE_DEVICETREE := "kc705/kc705-trd-microblazeel.dts" 25MACHINE_DEVICETREE := "kc705/kc705-trd-microblazeel.dts"
26MACHINE_XPARAMETERS := "kc705/kc705-trd-microblazeel.xparameters.h"
27 26
28EXTRA_IMAGEDEPENDS += "virtual/bitstream" 27EXTRA_IMAGEDEPENDS += "virtual/bitstream"
29 28
diff --git a/recipes-bsp/u-boot/u-boot-extra.inc b/recipes-bsp/u-boot/u-boot-extra.inc
deleted file mode 100644
index ff824d85..00000000
--- a/recipes-bsp/u-boot/u-boot-extra.inc
+++ /dev/null
@@ -1,52 +0,0 @@
1
2inherit xilinx-utils
3
4# Appends the '<layer>/conf/machine/boards' path to FILESEXTRAPATHS for all
5# layers (using the ${BBPATH})
6FILESEXTRAPATHS_append := "${@get_additional_bbpath_filespath('conf/machine/boards', d)}"
7
8# Append the xparameters file to the SRC_URI if set
9SRC_URI_append = " ${@paths_affix(d.getVar("MACHINE_XPARAMETERS", True) or '', prefix = 'file://')}"
10
11# Full path to the xparameters.h file
12UBOOT_XPARAMETERS ?= "${@expand_workdir_paths("MACHINE_XPARAMETERS", d)}"
13
14# Install the MicroBlaze System configuration into the board configuration,
15# and generate a u-boot specific config.mk
16python do_configmk_generate () {
17 import re, sys, os, shutil
18
19 machine_xparameters = d.getVar("UBOOT_XPARAMETERS", True)
20
21 if machine_xparameters and os.path.exists(machine_xparameters):
22 boardpath = os.path.join("board", "xilinx", "microblaze-generic")
23 configmk = os.path.join(d.getVar("S", True), boardpath, "config.mk")
24 xparameters = os.path.join(d.getVar("S", True), boardpath, "xparameters.h")
25
26 shutil.copyfile(machine_xparameters, xparameters)
27
28 # Search the xparameters.h file for the RAM base addr and size.
29 ram = None
30 with open(machine_xparameters, "r") as f:
31 filedata = f.read()
32 ramstart = re.search("XILINX_RAM_START.*?(0x.*)", filedata)
33 ramsize = re.search("XILINX_RAM_SIZE.*?(0x.*)", filedata)
34 if ramstart and ramsize:
35 ram = (int(ramstart.group(1), 16), int(ramsize.group(1), 16))
36
37 # build up the config.mk file from known info
38 with open(configmk, "wb") as f:
39 f.write("# This file is generated by the meta-xilinx layers.\n")
40 f.write("\n")
41
42 for i in d.getVar("TUNE_CCARGS", True).split():
43 f.write("PLATFORM_CCPFLAGS += %s\n" % i)
44 f.write("\n")
45
46 if ram != None:
47 base_offset = ram[0] + ram[1] - 0x400000
48 f.write("TEXT_BASE = 0x%x\n" % base_offset)
49 f.write("CONFIG_SYS_TEXT_BASE = 0x%x\n" % base_offset)
50}
51addtask configmk_generate before do_configure after do_unpack
52
diff --git a/recipes-bsp/u-boot/u-boot-xlnx-dev.bb b/recipes-bsp/u-boot/u-boot-xlnx-dev.bb
index 9fa22fed..50bbf543 100644
--- a/recipes-bsp/u-boot/u-boot-xlnx-dev.bb
+++ b/recipes-bsp/u-boot/u-boot-xlnx-dev.bb
@@ -7,7 +7,6 @@
7UBRANCH ?= "master" 7UBRANCH ?= "master"
8 8
9include u-boot-xlnx.inc 9include u-boot-xlnx.inc
10include u-boot-extra.inc
11include u-boot-spl-zynq-init.inc 10include u-boot-spl-zynq-init.inc
12 11
13LIC_FILES_CHKSUM = "file://README;beginline=1;endline=6;md5=157ab8408beab40cd8ce1dc69f702a6c" 12LIC_FILES_CHKSUM = "file://README;beginline=1;endline=6;md5=157ab8408beab40cd8ce1dc69f702a6c"