<?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 How to read GPIO status in plugin.S in IMX6D Android 7 u-boot ? in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/How-to-read-GPIO-status-in-plugin-S-in-IMX6D-Android-7-u-boot/m-p/1729171#M213136</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am trying to read the status of a GPIO in plugin.S in u-boot.&lt;/P&gt;&lt;P&gt;I have tried the following, but seemed not reading the correct values.&lt;/P&gt;&lt;P&gt;#define GPIO2_DR_ADDR 0x020A0000&lt;BR /&gt;#define GPIO2_DIR_ADDR 0x020A0004&lt;BR /&gt;#define GPIO2_DIR_CFG 0x00000000&lt;/P&gt;&lt;P&gt;#define IOMUXC_SW_PAD_CTL_PAD_NAND_DATA02_ADDR 0x020E06EC&lt;BR /&gt;#define BOARD_0_PAD_CFG 0x3000&lt;BR /&gt;#define IOMUXC_SW_MUX_CTL_PAD_NAND_DATA02_ADDR 0x020E0304&lt;BR /&gt;#define BOARD_0_ALT_CFG 0x5&lt;/P&gt;&lt;P&gt;&amp;nbsp;ldr r0, =IOMUXC_SW_PAD_CTL_PAD_NAND_DATA02_ADDR&lt;BR /&gt;&amp;nbsp;ldr r1, =BOARD_0_PAD_CFG&lt;BR /&gt;&amp;nbsp;str r1, [r0]&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;ldr r0, =IOMUXC_SW_MUX_CTL_PAD_NAND_DATA02_ADDR&lt;BR /&gt;&amp;nbsp;ldr r1, =BOARD_0_ALT_CFG&lt;BR /&gt;&amp;nbsp;str r1, [r0]&lt;/P&gt;&lt;P&gt;ldr r0, =GPIO2_DIR_ADDR&lt;BR /&gt;ldr r1, =GPIO2_DIR_CFG&lt;BR /&gt;str r1, [r0]&lt;/P&gt;&lt;P&gt;ldr r0, =GPIO2_DR_ADDR&lt;BR /&gt;ldr r1, [r0]&lt;/P&gt;&lt;P&gt;The bit 3 of r1 is expected to have the status of GPIO 34, but it returns always 0.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am wondering what are missing and not correct. Is there need any other resources should be configured ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Taehyuk&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 25 Sep 2023 22:31:19 GMT</pubDate>
    <dc:creator>tkwon_werfen</dc:creator>
    <dc:date>2023-09-25T22:31:19Z</dc:date>
    <item>
      <title>How to read GPIO status in plugin.S in IMX6D Android 7 u-boot ?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-read-GPIO-status-in-plugin-S-in-IMX6D-Android-7-u-boot/m-p/1729171#M213136</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am trying to read the status of a GPIO in plugin.S in u-boot.&lt;/P&gt;&lt;P&gt;I have tried the following, but seemed not reading the correct values.&lt;/P&gt;&lt;P&gt;#define GPIO2_DR_ADDR 0x020A0000&lt;BR /&gt;#define GPIO2_DIR_ADDR 0x020A0004&lt;BR /&gt;#define GPIO2_DIR_CFG 0x00000000&lt;/P&gt;&lt;P&gt;#define IOMUXC_SW_PAD_CTL_PAD_NAND_DATA02_ADDR 0x020E06EC&lt;BR /&gt;#define BOARD_0_PAD_CFG 0x3000&lt;BR /&gt;#define IOMUXC_SW_MUX_CTL_PAD_NAND_DATA02_ADDR 0x020E0304&lt;BR /&gt;#define BOARD_0_ALT_CFG 0x5&lt;/P&gt;&lt;P&gt;&amp;nbsp;ldr r0, =IOMUXC_SW_PAD_CTL_PAD_NAND_DATA02_ADDR&lt;BR /&gt;&amp;nbsp;ldr r1, =BOARD_0_PAD_CFG&lt;BR /&gt;&amp;nbsp;str r1, [r0]&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;ldr r0, =IOMUXC_SW_MUX_CTL_PAD_NAND_DATA02_ADDR&lt;BR /&gt;&amp;nbsp;ldr r1, =BOARD_0_ALT_CFG&lt;BR /&gt;&amp;nbsp;str r1, [r0]&lt;/P&gt;&lt;P&gt;ldr r0, =GPIO2_DIR_ADDR&lt;BR /&gt;ldr r1, =GPIO2_DIR_CFG&lt;BR /&gt;str r1, [r0]&lt;/P&gt;&lt;P&gt;ldr r0, =GPIO2_DR_ADDR&lt;BR /&gt;ldr r1, [r0]&lt;/P&gt;&lt;P&gt;The bit 3 of r1 is expected to have the status of GPIO 34, but it returns always 0.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am wondering what are missing and not correct. Is there need any other resources should be configured ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Taehyuk&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Sep 2023 22:31:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-read-GPIO-status-in-plugin-S-in-IMX6D-Android-7-u-boot/m-p/1729171#M213136</guid>
      <dc:creator>tkwon_werfen</dc:creator>
      <dc:date>2023-09-25T22:31:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to read GPIO status in plugin.S in IMX6D Android 7 u-boot ?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-read-GPIO-status-in-plugin-S-in-IMX6D-Android-7-u-boot/m-p/1730366#M213250</link>
      <description>&lt;P&gt;You could write the code in mx6sabresd.c to read the status of GPIO.&lt;/P&gt;
&lt;P&gt;e.g.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/nxp-imx/uboot-imx/blob/imx_v2017.03_4.9.88_2.0.0_ga/board/freescale/mx6sabresd/mx6sabresd.c" target="_blank"&gt;https://github.com/nxp-imx/uboot-imx/blob/imx_v2017.03_4.9.88_2.0.0_ga/board/freescale/mx6sabresd/mx6sabresd.c&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2023 09:32:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-read-GPIO-status-in-plugin-S-in-IMX6D-Android-7-u-boot/m-p/1730366#M213250</guid>
      <dc:creator>jimmychan</dc:creator>
      <dc:date>2023-09-27T09:32:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to read GPIO status in plugin.S in IMX6D Android 7 u-boot ?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-read-GPIO-status-in-plugin-S-in-IMX6D-Android-7-u-boot/m-p/1730671#M213281</link>
      <description>&lt;P&gt;Thanks for the comment.&lt;/P&gt;&lt;P&gt;but the functions in the file is called after plugin.S is executed?&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2023 15:56:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-read-GPIO-status-in-plugin-S-in-IMX6D-Android-7-u-boot/m-p/1730671#M213281</guid>
      <dc:creator>tkwon_werfen</dc:creator>
      <dc:date>2023-09-27T15:56:48Z</dc:date>
    </item>
  </channel>
</rss>

