diff mbox

[U-Boot,3/3] mx7: Add 1.2GHz speed grade entry

Message ID 1487778207-16302-3-git-send-email-fabio.estevam@nxp.com
State Accepted
Commit 9b548bf856ae4a39bec6a1b00f33cae4ec843eec
Delegated to: Stefano Babic
Headers show

Commit Message

Fabio Estevam Feb. 22, 2017, 3:43 p.m. UTC
There are recent MX7 parts that have a 1.2GHz speed grade.

Add support for it.

Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
---
 arch/arm/cpu/armv7/mx7/soc.c | 3 +++
 1 file changed, 3 insertions(+)

Comments

Stefano Babic March 19, 2017, 4:33 p.m. UTC | #1
On 22/02/2017 16:43, Fabio Estevam wrote:
> There are recent MX7 parts that have a 1.2GHz speed grade.
> 
> Add support for it.
> 
> Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
> ---
>  arch/arm/cpu/armv7/mx7/soc.c | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/arch/arm/cpu/armv7/mx7/soc.c b/arch/arm/cpu/armv7/mx7/soc.c
> index 8cde77b..8422f24 100644
> --- a/arch/arm/cpu/armv7/mx7/soc.c
> +++ b/arch/arm/cpu/armv7/mx7/soc.c
> @@ -105,6 +105,7 @@ struct imx_sec_config_fuse_t const imx_sec_config_fuse = {
>  #define OCOTP_TESTER3_SPEED_800MHZ	0
>  #define OCOTP_TESTER3_SPEED_500MHZ	1
>  #define OCOTP_TESTER3_SPEED_1GHZ	2
> +#define OCOTP_TESTER3_SPEED_1P2GHZ	3
>  
>  u32 get_cpu_speed_grade_hz(void)
>  {
> @@ -125,6 +126,8 @@ u32 get_cpu_speed_grade_hz(void)
>  		return 500000000;
>  	case OCOTP_TESTER3_SPEED_1GHZ:
>  		return 1000000000;
> +	case OCOTP_TESTER3_SPEED_1P2GHZ:
> +		return 1200000000;
>  	}
>  	return 0;
>  }
> 
Applied to u-boot-imx, thanks !

Best regards,
Stefano Babic
diff mbox

Patch

diff --git a/arch/arm/cpu/armv7/mx7/soc.c b/arch/arm/cpu/armv7/mx7/soc.c
index 8cde77b..8422f24 100644
--- a/arch/arm/cpu/armv7/mx7/soc.c
+++ b/arch/arm/cpu/armv7/mx7/soc.c
@@ -105,6 +105,7 @@  struct imx_sec_config_fuse_t const imx_sec_config_fuse = {
 #define OCOTP_TESTER3_SPEED_800MHZ	0
 #define OCOTP_TESTER3_SPEED_500MHZ	1
 #define OCOTP_TESTER3_SPEED_1GHZ	2
+#define OCOTP_TESTER3_SPEED_1P2GHZ	3
 
 u32 get_cpu_speed_grade_hz(void)
 {
@@ -125,6 +126,8 @@  u32 get_cpu_speed_grade_hz(void)
 		return 500000000;
 	case OCOTP_TESTER3_SPEED_1GHZ:
 		return 1000000000;
+	case OCOTP_TESTER3_SPEED_1P2GHZ:
+		return 1200000000;
 	}
 	return 0;
 }