public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [RFC][PATCH 00/25] eeprom: Cleanup and support for multiple i2c busses
@ 2014-10-20  1:48 Marek Vasut
  2014-10-20  1:48 ` [U-Boot] [PATCH 01/25] ppc: Zap ICU862 board Marek Vasut
                   ` (24 more replies)
  0 siblings, 25 replies; 37+ messages in thread
From: Marek Vasut @ 2014-10-20  1:48 UTC (permalink / raw)
  To: u-boot

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@ti.com>

-- 
2.1.1

^ permalink raw reply	[flat|nested] 37+ messages in thread

end of thread, other threads:[~2015-11-10 19:10 UTC | newest]

Thread overview: 37+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-20  1:48 [U-Boot] [RFC][PATCH 00/25] eeprom: Cleanup and support for multiple i2c busses Marek Vasut
2014-10-20  1:48 ` [U-Boot] [PATCH 01/25] ppc: Zap ICU862 board Marek Vasut
2014-10-20  3:54   ` Masahiro Yamada
2014-10-20 14:49     ` Marek Vasut
2014-10-20 18:55       ` Wolfgang Denk
2014-10-22 19:10         ` Marek Vasut
2014-10-23  2:26           ` Masahiro Yamada
2014-10-24 14:37             ` Marek Vasut
2014-10-20 19:07   ` Wolfgang Denk
2014-10-20  1:48 ` [U-Boot] [PATCH 02/25] ppc: Zap MHPC board Marek Vasut
2014-10-20  1:48 ` [U-Boot] [PATCH 03/25] ppc: Zap Hymod board Marek Vasut
2014-10-20  1:48 ` [U-Boot] [PATCH 04/25] ppc: Zap HWW1U1A board Marek Vasut
2014-10-20  1:48 ` [U-Boot] [PATCH 05/25] ppc: Zap IDS8247 board Marek Vasut
2014-10-20  1:48 ` [U-Boot] [PATCH 06/25] ppc: Zap TQM8260 board Marek Vasut
2014-10-20 19:08   ` Wolfgang Denk
2014-10-20  1:48 ` [U-Boot] [PATCH 07/25] ppc: Zap TQM8272 board Marek Vasut
2014-10-20 19:08   ` Wolfgang Denk
2014-10-20  1:48 ` [U-Boot] [PATCH 08/25] arm: Zap tricorder-eeprom Marek Vasut
2014-11-04 16:01   ` [U-Boot] [RFC PATCH] tricorder: rewrite tricordereeprom command Andreas Bießmann
2015-11-10 19:10     ` Marek Vasut
2014-10-20  1:48 ` [U-Boot] [PATCH 09/25] eeprom: Shuffle code around Marek Vasut
2014-10-20  1:48 ` [U-Boot] [PATCH 10/25] eeprom: Zap CONFIG_SYS_I2C_MULTI_EEPROMS Marek Vasut
2014-10-20  1:48 ` [U-Boot] [PATCH 11/25] eeprom: Zap CONFIG_SYS_EEPROM_X40430 Marek Vasut
2014-10-20  1:48 ` [U-Boot] [PATCH 12/25] eeprom: Zap eeprom_probe() Marek Vasut
2014-10-20  1:48 ` [U-Boot] [PATCH 13/25] eeprom: Zap CONFIG_SPI_X Marek Vasut
2014-10-20  1:48 ` [U-Boot] [PATCH 14/25] eeprom: Pull out the I/O code Marek Vasut
2014-10-20  1:48 ` [U-Boot] [PATCH 15/25] eeprom: Pull out address computation Marek Vasut
2014-10-20  1:48 ` [U-Boot] [PATCH 16/25] eeprom: Make eeprom_write_enable() weak Marek Vasut
2014-10-20  1:48 ` [U-Boot] [PATCH 17/25] eeprom: Pull out CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS Marek Vasut
2014-10-20  1:48 ` [U-Boot] [PATCH 18/25] eeprom: Suck the ifdef into eeprom_init() Marek Vasut
2014-10-20  1:48 ` [U-Boot] [PATCH 19/25] eeprom: Pull out CONFIG_SYS_EEPROM_PAGE_WRITE_BITS Marek Vasut
2014-10-20  1:48 ` [U-Boot] [PATCH 20/25] eeprom: Pull out transfer length computation Marek Vasut
2014-10-20  1:48 ` [U-Boot] [PATCH 21/25] eeprom: Pull out the RW loop Marek Vasut
2014-10-20  1:48 ` [U-Boot] [PATCH 22/25] eeprom: Cultivate the ifdef mess Marek Vasut
2014-10-20  1:48 ` [U-Boot] [PATCH 23/25] eeprom: Add bus argument to eeprom_init() Marek Vasut
2014-10-20  1:48 ` [U-Boot] [PATCH 24/25] eeprom: Add support for selecting i2c bus Marek Vasut
2014-10-20  1:48 ` [U-Boot] [PATCH 25/25] eeprom: Clean up checkpatch issues Marek Vasut

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox