All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chuanhua Han <chuanhua.han@nxp.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [EXT] Re: [PATCH 1/7] armv8: lx2160a: The lx2160a platform supports the I2C driver model.
Date: Thu, 30 May 2019 03:46:25 +0000	[thread overview]
Message-ID: <AM0PR04MB4353D14A944848B7E7B3744E97180@AM0PR04MB4353.eurprd04.prod.outlook.com> (raw)
In-Reply-To: <445cf88f-07cc-4388-b2be-10aa7a55f982@denx.de>



> -----Original Message-----
> From: Heiko Schocher <hs@denx.de>
> Sent: 2019年5月24日 12:49
> To: Chuanhua Han <chuanhua.han@nxp.com>
> Cc: albert.u.boot at aribaud.net; Priyanka Jain <priyanka.jain@nxp.com>; Udit
> Agarwal <udit.agarwal@nxp.com>; u-boot at lists.denx.de
> Subject: [EXT] Re: [PATCH 1/7] armv8: lx2160a: The lx2160a platform supports
> the I2C driver model.
> 
> Caution: EXT Email
> 
> Hello Chuanhua Han,
> 
> Am 23.05.2019 um 11:22 schrieb Chuanhua Han:
> > DM_I2C_COMPAT is a compatibility layer that allows using the non-DM
> > I2C API when DM_I2C is used.When DM_I2C_COMPAT is not enabled for
> > compilation, a compilation error will be generated. This patch solves
> > the problem that the i2c-related api of the lx2160a platform does not
> > support dm.
> >
> > Signed-off-by: Chuanhua Han <chuanhua.han@nxp.com>
> > ---
> >   arch/arm/cpu/armv8/fsl-layerscape/Kconfig |  8 ---
> >   board/freescale/common/emc2305.c          | 21 ++++++
> >   board/freescale/common/qixis.c            | 17 +++++
> >   board/freescale/common/sys_eeprom.c       | 84
> +++++++++++++++++++++--
> >   board/freescale/common/vid.c              | 84
> +++++++++++++++++++++++
> >   board/freescale/lx2160a/lx2160a.c         |  8 +++
> >   drivers/ddr/fsl/main.c                    | 36 +++++++++-
> >   7 files changed, 245 insertions(+), 13 deletions(-)
> >
> > diff --git a/arch/arm/cpu/armv8/fsl-layerscape/Kconfig
> > b/arch/arm/cpu/armv8/fsl-layerscape/Kconfig
> > index a843c1eb65..f3eaab960b 100644
> > --- a/arch/arm/cpu/armv8/fsl-layerscape/Kconfig
> > +++ b/arch/arm/cpu/armv8/fsl-layerscape/Kconfig
> > @@ -234,14 +234,6 @@ config ARCH_LX2160A
> >       select ARCH_EARLY_INIT_R
> >       select BOARD_EARLY_INIT_F
> >       select SYS_I2C_MXC
> > -     select SYS_I2C_MXC_I2C1
> > -     select SYS_I2C_MXC_I2C2
> > -     select SYS_I2C_MXC_I2C3
> > -     select SYS_I2C_MXC_I2C4
> > -     select SYS_I2C_MXC_I2C5
> > -     select SYS_I2C_MXC_I2C6
> > -     select SYS_I2C_MXC_I2C7
> > -     select SYS_I2C_MXC_I2C8
> >       imply DISTRO_DEFAULTS
> >       imply PANIC_HANG
> >       imply SCSI
> > diff --git a/board/freescale/common/emc2305.c
> > b/board/freescale/common/emc2305.c
> > index 8523084da9..b1ca051db2 100644
> > --- a/board/freescale/common/emc2305.c
> > +++ b/board/freescale/common/emc2305.c
> > @@ -24,10 +24,22 @@ void set_fan_speed(u8 data)
> >                              I2C_EMC2305_FAN5};
> >
> >       for (index = 0; index < NUM_OF_FANS; index++) {
> > +#ifndef CONFIG_DM_I2C
> >               if (i2c_write(I2C_EMC2305_ADDR, Fan[index], 1, &data,
> 1) != 0) {
> >                       printf("Error: failed to change fan speed @%x\n",
> >                              Fan[index]);
> >               }
> 
> As you switch to DM_I2C, please remove the none DM_I2C case.
> 
> Or is there a reason to support the none DM_I2C case?
There are two types of compatibility here, both DM_I2C and none DM_I2C
> 
> bye,
> Heiko
> --
> --
> DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
> HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
> Phone: +49-8142-66989-52   Fax: +49-8142-66989-80   Email: hs at denx.de

      reply	other threads:[~2019-05-30  3:46 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-23  9:22 [U-Boot] [PATCH 1/7] armv8: lx2160a: The lx2160a platform supports the I2C driver model Chuanhua Han
2019-05-23  9:22 ` [U-Boot] [PATCH 2/7] configs: lx2160a: enable DM support for pcf2127 rtc Chuanhua Han
2019-05-23  9:22 ` [U-Boot] [PATCH 3/7] armv8: dts: fsl-lx2160a: add i2c controller and gpio DT nodes Chuanhua Han
2019-05-24  4:50   ` Heiko Schocher
2019-05-23  9:22 ` [U-Boot] [PATCH 4/7] armv8: lx2160ardb : Add pcf2127 node Chuanhua Han
2019-05-24  4:52   ` Heiko Schocher
2019-05-23  9:22 ` [U-Boot] [PATCH 5/7] drivers: i2c: mxc: Solve the compiler error when using i2c dm mode Chuanhua Han
2019-05-24  4:58   ` Heiko Schocher
2019-05-30  3:44     ` [U-Boot] [EXT] " Chuanhua Han
2019-05-23  9:22 ` [U-Boot] [PATCH 6/7] gpio: do not include <asm/arch/gpio.h> on ARCH_LX2160A Chuanhua Han
2019-05-24  5:01   ` Heiko Schocher
2019-05-30  3:39     ` [U-Boot] [EXT] " Chuanhua Han
2019-05-23  9:22 ` [U-Boot] [PATCH 7/7] armv8: lx2160ardb : Add slave nodes under the i2c0 controller Chuanhua Han
2019-05-24  5:03   ` Heiko Schocher
2019-05-30  3:18     ` [U-Boot] [EXT] " Chuanhua Han
2019-05-24  4:48 ` [U-Boot] [PATCH 1/7] armv8: lx2160a: The lx2160a platform supports the I2C driver model Heiko Schocher
2019-05-30  3:46   ` Chuanhua Han [this message]

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=AM0PR04MB4353D14A944848B7E7B3744E97180@AM0PR04MB4353.eurprd04.prod.outlook.com \
    --to=chuanhua.han@nxp.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.