<?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: ioremap and __raw_writel problems</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/ioremap-and-raw-writel-problems/m-p/682401#M105447</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi kondaveeti&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for questions with __raw_readl function in various kernel versions&lt;/P&gt;&lt;P&gt;please post on kernel mail list, as this is general kernel questions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Jun 2017 00:30:47 GMT</pubDate>
    <dc:creator>igorpadykov</dc:creator>
    <dc:date>2017-06-20T00:30:47Z</dc:date>
    <item>
      <title>ioremap and __raw_writel problems</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/ioremap-and-raw-writel-problems/m-p/682395#M105441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Hi,&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;i want to on a particular gpio function in linux with out using a gpio_set_value and gpio_request and gpio_direction_output function.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;i write a sample example but it is showing wrong results.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Please tell me how to read and write to gpio pad registers in linux.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;void *b;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;b=ioremap(0x0209c000,1024);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ----?here gpio data sheet gpio base address&lt;BR /&gt; printk(KERN_INFO "***********DATA DIRECTION Register is %x\n****",b);&lt;BR /&gt; int value=ioread32(b);&lt;BR /&gt; printk(KERN_INFO "**********READ Value is %d\n*****",value);&lt;BR /&gt; iounmap(b);&lt;BR /&gt;}&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;how to use __raw_writel function to gpio registers in linux .&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jun 2017 05:04:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/ioremap-and-raw-writel-problems/m-p/682395#M105441</guid>
      <dc:creator>kondaveetiarung</dc:creator>
      <dc:date>2017-06-12T05:04:28Z</dc:date>
    </item>
    <item>
      <title>Re: ioremap and __raw_writel problems</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/ioremap-and-raw-writel-problems/m-p/682396#M105442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi kondaveeti&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;usage may differ depending on kernel version, please consider&lt;/P&gt;&lt;P&gt;more convenient way using memtool (imx-test/test/memtool):&lt;BR /&gt;&lt;A href="https://community.nxp.com/www.nxp.com/lgfiles/NMG/MAD/YOCTO/imx-test-5.7.tar.gz" target="test_blank"&gt;www.nxp.com/lgfiles/NMG/MAD/YOCTO/imx-test-5.7.tar.gz&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Usage __raw_writel function in linux may be posted on kernel mail list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;BR /&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>Mon, 12 Jun 2017 06:47:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/ioremap-and-raw-writel-problems/m-p/682396#M105442</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2017-06-12T06:47:08Z</dc:date>
    </item>
    <item>
      <title>Re: ioremap and __raw_writel problems</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/ioremap-and-raw-writel-problems/m-p/682397#M105443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi igor,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your Valuable Reply.&lt;/P&gt;&lt;P&gt;In my Previous kernel versions iam using __raw_real and __raw_writel in 3.0 kernel versions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to use in&amp;nbsp; my driver source code so memtool is not use in my driver source code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Right now iam using Device Tree support in 3.10.17 kernel Version.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please tell me how to use it in this kernel versions,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jun 2017 04:13:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/ioremap-and-raw-writel-problems/m-p/682397#M105443</guid>
      <dc:creator>kondaveetiarung</dc:creator>
      <dc:date>2017-06-13T04:13:03Z</dc:date>
    </item>
    <item>
      <title>Re: ioremap and __raw_writel problems</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/ioremap-and-raw-writel-problems/m-p/682398#M105444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi kondaveeti&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for 3.10.17 one can look at &lt;CODE&gt;__raw_writel in arch/arm/mach-imx/cpu.c :&lt;BR /&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fgit.freescale.com%2Fgit%2Fcgit.cgi%2Fimx%2Flinux-2.6-imx.git%2Ftree%2Farch%2Farm%2Fmach-imx%2Fcpu.c%3Fh%3Dimx_3.10.17_1.0.1_ga%26id%3Drel_imx_3.10.17_1.0.0_beta" rel="nofollow" target="_blank"&gt;http://git.freescale.com/git/cgit.cgi/imx/linux-2.6-imx.git/tree/arch/arm/mach-imx/cpu.c?h=imx_3.10.17_1.0.1_ga&amp;amp;id=rel_imx_3.10.17_1.0.0_beta&lt;/A&gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;~igor&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jun 2017 06:31:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/ioremap-and-raw-writel-problems/m-p/682398#M105444</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2017-06-13T06:31:39Z</dc:date>
    </item>
    <item>
      <title>Re: ioremap and __raw_writel problems</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/ioremap-and-raw-writel-problems/m-p/682399#M105445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi igor,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your Valuable Reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My doubt is if iam working in GPIO Pins.In Iinux 3.0 kernel versions if i want to read and write in gpio registers so i need to use kernel virtual address in linux defined in the&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;arch/arm/plat-mxc/include/mach/mx6.h&lt;/P&gt;&lt;P&gt;#define PERIPBASE_VIRT&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; 0xF2000000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so i will use this virtual address plus gpio port base address plus offset(register address) i will use and i will read.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;same if i want to read gpio pad status Registers how can i use __raw_readl function in device tree kernel 3.10.17 kernels.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jun 2017 06:54:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/ioremap-and-raw-writel-problems/m-p/682399#M105445</guid>
      <dc:creator>kondaveetiarung</dc:creator>
      <dc:date>2017-06-13T06:54:42Z</dc:date>
    </item>
    <item>
      <title>Re: ioremap and __raw_writel problems</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/ioremap-and-raw-writel-problems/m-p/682400#M105446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;Please give your Valuable Rely.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jun 2017 16:20:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/ioremap-and-raw-writel-problems/m-p/682400#M105446</guid>
      <dc:creator>kondaveetiarung</dc:creator>
      <dc:date>2017-06-19T16:20:49Z</dc:date>
    </item>
    <item>
      <title>Re: ioremap and __raw_writel problems</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/ioremap-and-raw-writel-problems/m-p/682401#M105447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi kondaveeti&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for questions with __raw_readl function in various kernel versions&lt;/P&gt;&lt;P&gt;please post on kernel mail list, as this is general kernel questions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jun 2017 00:30:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/ioremap-and-raw-writel-problems/m-p/682401#M105447</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2017-06-20T00:30:47Z</dc:date>
    </item>
  </channel>
</rss>

