public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Heiko Schocher <hs@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH V3 12/19] i2c: lpi2c: add lpi2c driver for i.MX7ULP
Date: Thu, 23 Feb 2017 04:49:42 +0100	[thread overview]
Message-ID: <58AE5BD6.6010806@denx.de> (raw)
In-Reply-To: <1487751717-8559-13-git-send-email-peng.fan@nxp.com>

Hello Peng,

Am 22.02.2017 um 09:21 schrieb Peng Fan:
> Add lpi2c driver for i.MX7ULP.
> Need to enable the two options to use this driver:
> CONFIG_DM_I2C=y
> CONFIG_SYS_LPI2C_IMX=y
>
> Signed-off-by: Peng Fan <peng.fan@nxp.com>
> Cc: Stefano Babic <sbabic@denx.de>
> Cc: Heiko Schocher <hs@denx.de>
> ---
>
> V3:
>   none
> V2:
>   none
>
>   arch/arm/include/asm/arch-mx7ulp/imx_lpi2c.h | 520 +++++++++++++++++++++++++++
>   drivers/i2c/Kconfig                          |   6 +
>   drivers/i2c/Makefile                         |   1 +
>   drivers/i2c/imx_lpi2c.c                      | 462 ++++++++++++++++++++++++
>   4 files changed, 989 insertions(+)
>   create mode 100644 arch/arm/include/asm/arch-mx7ulp/imx_lpi2c.h
>   create mode 100644 drivers/i2c/imx_lpi2c.c
>

just a nitpick ...

[...]
> diff --git a/drivers/i2c/Kconfig b/drivers/i2c/Kconfig
> index 39f62da..0bee0c4 100644
> --- a/drivers/i2c/Kconfig
> +++ b/drivers/i2c/Kconfig
> @@ -109,6 +109,12 @@ config SYS_I2C_INTEL
>   	  the I2C API meaning that any I2C operations will immediately fail
>   	  for now.
>
> +config SYS_LPI2C_IMX
> +	bool "NXP i.MX LPI2C driver"
> +	depends on ARCH_MX7ULP
> +	help
> +	  Add support for the NXP i.MX LPI2C driver.
> +
>   config SYS_I2C_MXC
>   	bool "NXP i.MX I2C driver"
>   	depends on MX6
> diff --git a/drivers/i2c/Makefile b/drivers/i2c/Makefile
> index 7c86198..2cbe3bc 100644
> --- a/drivers/i2c/Makefile
> +++ b/drivers/i2c/Makefile
> @@ -24,6 +24,7 @@ obj-$(CONFIG_SYS_I2C_FSL) += fsl_i2c.o
>   obj-$(CONFIG_SYS_I2C_FTI2C010) += fti2c010.o
>   obj-$(CONFIG_SYS_I2C_IHS) += ihs_i2c.o
>   obj-$(CONFIG_SYS_I2C_INTEL) += intel_i2c.o
> +obj-$(CONFIG_SYS_LPI2C_IMX) += imx_lpi2c.o

All I2C config symbls have an "I2C" ... and you name the driver
imx_lpi2c, but the config symbol lpi2c_imx ... can you please
rename it to CONFIG_SYS_I2C_IMX_LPI2C and sort the list alphabetical?
(heh... with the rename it is on the correct place ;-)

Thanks!

Beside of this, you can add my:

Acked-by: Heiko Schocher <hs@denx.de>

bye,
Heiko
-- 
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany

  reply	other threads:[~2017-02-23  3:49 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-22  8:21 [U-Boot] [PATCH V3 00/19] imx: add i.MX7ULP support Peng Fan
2017-02-22  8:21 ` [U-Boot] [PATCH V3 01/19] imx: mx7ulp: Add mx7ulp to Kconfig Peng Fan
2017-02-22  8:21 ` [U-Boot] [PATCH V3 02/19] imx: mx7ulp: add registers header file Peng Fan
2017-02-22  8:21 ` [U-Boot] [PATCH V3 03/19] imx: mx7ulp: add iomux driver to support IOMUXC0 and IOMUXC1 Peng Fan
2017-02-22  8:21 ` [U-Boot] [PATCH V3 04/19] imx: mx7ulp: Add clock framework and functions Peng Fan
2017-02-22  8:21 ` [U-Boot] [PATCH V3 05/19] imx: mx7ulp: Add soc level initialization codes " Peng Fan
2017-02-22  8:21 ` [U-Boot] [PATCH V3 06/19] imx: mx7ulp: Implement the clock functions for i2c driver Peng Fan
2017-02-22  8:21 ` [U-Boot] [PATCH V3 07/19] gpio: Add Rapid GPIO2P driver for i.MX7ULP Peng Fan
2017-02-22  8:21 ` [U-Boot] [PATCH V3 08/19] mxc_ocotp: Update driver to support OCOTP controller on i.MX7ULP Peng Fan
2017-02-22  8:21 ` [U-Boot] [PATCH V3 09/19] mx7ulp: Add iomux pins header file Peng Fan
2017-02-22  8:21 ` [U-Boot] [PATCH V3 10/19] wdog: Add the watchdog driver for MX7ULP Peng Fan
2017-02-22  8:21 ` [U-Boot] [PATCH V3 11/19] pinctrl: Add i.MX7ULP pinctrl driver Peng Fan
2017-02-22  8:21 ` [U-Boot] [PATCH V3 12/19] i2c: lpi2c: add lpi2c driver for i.MX7ULP Peng Fan
2017-02-23  3:49   ` Heiko Schocher [this message]
2017-02-22  8:21 ` [U-Boot] [PATCH V3 13/19] serial: lpuart: restructure lpuart driver Peng Fan
2017-02-24  2:16   ` Alison Wang
2017-02-22  8:21 ` [U-Boot] [PATCH V3 14/19] serial: lpuart: add i.MX7ULP support Peng Fan
2017-02-22  8:21 ` [U-Boot] [PATCH V3 15/19] mx7ulp: Add HAB boot support Peng Fan
2017-02-22  8:21 ` [U-Boot] [PATCH V3 16/19] arm: dts: add i.MX7ULP dtsi file Peng Fan
2017-02-22  8:21 ` [U-Boot] [PATCH V3 17/19] mmc: fsl_esdhc: support i.MX7ULP Peng Fan
2017-02-22  8:21 ` [U-Boot] [PATCH V3 18/19] imx: imx7ulp: add EVK board support Peng Fan
2017-02-22  8:21 ` [U-Boot] [PATCH V3 19/19] imx: mx7ulp_evk: enable mmc/regulator support Peng Fan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=58AE5BD6.6010806@denx.de \
    --to=hs@denx.de \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox