diff options
author | Adrian Fiergolski <adrian.fiergolski@fastree3d.com> | 2021-06-08 12:37:23 +0200 |
---|---|---|
committer | Michal Simek <michal.simek@xilinx.com> | 2021-06-11 09:24:58 +0200 |
commit | 3414712ba8a82d6566e00645da8d37ea085a9f7c (patch) | |
tree | d673f70707b65bb9ade3c1b916b2f65b348be6aa /arch/arm/mach-zynqmp | |
parent | e3b64beda5dd1a6b6bedfd1fe0e50be1ddea7044 (diff) | |
download | u-boot-3414712ba8a82d6566e00645da8d37ea085a9f7c.zip u-boot-3414712ba8a82d6566e00645da8d37ea085a9f7c.tar.gz u-boot-3414712ba8a82d6566e00645da8d37ea085a9f7c.tar.bz2 |
arm64: zynqmp: Writing correct value to ANALOG_BUS
The default register configuration after powerup for PSSYSMON_ANALOG_BUS
register is incorrect. Hence, fix this in SPL by writing correct fixed
value. It follows UG1085 chapter 'PS SYSMON Analog_Bus' and reflects commit
sw_apps:zynq ("056ca65d44549ce27f716d423e8dfdefeee7440c")
in Xilinx:embeddedsw[1].
[1] https://github.com/Xilinx/embeddedsw
Signed-off-by: Adrian Fiergolski <adrian.fiergolski@fastree3d.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'arch/arm/mach-zynqmp')
-rw-r--r-- | arch/arm/mach-zynqmp/include/mach/hardware.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/mach-zynqmp/include/mach/hardware.h b/arch/arm/mach-zynqmp/include/mach/hardware.h index 3d3c48e..a798aa0 100644 --- a/arch/arm/mach-zynqmp/include/mach/hardware.h +++ b/arch/arm/mach-zynqmp/include/mach/hardware.h @@ -19,6 +19,11 @@ #define ZYNQMP_CRL_APB_BOOT_PIN_CTRL_OUT_EN_SHIFT 0 #define ZYNQMP_CRL_APB_BOOT_PIN_CTRL_OUT_VAL_SHIFT 8 +#define ZYNQMP_AMS_PS_SYSMON_BASEADDR 0XFFA50800 +#define ZYNQMP_AMS_PS_SYSMON_ANALOG_BUS ((ZYNQMP_AMS_PS_SYSMON_BASEADDR) \ + + 0x00000114) +#define ZYNQMP_PS_SYSMON_ANALOG_BUS_VAL 0x00003210 + #define PS_MODE0 BIT(0) #define PS_MODE1 BIT(1) #define PS_MODE2 BIT(2) |