summaryrefslogtreecommitdiffstats
path: root/meta-xilinx-core/conf/machine/microblaze-generic.conf
diff options
context:
space:
mode:
Diffstat (limited to 'meta-xilinx-core/conf/machine/microblaze-generic.conf')
-rw-r--r--meta-xilinx-core/conf/machine/microblaze-generic.conf43
1 files changed, 26 insertions, 17 deletions
diff --git a/meta-xilinx-core/conf/machine/microblaze-generic.conf b/meta-xilinx-core/conf/machine/microblaze-generic.conf
index 9916a4ca..5bf87344 100644
--- a/meta-xilinx-core/conf/machine/microblaze-generic.conf
+++ b/meta-xilinx-core/conf/machine/microblaze-generic.conf
@@ -2,23 +2,36 @@
2#@NAME: microblaze-generic 2#@NAME: microblaze-generic
3#@DESCRIPTION: Machine configuration for the microblaze-generic devices 3#@DESCRIPTION: Machine configuration for the microblaze-generic devices
4 4
5# Deprecated board config
6USE_BOARD = "${@"conf/machine/include/xilinx-board-pre.inc" if d.getVar("BOARD") or d.getVar("BOARD_VARIANT") else ""}"
7require ${USE_BOARD}
8unset USE_BOARD
9
5#### Preamble 10#### Preamble
6MACHINEOVERRIDES =. "${@['', 'microblaze-generic:']['microblaze-generic' != '${MACHINE}']}" 11MACHINEOVERRIDES =. "${@['', 'microblaze-generic:']['microblaze-generic' != '${MACHINE}']}"
7#### Regular settings follow 12#### Regular settings follow
8 13
9# Set the default for a modern full feature microblaze... 14# Set the default for a modern full feature microblaze...
10TUNE_FEATURES:tune-microblaze ?= "microblaze v11.0 barrel-shift pattern-compare reorder divide-hard multiply-high" 15TUNE_FEATURES:tune-microblaze ?= "microblaze v11.0 pattern-compare barrel-shift divide-hard multiply-high fpu-hard reorder"
11DEFAULTTUNE ?= "microblaze" 16DEFAULTTUNE ?= "microblaze"
12 17
13# Variables that changes based on hw design or board specific requirement must be 18# Variables that changes based on hw design or board specific requirement must be
14# defined before calling the required inclusion file else pre-expansion value 19# defined before calling the required inclusion file else pre-expansion value
15# defined in local.conf without machine override will not be reflected. 20# defined in local.conf without machine override will not be reflected.
16 21
22# Yocto Microblaze device-tree variables
23YAML_CONSOLE_DEVICE_CONFIG:pn-device-tree ?= "axi_uartlite_0"
24YAML_MAIN_MEMORY_CONFIG:pn-device-tree ?= "DDR4_0"
25DT_PADDING_SIZE:pn-device-tree ?= "0x1000"
26DTC_FLAGS:pn-device-tree ?= ""
27XSCTH_PROC:pn-device-tree ?= "microblaze_0"
28YAML_DT_BOARD_FLAGS ?= "{BOARD kcu105}"
29
17# Yocto Microblaze FS-Boot variables 30# Yocto Microblaze FS-Boot variables
18YAML_SERIAL_CONSOLE_STDIN:pn-fs-boot ?= "axi_uartlite_0" 31YAML_SERIAL_CONSOLE_STDIN:pn-fs-boot ?= "axi_uartlite_0"
19YAML_SERIAL_CONSOLE_STDOUT:pn-fs-boot ?= "axi_uartlite_0" 32YAML_SERIAL_CONSOLE_STDOUT:pn-fs-boot ?= "axi_uartlite_0"
20YAML_MAIN_MEMORY_CONFIG:pn-fs-boot ?= "MIG_7SERIES_0" 33YAML_MAIN_MEMORY_CONFIG:pn-fs-boot ?= "DDR4_0"
21YAML_FLASH_MEMORY_CONFIG:pn-fs-boot ?= "axi_emc_0" 34YAML_FLASH_MEMORY_CONFIG:pn-fs-boot ?= "axi_quad_spi_0"
22XSCTH_PROC:pn-fs-boot ?= "microblaze_0" 35XSCTH_PROC:pn-fs-boot ?= "microblaze_0"
23 36
24# Yocto Microblaze u-boot-xlnx variables 37# Yocto Microblaze u-boot-xlnx variables
@@ -26,14 +39,6 @@ UBOOT_MACHINE ?= "microblaze-generic_defconfig"
26UBOOT_INITIAL_ENV = "" 39UBOOT_INITIAL_ENV = ""
27BOOTMODE ?= "generic.root" 40BOOTMODE ?= "generic.root"
28 41
29# Yocto device-tree variables
30YAML_CONSOLE_DEVICE_CONFIG:pn-device-tree ?= "axi_uartlite_0"
31YAML_MAIN_MEMORY_CONFIG:pn-device-tree ?= "MIG_7SERIES_0"
32DT_PADDING_SIZE:pn-device-tree ?= "0x1000"
33DTC_FLAGS:pn-device-tree ?= ""
34XSCTH_PROC:pn-device-tree ?= "microblaze_0"
35YAML_DT_BOARD_FLAGS ?= "{BOARD kc705-full}"
36
37# Yocto Microblaze KERNEL Variables 42# Yocto Microblaze KERNEL Variables
38UBOOT_ENTRYPOINT ?= "0x80000000" 43UBOOT_ENTRYPOINT ?= "0x80000000"
39UBOOT_LOADADDRESS ?= "0x80000000" 44UBOOT_LOADADDRESS ?= "0x80000000"
@@ -41,7 +46,6 @@ KERNEL_EXTRA_ARGS += "UIMAGE_LOADADDR=${UBOOT_ENTRYPOINT}"
41 46
42# Microblaze Serial Console settings 47# Microblaze Serial Console settings
43SERIAL_CONSOLES ?= "115200;ttyUL0" 48SERIAL_CONSOLES ?= "115200;ttyUL0"
44SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}"
45YAML_SERIAL_CONSOLE_BAUDRATE ?= "115200" 49YAML_SERIAL_CONSOLE_BAUDRATE ?= "115200"
46 50
47require conf/machine/include/soc-tune-include.inc 51require conf/machine/include/soc-tune-include.inc
@@ -56,21 +60,21 @@ MB_MACHINE_ARCH = "${@[d.getVar('TUNE_PKGARCH'), d.getVar('TUNE_PKGARCH') + '-ge
56 60
57MACHINE_ARCH = "${@['${MB_MACHINE_ARCH}', '${DEF_MACHINE_ARCH}']['microblaze-generic' != "${MACHINE}"]}" 61MACHINE_ARCH = "${@['${MB_MACHINE_ARCH}', '${DEF_MACHINE_ARCH}']['microblaze-generic' != "${MACHINE}"]}"
58 62
59# microblaze-generic.conf uses kc705-microblazeel xsa as reference input. 63# microblaze-generic.conf uses kcu105-microblazeel xsa as reference input.
60# User can override with custom xsa using HDF_BASE and HDF_PATH variables from 64# User can override with custom xsa using HDF_BASE and HDF_PATH variables from
61# local.conf. 65# local.conf.
62HDF_MACHINE = "kc705-microblazeel" 66HDF_MACHINE = "kcu105-microblazeel"
63 67
64MACHINE_FEATURES = "" 68MACHINE_FEATURES = ""
65 69
66KERNEL_IMAGETYPE ?= "linux.bin.ub" 70KERNEL_IMAGETYPE ?= "linux.bin.ub"
67KERNEL_IMAGETYPES = "" 71KERNEL_IMAGETYPES = ""
68 72
69MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "device-tree" 73MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "${PREFERRED_PROVIDER_virtual/dtb}"
70 74
71IMAGE_BOOT_FILES += " \ 75IMAGE_BOOT_FILES += " \
72 ${@bb.utils.contains('PREFERRED_PROVIDER_virtual/dtb', 'device-tree', 'system.dtb', '', d)} \ 76 ${@bb.utils.contains('PREFERRED_PROVIDER_virtual/dtb', 'device-tree', 'system.dtb', '', d)} \
73 " 77 "
74 78
75EXTRA_IMAGEDEPENDS += " \ 79EXTRA_IMAGEDEPENDS += " \
76 libyaml-native \ 80 libyaml-native \
@@ -93,3 +97,8 @@ QB_NETWORK_DEVICE = "-net nic,netdev=net0,macaddr=@MAC@"
93#### No additional settings should be after the Postamble 97#### No additional settings should be after the Postamble
94#### Postamble 98#### Postamble
95PACKAGE_EXTRA_ARCHS:append = "${@['', ' ${MB_MACHINE_ARCH}']['microblaze-generic' != "${MACHINE}"]}" 99PACKAGE_EXTRA_ARCHS:append = "${@['', ' ${MB_MACHINE_ARCH}']['microblaze-generic' != "${MACHINE}"]}"
100
101# Deprecated board config
102USE_BOARD = "${@"conf/machine/include/xilinx-board-post.inc" if d.getVar("BOARD") or d.getVar("BOARD_VARIANT") else ""}"
103require ${USE_BOARD}
104unset USE_BOARD