summaryrefslogtreecommitdiffstats
path: root/meta-xilinx-bsp
diff options
context:
space:
mode:
authorNaga Sureshkumar Relli <naga.sureshkumar.relli@xilinx.com>2021-04-20 02:12:32 -0600
committerSai Hari Chandana Kalluri <chandana.kalluri@xilinx.com>2021-09-27 21:33:21 -0700
commitfbac6f60fa6233cb79bda8f141c7216f93b6012f (patch)
tree87a0b6456ab2543b2f1cbb1bb3569b895d8497a2 /meta-xilinx-bsp
parent551e1f823a75606bd9312f95a61831d8f25b1fdd (diff)
downloadmeta-xilinx-fbac6f60fa6233cb79bda8f141c7216f93b6012f.tar.gz
Update the lop file as per new cpu cluster naming
There are changes in microblaze cpu cluster node_name and node_labels. so update the lop file accordingly to generate microblaze tune macros. Previously the microblaze.conf is generated like below For Versal: AVAILTUNES += "microblaze-cpu2" TUNE_FEATURES_tune-microblaze-cpu2 = " microblaze v10.0 barrel-shift pattern-compare reorder multiply-high divide-hard fpu-soft" PACKAGE_EXTRA_ARCHS_tune-microblaze-cpu2 = "${TUNE_PKGARCH}" TUNE_FEATURES_tune-pmc-microblaze = ${TUNE_FEATURES_tune-microblaze-cpu2} AVAILTUNES += "microblaze-cpu3" TUNE_FEATURES_tune-microblaze-cpu3 = " microblaze v10.0 barrel-shift pattern-compare reorder multiply-high divide-hard fpu-soft" PACKAGE_EXTRA_ARCHS_tune-microblaze-cpu3 = "${TUNE_PKGARCH}" TUNE_FEATURES_tune-psm-microblaze = ${TUNE_FEATURES_tune-microblaze-cpu3} For Zynqmp: AVAILTUNES += "microblaze-cpu0" TUNE_FEATURES_tune-microblaze-cpu0 = " microblaze v9.2 barrel-shift pattern-compare reorder fpu-soft" PACKAGE_EXTRA_ARCHS_tune-microblaze-cpu0 = "${TUNE_PKGARCH}" TUNE_FEATURES_tune-pmu-microblaze = "${TUNE_FEATURES_tune-microblaze-cpu0}" With the new changes the microblaze.conf is generated like below For Versal: AVAILTUNES += "microblaze-cpu0" TUNE_FEATURES_tune-microblaze-cpu0 = " microblaze v10.0 barrel-shift pattern-compare reorder multiply-high divide-hard fpu-soft" PACKAGE_EXTRA_ARCHS_tune-microblaze-cpu0 = "${TUNE_PKGARCH}" TUNE_FEATURES_tune-pmc-microblaze = "${TUNE_FEATURES_tune-microblaze-cpu0}" AVAILTUNES += "microblaze-cpu1" TUNE_FEATURES_tune-microblaze-cpu1 = " microblaze v10.0 barrel-shift pattern-compare reorder multiply-high divide-hard fpu-soft" PACKAGE_EXTRA_ARCHS_tune-microblaze-cpu1 = "${TUNE_PKGARCH}" TUNE_FEATURES_tune-psm-microblaze = "${TUNE_FEATURES_tune-microblaze-cpu1}" For Zynqmp: No change the cpu index is changed because the cpu@0 for cpus_microblaze is same for both pmc and psm, hence for better readability we updated the lop file to generate cpu0 for pmc and cpu1 for psm. Signed-off-by: Naga Sureshkumar Relli <naga.sureshkumar.relli@xilinx.com>
Diffstat (limited to 'meta-xilinx-bsp')
-rw-r--r--meta-xilinx-bsp/recipes-kernel/lopper/xilinx-lops/lop-microblaze-yocto.dts5
1 files changed, 4 insertions, 1 deletions
diff --git a/meta-xilinx-bsp/recipes-kernel/lopper/xilinx-lops/lop-microblaze-yocto.dts b/meta-xilinx-bsp/recipes-kernel/lopper/xilinx-lops/lop-microblaze-yocto.dts
index 932fcd24..d710c10f 100644
--- a/meta-xilinx-bsp/recipes-kernel/lopper/xilinx-lops/lop-microblaze-yocto.dts
+++ b/meta-xilinx-bsp/recipes-kernel/lopper/xilinx-lops/lop-microblaze-yocto.dts
@@ -224,8 +224,11 @@
224 lop_output_code { 224 lop_output_code {
225 compatible = "system-device-tree-v1,lop,code-v1"; 225 compatible = "system-device-tree-v1,lop,code-v1";
226 code = " 226 code = "
227 cpu_addr = 0
227 for n in __selected__: 228 for n in __selected__:
228 tname = re.sub( '@', '', n.name ) 229 tname = re.split('@', n.name)
230 tname = tname[0]+str(cpu_addr)
231 cpu_addr += 1
229 print( 'AVAILTUNES += \"microblaze-%s\"' % tname ) 232 print( 'AVAILTUNES += \"microblaze-%s\"' % tname )
230 print( 'TUNE_FEATURES_tune-microblaze-%s = \"' % tname, end='' ) 233 print( 'TUNE_FEATURES_tune-microblaze-%s = \"' % tname, end='' )
231 for t in n.tunes.values(): 234 for t in n.tunes.values():