[U-Boot] [RFC][PATCH 00/25] eeprom: Cleanup and support for multiple i2c busses
Marek Vasut
marex at denx.de
Mon Oct 20 03:48:01 CEST 2014
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 <trini at ti.com>
--
2.1.1
More information about the U-Boot
mailing list