mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH v1] i.MX: hab: fix compile after define renames
@ 2017-03-28  9:14 Oleksij Rempel
  2017-04-04  6:45 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Oleksij Rempel @ 2017-03-28  9:14 UTC (permalink / raw)
  To: barebox; +Cc: Oleksij Rempel

Some defines was renamed by this patch:
| commit 75e98198234ce18ab15f581cf7b52aaf0b46d792
| i.MX: Add fusemap for VF610

which was not included in my initial patch. So fix it.

Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
---
 drivers/hab/hab.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/drivers/hab/hab.c b/drivers/hab/hab.c
index 56d49e8e3..512ff7ecf 100644
--- a/drivers/hab/hab.c
+++ b/drivers/hab/hab.c
@@ -126,7 +126,7 @@ static int imx_hab_read_srk_hash_ocotp(u8 *__srk)
 	int ret, i;
 
 	for (i = 0; i < SRK_HASH_SIZE / sizeof(uint32_t); i++) {
-		ret = imx_ocotp_read_field(IMX6_OCOTP_SRK_HASH(i), &srk[i]);
+		ret = imx_ocotp_read_field(OCOTP_SRK_HASH(i), &srk[i]);
 		if (ret < 0)
 			return ret;
 	}
@@ -140,13 +140,13 @@ static int imx_hab_write_srk_hash_ocotp(const u8 *__newsrk, unsigned flags)
 	int ret, i;
 
 	for (i = 0; i < SRK_HASH_SIZE / sizeof(uint32_t); i++) {
-		ret = imx_ocotp_write_field(IMX6_OCOTP_SRK_HASH(i), newsrk[i]);
+		ret = imx_ocotp_write_field(OCOTP_SRK_HASH(i), newsrk[i]);
 		if (ret < 0)
 			return ret;
 	}
 
 	if (flags & IMX_SRK_HASH_WRITE_LOCK) {
-		ret = imx_ocotp_write_field(IMX6_OCOTP_SRK_LOCK, 1);
+		ret = imx_ocotp_write_field(OCOTP_SRK_LOCK, 1);
 		if (ret < 0)
 			return ret;
 	}
@@ -161,7 +161,7 @@ static int imx_hab_permanent_write_enable_ocotp(int enable)
 
 static int imx_hab_lockdown_device_ocotp(void)
 {
-	return imx_ocotp_write_field(IMX6_OCOTP_SEC_CONFIG, 1);
+	return imx_ocotp_write_field(OCOTP_SEC_CONFIG_1, 1);
 }
 
 static int imx_hab_device_locked_down_ocotp(void)
@@ -169,7 +169,7 @@ static int imx_hab_device_locked_down_ocotp(void)
 	int ret;
 	unsigned int v;
 
-	ret = imx_ocotp_read_field(IMX6_OCOTP_SEC_CONFIG, &v);
+	ret = imx_ocotp_read_field(OCOTP_SEC_CONFIG_1, &v);
 	if (ret < 0)
 		return ret;
 
-- 
2.11.0


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH v1] i.MX: hab: fix compile after define renames
  2017-03-28  9:14 [PATCH v1] i.MX: hab: fix compile after define renames Oleksij Rempel
@ 2017-04-04  6:45 ` Sascha Hauer
  0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2017-04-04  6:45 UTC (permalink / raw)
  To: Oleksij Rempel; +Cc: barebox

On Tue, Mar 28, 2017 at 11:14:16AM +0200, Oleksij Rempel wrote:
> Some defines was renamed by this patch:
> | commit 75e98198234ce18ab15f581cf7b52aaf0b46d792
> | i.MX: Add fusemap for VF610
> 
> which was not included in my initial patch. So fix it.
> 
> Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
> ---
>  drivers/hab/hab.c | 10 +++++-----
>  1 file changed, 5 insertions(+), 5 deletions(-)

Applied, thanks

Sascha

> 
> diff --git a/drivers/hab/hab.c b/drivers/hab/hab.c
> index 56d49e8e3..512ff7ecf 100644
> --- a/drivers/hab/hab.c
> +++ b/drivers/hab/hab.c
> @@ -126,7 +126,7 @@ static int imx_hab_read_srk_hash_ocotp(u8 *__srk)
>  	int ret, i;
>  
>  	for (i = 0; i < SRK_HASH_SIZE / sizeof(uint32_t); i++) {
> -		ret = imx_ocotp_read_field(IMX6_OCOTP_SRK_HASH(i), &srk[i]);
> +		ret = imx_ocotp_read_field(OCOTP_SRK_HASH(i), &srk[i]);
>  		if (ret < 0)
>  			return ret;
>  	}
> @@ -140,13 +140,13 @@ static int imx_hab_write_srk_hash_ocotp(const u8 *__newsrk, unsigned flags)
>  	int ret, i;
>  
>  	for (i = 0; i < SRK_HASH_SIZE / sizeof(uint32_t); i++) {
> -		ret = imx_ocotp_write_field(IMX6_OCOTP_SRK_HASH(i), newsrk[i]);
> +		ret = imx_ocotp_write_field(OCOTP_SRK_HASH(i), newsrk[i]);
>  		if (ret < 0)
>  			return ret;
>  	}
>  
>  	if (flags & IMX_SRK_HASH_WRITE_LOCK) {
> -		ret = imx_ocotp_write_field(IMX6_OCOTP_SRK_LOCK, 1);
> +		ret = imx_ocotp_write_field(OCOTP_SRK_LOCK, 1);
>  		if (ret < 0)
>  			return ret;
>  	}
> @@ -161,7 +161,7 @@ static int imx_hab_permanent_write_enable_ocotp(int enable)
>  
>  static int imx_hab_lockdown_device_ocotp(void)
>  {
> -	return imx_ocotp_write_field(IMX6_OCOTP_SEC_CONFIG, 1);
> +	return imx_ocotp_write_field(OCOTP_SEC_CONFIG_1, 1);
>  }
>  
>  static int imx_hab_device_locked_down_ocotp(void)
> @@ -169,7 +169,7 @@ static int imx_hab_device_locked_down_ocotp(void)
>  	int ret;
>  	unsigned int v;
>  
> -	ret = imx_ocotp_read_field(IMX6_OCOTP_SEC_CONFIG, &v);
> +	ret = imx_ocotp_read_field(OCOTP_SEC_CONFIG_1, &v);
>  	if (ret < 0)
>  		return ret;
>  
> -- 
> 2.11.0
> 
> 
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
> 

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-04-04  6:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-28  9:14 [PATCH v1] i.MX: hab: fix compile after define renames Oleksij Rempel
2017-04-04  6:45 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox