<?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: Using I2C api in uboot with 7ulp</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Using-I2C-api-in-uboot-with-7ulp/m-p/1030673#M152222</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Arthur&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.MX7ULP (along with i.MX8QM/QXP) uses LPI2C module different&lt;/P&gt;&lt;P&gt;from I2C module used in i.MX7D procesor (and i.MX8MQ).&lt;/P&gt;&lt;P&gt;Its driver&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://source.codeaurora.org/external/imx/uboot-imx/tree/drivers/i2c/imx_lpi2c.c?h=imx_v2019.04_4.19.35_1.1.0" title="https://source.codeaurora.org/external/imx/uboot-imx/tree/drivers/i2c/imx_lpi2c.c?h=imx_v2019.04_4.19.35_1.1.0"&gt;imx_lpi2c.c\i2c\drivers - uboot-imx - i.MX U-Boot&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"CONFIG_SYS_I2C_IMX_LPI2C=y"&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://source.codeaurora.org/external/imx/uboot-imx/tree/configs/mx7ulp_evk_defconfig?h=imx_v2019.04_4.19.35_1.1.0" title="https://source.codeaurora.org/external/imx/uboot-imx/tree/configs/mx7ulp_evk_defconfig?h=imx_v2019.04_4.19.35_1.1.0"&gt;mx7ulp_evk_defconfig\configs - uboot-imx - i.MX U-Boot&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also examples can be found in MX7ULP MCUXpresso SDK for i.MX Cortex-M &lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://mcuxpresso.nxp.com/en/welcome" title="https://mcuxpresso.nxp.com/en/welcome"&gt;Welcome | MCUXpresso SDK Builder&lt;/A&gt;&amp;nbsp;&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>Fri, 14 Feb 2020 10:55:55 GMT</pubDate>
    <dc:creator>igorpadykov</dc:creator>
    <dc:date>2020-02-14T10:55:55Z</dc:date>
    <item>
      <title>Using I2C api in uboot with 7ulp</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Using-I2C-api-in-uboot-with-7ulp/m-p/1030672#M152221</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;&amp;nbsp;I am using uboot from official repository Aurora :&amp;nbsp;&lt;A class="link-titled" href="https://source.codeaurora.org/external/imx/uboot-imx" title="https://source.codeaurora.org/external/imx/uboot-imx"&gt;uboot-imx - i.MX U-Boot&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tag :&amp;nbsp;rel_imx_4.14.98_2.3.0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the&amp;nbsp;mx7ulp_10x10_arm2 defconfig.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to use i2c api in my board init code to&amp;nbsp;drive a peripheral.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used to&amp;nbsp;pilot i2c device with i2c_setup, i2c_write, etc...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem is that I have plenty of problem to used i2c api with 7ulp in uboot.&lt;/P&gt;&lt;P&gt;There is plenty of missing stuff in code.&lt;STRONG&gt; Is there a new&amp;nbsp;I2C api in recent uboot ? LPI2C ?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some example of my modification :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First to used&amp;nbsp;I2C api from&amp;nbsp; i2c-mxv7.c, there is no define for 7ulp SOC, I have to add it :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;diff --git a/arch/arm/mach-imx/Makefile b/arch/arm/mach-imx/Makefile&lt;BR /&gt;index 1d13812b8a..2376fff7ab 100644&lt;BR /&gt;--- a/arch/arm/mach-imx/Makefile&lt;BR /&gt;+++ b/arch/arm/mach-imx/Makefile&lt;BR /&gt;@@ -54,6 +54,7 @@ ifeq ($(SOC),$(filter $(SOC),mx7ulp))&lt;BR /&gt; obj-y += cache.o&lt;BR /&gt; obj-$(CONFIG_IMX_VIDEO_SKIP) += video.o&lt;BR /&gt; obj-$(CONFIG_SECURE_BOOT) += hab.o&lt;BR /&gt;+obj-$(CONFIG_SYS_I2C_MXC) += i2c-mxv7.o&lt;BR /&gt; endif&lt;BR /&gt; ifeq ($(SOC),$(filter $(SOC),vf610))&lt;BR /&gt; obj-y += ddrmc-vf610.o&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then after including&amp;nbsp;&lt;STRONG&gt;&amp;lt;asm/mach-imx/mxc_i2c.h&amp;gt;&lt;/STRONG&gt; in my code, I have plenty of multiple define&lt;/P&gt;&lt;P&gt;from&amp;nbsp;&lt;STRONG&gt;arch/arm/include/asm/mach-imx/iomux-v3.h&lt;/STRONG&gt;. So I have to comment plenty of stuff&lt;/P&gt;&lt;P&gt;from &lt;STRONG&gt;iomux-v3&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;In file included from ./arch/arm/include/asm/mach-imx/mxc_i2c.h:9:0,&lt;BR /&gt; from board/freescale/mx7ulp_arm2/mx7ulp_arm2.c:14:&lt;BR /&gt;./arch/arm/include/asm/mach-imx/iomux-v3.h:51:0: warning: "MUX_CTRL_OFS_MASK" redefined&lt;BR /&gt; #define MUX_CTRL_OFS_MASK ((iomux_v3_cfg_t)0xfff &amp;lt;&amp;lt; MUX_CTRL_OFS_SHIFT)&lt;BR /&gt;&lt;BR /&gt;In file included from board/freescale/mx7ulp_arm2/mx7ulp_arm2.c:12:0:&lt;BR /&gt;./arch/arm/include/asm/arch/iomux.h:48:0: note: this is the location of the previous definition&lt;BR /&gt; #define MUX_CTRL_OFS_MASK ((iomux_cfg_t)0xffff &amp;lt;&amp;lt; MUX_CTRL_OFS_SHIFT)&lt;BR /&gt;&lt;BR /&gt;In file included from ./arch/arm/include/asm/mach-imx/mxc_i2c.h:9:0,&lt;BR /&gt; from board/freescale/mx7ulp_arm2/mx7ulp_arm2.c:14:&lt;BR /&gt;./arch/arm/include/asm/mach-imx/iomux-v3.h:55:0: warning: "MUX_SEL_INPUT_OFS_SHIFT" redefined&lt;BR /&gt; #define MUX_SEL_INPUT_OFS_SHIFT 24&lt;BR /&gt;&lt;BR /&gt;In file included from board/freescale/mx7ulp_arm2/mx7ulp_arm2.c:12:0:&lt;BR /&gt;./arch/arm/include/asm/arch/iomux.h:49:0: note: this is the location of the previous definition&lt;BR /&gt; #define MUX_SEL_INPUT_OFS_SHIFT 16&lt;BR /&gt;&lt;BR /&gt;In file included from ./arch/arm/include/asm/mach-imx/mxc_i2c.h:9:0,&lt;BR /&gt; from board/freescale/mx7ulp_arm2/mx7ulp_arm2.c:14:&lt;BR /&gt;./arch/arm/include/asm/mach-imx/iomux-v3.h:56:0: warning: "MUX_SEL_INPUT_OFS_MASK" redefined&lt;BR /&gt; #define MUX_SEL_INPUT_OFS_MASK ((iomux_v3_cfg_t)0xfff &amp;lt;&amp;lt; \&lt;BR /&gt;&lt;BR /&gt;In file included from board/freescale/mx7ulp_arm2/mx7ulp_arm2.c:12:0:&lt;BR /&gt;./arch/arm/include/asm/arch/iomux.h:50:0: note: this is the location of the previous definition&lt;BR /&gt; #define MUX_SEL_INPUT_OFS_MASK ((iomux_cfg_t)0xffff &amp;lt;&amp;lt; \&lt;BR /&gt;&lt;BR /&gt;In file included from ./arch/arm/include/asm/mach-imx/mxc_i2c.h:9:0,&lt;BR /&gt; from board/freescale/mx7ulp_arm2/mx7ulp_arm2.c:14:&lt;BR /&gt;./arch/arm/include/asm/mach-imx/iomux-v3.h:59:0: warning: "MUX_MODE_SHIFT" redefined&lt;BR /&gt; #define MUX_MODE_SHIFT 36&lt;BR /&gt;&lt;BR /&gt;In file included from board/freescale/mx7ulp_arm2/mx7ulp_arm2.c:12:0:&lt;BR /&gt;./arch/arm/include/asm/arch/iomux.h:53:0: note: this is the location of the previous definition&lt;BR /&gt; #define MUX_MODE_SHIFT 32&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is also no I2CX_BASE_ADDR available in include. Only&amp;nbsp;LPI2CX_BASE_ADDR ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Feb 2020 09:07:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Using-I2C-api-in-uboot-with-7ulp/m-p/1030672#M152221</guid>
      <dc:creator>arthur_rythm</dc:creator>
      <dc:date>2020-02-14T09:07:28Z</dc:date>
    </item>
    <item>
      <title>Re: Using I2C api in uboot with 7ulp</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Using-I2C-api-in-uboot-with-7ulp/m-p/1030673#M152222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Arthur&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.MX7ULP (along with i.MX8QM/QXP) uses LPI2C module different&lt;/P&gt;&lt;P&gt;from I2C module used in i.MX7D procesor (and i.MX8MQ).&lt;/P&gt;&lt;P&gt;Its driver&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://source.codeaurora.org/external/imx/uboot-imx/tree/drivers/i2c/imx_lpi2c.c?h=imx_v2019.04_4.19.35_1.1.0" title="https://source.codeaurora.org/external/imx/uboot-imx/tree/drivers/i2c/imx_lpi2c.c?h=imx_v2019.04_4.19.35_1.1.0"&gt;imx_lpi2c.c\i2c\drivers - uboot-imx - i.MX U-Boot&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"CONFIG_SYS_I2C_IMX_LPI2C=y"&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://source.codeaurora.org/external/imx/uboot-imx/tree/configs/mx7ulp_evk_defconfig?h=imx_v2019.04_4.19.35_1.1.0" title="https://source.codeaurora.org/external/imx/uboot-imx/tree/configs/mx7ulp_evk_defconfig?h=imx_v2019.04_4.19.35_1.1.0"&gt;mx7ulp_evk_defconfig\configs - uboot-imx - i.MX U-Boot&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also examples can be found in MX7ULP MCUXpresso SDK for i.MX Cortex-M &lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://mcuxpresso.nxp.com/en/welcome" title="https://mcuxpresso.nxp.com/en/welcome"&gt;Welcome | MCUXpresso SDK Builder&lt;/A&gt;&amp;nbsp;&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>Fri, 14 Feb 2020 10:55:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Using-I2C-api-in-uboot-with-7ulp/m-p/1030673#M152222</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2020-02-14T10:55:55Z</dc:date>
    </item>
    <item>
      <title>Re: Using I2C api in uboot with 7ulp</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Using-I2C-api-in-uboot-with-7ulp/m-p/1030674#M152223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/igorpadykov"&gt;igorpadykov&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was trying to start to work on this topic. I was looking at your link.&lt;/P&gt;&lt;P&gt;This API seems to be cool but all functions are static!&lt;/P&gt;&lt;P&gt;Do I have to include .c file in an ugly way?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is quite weird to have a source file with only static function.&lt;/P&gt;&lt;P&gt;Moreover, there is not one example in all uboot source using this lpi2c api.&lt;/P&gt;&lt;P&gt;No more luck in official uboot tree.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Feb 2020 10:16:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Using-I2C-api-in-uboot-with-7ulp/m-p/1030674#M152223</guid>
      <dc:creator>arthur_rythm</dc:creator>
      <dc:date>2020-02-28T10:16:53Z</dc:date>
    </item>
    <item>
      <title>Re: Using I2C api in uboot with 7ulp</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Using-I2C-api-in-uboot-with-7ulp/m-p/1030675#M152224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Arthur&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you are right, there are no examples in uboot sources&lt;/P&gt;&lt;P&gt;using lpi2c api, so you will have to write it yourself.&lt;/P&gt;&lt;P&gt;Please note that nxp has special service for helping&lt;/P&gt;&lt;P&gt;with software customizations: &lt;A class="link-titled" href="https://www.nxp.com/design/engineering-services:SW-SUPPORT" title="https://www.nxp.com/design/engineering-services:SW-SUPPORT"&gt;Commercial Support and Engineering Services | NXP&lt;/A&gt;&amp;nbsp;&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>Fri, 28 Feb 2020 13:19:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Using-I2C-api-in-uboot-with-7ulp/m-p/1030675#M152224</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2020-02-28T13:19:40Z</dc:date>
    </item>
  </channel>
</rss>

