All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tom Rini <trini@konsulko.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 08/12] i2c: Drop use of CONFIG_I2C_HARD
Date: Fri, 12 May 2017 10:19:33 -0400	[thread overview]
Message-ID: <20170512141933.GL5701@bill-the-cat> (raw)
In-Reply-To: <CAPnjgZ1np+u3u94x_heQG=1riGGMRVo8zw799pnF-18reY80VQ@mail.gmail.com>

On Fri, May 12, 2017 at 08:12:14AM -0600, Simon Glass wrote:
> Hi Tom,
> 
> On 11 May 2017 at 18:33, Tom Rini <trini@konsulko.com> wrote:
> > On Thu, May 11, 2017 at 06:23:57PM -0600, Simon Glass wrote:
> >
> >> Drop use of this long-deprecated option.
> > [snip]
> >> diff --git a/include/configs/PATI.h b/include/configs/PATI.h
> >> index e53db2485b..046aa0d5f1 100644
> >> --- a/include/configs/PATI.h
> >> +++ b/include/configs/PATI.h
> >> @@ -38,7 +38,6 @@
> >>   */
> >>  #define CONFIG_CMD_REGINFO
> >>  #define CONFIG_CMD_REGINFO
> >> -#define CONFIG_CMD_EEPROM
> >>  #define CONFIG_CMD_IRQ
> >>
> >>  #define CONFIG_BOOTCOMMAND   ""      /* autoboot command                     */
> > [snip]
> >> diff --git a/include/configs/am335x_evm.h b/include/configs/am335x_evm.h
> >> index fc8a08f5b7..5c1a6d64da 100644
> >> --- a/include/configs/am335x_evm.h
> >> +++ b/include/configs/am335x_evm.h
> >> @@ -176,11 +176,6 @@
> >>  #define CONFIG_SYS_NS16550_COM5              0x481a8000      /* UART4 */
> >>  #define CONFIG_SYS_NS16550_COM6              0x481aa000      /* UART5 */
> >>
> >> -#define CONFIG_CMD_EEPROM
> >> -#define CONFIG_ENV_EEPROM_IS_ON_I2C
> >> -#define CONFIG_SYS_I2C_EEPROM_ADDR   0x50    /* Main EEPROM */
> >> -#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN       2
> >> -
> >>  /* PMIC support */
> >>  #define CONFIG_POWER_TPS65217
> >>  #define CONFIG_POWER_TPS65910
> >> diff --git a/include/configs/am43xx_evm.h b/include/configs/am43xx_evm.h
> >> index 1feb946834..ba185ebf5a 100644
> >> --- a/include/configs/am43xx_evm.h
> >> +++ b/include/configs/am43xx_evm.h
> >> @@ -22,12 +22,6 @@
> >>  #define CONFIG_SYS_NS16550_SERIAL
> >>  #endif
> >>
> >> -/* I2C Configuration */
> >> -#define CONFIG_CMD_EEPROM
> >> -#define CONFIG_ENV_EEPROM_IS_ON_I2C
> >> -#define CONFIG_SYS_I2C_EEPROM_ADDR   0x50    /* Main EEPROM */
> >> -#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN       2
> >> -
> >>  /* Power */
> >>  #define CONFIG_POWER
> >>  #define CONFIG_POWER_I2C
> >> diff --git a/include/configs/ti_armv7_keystone2.h b/include/configs/ti_armv7_keystone2.h
> >> index 868464cd32..3161c50abb 100644
> >> --- a/include/configs/ti_armv7_keystone2.h
> >> +++ b/include/configs/ti_armv7_keystone2.h
> >> @@ -208,7 +208,6 @@
> >>  /* U-Boot command configuration */
> >>  #define CONFIG_CMD_SAVES
> >>  #define CONFIG_CMD_UBIFS
> >> -#define CONFIG_CMD_EEPROM
> >>
> >>  /* U-Boot general configuration */
> >>  #define CONFIG_MISC_INIT_R
> >
> > Er, what's all of this about EEPROM stuff you're dropping?
> 
> It uses I2C (as does the environment and RTC on some boards) so I need
> to drop this too. Let me know if you can think of a better way.

Am I confused, or is CONFIG_SYS_I2C staying (so far..) and
CONFIG_HARD_I2C going?  cmd/eeprom.c supports CONFIG_SYS_I2C, so we only
need to drop CMD_EEPROM stuff iff the board was also CONFIG_HARD_I2C.

> I am not sure this will be enough though. I looked through the CONFIG
> whitelist a few days ago and there are many boards that have
> board-specific settings like I2C addresses, speeds, etc. I am not sure
> how we can keep these board around since we really don't want to add
> these sorts of board-specific settings to Kconfig. They should be in
> the device tree.

Yes, there's a lot of CONFIG_xxx stuff that's going to need to move out
of the CONFIG namespace as it doesn't make sense there.  And I have been
sending out some private pings about converting PowerPC stuff (and I'm
getting my own house in order right now).

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170512/57d5fc6c/attachment.sig>

  reply	other threads:[~2017-05-12 14:19 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-12  0:23 [U-Boot] [PATCH v2 00/12] i2c: Remove old I2C support Simon Glass
2017-05-12  0:23 ` [U-Boot] [PATCH v2 01/12] i2c: Drop use of CONFIG_I2C_HARD Simon Glass
2017-05-12  0:23 ` [U-Boot] [PATCH v2 02/12] i2c: powerpc: Remove use of CONFIG_HARD_I2C Simon Glass
2017-05-12  0:23 ` [U-Boot] [PATCH v2 03/12] i2c: cm5200: Drop use of CONFIG_I2C_HARD Simon Glass
2017-05-12  0:23 ` [U-Boot] [PATCH v2 04/12] i2c: pdm360ng: " Simon Glass
2017-05-12  0:23 ` [U-Boot] [PATCH v2 05/12] i2c: keymile: " Simon Glass
2017-05-12  0:23 ` [U-Boot] [PATCH v2 06/12] i2c: mxc_i2c: " Simon Glass
2017-05-12  0:23 ` [U-Boot] [PATCH v2 07/12] i2c: omap: Modify code to work without CONFIG_I2C_HARD Simon Glass
2017-05-12  0:30   ` Tom Rini
2017-05-12  0:23 ` [U-Boot] [PATCH v2 08/12] i2c: Drop use of CONFIG_I2C_HARD Simon Glass
2017-05-12  0:33   ` Tom Rini
2017-05-12 14:12     ` Simon Glass
2017-05-12 14:19       ` Tom Rini [this message]
2017-05-12 14:29         ` Simon Glass
2017-05-12 14:47           ` Tom Rini
2017-05-12 15:12             ` Simon Glass
2017-05-13  3:09               ` Simon Glass
2017-05-12  0:23 ` [U-Boot] [PATCH v2 09/12] i2c: README: Drop CONFIG_SYS_I2C_INIT_MPC5XXX Simon Glass
2017-05-12  0:23 ` [U-Boot] [PATCH v2 10/12] i2c: Drop CONFIG_SYS_I2C_BOARD_LATE_INIT Simon Glass
2017-05-12  0:24 ` [U-Boot] [PATCH v2 11/12] Drop CONFIG_I2CFAST Simon Glass
2017-05-12  0:24 ` [U-Boot] [PATCH v2 12/12] Drop use of CONFIG_I2C_SOFT Simon Glass

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=20170512141933.GL5701@bill-the-cat \
    --to=trini@konsulko.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.