Skip to content

RFC eeprom: Cleanup and support for multiple i2c busses

Marek Vasut u-boot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest25 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/25ppc: Zap ICU862 boardarch/powerpc/cpu/mpc8xx/Kconfig arch/powerpc/cpu/mpc8xx/cpu_init.c arch/powerpc/cpu/mpc8xx/fec.c +14 more+1 -17892 replies
1/25ppc: Zap ICU862 board+0 -01 reply
1/25ppc: Zap ICU862 board+0 -01 reply
1/25ppc: Zap ICU862 board+0 -00 replies
2/25ppc: Zap MHPC boardarch/powerpc/cpu/mpc8xx/Kconfig arch/powerpc/cpu/mpc8xx/cpu_init.c board/eltec/mhpc/Kconfig +8 more+0 -14250 replies
3/25ppc: Zap Hymod boardarch/powerpc/cpu/mpc8260/Kconfig arch/powerpc/cpu/mpc8260/ether_fcc.c arch/powerpc/cpu/mpc8260/interrupts.c +43 more+2 -67430 replies
4/25ppc: Zap HWW1U1A boardarch/powerpc/cpu/mpc85xx/Kconfig board/exmeritus/hww1u1a/Kconfig board/exmeritus/hww1u1a/MAINTAINERS +8 more+0 -9630 replies
5/25ppc: Zap IDS8247 boardarch/powerpc/cpu/mpc8260/Kconfig board/ids/ids8247/Kconfig board/ids/ids8247/MAINTAINERS +4 more+0 -8880 replies
6/25ppc: Zap TQM8260 boardarch/powerpc/cpu/mpc8260/Kconfig board/tqc/tqm8260/Kconfig board/tqc/tqm8260/MAINTAINERS +15 more+0 -14711 reply
7/25ppc: Zap TQM8272 boardarch/powerpc/cpu/mpc8260/Kconfig arch/powerpc/cpu/mpc8260/pci.c board/tqc/tqm8272/Kconfig +7 more+0 -20151 reply
8/25arm: Zap tricorder-eepromboard/corscience/tricorder/Makefile board/corscience/tricorder/tricorder-eeprom.c board/corscience/tricorder/tricorder-eeprom.h+1 -2932 replies
9/25eeprom: Shuffle code aroundcommon/cmd_eeprom.c+74 -1020 replies
10/25eeprom: Zap CONFIG_SYS_I2C_MULTI_EEPROMScommon/cmd_eeprom.c include/configs/BSC9131RDB.h include/configs/BSC9132QDS.h +42 more+30 -830 replies
11/25eeprom: Zap CONFIG_SYS_EEPROM_X40430common/cmd_eeprom.c+0 -950 replies
12/25eeprom: Zap eeprom_probe()common/cmd_eeprom.c include/common.h+0 -220 replies
13/25eeprom: Zap CONFIG_SPI_XREADME common/cmd_eeprom.c+4 -90 replies
14/25eeprom: Pull out the I/O codecommon/cmd_eeprom.c+26 -120 replies
15/25eeprom: Pull out address computationcommon/cmd_eeprom.c+26 -380 replies
16/25eeprom: Make eeprom_write_enable() weakcommon/cmd_eeprom.c+9 -90 replies
17/25eeprom: Pull out CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MScommon/cmd_eeprom.c+4 -20 replies
18/25eeprom: Suck the ifdef into eeprom_init()common/cmd_eeprom.c+5 -30 replies
19/25eeprom: Pull out CONFIG_SYS_EEPROM_PAGE_WRITE_BITScommon/cmd_eeprom.c+8 -80 replies
20/25eeprom: Pull out transfer length computationcommon/cmd_eeprom.c+25 -410 replies
21/25eeprom: Pull out the RW loopcommon/cmd_eeprom.c+21 -300 replies
22/25eeprom: Cultivate the ifdef messcommon/cmd_eeprom.c+3 -90 replies
23/25eeprom: Add bus argument to eeprom_init()common/cmd_eeprom.c common/env_eeprom.c include/common.h+7 -60 replies
24/25eeprom: Add support for selecting i2c buscommon/cmd_eeprom.c+11 -40 replies
25/25eeprom: Clean up checkpatch issuescommon/cmd_eeprom.c+10 -90 replies

Reviews trailers per patch

6 of 28 patches have a Reviewed-by or Acked-by.

PatchWolfgang Denk
1/25A-b
1/25A-b
1/25A-b
1/25A-b
2/25
3/25
4/25
5/25
6/25A-b
7/25A-b
8/25
9/25
10/25
11/25
12/25
13/25
14/25
15/25
16/25
17/25
18/25
19/25
20/25
21/25
22/25
23/25
24/25
25/25

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [U-Boot] [RFC][PATCH 00/25] eeprom: Cleanup and support for multiple i2c busses

This patch series first zaps a couple of ancient boards and ugly code which was in the way of proper cleanup for the eeprom command. Once that is done, the eeprom command undergoes proper cleaning. Finally, there is one patch which adds support for selecting on which bus the I2C EEPROM is. This functionality seems to be in high demand, which is exactly the reason why some boards decided to implement this themselves :-(

This series makes U-Boot also less IoT, since it removes all the nice PHP, CSS and SQL stuff from it ;-)

Marek Vasut (25):
ppc: Zap ICU862 board
ppc: Zap MHPC board
ppc: Zap Hymod board
ppc: Zap HWW1U1A board
ppc: Zap IDS8247 board
ppc: Zap TQM8260 board
ppc: Zap TQM8272 board
arm: Zap tricorder-eeprom
eeprom: Shuffle code around
eeprom: Zap CONFIG_SYS_I2C_MULTI_EEPROMS
eeprom: Zap CONFIG_SYS_EEPROM_X40430
eeprom: Zap eeprom_probe()
eeprom: Zap CONFIG_SPI_X
eeprom: Pull out the I/O code
eeprom: Pull out address computation
eeprom: Make eeprom_write_enable() weak
eeprom: Pull out CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS
eeprom: Suck the ifdef into eeprom_init()
eeprom: Pull out CONFIG_SYS_EEPROM_PAGE_WRITE_BITS
eeprom: Pull out transfer length computation
eeprom: Pull out the RW loop
eeprom: Cultivate the ifdef mess
eeprom: Add bus argument to eeprom_init()
eeprom: Add support for selecting i2c bus
eeprom: Clean up checkpatch issues

 README                                        |   5 -
 arch/powerpc/cpu/mpc8260/Kconfig              |  16 -
 arch/powerpc/cpu/mpc8260/ether_fcc.c          |  27 +-
 arch/powerpc/cpu/mpc8260/interrupts.c         |  10 +-
 arch/powerpc/cpu/mpc8260/pci.c                |   2 -
 arch/powerpc/cpu/mpc8260/start.S              |  14 -
 arch/powerpc/cpu/mpc83xx/start.S              |  11 -
 arch/powerpc/cpu/mpc85xx/Kconfig              |   4 -
 arch/powerpc/cpu/mpc8xx/Kconfig               |   8 -
 arch/powerpc/cpu/mpc8xx/cpu_init.c            |   2 -
 arch/powerpc/cpu/mpc8xx/fec.c                 |  40 +-
 arch/powerpc/include/asm/u-boot.h             |   3 -
 board/corscience/tricorder/Makefile           |   2 +-
 board/corscience/tricorder/tricorder-eeprom.c | 251 -------
 board/corscience/tricorder/tricorder-eeprom.h |  41 --
 board/eltec/mhpc/Kconfig                      |  12 -
 board/eltec/mhpc/MAINTAINERS                  |   6 -
 board/eltec/mhpc/Makefile                     |   8 -
 board/eltec/mhpc/flash.c                      | 414 -----------
 board/eltec/mhpc/mhpc.c                       | 465 -------------
 board/eltec/mhpc/u-boot.lds.debug             | 121 ----
 board/exmeritus/hww1u1a/Kconfig               |  12 -
 board/exmeritus/hww1u1a/MAINTAINERS           |   6 -
 board/exmeritus/hww1u1a/Makefile              |  12 -
 board/exmeritus/hww1u1a/ddr.c                 |  34 -
 board/exmeritus/hww1u1a/gpios.h               |  56 --
 board/exmeritus/hww1u1a/hww1u1a.c             | 268 --------
 board/exmeritus/hww1u1a/law.c                 |  18 -
 board/exmeritus/hww1u1a/tlb.c                 |  90 ---
 board/hymod/Kconfig                           |   9 -
 board/hymod/MAINTAINERS                       |   6 -
 board/hymod/Makefile                          |   8 -
 board/hymod/bsp.c                             | 387 -----------
 board/hymod/config.mk                         |  14 -
 board/hymod/eeprom.c                          | 678 ------------------
 board/hymod/env.c                             | 221 ------
 board/hymod/fetch.c                           |  91 ---
 board/hymod/flash.c                           | 490 -------------
 board/hymod/flash.h                           | 140 ----
 board/hymod/global_env                        | 145 ----
 board/hymod/hymod.c                           | 521 --------------
 board/hymod/hymod.h                           | 305 ---------
 board/hymod/input.c                           |  91 ---
 board/hymod/u-boot.lds                        | 132 ----
 board/hymod/u-boot.lds.debug                  | 121 ----
 board/icu862/Kconfig                          |   9 -
 board/icu862/MAINTAINERS                      |   7 -
 board/icu862/Makefile                         |   8 -
 board/icu862/flash.c                          | 575 ----------------
 board/icu862/icu862.c                         | 199 ------
 board/icu862/pcmcia.c                         | 262 -------
 board/icu862/u-boot.lds                       |  82 ---
 board/icu862/u-boot.lds.debug                 | 122 ----
 board/ids/ids8247/Kconfig                     |  12 -
 board/ids/ids8247/MAINTAINERS                 |   6 -
 board/ids/ids8247/Makefile                    |  11 -
 board/ids/ids8247/ids8247.c                   | 390 -----------
 board/tqc/tqm8260/Kconfig                     |  12 -
 board/tqc/tqm8260/MAINTAINERS                 |  16 -
 board/tqc/tqm8260/Makefile                    |   8 -
 board/tqc/tqm8260/README                      | 415 -----------
 board/tqc/tqm8260/tqm8260.c                   | 352 ----------
 board/tqc/tqm8272/Kconfig                     |  12 -
 board/tqc/tqm8272/MAINTAINERS                 |   6 -
 board/tqc/tqm8272/Makefile                    |   8 -
 board/tqc/tqm8272/nand.c                      | 264 -------
 board/tqc/tqm8272/tqm8272.c                   | 944 --------------------------
 board/tqc/tqm8272/tqm8272.h                   |  37 -
 common/cmd_eeprom.c                           | 501 +++++---------
 common/env_eeprom.c                           |   4 +-
 configs/HWW1U1A_defconfig                     |   3 -
 configs/ICU862_100MHz_defconfig               |   4 -
 configs/ICU862_defconfig                      |   3 -
 configs/IDS8247_defconfig                     |   3 -
 configs/MHPC_defconfig                        |   3 -
 configs/TQM8255_AA_defconfig                  |   4 -
 configs/TQM8260_AA_defconfig                  |   4 -
 configs/TQM8260_AB_defconfig                  |   4 -
 configs/TQM8260_AC_defconfig                  |   4 -
 configs/TQM8260_AD_defconfig                  |   4 -
 configs/TQM8260_AE_defconfig                  |   4 -
 configs/TQM8260_AF_defconfig                  |   4 -
 configs/TQM8260_AG_defconfig                  |   4 -
 configs/TQM8260_AH_defconfig                  |   4 -
 configs/TQM8260_AI_defconfig                  |   4 -
 configs/TQM8265_AA_defconfig                  |   4 -
 configs/TQM8272_defconfig                     |   3 -
 configs/hymod_defconfig                       |   3 -
 include/asm-generic/u-boot.h                  |   3 -
 include/common.h                              |   8 +-
 include/commproc.h                            |  32 -
 include/configs/BSC9131RDB.h                  |   1 -
 include/configs/BSC9132QDS.h                  |   1 -
 include/configs/C29XPCIE.h                    |   1 -
 include/configs/CPCI405AB.h                   |   1 -
 include/configs/CPCI750.h                     |   1 -
 include/configs/DB64360.h                     |   1 -
 include/configs/DB64460.h                     |   1 -
 include/configs/DU440.h                       |   1 -
 include/configs/HWW1U1A.h                     | 460 -------------
 include/configs/ICU862.h                      | 443 ------------
 include/configs/IDS8247.h                     | 462 -------------
 include/configs/MHPC.h                        | 369 ----------
 include/configs/P1010RDB.h                    |   1 -
 include/configs/PMC440.h                      |   1 -
 include/configs/TQM8260.h                     | 620 -----------------
 include/configs/TQM8272.h                     | 735 --------------------
 include/configs/TQM834x.h                     |   1 -
 include/configs/W7OLMC.h                      |   1 -
 include/configs/W7OLMG.h                      |   1 -
 include/configs/acadia.h                      |   1 -
 include/configs/am335x_evm.h                  |   1 -
 include/configs/am43xx_evm.h                  |   1 -
 include/configs/axs101.h                      |   1 -
 include/configs/bamboo.h                      |   1 -
 include/configs/canyonlands.h                 |   1 -
 include/configs/cpci5200.h                    |   1 -
 include/configs/ebony.h                       |   1 -
 include/configs/hymod.h                       | 728 --------------------
 include/configs/icon.h                        |   1 -
 include/configs/intip.h                       |   1 -
 include/configs/katmai.h                      |   1 -
 include/configs/km/km-powerpc.h               |   1 -
 include/configs/km/km_arm.h                   |   1 -
 include/configs/korat.h                       |   1 -
 include/configs/ks2_evm.h                     |   1 -
 include/configs/luan.h                        |   1 -
 include/configs/m28evk.h                      |   1 -
 include/configs/mecp5200.h                    |   1 -
 include/configs/motionpro.h                   |   1 -
 include/configs/ocotea.h                      |   1 -
 include/configs/p1_p2_rdb_pc.h                |   1 -
 include/configs/p1_twr.h                      |   1 -
 include/configs/pcm051.h                      |   1 -
 include/configs/pengwyn.h                     |   1 -
 include/configs/pf5200.h                      |   1 -
 include/configs/sequoia.h                     |   1 -
 include/configs/t3corp.h                      |   1 -
 include/configs/taishan.h                     |   1 -
 include/configs/tricorder.h                   |   1 -
 include/configs/walnut.h                      |   1 -
 include/configs/yosemite.h                    |   1 -
 include/pcmcia.h                              |   2 -
 include/status_led.h                          |  19 -
 tools/bddb/README                             | 116 ----
 tools/bddb/badsubmit.php                      |  23 -
 tools/bddb/bddb.css                           | 207 ------
 tools/bddb/brlog.php                          | 109 ---
 tools/bddb/browse.php                         | 147 ----
 tools/bddb/config.php                         |  16 -
 tools/bddb/create_tables.sql                  |  90 ---
 tools/bddb/defs.php                           | 710 -------------------
 tools/bddb/dodelete.php                       |  65 --
 tools/bddb/dodellog.php                       |  57 --
 tools/bddb/doedit.php                         | 186 -----
 tools/bddb/doedlog.php                        |  76 ---
 tools/bddb/donew.php                          | 230 -------
 tools/bddb/donewlog.php                       |  86 ---
 tools/bddb/edit.php                           | 131 ----
 tools/bddb/edlog.php                          |  86 ---
 tools/bddb/execute.php                        |  33 -
 tools/bddb/index.php                          |  38 --
 tools/bddb/new.php                            | 120 ----
 tools/bddb/newlog.php                         |  54 --
 164 files changed, 174 insertions(+), 15976 deletions(-)
 delete mode 100644 board/corscience/tricorder/tricorder-eeprom.c
 delete mode 100644 board/corscience/tricorder/tricorder-eeprom.h
 delete mode 100644 board/eltec/mhpc/Kconfig
 delete mode 100644 board/eltec/mhpc/MAINTAINERS
 delete mode 100644 board/eltec/mhpc/Makefile
 delete mode 100644 board/eltec/mhpc/flash.c
 delete mode 100644 board/eltec/mhpc/mhpc.c
 delete mode 100644 board/eltec/mhpc/u-boot.lds.debug
 delete mode 100644 board/exmeritus/hww1u1a/Kconfig
 delete mode 100644 board/exmeritus/hww1u1a/MAINTAINERS
 delete mode 100644 board/exmeritus/hww1u1a/Makefile
 delete mode 100644 board/exmeritus/hww1u1a/ddr.c
 delete mode 100644 board/exmeritus/hww1u1a/gpios.h
 delete mode 100644 board/exmeritus/hww1u1a/hww1u1a.c
 delete mode 100644 board/exmeritus/hww1u1a/law.c
 delete mode 100644 board/exmeritus/hww1u1a/tlb.c
 delete mode 100644 board/hymod/Kconfig
 delete mode 100644 board/hymod/MAINTAINERS
 delete mode 100644 board/hymod/Makefile
 delete mode 100644 board/hymod/bsp.c
 delete mode 100644 board/hymod/config.mk
 delete mode 100644 board/hymod/eeprom.c
 delete mode 100644 board/hymod/env.c
 delete mode 100644 board/hymod/fetch.c
 delete mode 100644 board/hymod/flash.c
 delete mode 100644 board/hymod/flash.h
 delete mode 100644 board/hymod/global_env
 delete mode 100644 board/hymod/hymod.c
 delete mode 100644 board/hymod/hymod.h
 delete mode 100644 board/hymod/input.c
 delete mode 100644 board/hymod/u-boot.lds
 delete mode 100644 board/hymod/u-boot.lds.debug
 delete mode 100644 board/icu862/Kconfig
 delete mode 100644 board/icu862/MAINTAINERS
 delete mode 100644 board/icu862/Makefile
 delete mode 100644 board/icu862/flash.c
 delete mode 100644 board/icu862/icu862.c
 delete mode 100644 board/icu862/pcmcia.c
 delete mode 100644 board/icu862/u-boot.lds
 delete mode 100644 board/icu862/u-boot.lds.debug
 delete mode 100644 board/ids/ids8247/Kconfig
 delete mode 100644 board/ids/ids8247/MAINTAINERS
 delete mode 100644 board/ids/ids8247/Makefile
 delete mode 100644 board/ids/ids8247/ids8247.c
 delete mode 100644 board/tqc/tqm8260/Kconfig
 delete mode 100644 board/tqc/tqm8260/MAINTAINERS
 delete mode 100644 board/tqc/tqm8260/Makefile
 delete mode 100644 board/tqc/tqm8260/README
 delete mode 100644 board/tqc/tqm8260/tqm8260.c
 delete mode 100644 board/tqc/tqm8272/Kconfig
 delete mode 100644 board/tqc/tqm8272/MAINTAINERS
 delete mode 100644 board/tqc/tqm8272/Makefile
 delete mode 100644 board/tqc/tqm8272/nand.c
 delete mode 100644 board/tqc/tqm8272/tqm8272.c
 delete mode 100644 board/tqc/tqm8272/tqm8272.h
 delete mode 100644 configs/HWW1U1A_defconfig
 delete mode 100644 configs/ICU862_100MHz_defconfig
 delete mode 100644 configs/ICU862_defconfig
 delete mode 100644 configs/IDS8247_defconfig
 delete mode 100644 configs/MHPC_defconfig
 delete mode 100644 configs/TQM8255_AA_defconfig
 delete mode 100644 configs/TQM8260_AA_defconfig
 delete mode 100644 configs/TQM8260_AB_defconfig
 delete mode 100644 configs/TQM8260_AC_defconfig
 delete mode 100644 configs/TQM8260_AD_defconfig
 delete mode 100644 configs/TQM8260_AE_defconfig
 delete mode 100644 configs/TQM8260_AF_defconfig
 delete mode 100644 configs/TQM8260_AG_defconfig
 delete mode 100644 configs/TQM8260_AH_defconfig
 delete mode 100644 configs/TQM8260_AI_defconfig
 delete mode 100644 configs/TQM8265_AA_defconfig
 delete mode 100644 configs/TQM8272_defconfig
 delete mode 100644 configs/hymod_defconfig
 delete mode 100644 include/configs/HWW1U1A.h
 delete mode 100644 include/configs/ICU862.h
 delete mode 100644 include/configs/IDS8247.h
 delete mode 100644 include/configs/MHPC.h
 delete mode 100644 include/configs/TQM8260.h
 delete mode 100644 include/configs/TQM8272.h
 delete mode 100644 include/configs/hymod.h
 delete mode 100644 tools/bddb/README
 delete mode 100644 tools/bddb/badsubmit.php
 delete mode 100644 tools/bddb/bddb.css
 delete mode 100644 tools/bddb/brlog.php
 delete mode 100644 tools/bddb/browse.php
 delete mode 100644 tools/bddb/config.php
 delete mode 100644 tools/bddb/create_tables.sql
 delete mode 100644 tools/bddb/defs.php
 delete mode 100644 tools/bddb/dodelete.php
 delete mode 100644 tools/bddb/dodellog.php
 delete mode 100644 tools/bddb/doedit.php
 delete mode 100644 tools/bddb/doedlog.php
 delete mode 100644 tools/bddb/donew.php
 delete mode 100644 tools/bddb/donewlog.php
 delete mode 100644 tools/bddb/edit.php
 delete mode 100644 tools/bddb/edlog.php
 delete mode 100644 tools/bddb/execute.php
 delete mode 100644 tools/bddb/index.php
 delete mode 100644 tools/bddb/new.php
 delete mode 100644 tools/bddb/newlog.php
Cc Tom Rini <[email protected]>
Signature · 1 line
2.1.1