<?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>topic Register writing problem using iowrite32 in P-Series</title>
    <link>https://community.nxp.com/t5/P-Series/Register-writing-problem-using-iowrite32/m-p/1233590#M4979</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We are trying to write physical address using this methods;&lt;/P&gt;&lt;P&gt;1- virtual_addr = ioremap(physical_addr, 512*4)&lt;/P&gt;&lt;P&gt;2- iowrite32(val, virtual_addr )&lt;/P&gt;&lt;P&gt;3- ioread32(virtual_addr )&lt;/P&gt;&lt;P&gt;4- iowrite32(val, virtual_addr + 0x04)&lt;/P&gt;&lt;P&gt;5-ioread32(virtual_addr + 0x04)&lt;/P&gt;&lt;P&gt;We are succesfully write and read at 2-3 steps. But next register write processes are not working. We constantly read 0. (These registers are 1588 timer registers and they have R/W permissions)&lt;/P&gt;&lt;P&gt;Do you have any suggestions?&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
    <pubDate>Fri, 19 Feb 2021 11:23:32 GMT</pubDate>
    <dc:creator>DemirYumruk</dc:creator>
    <dc:date>2021-02-19T11:23:32Z</dc:date>
    <item>
      <title>Register writing problem using iowrite32</title>
      <link>https://community.nxp.com/t5/P-Series/Register-writing-problem-using-iowrite32/m-p/1233590#M4979</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We are trying to write physical address using this methods;&lt;/P&gt;&lt;P&gt;1- virtual_addr = ioremap(physical_addr, 512*4)&lt;/P&gt;&lt;P&gt;2- iowrite32(val, virtual_addr )&lt;/P&gt;&lt;P&gt;3- ioread32(virtual_addr )&lt;/P&gt;&lt;P&gt;4- iowrite32(val, virtual_addr + 0x04)&lt;/P&gt;&lt;P&gt;5-ioread32(virtual_addr + 0x04)&lt;/P&gt;&lt;P&gt;We are succesfully write and read at 2-3 steps. But next register write processes are not working. We constantly read 0. (These registers are 1588 timer registers and they have R/W permissions)&lt;/P&gt;&lt;P&gt;Do you have any suggestions?&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Fri, 19 Feb 2021 11:23:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/Register-writing-problem-using-iowrite32/m-p/1233590#M4979</guid>
      <dc:creator>DemirYumruk</dc:creator>
      <dc:date>2021-02-19T11:23:32Z</dc:date>
    </item>
    <item>
      <title>Re: Register writing problem using iowrite32</title>
      <link>https://community.nxp.com/t5/P-Series/Register-writing-problem-using-iowrite32/m-p/1235019#M4980</link>
      <description>&lt;P&gt;There is a lot of indirection in this request. If you are ioremap()'ing the&lt;BR /&gt;the dedicated IEEE 1588 timer region, the registers at the offset 0 and 4 are&lt;BR /&gt;read-olny, there is no point in writing to them. Furthermore, 512*4 does not &lt;BR /&gt;match the size of the dedicated timer CCSR memory region.&lt;/P&gt;
&lt;P&gt;If utilize DPAA IEEE 1588 dedicated timer is really what you want to do,&lt;BR /&gt;first of all, consider using &lt;A href="https://source.codeaurora.org/external/qoriq/qoriq-components/linux/tree/drivers/net/ethernet/freescale/sdk_fman/Peripherals/FM/Rtc" target="_self"&gt;the existing driver&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;If you are to implement a driver from scratch, see&lt;A href="https://community.nxp.com/t5/QorIQ/Accessing-dtSEC-registers-using-ioremap/m-p/1233571/highlight/true#M10067" target="_self"&gt; my comments to your&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.nxp.com/t5/QorIQ/Accessing-dtSEC-registers-using-ioremap/m-p/1233571/highlight/true#M10067" target="_self"&gt;earlier post.&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Platon&lt;/P&gt;</description>
      <pubDate>Tue, 23 Feb 2021 13:42:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/Register-writing-problem-using-iowrite32/m-p/1235019#M4980</guid>
      <dc:creator>bpe</dc:creator>
      <dc:date>2021-02-23T13:42:14Z</dc:date>
    </item>
  </channel>
</rss>

