mirror of
https://github.com/torvalds/linux.git
synced 2026-06-08 06:25:52 +02:00
soc: rockchip: Change the parameter of power model for cpu and npu
Change-Id: I73724946fce82311d29de4538b8446e87d67dc92 Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
This commit is contained in:
parent
f536573bf6
commit
43b189a712
|
|
@ -53,6 +53,13 @@ cpu0: cpu@0 {
|
|||
operating-points-v2 = <&cpu0_opp_table>;
|
||||
dynamic-power-coefficient = <74>;
|
||||
#cooling-cells = <2>;
|
||||
power-model {
|
||||
compatible = "simple-power-model";
|
||||
ref-leakage = <31>;
|
||||
static-coefficient = <100000>;
|
||||
ts = <59740 24105 (-245) 7>;
|
||||
thermal-zone = "soc-thermal";
|
||||
};
|
||||
};
|
||||
|
||||
cpu1: cpu@1 {
|
||||
|
|
@ -576,7 +583,7 @@ thermal_zones: thermal-zones {
|
|||
soc_thermal: soc-thermal {
|
||||
polling-delay-passive = <20>; /* milliseconds */
|
||||
polling-delay = <1000>; /* milliseconds */
|
||||
sustainable-power = <527>; /* milliwatts */
|
||||
sustainable-power = <977>; /* milliwatts */
|
||||
|
||||
thermal-sensors = <&tsadc 0>;
|
||||
|
||||
|
|
@ -1543,9 +1550,10 @@ npu: npu@ffbc0000 {
|
|||
|
||||
npu_power_model: power-model {
|
||||
compatible = "simple-power-model";
|
||||
static-coefficient = <342478>;
|
||||
ref-leakage = <31>;
|
||||
static-coefficient = <100000>;
|
||||
dynamic-coefficient = <3080>;
|
||||
ts = <32000 4700 (-80) 2>;
|
||||
ts = <8861 30312 (-500) 10>;
|
||||
thermal-zone = "soc-thermal";
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -115,7 +115,11 @@ static u32 calculate_volt_scaling_factor(const u32 voltage_mv)
|
|||
|
||||
const u32 v3 = v3_big / 1000;
|
||||
|
||||
return v3;
|
||||
const u32 v4_big = v3 * voltage_mv;
|
||||
|
||||
const u32 v4 = v4_big / 1000;
|
||||
|
||||
return v4;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user