Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions arch/arm/dts/rk3576-u-boot.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,25 @@
};
};

/*
* Wide temperature DVFS properties for U-Boot.
* These are vendor-specific properties from rk3576 vendor kernel DTS
* that upstream kernel doesn't have. U-Boot DVFS driver needs them.
*
* Values from vendor rk3576.dtsi:
* - rockchip,low-temp = <15000> (15°C in millidegrees)
* - rockchip,max-volt = <950000> (950mV, max from OPP table)
*/
&cluster0_opp_table {
rockchip,low-temp = <15000>;
rockchip,max-volt = <950000>;
};

&cluster1_opp_table {
rockchip,low-temp = <15000>;
rockchip,max-volt = <950000>;
};

#ifdef CONFIG_ROCKCHIP_SPI_IMAGE
&binman {
simple-bin-spi {
Expand Down
7 changes: 7 additions & 0 deletions arch/arm/mach-rockchip/board.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@
#include <asm/arch-rockchip/clock.h>
#include <asm/arch-rockchip/periph.h>
#include <power/regulator.h>
#ifdef CONFIG_DM_DVFS
#include <dvfs.h>
#endif

#if IS_ENABLED(CONFIG_EFI_HAVE_CAPSULE_SUPPORT) && IS_ENABLED(CONFIG_EFI_PARTITION)

Expand Down Expand Up @@ -197,6 +200,10 @@ int board_late_init(void)
gpt_capsule_update_setup();
#endif

#ifdef CONFIG_DM_DVFS
dvfs_init(true);
#endif

return rk_board_late_init();
}

Expand Down