u-boot/arch/arm/include/asm/arch-rockchip
Paweł Jarosz 730a402450 rockchip: rk3066: add clock driver for rk3066 soc
Add the clock driver for the rk3066 platform.

Derived from the rk3288 and rk3188 driver it
supports only a bare minimum to bring up the system
to reduce the TPL size for:
  SDRAM clock configuration.
  The boot devices NAND, EMMC, SDMMC, SPI.
  A UART for the debug messages (fixed) at 115200n8.
  A SARADC for the recovery button.
  A TIMER for the delays (fixed).

There's support for two possible frequencies,
the safe 600MHz which will work with default pmic settings and
will be set to get away from the 24MHz default and
the maximum of 1.416Ghz, which boards can set if they
were able to get pmic support for it.

After the clock tree is set during the TPL probe
there's no parent update support.

In OF_REAL mode the drivers ns16550.c and dw-apb-timer.c
obtain the (fixed) clk_get_rate from the clock driver
instead of platdata.

The rk3066 cru node has a number of assigned-clocks properties
that call the .set_rate() function. Add them to the list so that
they return a 0 instead of -ENOENT.

Signed-off-by: Paweł Jarosz <paweljarosz3691@gmail.com>
Signed-off-by: Johan Jonker <jbx6244@gmail.com>
Reviewed-by: Sean Anderson <seanga2@gmail.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
2022-04-18 11:25:13 +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 rockchip: declear boot_devices in bootrom.h 2019-07-26 17:30:26 +08:00
clock.h doc: replace @return by Return: 2022-01-19 18:11:34 +01: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 arm: Don't include common.h in header files 2020-05-18 14:54:24 -04: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_rv1108.h common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
ddr_rk3188.h rockchip: use 'arch-rockchip' as header file path 2019-05-01 00:00:05 +02:00
ddr_rk3288.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
ddr_rk3368.h common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04: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_rv1108.h arm: Don't include common.h in header files 2020-05-18 14:54:24 -04: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
lvds_rk3288.h common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
misc.h rockchip: rk3399: derive ethaddr from cpuid 2019-08-23 18:15:31 +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: extend to use sys_reg3 for capacity info 2019-11-17 16:23:56 +08:00
sdram_common.h rockchip: ram: fix debug funcfion define when RAM_ROCKCHIP_DEBUG not set 2020-07-22 20:22:33 +08:00
sdram_msch.h ram: rockchip: add common msch reg definition 2019-11-17 16:23:56 +08:00
sdram_pctl_px30.h common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04: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_px30.h ram: px30: add sdram driver 2019-11-17 16:23:56 +08:00
sdram_rk322x.h common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04: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
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