u-boot/arch/arm/include/asm/arch-rockchip
Eugen Hristev bb52f1c604 reset: rockchip: implement rk3588 lookup table
The current DT bindings for the rk3588 clock use a different ID than the
one that is supposed to be written to the hardware registers.
Thus, we cannot use directly the id provided in the phandle, but rather
use a lookup table to correctly setup the hardware.

This approach has been implemented already in Linux, by commit :
f1c506d152ff ("clk: rockchip: add clock controller for the RK3588")

Hence, implement a similar approach using the lookup table, and adapt
the existing reset driver to work with SoCs using lookup table.
The file rst-rk3588.c has been copied as much as possible from Linux.

Adapt the clk rk3588 driver as well to bind the reset driver with the
lookup table.

Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
Signed-off-by: Eugen Hristev <eugen.hristev@collabora.com>
2023-05-17 17:36:18 +08:00
..
boot0.h rockchip: boot0: update CONFIG_ROCKCHIP_SPL_RESERVE_IRAM for SPL only 2019-05-08 17:34:12 +08:00
boot_mode.h rockchip: add support for enter to bootrom download mode 2017-11-21 23:57:23 +01:00
bootrom.h global: Migrate CONFIG_IRAM_BASE to CFG 2022-12-23 10:10:40 -05:00
clock.h reset: rockchip: implement rk3588 lookup table 2023-05-17 17:36:18 +08:00
cpu_rk3288.h rockchip: Add rk3288 SoC detection helper 2020-07-22 20:55:13 +08:00
cru.h rockchip: Separate the reset cause from display cpuinfo 2020-07-22 20:55:13 +08:00
cru_px30.h rockchip: px30: support debug uart on UART0 2022-10-19 19:30:48 +08:00
cru_rk322x.h arm: Don't include common.h in header files 2020-05-18 14:54:24 -04:00
cru_rk3036.h arm: Don't include common.h in header files 2020-05-18 14:54:24 -04:00
cru_rk3066.h rockchip: rk3066: add clock driver for rk3066 soc 2022-04-18 11:25:13 +08:00
cru_rk3128.h common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
cru_rk3188.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
cru_rk3288.h rockchip: Add common reset cause 2020-01-30 11:44:01 +08:00
cru_rk3328.h arm: Don't include common.h in header files 2020-05-18 14:54:24 -04:00
cru_rk3368.h WS cleanup: remove SPACE(s) followed by TAB 2021-09-30 09:08:16 -04:00
cru_rk3399.h arm: Don't include common.h in header files 2020-05-18 14:54:24 -04:00
cru_rk3568.h clk: rockchip: rk3568: update clks 2021-10-15 20:57:31 +08:00
cru_rk3588.h rockchip: rk3588: Add support for sdmmc clocks in SPL 2023-04-21 15:16:01 +08:00
cru_rv1108.h common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
cru_rv1126.h arch: rockchip: Add cru header for rv1126 2023-01-16 18:01:11 +08:00
ddr_rk3188.h rockchip: use 'arch-rockchip' as header file path 2019-05-01 00:00:05 +02:00
ddr_rk3288.h global: Finish CONFIG -> CFG migration 2023-01-20 12:27:24 -05:00
ddr_rk3368.h common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
dram_spec_timing.h ram: rockchip: Add rv1126 ddr driver support 2023-01-16 18:01:10 +08:00
edp_rk3288.h Rockchip: video: edp: Change interrupt polarity configuration 2021-04-10 11:52:43 +02:00
f_rockusb.h WS cleanup: remove trailing empty lines 2021-09-30 08:08:56 -04:00
gpio.h rockchip: Implement spl_gpio in the GPIO driver 2019-02-01 16:59:13 +01:00
grf_px30.h arm: Don't include common.h in header files 2020-05-18 14:54:24 -04:00
grf_rk322x.h arm: Don't include common.h in header files 2020-05-18 14:54:24 -04:00
grf_rk3036.h arm: Don't include common.h in header files 2020-05-18 14:54:24 -04:00
grf_rk3066.h rockchip: rk3066: add grf header file 2022-04-18 11:25:13 +08:00
grf_rk3128.h arm: Don't include common.h in header files 2020-05-18 14:54:24 -04:00
grf_rk3188.h rockchip: rk3188: add support for usb-uart functionality 2018-11-30 19:03:16 +01:00
grf_rk3288.h rockchip: Move pull-up/down enum into a common file 2019-02-01 16:59:13 +01:00
grf_rk3328.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
grf_rk3368.h common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
grf_rk3399.h rockchip: pinctrl: rk3399: Add support for UART3. 2019-05-30 18:22:35 +08:00
grf_rk3568.h rockchip: Add rk3568 architecture core 2021-06-18 14:36:24 +08:00
grf_rk3588.h arm: rockchip: Add grf header for rk3588 2023-02-28 18:07:27 +08:00
grf_rv1108.h arm: Don't include common.h in header files 2020-05-18 14:54:24 -04:00
grf_rv1126.h arm: rockchip: Add grf header for rv1126 2023-01-16 18:01:11 +08:00
hardware.h rockchip: arm: remove no use macro 2019-05-01 00:00:05 +02:00
i2c.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
ioc_rk3588.h arm: rockchip: Add ioc header for rk3588 2023-02-28 18:07:28 +08:00
lvds_rk3288.h common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
misc.h rockpi4: board: Add firmware image information for capsule updates 2022-12-19 10:56:12 +08:00
periph.h rockchip: rk3288: Add i2s pinctrl and clock support 2019-02-01 16:59:10 +01:00
pmu_rk3188.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
pmu_rk3288.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
pmu_rk3399.h arm: include: rockchip: Add rk3399 pmu file 2019-07-21 00:00:13 +08:00
pwm.h pwm: rk_pwm: Make PWM driver to support all Rockchip Socs 2019-12-06 00:06:23 +08:00
qos_rk3288.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
rockchip_mipi_dsi.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
sdram.h rockchip: sdram: add basic support for sdram reg info version 3 2023-02-28 18:07:26 +08:00
sdram_common.h ram: rockchip: Add rv1126 ddr driver support 2023-01-16 18:01:10 +08:00
sdram_msch.h ram: rockchip: Add rv1126 ddr driver support 2023-01-16 18:01:10 +08:00
sdram_pctl_px30.h ram: rockchip: Update ddr pctl regs for px30 2023-01-16 18:01:10 +08:00
sdram_phy_px30.h common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
sdram_phy_ron_rtt_px30.h ram: rockchip: add phy driver code for PX30 2019-11-17 16:23:56 +08:00
sdram_phy_rv1126.h ram: rockchip: Add rv1126 ddr driver support 2023-01-16 18:01:10 +08:00
sdram_px30.h ram: px30: add sdram driver 2019-11-17 16:23:56 +08:00
sdram_rk322x.h global: Finish CONFIG -> CFG migration 2023-01-20 12:27:24 -05:00
sdram_rk3036.h arm: Don't include common.h in header files 2020-05-18 14:54:24 -04:00
sdram_rk3288.h ram: rockchip: rename sdram.h to sdram_rk3288.h 2019-11-17 16:23:56 +08:00
sdram_rk3328.h ram: rk3328: use common sdram driver 2019-11-17 16:23:56 +08:00
sdram_rk3399.h common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
sdram_rv1126.h ram: rockchip: Add rv1126 ddr driver support 2023-01-16 18:01:10 +08:00
sys_proto.h rockchip: rk3399: move chromebook bob specific flow to its board file 2019-07-29 10:25:27 +08:00
timer.h rockchip: remove rk_timer 2019-07-20 23:59:44 +08:00
uart.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
vop_rk3288.h rockchip: video: vop: Use endpoint compatible string to find VOP mode 2021-04-10 11:51:13 +02:00