Merge changes from topic "xlnx_zynmp_tsp" into integration

* changes:
  chore(zynqmp): remove unused configuration from TSP
  fix(zynqmp): resolve runtime error in TSP
This commit is contained in:
Manish V Badarkhe 2023-08-07 14:32:13 +02:00 committed by TrustedFirmware Code Review
commit 16f19ed1fa
3 changed files with 1 additions and 15 deletions

View file

@ -229,20 +229,9 @@ static char *zynqmp_get_silicon_idcode_name(void)
size_t i, j, len;
const char *name = "EG/EV";
#ifdef IMAGE_BL32
/*
* For BL32, get the chip id info directly by reading corresponding
* registers instead of making pm call. This has limitation
* that these registers should be configured to have access
* from APU which is default case.
*/
chipid[0] = mmio_read_32(ZYNQMP_CSU_BASEADDR + ZYNQMP_CSU_IDCODE_OFFSET);
chipid[1] = mmio_read_32(EFUSE_BASEADDR + EFUSE_IPDISABLE_OFFSET);
#else
if (pm_get_chipid(chipid) != PM_RET_SUCCESS) {
return "XCZUUNKN";
}
#endif
id = chipid[0] & (ZYNQMP_CSU_IDCODE_DEVICE_CODE_MASK |
ZYNQMP_CSU_IDCODE_SVD_MASK);

View file

@ -20,7 +20,7 @@ override WARMBOOT_ENABLE_DCACHE_EARLY := 1
EL3_EXCEPTION_HANDLING := $(SDEI_SUPPORT)
# pncd SPD requires secure SGI to be handled at EL1
ifeq (${SPD},pncd)
ifeq (${SPD}, $(filter ${SPD},pncd tspd))
ifeq (${ZYNQMP_WDT_RESTART},1)
$(error "Error: ZYNQMP_WDT_RESTART and SPD=pncd are incompatible")
endif

View file

@ -28,9 +28,6 @@ void tsp_early_platform_setup(void)
&tsp_boot_console);
console_set_scope(&tsp_boot_console,
CONSOLE_FLAG_RUNTIME | CONSOLE_FLAG_BOOT);
/* Initialize the platform config for future decision making */
zynqmp_config_setup();
}
/*******************************************************************************