intelblocks/cpu: Add function to set CPU clock to minimum value
commit52c58929fd8d9011e7990c042418624b567ffa1b
authorWerner Zeh <werner.zeh@siemens.com>
Wed, 21 Nov 2018 09:38:12 +0000 (21 10:38 +0100)
committerPatrick Georgi <pgeorgi@google.com>
Fri, 23 Nov 2018 11:28:01 +0000 (23 11:28 +0000)
tree86cb63615dd58f4e7c97a8c3039aa8959fb47a57
parent6d19a20f5fb46956d4324dff28ed4b59dc7776a3
intelblocks/cpu: Add function to set CPU clock to minimum value

Provide a library function to set the CPU frequency to minimum
value. This will result in the lowest possible CPU clock with
the lowest possible power consumption. This can be useful in mobile
devices where the power dissipation is limited.

This setting can be overruled by the OS if it has an p-state driver
which can adjust the clock to it's need.

Change-Id: I817095b13ab8cbaab82f25c72947b00ee854d549
Signed-off-by: Werner Zeh <werner.zeh@siemens.com>
Reviewed-on: https://review.coreboot.org/c/29771
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Mario Scheithauer <mario.scheithauer@siemens.com>
src/soc/intel/common/block/cpu/cpulib.c
src/soc/intel/common/block/include/intelblocks/cpulib.h