msm: msm8228: possibility to force acpu_freq_tbl_8226_1p6

Force using acpu_freq_tbl_8226_1p6 to unlock extra CPU Frequencies for devices with MSM8228 CPU by setting speed bin to 1. Config disabled by default.
This commit is contained in:
xXPR0T0TYPEXx
2019-08-09 12:10:37 +02:00
committed by Francescodario Cuzzocrea
parent 367a867ab7
commit 0a7ea22799
3 changed files with 14 additions and 0 deletions
@@ -56,6 +56,9 @@ CONFIG_MPU6500_ADJUST_SMART_ALERT=y
#CONFIG_SENSORS_HSCDTD008A is not set
#CONFIG_INPUT_MPU6500_SELFTEST=y
#CPU
#CONFIG_MSM8228_USE_ACPU_FREQ_TBL_1P6 is not set
#CAMERA
#USB
+8
View File
@@ -3532,6 +3532,14 @@ config MSM_CPU_FREQ_MIN
endif # CPU_FREQ_MSM
config MSM8228_USE_ACPU_FREQ_TBL_1P6
bool "Extra CPU Frequencies"
depends on SEC_ATLANTIC_PROJECT || SEC_S3VE_PROJECT
default n
help
Force using acpu_freq_tbl_8226_1p6 to unlock extra CPU Frequencies
for devices with MSM8228 CPU by setting speed bin to 1.
config MSM_DEVFREQ_CPUBW
bool "Devfreq device for CPU<->DDR IB/AB BW voting"
depends on PM_DEVFREQ
+3
View File
@@ -247,6 +247,9 @@ static void get_speed_bin(struct platform_device *pdev, int *bin, int *version)
dev_info(&pdev->dev, "Speed bin not set. Defaulting to 0!\n");
*bin = 0;
} else {
#ifdef CONFIG_MSM8228_USE_ACPU_FREQ_TBL_1P6
*bin = 1;
#endif
dev_info(&pdev->dev, "Speed bin: %d\n", *bin);
}