[U-Boot] [PATCH 00/11] i2c: Remove old I2C support

Simon Glass sjg at chromium.org
Sun Apr 23 15:35:14 UTC 2017


We have about 6600 CONFIG options to convert to Kconfig at the time of
writing and our target is to complete work by the end of the year[1]. We
have no hope of doing this unless we adopt a somewhat more agressive
approach to dropping old boards and options.

There are a very large number of deprecated or very old options. It does
not make sense to convert these to Kconfig just to carry the debt for
another few years. We should remove these options.

Rather than completely dropping boards, one idea is to remove the parts
of their support which have not been migrated. This was done with some
Samsung boards recently, and it provided the maintainers with enough time
to come in and make the changes a few cycles later.

CONFIG_I2C_SOFT and CONFIG_I2C_HARD are very old. This series removes
them. Boards which rely on these options for I2C support lose some of
their functionality. To regain it they would need to be migrated to driver
model. We could later fully remove some of these boards if they are not
converted, but perhaps a software approach is better for now?

[1] https://www.mail-archive.com/u-boot@lists.denx.de/msg235550.html


Simon Glass (11):
  i2c: Drop use of CONFIG_I2C_HARD
  i2c: powerpc: Remove use of CONFIG_HARD_I2C
  i2c: cm5200: Drop use of CONFIG_I2C_HARD
  i2c: pdm360ng: Drop use of CONFIG_I2C_HARD
  i2c: keymile: Drop use of CONFIG_I2C_HARD
  i2c: mxc_i2c: Drop use of CONFIG_I2C_HARD
  i2c: Drop use of CONFIG_I2C_HARD
  i2c: README: Drop CONFIG_SYS_I2C_INIT_MPC5XXX
  i2c: Drop CONFIG_SYS_I2C_BOARD_LATE_INIT
  Drop CONFIG_I2CFAST
  Drop use of CONFIG_I2C_SOFT

 README                                       |  64 +--
 arch/arm/include/asm/arch-armada100/config.h |  12 -
 arch/powerpc/cpu/mpc512x/Makefile            |   1 -
 arch/powerpc/cpu/mpc512x/i2c.c               | 386 --------------
 arch/powerpc/cpu/mpc5xxx/Makefile            |   1 -
 arch/powerpc/cpu/mpc5xxx/i2c.c               | 456 -----------------
 arch/powerpc/cpu/mpc8260/Makefile            |   2 +-
 arch/powerpc/cpu/mpc8260/commproc.c          |   4 -
 arch/powerpc/cpu/mpc8260/i2c.c               | 741 ---------------------------
 arch/powerpc/cpu/mpc8xx/Makefile             |   1 -
 arch/powerpc/cpu/mpc8xx/i2c.c                | 672 ------------------------
 board/alphaproject/ap_sh4a_4a/ap_sh4a_4a.c   |  12 +-
 board/cm5200/cm5200.c                        |  36 +-
 board/cm5200/cmd_cm5200.c                    |  32 +-
 board/davedenx/aria/aria.c                   |   3 -
 board/esd/mecp5123/mecp5123.c                |  12 +-
 board/freescale/m52277evb/README             |   1 -
 board/freescale/m53017evb/README             |   1 -
 board/freescale/m5373evb/README              |   1 -
 board/freescale/m54455evb/README             |   1 -
 board/freescale/m547xevb/README              |   1 -
 board/freescale/mpc5121ads/mpc5121ads.c      |  21 -
 board/ifm/ac14xx/ac14xx.c                    |  53 +-
 board/keymile/km82xx/km82xx.c                |   5 -
 board/keymile/km_arm/km_arm.c                |   4 -
 board/pdm360ng/pdm360ng.c                    |  30 --
 board/renesas/r0p7734/r0p7734.c              |  12 +-
 board/ti/am335x/board.c                      |   6 +-
 board/ti/am43xx/board.c                      |   3 +-
 board/tqc/tqm5200/tqm5200.c                  |  18 +-
 cmd/eeprom.c                                 |   2 -
 common/board_f.c                             |   4 +-
 common/board_r.c                             |  17 -
 common/stdio.c                               |   5 +-
 configs/MiniFAP_defconfig                    |   1 -
 configs/O2D300_defconfig                     |   1 -
 configs/O2DNT2_RAMBOOT_defconfig             |   1 -
 configs/O2DNT2_defconfig                     |   1 -
 configs/O2D_defconfig                        |   1 -
 configs/O2I_defconfig                        |   1 -
 configs/O2MNT_O2M110_defconfig               |   1 -
 configs/O2MNT_O2M112_defconfig               |   1 -
 configs/O2MNT_O2M113_defconfig               |   1 -
 configs/O2MNT_defconfig                      |   1 -
 configs/O3DNT_defconfig                      |   1 -
 configs/TQM5200S_HIGHBOOT_defconfig          |   1 -
 configs/TQM5200S_defconfig                   |   1 -
 configs/TQM5200_B_HIGHBOOT_defconfig         |   1 -
 configs/TQM5200_B_defconfig                  |   1 -
 configs/TQM5200_STK100_defconfig             |   1 -
 configs/TQM5200_defconfig                    |   1 -
 configs/a4m072_defconfig                     |   1 -
 configs/ac14xx_defconfig                     |   1 -
 configs/ap_sh4a_4a_defconfig                 |   1 -
 configs/apx4devkit_defconfig                 |   1 -
 configs/aria_defconfig                       |   1 -
 configs/aspenite_defconfig                   |   1 -
 configs/cam5200_defconfig                    |   1 -
 configs/cam5200_niosflash_defconfig          |   1 -
 configs/charon_defconfig                     |   1 -
 configs/cm5200_defconfig                     |   1 -
 configs/digsy_mtc_RAMBOOT_defconfig          |   1 -
 configs/digsy_mtc_defconfig                  |   1 -
 configs/digsy_mtc_rev5_RAMBOOT_defconfig     |   1 -
 configs/digsy_mtc_rev5_defconfig             |   1 -
 configs/fo300_defconfig                      |   1 -
 configs/gplugd_defconfig                     |   1 -
 configs/ipek01_defconfig                     |   1 -
 configs/m28evk_defconfig                     |   1 -
 configs/mecp5123_defconfig                   |   1 -
 configs/motionpro_defconfig                  |   1 -
 configs/mpc5121ads_defconfig                 |   1 -
 configs/mpc5121ads_rev2_defconfig            |   1 -
 configs/pcm030_LOWBOOT_defconfig             |   1 -
 configs/pcm030_defconfig                     |   1 -
 configs/pdm360ng_defconfig                   |   1 -
 configs/r0p7734_defconfig                    |   1 -
 configs/v38b_defconfig                       |   1 -
 drivers/i2c/fsl_i2c.c                        |   9 -
 drivers/i2c/fti2c010.c                       |   9 -
 drivers/i2c/mxc_i2c.c                        |   4 -
 include/common.h                             |  10 +
 include/configs/M54418TWR.h                  |   1 -
 include/configs/PATI.h                       |   7 +-
 include/configs/TQM5200.h                    |  65 +--
 include/configs/a4m072.h                     |  20 -
 include/configs/ac14xx.h                     |  18 -
 include/configs/am335x_evm.h                 |   5 -
 include/configs/am43xx_evm.h                 |   6 -
 include/configs/ap_sh4a_4a.h                 |  14 -
 include/configs/apx4devkit.h                 |   7 -
 include/configs/aria.h                       |  21 -
 include/configs/axs10x.h                     |   2 +-
 include/configs/cm5200.h                     |  12 +-
 include/configs/digsy_mtc.h                  |  32 --
 include/configs/ids8313.h                    |   1 -
 include/configs/ipek01.h                     |  24 -
 include/configs/jupiter.h                    |  19 -
 include/configs/m28evk.h                     |   6 -
 include/configs/manroland/mpc5200-common.h   |  30 --
 include/configs/mecp5123.h                   |  19 +-
 include/configs/motionpro.h                  |  23 -
 include/configs/mpc5121ads.h                 |  19 -
 include/configs/mxs.h                        |  10 -
 include/configs/o2dnt-common.h               |  22 -
 include/configs/pcm030.h                     |  32 +-
 include/configs/pdm360ng.h                   |  31 --
 include/configs/r0p7734.h                    |  14 -
 include/configs/s32v234evb.h                 |  10 -
 include/configs/v38b.h                       |  22 -
 include/i2c.h                                |   3 -
 scripts/config_whitelist.txt                 |   3 -
 112 files changed, 45 insertions(+), 3149 deletions(-)
 delete mode 100644 arch/powerpc/cpu/mpc512x/i2c.c
 delete mode 100644 arch/powerpc/cpu/mpc5xxx/i2c.c
 delete mode 100644 arch/powerpc/cpu/mpc8260/i2c.c
 delete mode 100644 arch/powerpc/cpu/mpc8xx/i2c.c

-- 
2.12.2.816.g2cccc81164-goog



More information about the U-Boot mailing list