mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] ARM: i.MX6: clarify usage of /dev/imx-ocotp
@ 2015-07-14 11:55 Stefan Christ
  2015-07-20  5:39 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Stefan Christ @ 2015-07-14 11:55 UTC (permalink / raw)
  To: barebox

Explain the relationship between the OCOTP addresses from the i.MX6
Reference Manual and the file offset in '/dev/imx-ocotp'.

Signed-off-by: Stefan Christ <s.christ@phytec.de>
---
 arch/arm/mach-imx/Kconfig | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/arch/arm/mach-imx/Kconfig b/arch/arm/mach-imx/Kconfig
index f8f6004..147c411 100644
--- a/arch/arm/mach-imx/Kconfig
+++ b/arch/arm/mach-imx/Kconfig
@@ -676,8 +676,10 @@ config IMX_OCOTP_WRITE
 	prompt "Enable write support of i.MX6 CPUs OTP fuses"
 	depends on IMX_OCOTP
 	help
-	  This adds write support to IMX6 On-Chip OTP registers.
-	  Example of set MAC to 12:34:56:78:9A:BC (2 words with offset 0x22 * 4):
+	  This adds write support to IMX6 On-Chip OTP registers. Example of set
+	  MAC to 12:34:56:78:9A:BC (2 words with address 0x22 (OCOTP_MAC0) and
+	  address 0x23 (OCOTP_MAC1)). To calculate the file offset multiply
+	  the value of the address by 4.
 		mw -l -d /dev/imx-ocotp 0x8C 0x00001234
 		mw -l -d /dev/imx-ocotp 0x88 0x56789ABC
 
-- 
1.9.1


_______________________________________________
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] ARM: i.MX6: clarify usage of /dev/imx-ocotp
  2015-07-14 11:55 [PATCH] ARM: i.MX6: clarify usage of /dev/imx-ocotp Stefan Christ
@ 2015-07-20  5:39 ` Sascha Hauer
  0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2015-07-20  5:39 UTC (permalink / raw)
  To: Stefan Christ; +Cc: barebox

On Tue, Jul 14, 2015 at 01:55:14PM +0200, Stefan Christ wrote:
> Explain the relationship between the OCOTP addresses from the i.MX6
> Reference Manual and the file offset in '/dev/imx-ocotp'.
> 
> Signed-off-by: Stefan Christ <s.christ@phytec.de>
> ---
>  arch/arm/mach-imx/Kconfig | 6 ++++--
>  1 file changed, 4 insertions(+), 2 deletions(-)

Applied, thanks

Sascha

-- 
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:[~2015-07-20  5:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-14 11:55 [PATCH] ARM: i.MX6: clarify usage of /dev/imx-ocotp Stefan Christ
2015-07-20  5:39 ` Sascha Hauer

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