<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>i.MX ProcessorsのトピックRe: Read and Write OTP register from linux</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Read-and-Write-OTP-register-from-linux/m-p/397900#M58437</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Is HW_OCOTP_CRYPTO used for secure boot ?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Yuri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 May 2015 09:59:21 GMT</pubDate>
    <dc:creator>Yuri</dc:creator>
    <dc:date>2015-05-05T09:59:21Z</dc:date>
    <item>
      <title>Read and Write OTP register from linux</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Read-and-Write-OTP-register-from-linux/m-p/397893#M58430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm working on a project using IMX28.&lt;/P&gt;&lt;P&gt;For this project, I would like to store (On chip and not in the SD Card memory) the serial number of my board and an crypto key (not for secure boot, only for communication cryptography).&lt;/P&gt;&lt;P&gt;I think On-Chip OTP can do the trick.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I would like to know how to read and write OTP registers directly from embedded linux ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'm using Freescale Yocto dizzy for the compilation (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://github.com/Freescale/fsl-community-bsp-platform" target="_blank"&gt;https://github.com/Freescale/fsl-community-bsp-platform&lt;/A&gt;&lt;SPAN&gt; -b dizzy).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks for your help,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Damien&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 May 2015 08:12:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Read-and-Write-OTP-register-from-linux/m-p/397893#M58430</guid>
      <dc:creator>dgotfroi</dc:creator>
      <dc:date>2015-05-04T08:12:28Z</dc:date>
    </item>
    <item>
      <title>Re: Read and Write OTP register from linux</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Read-and-Write-OTP-register-from-linux/m-p/397894#M58431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Damien&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use memtool utility.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Saurabh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 May 2015 08:26:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Read-and-Write-OTP-register-from-linux/m-p/397894#M58431</guid>
      <dc:creator>saurabh206</dc:creator>
      <dc:date>2015-05-04T08:26:07Z</dc:date>
    </item>
    <item>
      <title>Re: Read and Write OTP register from linux</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Read-and-Write-OTP-register-from-linux/m-p/397895#M58432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it a native embedded tool ? I can not find it either on my embedded linux, neither on the freescale BSP (on my host machine).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Damien&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 May 2015 08:34:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Read-and-Write-OTP-register-from-linux/m-p/397895#M58432</guid>
      <dc:creator>dgotfroi</dc:creator>
      <dc:date>2015-05-04T08:34:52Z</dc:date>
    </item>
    <item>
      <title>Re: Read and Write OTP register from linux</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Read-and-Write-OTP-register-from-linux/m-p/397896#M58433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Damien&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can build with yocto "bitbake imx-test"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Saurabh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 May 2015 08:44:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Read-and-Write-OTP-register-from-linux/m-p/397896#M58433</guid>
      <dc:creator>saurabh206</dc:creator>
      <dc:date>2015-05-04T08:44:55Z</dc:date>
    </item>
    <item>
      <title>Re: Read and Write OTP register from linux</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Read-and-Write-OTP-register-from-linux/m-p/397897#M58434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Verdana','sans-serif';"&gt;&amp;nbsp; You may use Linux sysfs options of Linux, for example as shown in the following &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Verdana','sans-serif';"&gt;thread :&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/message/444770"&gt;How to read i.MX6DQ unique ID.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Yuri&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 02:34:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Read-and-Write-OTP-register-from-linux/m-p/397897#M58434</guid>
      <dc:creator>Yuri</dc:creator>
      <dc:date>2015-05-05T02:34:25Z</dc:date>
    </item>
    <item>
      <title>Re: Read and Write OTP register from linux</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Read-and-Write-OTP-register-from-linux/m-p/397898#M58435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yuri, How can I use your solution ? I don't have any option for OCOTP in the virtual/kernel menuconfig, so I don't have "fsl_otp" directory in "/sys".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use yocto dizzy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Damien&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDIT : Is HW_OCOTP_CRYPTO used for secure boot ? Or can I store an AES key in this register (not use for secure boot, only use for communication encryption). I will use secure boot in the future with another key.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 06:55:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Read-and-Write-OTP-register-from-linux/m-p/397898#M58435</guid>
      <dc:creator>dgotfroi</dc:creator>
      <dc:date>2015-05-05T06:55:35Z</dc:date>
    </item>
    <item>
      <title>Re: Read and Write OTP register from linux</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Read-and-Write-OTP-register-from-linux/m-p/397899#M58436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp; I am afraid community BSP release does not support the OTP.&lt;BR /&gt;Nevertheless :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;OTP can accessed via /sys/fsl_otp if enabled below kernel config:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; Device Drivers&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Character devices&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;*&amp;gt;Freescale On-Chip OTP Memory Support&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Generally for i.MX28 it is higly recommended to use the the OTP tools.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.freescale.com/webapp/Download?colCode=IMX_OPT_TOOLS&amp;amp;appType=license&amp;amp;location=null&amp;amp;fasp=1&amp;amp;WT_TYPE=Programmers%20(Flash,%20etc.)&amp;amp;WT_VENDOR=FREESCALE&amp;amp;WT_FILE_FORMAT=zip&amp;amp;WT_ASSET=Downloads&amp;amp;fileExt=.zip&amp;amp;Parent_nodeId=1284991947390728025901&amp;amp;Parent_pageType=product" title="https://www.freescale.com/webapp/Download?colCode=IMX_OPT_TOOLS&amp;amp;appType=license&amp;amp;location=null&amp;amp;fasp=1&amp;amp;WT_TYPE=Programmers%20(Flash,%20etc.)&amp;amp;WT_VENDOR=FREESCALE&amp;amp;WT_FILE_FORMAT=zip&amp;amp;WT_ASSET=Downloads&amp;amp;fileExt=.zip&amp;amp;Parent_nodeId=1284991947390728025901&amp;amp;Parent_pageType=product"&gt;https://www.freescale.com/webapp/Download?colCode=IMX_OPT_TOOLS&amp;amp;appType=license&amp;amp;location=null&amp;amp;fasp=1&amp;amp;WT_TYPE=Programmers…&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Yuri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 09:53:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Read-and-Write-OTP-register-from-linux/m-p/397899#M58436</guid>
      <dc:creator>Yuri</dc:creator>
      <dc:date>2015-05-05T09:53:13Z</dc:date>
    </item>
    <item>
      <title>Re: Read and Write OTP register from linux</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Read-and-Write-OTP-register-from-linux/m-p/397900#M58437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Is HW_OCOTP_CRYPTO used for secure boot ?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Yuri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 09:59:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Read-and-Write-OTP-register-from-linux/m-p/397900#M58437</guid>
      <dc:creator>Yuri</dc:creator>
      <dc:date>2015-05-05T09:59:21Z</dc:date>
    </item>
    <item>
      <title>Re: Read and Write OTP register from linux</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Read-and-Write-OTP-register-from-linux/m-p/397901#M58438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i'm afraid, I didn't have this options in my kernel config :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Capture.PNG.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/50072i3CCF57A89DF0C68B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG.png" alt="Capture.PNG.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use BitBurner.exe from OTP tools to burn OTP fuses, but I need to read these fuses from linux.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to burn fuses directly from linux ? I tried with memtool but it doesn't seem to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;gt; &lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;Is HW_OCOTP_CRYPTO used for secure boot ?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Yes.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I only have 128 bits to store 160 bits :smileyconfused:.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 10:08:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Read-and-Write-OTP-register-from-linux/m-p/397901#M58438</guid>
      <dc:creator>dgotfroi</dc:creator>
      <dc:date>2015-05-05T10:08:31Z</dc:date>
    </item>
    <item>
      <title>Re: Read and Write OTP register from linux</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Read-and-Write-OTP-register-from-linux/m-p/397902#M58439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I finally used the patch from Stephan Wahren (&lt;A href="http://lists.infradead.org/pipermail/linux-arm-kernel/2014-October/295228.html" title="http://lists.infradead.org/pipermail/linux-arm-kernel/2014-October/295228.html"&gt;[PATCH RFC V3 0/3] mxs: add ocotp support for i.MX23 and i.MX28&lt;/A&gt; ).&lt;/P&gt;&lt;P&gt;I have now read only access to OCOTP in "/sys/devices/soc0/80000000.apb/80000000.apbh/8002c000.ocotp/fuses/"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks for your help, my issue is solved.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2015 13:00:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Read-and-Write-OTP-register-from-linux/m-p/397902#M58439</guid>
      <dc:creator>dgotfroi</dc:creator>
      <dc:date>2015-05-08T13:00:19Z</dc:date>
    </item>
    <item>
      <title>Re: Read and Write OTP register from linux</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Read-and-Write-OTP-register-from-linux/m-p/397903#M58440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;I'm working with kernel 4.9.21 on a i.MX28. I've configured the mxs-ocotp driver and I can read out the hexdump&lt;/P&gt;&lt;P&gt;from the nvmem device.&lt;/P&gt;&lt;P&gt;hexdump /sys/bus/platform/drivers/mxs-ocotp/8002c000.ocotp/mxs-ocotp0/nvmem &lt;BR /&gt;0000000 0000 0000 0000 0000 0000 0000 0000 0000&lt;BR /&gt;*&lt;BR /&gt;0000020 ffd9 c302 0000 0000 0000 0000 0000 0000&lt;BR /&gt;0000030 0000 0000 0000 0000 0000 0000 0000 0000&lt;BR /&gt;0000040 ffff c302 0000 0000 0000 0000 0000 0000&lt;BR /&gt;0000050 0000 0000 0000 0000 0000 0000 0000 0000&lt;BR /&gt;*&lt;BR /&gt;0000120 0000 000c 0000 0000 0000 0000 0000 0000&lt;BR /&gt;0000130 0000 0000 0000 0000 0000 0000 0000 0000&lt;BR /&gt;0000140 0105 853b 0000 0000 0000 0000 0000 0000&lt;BR /&gt;0000150 312e d449 0000 0000 0000 0000 0000 0000&lt;BR /&gt;0000160 01e3 ade5 0000 0000 0000 0000 0000 0000&lt;BR /&gt;0000170 0000 0000 0000 0000 0000 0000 0000 0000&lt;BR /&gt;*&lt;BR /&gt;0000190 01e3 ade5 0000 0000 0000 0000 0000 0000&lt;BR /&gt;00001a0 0000 0000 0000 0000 0000 0000 0000 0000&lt;BR /&gt;*&lt;BR /&gt;0000210 0000 0010 0000 0000 0000 0000 0000 0000&lt;BR /&gt;0000220 0000 0000 0000 0000 0000 0000 0000 0000&lt;BR /&gt;*&lt;BR /&gt;00002a0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So far so good... Now I want to write the MAC addr into the otp register. first of all, there is no implementation for a write function in the mx-ocotp.c. I've now added one, by my self. Now my question is, how can I write the in the correct way my parameters to this function...?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm pretty sure there is a simple way to write this stuff....&lt;/P&gt;&lt;P&gt;or does anyone know a better solution for this issue?&lt;/P&gt;&lt;P&gt;Here is the implementation:&lt;/P&gt;&lt;P&gt;static int mxs_ocotp_write(void *context, unsigned int offset,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; void *val, size_t bytes)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* We don't want to support writing */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printk("Writing otp would be nice....!!!!!!\n"); &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printk("offset: %i, value: %lu, bytes: %i ....!!!!!!\n", offset, val, bytes);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return 0;&lt;BR /&gt;}&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;static struct nvmem_config ocotp_config = {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .name = "mxs-ocotp",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .read_only = false,&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .stride = 16,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .word_size = 4,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .owner = THIS_MODULE,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .reg_read = mxs_ocotp_read,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .reg_write = mxs_ocotp_write,&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Nov 2017 13:52:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Read-and-Write-OTP-register-from-linux/m-p/397903#M58440</guid>
      <dc:creator>emptyfridge</dc:creator>
      <dc:date>2017-11-13T13:52:59Z</dc:date>
    </item>
  </channel>
</rss>

