]> git.dujemihanovic.xyz Git - u-boot.git/commit
arm64: zynqmp: Configure SoC RTC on SOM
authorMichal Simek <michal.simek@amd.com>
Wed, 23 Oct 2024 06:09:23 +0000 (08:09 +0200)
committerMichal Simek <michal.simek@amd.com>
Tue, 12 Nov 2024 08:01:46 +0000 (09:01 +0100)
commit4de127a44a45a8135756d4a7f26919393b91bb32
treef704a8e34579649f98bf26667bdc9aaee51f0065
parentcca05617a8f585f3a98a8fa82f75cc68a530d771
arm64: zynqmp: Configure SoC RTC on SOM

Use RTC available in HW on Kria SOM without using emulation that's why
configure it properly and disable emulated one.
Power on reset value of RTC Calibration register without battery backup is
not matching with crystal frequency which leads to RTC time drift. That's
why write CALIB_WRITE register with crystal frequency (0x7FFF). There is
also an option to write zero so that Linux will set default value (0x7FFF)
in driver probe but calibration 0 is not permited by DT schema.

Co-developed-by: Srinivas Goud <srinivas.goud@amd.com>
Signed-off-by: Srinivas Goud <srinivas.goud@amd.com>
Signed-off-by: Michal Simek <michal.simek@amd.com>
Link: https://lore.kernel.org/r/9b684faeec85381b9b8fe796aaebc2ee79f17b8e.1729663761.git.michal.simek@amd.com
arch/arm/dts/zynqmp-sm-k26-revA.dts
configs/xilinx_zynqmp_kria_defconfig