cpufreq: ti-cpufreq: Add support for OPP_PLUS
diff mbox series

Message ID 20200211072355.5476-1-lokeshvutla@ti.com
State New
Delegated to: viresh kumar
Headers show
Series
  • cpufreq: ti-cpufreq: Add support for OPP_PLUS
Related show

Commit Message

Lokesh Vutla Feb. 11, 2020, 7:23 a.m. UTC
DRA762 SoC introduces OPP_PLUS which runs at 1.8GHz. Add
support for this OPP in ti-cpufreq driver.

Acked-by: Dave Gerlach <d-gerlach@ti.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
---
 drivers/cpufreq/ti-cpufreq.c | 7 +++++++
 1 file changed, 7 insertions(+)

Comments

Viresh Kumar Feb. 12, 2020, 4:11 a.m. UTC | #1
On 11-02-20, 12:53, Lokesh Vutla wrote:
> DRA762 SoC introduces OPP_PLUS which runs at 1.8GHz. Add
> support for this OPP in ti-cpufreq driver.
> 
> Acked-by: Dave Gerlach <d-gerlach@ti.com>
> Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
> ---
>  drivers/cpufreq/ti-cpufreq.c | 7 +++++++
>  1 file changed, 7 insertions(+)
> 
> diff --git a/drivers/cpufreq/ti-cpufreq.c b/drivers/cpufreq/ti-cpufreq.c
> index 557cb513bf7f..ab0de27539ad 100644
> --- a/drivers/cpufreq/ti-cpufreq.c
> +++ b/drivers/cpufreq/ti-cpufreq.c
> @@ -25,11 +25,14 @@
>  
>  #define DRA7_EFUSE_HAS_OD_MPU_OPP		11
>  #define DRA7_EFUSE_HAS_HIGH_MPU_OPP		15
> +#define DRA76_EFUSE_HAS_PLUS_MPU_OPP		18
>  #define DRA7_EFUSE_HAS_ALL_MPU_OPP		23
> +#define DRA76_EFUSE_HAS_ALL_MPU_OPP		24
>  
>  #define DRA7_EFUSE_NOM_MPU_OPP			BIT(0)
>  #define DRA7_EFUSE_OD_MPU_OPP			BIT(1)
>  #define DRA7_EFUSE_HIGH_MPU_OPP			BIT(2)
> +#define DRA76_EFUSE_PLUS_MPU_OPP		BIT(3)
>  
>  #define OMAP3_CONTROL_DEVICE_STATUS		0x4800244C
>  #define OMAP3_CONTROL_IDCODE			0x4830A204
> @@ -80,6 +83,10 @@ static unsigned long dra7_efuse_xlate(struct ti_cpufreq_data *opp_data,
>  	 */
>  
>  	switch (efuse) {
> +	case DRA76_EFUSE_HAS_PLUS_MPU_OPP:
> +	case DRA76_EFUSE_HAS_ALL_MPU_OPP:
> +		calculated_efuse |= DRA76_EFUSE_PLUS_MPU_OPP;
> +		/* Fall through */
>  	case DRA7_EFUSE_HAS_ALL_MPU_OPP:
>  	case DRA7_EFUSE_HAS_HIGH_MPU_OPP:
>  		calculated_efuse |= DRA7_EFUSE_HIGH_MPU_OPP;

Applied. Thanks.

Patch
diff mbox series

diff --git a/drivers/cpufreq/ti-cpufreq.c b/drivers/cpufreq/ti-cpufreq.c
index 557cb513bf7f..ab0de27539ad 100644
--- a/drivers/cpufreq/ti-cpufreq.c
+++ b/drivers/cpufreq/ti-cpufreq.c
@@ -25,11 +25,14 @@ 
 
 #define DRA7_EFUSE_HAS_OD_MPU_OPP		11
 #define DRA7_EFUSE_HAS_HIGH_MPU_OPP		15
+#define DRA76_EFUSE_HAS_PLUS_MPU_OPP		18
 #define DRA7_EFUSE_HAS_ALL_MPU_OPP		23
+#define DRA76_EFUSE_HAS_ALL_MPU_OPP		24
 
 #define DRA7_EFUSE_NOM_MPU_OPP			BIT(0)
 #define DRA7_EFUSE_OD_MPU_OPP			BIT(1)
 #define DRA7_EFUSE_HIGH_MPU_OPP			BIT(2)
+#define DRA76_EFUSE_PLUS_MPU_OPP		BIT(3)
 
 #define OMAP3_CONTROL_DEVICE_STATUS		0x4800244C
 #define OMAP3_CONTROL_IDCODE			0x4830A204
@@ -80,6 +83,10 @@  static unsigned long dra7_efuse_xlate(struct ti_cpufreq_data *opp_data,
 	 */
 
 	switch (efuse) {
+	case DRA76_EFUSE_HAS_PLUS_MPU_OPP:
+	case DRA76_EFUSE_HAS_ALL_MPU_OPP:
+		calculated_efuse |= DRA76_EFUSE_PLUS_MPU_OPP;
+		/* Fall through */
 	case DRA7_EFUSE_HAS_ALL_MPU_OPP:
 	case DRA7_EFUSE_HAS_HIGH_MPU_OPP:
 		calculated_efuse |= DRA7_EFUSE_HIGH_MPU_OPP;