u-boot/arch/arm/include/asm
Heiko Stuebner 702dc3c0b3 clk: rockchip: rk3588: Set SPLL frequency during SPL stage
All parts expect the SPLL to run at 702MHz. In U-Boot it's the SPLL_HZ
declaring this rate and in the kernel it's a fixed clock definition.

While everything is expecting 702MHz, the SPLL is not running that
frequency when coming from the bootrom though, instead it's running
at 351MHz and the vendor-u-boot just sets it to the expected frequency.

The SPLL itself is located inside the secure-BUSCRU and in theory
accessible as an SCMI clock, though this requires an unknown amount
of cooperation from trusted-firmware to set at a later stage, though
during the SPL stage we can still access the relevant CRU directly.

The SPLL is for example necessary for the DSI controllers to produce
output.

As the SPLL is "just" another rk3588 pll, just set the desired rate
directly during the SPL stage.

Tested on rk3588-rock5b and rk3588-tiger by reading back the PLL rate
and also observing working DSI output with this change.

Fixes: 6737771600 ("rockchip: rk3588: Add support for sdmmc clocks in SPL")
Suggested-by: Andy Yan <andy.yan@rock-chips.com>
Signed-off-by: Heiko Stuebner <heiko.stuebner@cherry.de>
Cc: Jonas Karlman <jonas@kwiboo.se>
Cc: Quentin Schulz <quentin.schulz@cherry.de>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
2024-05-24 17:58:59 +08:00
..
arch-am33xx Revert "Merge patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet"" 2024-05-19 08:16:36 -06:00
arch-apple arm: apple: nvme: Add SART support and RTKit buffer management 2022-06-23 08:24:49 -04:00
arch-armada8k
arch-armv7
arch-aspeed Revert "Merge patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet"" 2024-05-19 08:16:36 -06:00
arch-bcm235xx
arch-bcm281xx
arch-bcmns3 board: ns3: add api to save boot parameters passed from BL31 2020-07-29 10:13:41 -04:00
arch-fsl-layerscape Revert "Merge patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet"" 2024-05-19 08:16:36 -06:00
arch-hi3660 common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
arch-hi3798cv200 poplar: clean up board level mmc initialization code 2019-01-25 12:12:57 -05:00
arch-hi6220 doc: replace @return by Return: 2022-01-19 18:11:34 +01:00
arch-imx imx9: add i.MX93 variants support 2023-05-21 16:54:41 +02:00
arch-imx8 imx: imx8: ahab: refactor do_ahab_close command 2023-12-13 09:42:14 -03:00
arch-imx8m Revert "Merge patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet"" 2024-05-19 08:16:36 -06:00
arch-imx8ulp imx: fix header inclusion guards 2023-05-31 10:11:46 -04:00
arch-imx9 arm: imx9: Correct imx9_probe_mu prototype 2024-04-05 09:38:30 -03:00
arch-imxrt include: Remove unused header files 2023-05-31 12:31:47 -04:00
arch-lpc32xx include: Remove unused header files 2023-05-31 12:31:47 -04:00
arch-ls102xa Revert "Merge patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet"" 2024-05-19 08:16:36 -06:00
arch-mediatek mediatek: Drop dm.h header file 2020-08-03 22:19:54 -04:00
arch-meson clk: Add clock driver for Amlogic A1 2023-10-12 13:39:41 +02:00
arch-mvebu km/spi: remove deprecated SPI flash driver code for KM Kirkwood boards 2019-07-11 10:58:03 +02:00
arch-mx5 Revert "Merge patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet"" 2024-05-19 08:16:36 -06:00
arch-mx6 imx: bootaux: change names of MACROs used to boot MCU on iMX devices 2023-07-13 11:29:40 +02:00
arch-mx7 Revert "Merge patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet"" 2024-05-19 08:16:36 -06:00
arch-mx7ulp global: Migrate CONFIG_SYS_FSL* symbols to the CFG_SYS namespace 2022-11-10 10:08:55 -05:00
arch-mx27 include: Remove unused header files 2023-05-31 12:31:47 -04:00
arch-mx31 global: Move remaining CONFIG_SYS_* to CFG_SYS_* 2022-12-05 16:06:08 -05:00
arch-mxs arm: mxs: Fix ICOLL macro name typo 2023-12-13 09:40:52 -03:00
arch-npcm7xx misc: nuvoton: Add NPCM7xx otp controller driver 2022-06-22 21:30:05 -04:00
arch-npcm8xx arch: arm: npcm8xx: add cpu version and 4G ram support 2023-07-14 12:52:18 -04:00
arch-octeontx arm: octeontx: Add headers for OcteonTX 2020-08-25 08:01:16 +02:00
arch-octeontx2 arm: octeontx2: Add headers for OcteonTX2 2020-08-25 08:01:16 +02:00
arch-omap3 Merge patch series "net fixes prior lwip" 2024-01-11 11:25:07 -05:00
arch-omap4 tree-wide: Replace http:// link with https:// link for ti.com 2023-11-10 11:01:50 -05:00
arch-omap5 tree-wide: Replace http:// link with https:// link for ti.com 2023-11-10 11:01:50 -05:00
arch-orion5x
arch-owl net: designware: s700: Add glue code for S700 mac 2020-07-07 17:11:58 -04:00
arch-px30 rockchip: add px30 architecture core 2019-11-17 17:23:24 +08:00
arch-rk322x rockchip: add common header boot0.h and gpio.h for soc 2019-05-08 17:34:12 +08:00
arch-rk3036 rockchip: add common header boot0.h and gpio.h for soc 2019-05-08 17:34:12 +08:00
arch-rk3066 rockchip: include: asm: fix entering download mode rk3066 2023-11-10 10:58:56 -05:00
arch-rk3128 rockchip: add common header boot0.h and gpio.h for soc 2019-05-08 17:34:12 +08:00
arch-rk3188 rockchip: add common header boot0.h and gpio.h for soc 2019-05-08 17:34:12 +08:00
arch-rk3288 rockchip: add common header boot0.h and gpio.h for soc 2019-05-08 17:34:12 +08:00
arch-rk3308 rockchip: rk3308: Move cru and grf include files to arch-rockchip 2024-04-26 15:47:03 +08:00
arch-rk3328 rockchip: add common header boot0.h and gpio.h for soc 2019-05-08 17:34:12 +08:00
arch-rk3368 rockchip: add common header boot0.h and gpio.h for soc 2019-05-08 17:34:12 +08:00
arch-rk3399 rockchip: add common header boot0.h and gpio.h for soc 2019-05-08 17:34:12 +08:00
arch-rk3568 rockchip: Add rk3568 architecture core 2021-06-18 14:36:24 +08:00
arch-rk3588 arm: rockchip: Add RK3588 arch core support 2023-02-28 18:07:28 +08:00
arch-rockchip clk: rockchip: rk3588: Set SPLL frequency during SPL stage 2024-05-24 17:58:59 +08:00
arch-rv1108 rockchip: add common header boot0.h and gpio.h for soc 2019-05-08 17:34:12 +08:00
arch-rv1126 arm: rockchip: Add RV1126 arch core support 2023-01-16 18:01:11 +08:00
arch-stih410 treewide: Update email address Patrick Delaunay and Patrice Chotard 2020-12-09 10:57:50 +01:00
arch-stm32 gpio: stm32: create include file for driver private data 2021-11-10 17:03:36 +01:00
arch-stm32f4 gpio: stm32: create include file for driver private data 2021-11-10 17:03:36 +01:00
arch-stm32f7 configs: stm32f769-disco: Fix internal flash size 2022-09-26 17:21:02 +02:00
arch-stm32h7 gpio: stm32: create include file for driver private data 2021-11-10 17:03:36 +01:00
arch-sunxi Revert "Merge patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet"" 2024-05-19 08:16:36 -06:00
arch-tegra Revert "Merge patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet"" 2024-05-19 08:16:36 -06:00
arch-tegra20 video: tegra20: consolidate DC header 2024-04-21 09:07:01 +02:00
arch-tegra30 video: tegra20: dsi: add T114 support 2024-04-21 09:07:01 +02:00
arch-tegra114 video: tegra20: consolidate DC header 2024-04-21 09:07:01 +02:00
arch-tegra124 drivers: pinctrl: create Tegra DM pinctrl driver 2023-12-19 21:24:30 +02:00
arch-tegra186
arch-tegra210 drivers: pinctrl: create Tegra DM pinctrl driver 2023-12-19 21:24:30 +02:00
arch-vf610 Convert CONFIG_IOMUX_SHARE_CONF_REG et al to Kconfig 2022-12-05 16:07:12 -05:00
armv8 Revert "arm64: Use FEAT_HAFDBS to track dirty pages when available" 2023-11-17 11:58:26 -05:00
iproc-common include: Remove unused header files 2023-05-31 12:31:47 -04:00
kona-common include: Remove unused header files 2023-05-31 12:31:47 -04:00
mach-imx Revert "Merge patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet"" 2024-05-19 08:16:36 -06:00
proc-armv arm: Remove strongarm support 2022-07-08 17:57:33 -04:00
ti-common Revert "Merge patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet"" 2024-05-19 08:16:36 -06:00
xen Revert "arch: arm/xen: add putc() for debugging" 2020-10-23 09:16:07 -04:00
acpi_table.h acpi: Add missing ARM acpi_table header 2021-01-18 15:14:15 -05:00
arm11.h ARM: arm11: Add C wrapper for allow_unaligned() 2023-07-01 17:29:15 +02:00
armv7.h ARM: armv7: Add C wrapper for allow_unaligned() 2023-07-01 17:29:15 +02:00
armv7_mpu.h common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
armv7m.h
assembler.h arm: Partial cleanup and audit usage of <config.h> 2023-12-21 08:54:37 -05:00
atomic.h
barriers.h
bitops.h arm: Use builtins for ffs/fls 2023-08-17 16:39:20 -04:00
boot0-linux-kernel-header.h arm64: Remove duplicated symbols 2023-06-01 12:32:03 -04:00
bootm.h arm: use CONFIG_SUPPORT_PASSING_ATAGS 2021-09-24 14:30:46 -04:00
byteorder.h
cache.h arm: cp15: remove weak function arm_init_domains 2021-03-02 15:53:37 -05:00
config.h Convert CONFIG_SYS_BOOT_RAMDISK_HIGH to Kconfig 2022-07-07 14:01:09 -04:00
davinci_rtc.h
dma-mapping.h arm: Don't include common.h in header files 2020-05-18 14:54:24 -04:00
ehci-omap.h tree-wide: Replace http:// link with https:// link for ti.com 2023-11-10 11:01:50 -05:00
emif.h global: Move remaining CONFIG_SYS_SDRAM_* to CFG_SYS_SDRAM_* 2022-12-05 16:06:07 -05:00
esr.h Revert "Merge patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet"" 2024-05-19 08:16:36 -06:00
fsl_secure_boot.h fsl-layerscape: drop obsolete PPA secure firmware support 2023-10-10 10:13:32 +08:00
gic-v3.h Revert "arch: arm: use dt and UCLASS_SYSCON to get gic lpi details" 2021-10-31 08:46:29 -04:00
gic.h arm64: gic: Add power up sequence for GIC-600 2024-03-19 18:40:46 -04:00
global_data.h Revert "Merge patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet"" 2024-05-19 08:16:36 -06:00
gpio.h gpio: Introduce CONFIG_GPIO_EXTRA_HEADER to cleanup #ifdefs 2021-07-06 14:07:36 -04:00
handoff.h arm: Add arm handoff header file 2020-01-24 11:19:52 -05:00
hardware.h
io.h arm: Clean up asm/io.h 2022-03-02 13:59:29 -05:00
linkage.h arm: set alignment properly for asm funcs 2023-05-31 17:23:01 -04:00
mach-types.h ARM: at91: remove references to RM9200DK 2021-09-21 10:08:24 +03:00
macro.h armv8: Fix and simplify branch_if_master/branch_if_slave 2022-03-02 13:59:29 -05:00
memory.h
omap_common.h arm: omap2plus: Move CONFIG_SYS_PTV out of CONFIG namespace 2022-06-06 12:09:00 -04:00
omap_gpio.h doc: replace @return by Return: 2022-01-19 18:11:34 +01:00
omap_i2c.h dm: i2c: use CONFIG_IS_ENABLED macro for DM_I2C/DM_I2C_GPIO 2021-02-21 06:08:00 +01:00
omap_mmc.h common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
omap_musb.h dm: treewide: Rename ..._platdata variables to just ..._plat 2020-12-13 16:51:09 -07:00
omap_sec_common.h arm: Don't include common.h in header files 2020-05-18 14:54:24 -04:00
opcodes-sec.h
opcodes-virt.h
opcodes.h
pl310.h arm: mvebu: Fix moving internal registers 2022-09-13 09:04:22 +02:00
posix_types.h
processor.h
psci.h arm: psci: Fix RESET2 hook 2023-01-31 15:46:39 +01:00
ptrace.h
sections.h
secure.h arm: Partial cleanup and audit usage of <config.h> 2023-12-21 08:54:37 -05:00
setjmp.h
setup.h treewide: Convert macro and uses of __section(foo) to __section("foo") 2021-05-24 14:21:30 -04:00
spin_table.h
spl.h treewide: rework linker symbol declarations in sections header 2023-08-09 09:21:42 -04:00
string.h arm: Partial cleanup and audit usage of <config.h> 2023-12-21 08:54:37 -05:00
system.h arm: caches: Make DCACHE_DEFAULT_OPTION accessible for ARM64 arch 2023-11-13 10:55:38 +01:00
types.h
u-boot-arm.h arm64: Save esr in pt_regs 2022-04-01 16:56:53 -04:00
u-boot.h
unaligned.h arm: use asm-generic/unaligned.h 2023-05-31 14:05:34 -04:00
unified.h
utils.h
xen.h WS cleanup: remove trailing empty lines 2021-09-30 08:08:56 -04:00