diff options
Diffstat (limited to 'meta-xilinx-core/conf/machine/microblaze-generic.conf')
-rw-r--r-- | meta-xilinx-core/conf/machine/microblaze-generic.conf | 43 |
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 | ||
6 | USE_BOARD = "${@"conf/machine/include/xilinx-board-pre.inc" if d.getVar("BOARD") or d.getVar("BOARD_VARIANT") else ""}" | ||
7 | require ${USE_BOARD} | ||
8 | unset USE_BOARD | ||
9 | |||
5 | #### Preamble | 10 | #### Preamble |
6 | MACHINEOVERRIDES =. "${@['', 'microblaze-generic:']['microblaze-generic' != '${MACHINE}']}" | 11 | MACHINEOVERRIDES =. "${@['', '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... |
10 | TUNE_FEATURES:tune-microblaze ?= "microblaze v11.0 barrel-shift pattern-compare reorder divide-hard multiply-high" | 15 | TUNE_FEATURES:tune-microblaze ?= "microblaze v11.0 pattern-compare barrel-shift divide-hard multiply-high fpu-hard reorder" |
11 | DEFAULTTUNE ?= "microblaze" | 16 | DEFAULTTUNE ?= "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 | ||
23 | YAML_CONSOLE_DEVICE_CONFIG:pn-device-tree ?= "axi_uartlite_0" | ||
24 | YAML_MAIN_MEMORY_CONFIG:pn-device-tree ?= "DDR4_0" | ||
25 | DT_PADDING_SIZE:pn-device-tree ?= "0x1000" | ||
26 | DTC_FLAGS:pn-device-tree ?= "" | ||
27 | XSCTH_PROC:pn-device-tree ?= "microblaze_0" | ||
28 | YAML_DT_BOARD_FLAGS ?= "{BOARD kcu105}" | ||
29 | |||
17 | # Yocto Microblaze FS-Boot variables | 30 | # Yocto Microblaze FS-Boot variables |
18 | YAML_SERIAL_CONSOLE_STDIN:pn-fs-boot ?= "axi_uartlite_0" | 31 | YAML_SERIAL_CONSOLE_STDIN:pn-fs-boot ?= "axi_uartlite_0" |
19 | YAML_SERIAL_CONSOLE_STDOUT:pn-fs-boot ?= "axi_uartlite_0" | 32 | YAML_SERIAL_CONSOLE_STDOUT:pn-fs-boot ?= "axi_uartlite_0" |
20 | YAML_MAIN_MEMORY_CONFIG:pn-fs-boot ?= "MIG_7SERIES_0" | 33 | YAML_MAIN_MEMORY_CONFIG:pn-fs-boot ?= "DDR4_0" |
21 | YAML_FLASH_MEMORY_CONFIG:pn-fs-boot ?= "axi_emc_0" | 34 | YAML_FLASH_MEMORY_CONFIG:pn-fs-boot ?= "axi_quad_spi_0" |
22 | XSCTH_PROC:pn-fs-boot ?= "microblaze_0" | 35 | XSCTH_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" | |||
26 | UBOOT_INITIAL_ENV = "" | 39 | UBOOT_INITIAL_ENV = "" |
27 | BOOTMODE ?= "generic.root" | 40 | BOOTMODE ?= "generic.root" |
28 | 41 | ||
29 | # Yocto device-tree variables | ||
30 | YAML_CONSOLE_DEVICE_CONFIG:pn-device-tree ?= "axi_uartlite_0" | ||
31 | YAML_MAIN_MEMORY_CONFIG:pn-device-tree ?= "MIG_7SERIES_0" | ||
32 | DT_PADDING_SIZE:pn-device-tree ?= "0x1000" | ||
33 | DTC_FLAGS:pn-device-tree ?= "" | ||
34 | XSCTH_PROC:pn-device-tree ?= "microblaze_0" | ||
35 | YAML_DT_BOARD_FLAGS ?= "{BOARD kc705-full}" | ||
36 | |||
37 | # Yocto Microblaze KERNEL Variables | 42 | # Yocto Microblaze KERNEL Variables |
38 | UBOOT_ENTRYPOINT ?= "0x80000000" | 43 | UBOOT_ENTRYPOINT ?= "0x80000000" |
39 | UBOOT_LOADADDRESS ?= "0x80000000" | 44 | UBOOT_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 |
43 | SERIAL_CONSOLES ?= "115200;ttyUL0" | 48 | SERIAL_CONSOLES ?= "115200;ttyUL0" |
44 | SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}" | ||
45 | YAML_SERIAL_CONSOLE_BAUDRATE ?= "115200" | 49 | YAML_SERIAL_CONSOLE_BAUDRATE ?= "115200" |
46 | 50 | ||
47 | require conf/machine/include/soc-tune-include.inc | 51 | require 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 | ||
57 | MACHINE_ARCH = "${@['${MB_MACHINE_ARCH}', '${DEF_MACHINE_ARCH}']['microblaze-generic' != "${MACHINE}"]}" | 61 | MACHINE_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. |
62 | HDF_MACHINE = "kc705-microblazeel" | 66 | HDF_MACHINE = "kcu105-microblazeel" |
63 | 67 | ||
64 | MACHINE_FEATURES = "" | 68 | MACHINE_FEATURES = "" |
65 | 69 | ||
66 | KERNEL_IMAGETYPE ?= "linux.bin.ub" | 70 | KERNEL_IMAGETYPE ?= "linux.bin.ub" |
67 | KERNEL_IMAGETYPES = "" | 71 | KERNEL_IMAGETYPES = "" |
68 | 72 | ||
69 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "device-tree" | 73 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "${PREFERRED_PROVIDER_virtual/dtb}" |
70 | 74 | ||
71 | IMAGE_BOOT_FILES += " \ | 75 | IMAGE_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 | ||
75 | EXTRA_IMAGEDEPENDS += " \ | 79 | EXTRA_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 |
95 | PACKAGE_EXTRA_ARCHS:append = "${@['', ' ${MB_MACHINE_ARCH}']['microblaze-generic' != "${MACHINE}"]}" | 99 | PACKAGE_EXTRA_ARCHS:append = "${@['', ' ${MB_MACHINE_ARCH}']['microblaze-generic' != "${MACHINE}"]}" |
100 | |||
101 | # Deprecated board config | ||
102 | USE_BOARD = "${@"conf/machine/include/xilinx-board-post.inc" if d.getVar("BOARD") or d.getVar("BOARD_VARIANT") else ""}" | ||
103 | require ${USE_BOARD} | ||
104 | unset USE_BOARD | ||