/third_party/uboot/u-boot-2020.01/arch/arm/cpu/armv7/hi3516ev200/ |
D | lowlevel_init_v300.c | 153 static void get_hpm_value(unsigned int *hpm_core) in get_hpm_value() argument 175 *hpm_core = hpm_value_avg(core_value, NUM_4); in get_hpm_value() 178 static void start_hpm(unsigned int *hpm_core) in start_hpm() argument 180 get_hpm_value(hpm_core); in start_hpm() 183 static void hpm_check(unsigned int *hpm_core) in hpm_check() argument 200 if (*hpm_core < HPM_CORE_MIN) { in hpm_check() 201 *hpm_core = HPM_CORE_MIN; in hpm_check() 204 if (*hpm_core > HPM_CORE_MAX) { in hpm_check() 205 *hpm_core = HPM_CORE_MAX; in hpm_check() 209 sysboot10.bits.sys_hpm_core = *hpm_core; in hpm_check() [all …]
|
/third_party/uboot/u-boot-2020.01/arch/arm/cpu/armv7/hi3516ev300/ |
D | lowlevel_init_v300.c | 149 static void get_hpm_value(unsigned int *hpm_core) in get_hpm_value() argument 171 *hpm_core = hpm_value_avg(core_value, NUM_4); in get_hpm_value() 174 static void start_hpm(unsigned int *hpm_core) in start_hpm() argument 176 get_hpm_value(hpm_core); in start_hpm() 179 static void hpm_check(unsigned int *hpm_core) in hpm_check() argument 196 if (*hpm_core < HPM_CORE_MIN) { in hpm_check() 197 *hpm_core = HPM_CORE_MIN; in hpm_check() 200 if (*hpm_core > HPM_CORE_MAX) { in hpm_check() 201 *hpm_core = HPM_CORE_MAX; in hpm_check() 205 sysboot10.bits.sys_hpm_core = *hpm_core; in hpm_check() [all …]
|
/third_party/uboot/u-boot-2020.01/arch/arm/cpu/armv7/hi3516dv200/ |
D | lowlevel_init_v300.c | 152 static void get_hpm_value(unsigned int *hpm_core) in get_hpm_value() argument 174 *hpm_core = hpm_value_avg(core_value, NUM_4); in get_hpm_value() 177 static void start_hpm(unsigned int *hpm_core) in start_hpm() argument 179 get_hpm_value(hpm_core); in start_hpm() 182 static void hpm_check(unsigned int *hpm_core) in hpm_check() argument 199 if (*hpm_core < HPM_CORE_MIN) { in hpm_check() 200 *hpm_core = HPM_CORE_MIN; in hpm_check() 203 if (*hpm_core > HPM_CORE_MAX) { in hpm_check() 204 *hpm_core = HPM_CORE_MAX; in hpm_check() 208 sysboot10.bits.sys_hpm_core = *hpm_core; in hpm_check() [all …]
|
/third_party/uboot/u-boot-2020.01/arch/arm/cpu/armv7/hi3518ev300/ |
D | lowlevel_init_v300.c | 155 static void get_hpm_value(unsigned int *hpm_core) in get_hpm_value() argument 175 *hpm_core = hpm_value_avg(core_value, NUM_4); in get_hpm_value() 178 static void start_hpm(unsigned int *hpm_core) in start_hpm() argument 180 get_hpm_value(hpm_core); in start_hpm() 183 static void hpm_check(unsigned int *hpm_core) in hpm_check() argument 200 if (*hpm_core < HPM_CORE_MIN) { in hpm_check() 201 *hpm_core = HPM_CORE_MIN; in hpm_check() 204 if (*hpm_core > HPM_CORE_MAX) { in hpm_check() 205 *hpm_core = HPM_CORE_MAX; in hpm_check() 209 sysboot10.bits.sys_hpm_core = *hpm_core; in hpm_check() [all …]
|
/third_party/uboot/u-boot-2020.01/arch/arm/cpu/armv7/hi3516av300/ |
D | lowlevel_init_v300.c | 265 static void get_hpm_value(unsigned int *hpm_core) in get_hpm_value() argument 288 *hpm_core = hpm_value_avg(core_value, NUM_4); in get_hpm_value() 291 static void start_hpm(unsigned int *hpm_core) in start_hpm() argument 293 get_hpm_value(hpm_core); in start_hpm() 296 static void hpm_check(unsigned int *hpm_core) in hpm_check() argument 315 if (*hpm_core < HPM_CORE_MIN) { in hpm_check() 316 *hpm_core = HPM_CORE_MIN; in hpm_check() 319 if (*hpm_core > HPM_CORE_MAX) { in hpm_check() 320 *hpm_core = HPM_CORE_MAX; in hpm_check() 324 sysboot10.bits.sys_hpm_core = *hpm_core; in hpm_check() [all …]
|
/third_party/uboot/u-boot-2020.01/arch/arm/cpu/armv7/hi3516cv500/ |
D | lowlevel_init_v300.c | 267 static void get_hpm_value(unsigned int *hpm_core) in get_hpm_value() argument 290 *hpm_core = hpm_value_avg(core_value, NUM_4); in get_hpm_value() 293 static void start_hpm(unsigned int *hpm_core) in start_hpm() argument 295 get_hpm_value(hpm_core); in start_hpm() 298 static void hpm_check(unsigned int *hpm_core) in hpm_check() argument 317 if (*hpm_core < HPM_CORE_MIN) { in hpm_check() 318 *hpm_core = HPM_CORE_MIN; in hpm_check() 321 if (*hpm_core > HPM_CORE_MAX) { in hpm_check() 322 *hpm_core = HPM_CORE_MAX; in hpm_check() 326 sysboot10.bits.sys_hpm_core = *hpm_core; in hpm_check() [all …]
|
/third_party/uboot/u-boot-2020.01/arch/arm/cpu/armv7/hi3516dv300/ |
D | lowlevel_init_v300.c | 265 static void get_hpm_value(unsigned int *hpm_core) in get_hpm_value() argument 288 *hpm_core = hpm_value_avg(core_value, NUM_4); in get_hpm_value() 291 static void start_hpm(unsigned int *hpm_core) in start_hpm() argument 293 get_hpm_value(hpm_core); in start_hpm() 296 static void hpm_check(unsigned int *hpm_core) in hpm_check() argument 315 if (*hpm_core < HPM_CORE_MIN) { in hpm_check() 316 *hpm_core = HPM_CORE_MIN; in hpm_check() 319 if (*hpm_core > HPM_CORE_MAX) { in hpm_check() 320 *hpm_core = HPM_CORE_MAX; in hpm_check() 324 sysboot10.bits.sys_hpm_core = *hpm_core; in hpm_check() [all …]
|
/third_party/uboot/u-boot-2020.01/arch/arm/cpu/armv7/hi3556av100/ |
D | hisvb.c | 106 static void get_hpm_value(unsigned int *hpm_core, in get_hpm_value() argument 144 *hpm_core = hpm_value_avg(core_value, NUM_4); in get_hpm_value() 149 static void start_hpm(unsigned int *hpm_core, unsigned int *hpm_cpu, in start_hpm() argument 163 get_hpm_value(hpm_core, hpm_cpu, hpm_mda); in start_hpm() 165 *hpm_core = (unsigned int)(short)((short)(*hpm_core) + in start_hpm() 238 static void hpm_check(unsigned int *hpm_core, unsigned int *hpm_cpu, in hpm_check() argument 258 if (*hpm_core < HPM_CORE_MIN) { in hpm_check() 259 *hpm_core = HPM_CORE_MIN; in hpm_check() 263 if (*hpm_core > HPM_CORE_MAX) { in hpm_check() 264 *hpm_core = HPM_CORE_MAX; in hpm_check() [all …]
|
/third_party/uboot/u-boot-2020.01/arch/arm/cpu/armv7/hi3520dv500/ |
D | lowlevel_init_v300.c | 265 static void get_hpm_value(unsigned int *hpm_core) in get_hpm_value() argument 283 *hpm_core = hpm_value_avg(core_value, 4); in get_hpm_value() 287 static void start_hpm(unsigned int *hpm_core) in start_hpm() argument 294 get_hpm_value(hpm_core); in start_hpm() 319 static void hpm_check(unsigned int *hpm_core, int *temperature, unsigned int hpm_from_otp_flag) in hpm_check() argument 327 if (*hpm_core < 220) { //220 in hpm_check() 328 *hpm_core = 220; in hpm_check() 332 if (*hpm_core > 350) { //350 in hpm_check() 333 *hpm_core = 350; in hpm_check() 347 hpm_reg0.bits.sys_hpm_core = *hpm_core; in hpm_check() [all …]
|
/third_party/uboot/u-boot-2020.01/arch/arm/cpu/armv7/hi3521dv200/ |
D | lowlevel_init_v300.c | 272 static void get_hpm_value(unsigned int *hpm_core, unsigned int *hpm_cpu) in get_hpm_value() argument 299 *hpm_core = hpm_value_avg(core_value, 4); in get_hpm_value() 304 static void start_hpm(unsigned int *hpm_core, unsigned int *hpm_cpu) in start_hpm() argument 313 get_hpm_value(hpm_core, hpm_cpu); in start_hpm() 338 static void hpm_check(unsigned int *hpm_core, unsigned int *hpm_cpu, int *temperature, unsigned int… in hpm_check() argument 346 if (*hpm_core < 220) { //220 in hpm_check() 347 *hpm_core = 220; in hpm_check() 351 if (*hpm_core > 350) { //350 in hpm_check() 352 *hpm_core = 350; in hpm_check() 376 hpm_reg0.bits.sys_hpm_core = *hpm_core; in hpm_check() [all …]
|
/third_party/uboot/u-boot-2020.01/arch/arm/cpu/armv7/hi3519av100/ |
D | lowlevel_init_v300.c | 306 static void get_hpm_value(unsigned int *hpm_core, unsigned int *hpm_cpu, in get_hpm_value() argument 358 *hpm_core = hpm_value_avg(core_value, NUM_4); in get_hpm_value() 363 static void start_hpm(unsigned int *hpm_core, unsigned int *hpm_cpu, in start_hpm() argument 375 get_hpm_value(hpm_core, hpm_cpu, hpm_mda); in start_hpm() 412 static void hpm_check(unsigned int *hpm_core, unsigned int *hpm_cpu, in hpm_check() argument 431 if (*hpm_core < HPM_CORE_MIN) { in hpm_check() 432 *hpm_core = HPM_CORE_MIN; in hpm_check() 435 if (*hpm_core > HPM_CORE_MAX) { in hpm_check() 436 *hpm_core = HPM_CORE_MAX; in hpm_check() 458 sysboot10.bits.sys_hpm_core = *hpm_core; in hpm_check() [all …]
|
/third_party/uboot/u-boot-2020.01/arch/arm/cpu/armv8/hi3535av100/ |
D | lowlevel_init_v300.c | 310 static void get_hpm_value(unsigned int *hpm_core, unsigned int *hpm_cpu) in get_hpm_value() argument 347 *hpm_core = hpm_value_avg(core_value,4); in get_hpm_value() 352 static void start_hpm(unsigned int *hpm_core, unsigned int *hpm_cpu) in start_hpm() argument 361 get_hpm_value(hpm_core, hpm_cpu); in start_hpm() 364 static void hpm_check(unsigned int *hpm_core, unsigned int *hpm_cpu, in hpm_check() argument 392 if (*hpm_core < 200) { in hpm_check() 393 *hpm_core = 200; in hpm_check() 397 if (*hpm_core > 300) { in hpm_check() 398 *hpm_core = 300; in hpm_check() 422 hpm_reg0.bits.sys_hpm_core = *hpm_core; in hpm_check() [all …]
|
/third_party/uboot/u-boot-2020.01/arch/arm/cpu/armv8/hi3531dv200/ |
D | lowlevel_init_v300.c | 310 static void get_hpm_value(unsigned int *hpm_core, unsigned int *hpm_cpu) in get_hpm_value() argument 347 *hpm_core = hpm_value_avg(core_value, 4); in get_hpm_value() 352 static void start_hpm(unsigned int *hpm_core, unsigned int *hpm_cpu) in start_hpm() argument 361 get_hpm_value(hpm_core, hpm_cpu); in start_hpm() 364 static void hpm_check(unsigned int *hpm_core, unsigned int *hpm_cpu, in hpm_check() argument 392 if (*hpm_core < 200) { in hpm_check() 393 *hpm_core = 200; in hpm_check() 397 if (*hpm_core > 300) { in hpm_check() 398 *hpm_core = 300; in hpm_check() 422 hpm_reg0.bits.sys_hpm_core = *hpm_core; in hpm_check() [all …]
|
/third_party/uboot/u-boot-2020.01/arch/arm/cpu/armv8/hi3569v100/ |
D | lowlevel_init_v300.c | 351 static void get_hpm_value(unsigned int *hpm_core, unsigned int *hpm_cpu, in get_hpm_value() argument 397 *hpm_core = hpm_value_avg(core_value,NUM_4); in get_hpm_value() 403 static void start_hpm(unsigned int *hpm_core, unsigned int *hpm_cpu, in start_hpm() argument 417 get_hpm_value(hpm_core, hpm_cpu, hpm_gpu, hpm_mda); in start_hpm() 423 static void adjust_hpm(unsigned int *hpm_core, unsigned int *hpm_cpu, in adjust_hpm() argument 436 *hpm_core -= NUM_4; in adjust_hpm() 441 *hpm_core += NUM_2; in adjust_hpm() 445 if (*hpm_core > (otp_hpm_core + 10)) /* 10: Increment */ in adjust_hpm() 446 *hpm_core = otp_hpm_core - NUM_5; in adjust_hpm() 462 static void save_hpm(unsigned int hpm_core, unsigned int hpm_cpu, in save_hpm() argument [all …]
|
/third_party/uboot/u-boot-2020.01/arch/arm/cpu/armv8/hi3559av100/ |
D | lowlevel_init_v300.c | 351 static void get_hpm_value(unsigned int *hpm_core, unsigned int *hpm_cpu, in get_hpm_value() argument 397 *hpm_core = hpm_value_avg(core_value, NUM_4); in get_hpm_value() 403 static void start_hpm(unsigned int *hpm_core, unsigned int *hpm_cpu, in start_hpm() argument 417 get_hpm_value(hpm_core, hpm_cpu, hpm_gpu, hpm_mda); in start_hpm() 423 static void adjust_hpm(unsigned int *hpm_core, unsigned int *hpm_cpu, in adjust_hpm() argument 436 *hpm_core -= NUM_4; in adjust_hpm() 441 *hpm_core += NUM_2; in adjust_hpm() 445 if (*hpm_core > (otp_hpm_core + 10)) /* 10: Increment */ in adjust_hpm() 446 *hpm_core = otp_hpm_core - NUM_5; in adjust_hpm() 462 static void save_hpm(unsigned int hpm_core, unsigned int hpm_cpu, in save_hpm() argument [all …]
|