1
0
mirror of https://xff.cz/git/u-boot/ synced 2026-04-12 18:20:01 +02:00

arm: zynqmp: Enable non-invasive CCI-400 PMU debug

Set NIDEN, enabling non-invasive debug for the CCI-400 PMU. Otherwise,
the PMU is effectively disabled.

Signed-off-by: Sean Anderson <sean.anderson@linux.dev>
Reviewed-by: Michal Simek <michal.simek@amd.com>
Link: https://lore.kernel.org/r/20240905171833.325548-3-sean.anderson@linux.dev
Signed-off-by: Michal Simek <michal.simek@amd.com>
This commit is contained in:
Sean Anderson
2024-09-05 13:18:33 -04:00
committed by Michal Simek
parent 35142be560
commit afe2df3157
2 changed files with 7 additions and 0 deletions

View File

@@ -132,6 +132,9 @@ struct crfapb_regs {
#define crfapb_base ((struct crfapb_regs *)ZYNQMP_CRF_APB_BASEADDR)
#define ZYNQMP_CCI_REG_CCI_MISC_CTRL 0xFD5E0040
#define ZYNQMP_CCI_REG_CCI_MISC_CTRL_NIDEN BIT(1)
#define ZYNQMP_APU_BASEADDR 0xFD5C0000
struct apu_regs {

View File

@@ -76,6 +76,10 @@ int __maybe_unused psu_uboot_init(void)
writel(0x04920492, ZYNQMP_IOU_SECURE_SLCR);
writel(0x00920492, ZYNQMP_IOU_SECURE_SLCR + 4);
/* Enable CCI PMU events */
writel(ZYNQMP_CCI_REG_CCI_MISC_CTRL_NIDEN,
ZYNQMP_CCI_REG_CCI_MISC_CTRL);
/* Delay is required for clocks to be propagated */
udelay(1000000);