[U-Boot] [PATCH v2 0/19] dm: Convert boards to Kconfig for driver model

Simon Glass sjg at chromium.org
Fri Feb 6 05:41:31 CET 2015


This series converts most boards to use Kconfig for driver model. It is
based on the v1 patches but split out so that only one arch is done per
patch. This makes it easier to review and test. Also since DM SPL
support is not fully merged some adjustments have had to be made to
allow this series to work independent of that (since I don't want to
delay the Kconfig conversion any longer).

About 10 boards remain to be cleaned up and these are dealt with
in a small follow-on series.

Changes in v2:
- Add CONFIG_SYS_MALLOC_F as well as CONFIG_SYS_MALLOC_F_LEN
- Add a patch to squash use of 'struct i2c_msg' in drivers
- Drop SPL-specific #ifdef in config_defaults.h since Kconfig will do this
- Fix 'procides' typo
- Move subsystem Kconfigs out of drivers/core
- Split out patch to add CMD_DM and CMD_DEMO to Kconfig
- Split out patch to add Kconfig for driver/demo
- Split out patch to add Kconfig options for driver model SPL support
- Split out patch to add a Kconfig file for test/
- Split out patch to expand/complete Kconfig in drivers/
- Use a dm_ prefix for remaining conflicting I2C functions

Simon Glass (19):
  dm: i2c: Add a dm_ prefix to driver model bus speed functions
  dm: i2c: Make API accessible even without CONFIG_DM
  dm: Add Kconfig for driver/demo
  dm: Expand and complete Kconfig in drivers/
  dm: Add Kconfig options for driver model SPL support
  dm: test: Add a Kconfig file
  dm: Add CMD_DM and CMD_DEMO to Kconfig
  dm: Move Raspberry Pi driver model CONFIGs to Kconfig
  dm: exynos: Move driver model CONFIGs to Kconfig
  dm: x86: Move driver model CONFIGs to Kconfig
  dm: tegra: Move driver model CONFIGs to Kconfig
  dm: at91: snapper: Move driver model CONFIGs to Kconfig
  dm: omap3: Move driver model CONFIGs to Kconfig
  dm: sandbox: Move driver model CONFIGs to Kconfig
  dm: sunxi: Move driver model CONFIGs to Kconfig
  dm: mx6: Move driver model CONFIGs to Kconfig
  dm: Kconfig: Move CONFIG_SYS_MALLOC_F_LEN to Kconfig
  dm: socfpga: Move driver model CONFIGs to Kconfig
  dm: Drop unused driver model config_defaults

 Kconfig                                   | 21 +++++++++++++
 arch/arm/Kconfig                          |  2 ++
 arch/arm/cpu/arm1176/bcm2835/Kconfig      | 12 ++++++++
 arch/arm/cpu/armv7/exynos/Kconfig         | 21 +++++++++++++
 arch/arm/cpu/armv7/omap3/Kconfig          | 15 ++++++++++
 arch/arm/cpu/armv7/tegra-common/Kconfig   | 24 +++++++++++++++
 arch/arm/cpu/armv7/uniphier/Kconfig       |  6 ++++
 arch/arm/include/asm/arch-at91/at91_pio.h | 12 +++-----
 arch/sandbox/Kconfig                      | 24 +++++++++++++++
 arch/x86/Kconfig                          | 15 ++++++++++
 board/compulab/cm_t335/Kconfig            |  9 ++++++
 board/gumstix/pepper/Kconfig              |  9 ++++++
 board/isee/igep0033/Kconfig               |  9 ++++++
 board/phytec/pcm051/Kconfig               |  9 ++++++
 board/samsung/goni/Kconfig                |  9 ++++++
 board/samsung/smdk5420/Kconfig            |  6 ++++
 board/samsung/smdkc100/Kconfig            |  9 ++++++
 board/silica/pengwyn/Kconfig              |  9 ++++++
 board/ti/am335x/Kconfig                   | 16 ++++++++++
 common/Kconfig                            | 23 ++++++++++++++
 common/cmd_i2c.c                          |  4 +--
 configs/Linksprite_pcDuino3_fdt_defconfig |  4 +++
 configs/am335x_igep0033_defconfig         |  2 ++
 configs/am3517_crane_defconfig            |  3 ++
 configs/am3517_evm_defconfig              |  3 ++
 configs/cm_fx6_defconfig                  |  5 ++++
 configs/cm_t335_defconfig                 |  2 ++
 configs/cm_t3517_defconfig                |  3 ++
 configs/cm_t35_defconfig                  |  3 ++
 configs/devkit8000_defconfig              |  3 ++
 configs/dig297_defconfig                  |  3 ++
 configs/eco5pk_defconfig                  |  3 ++
 configs/gwventana_defconfig               |  2 ++
 configs/mcx_defconfig                     |  3 ++
 configs/mt_ventoux_defconfig              |  3 ++
 configs/mx6dlsabreauto_defconfig          |  2 ++
 configs/mx6qsabreauto_defconfig           |  2 ++
 configs/mx6qsabresd_defconfig             |  2 ++
 configs/mx6sxsabresd_defconfig            |  2 ++
 configs/nokia_rx51_defconfig              |  5 ++++
 configs/omap3_beagle_defconfig            |  3 ++
 configs/omap3_evm_defconfig               |  3 ++
 configs/omap3_evm_quick_mmc_defconfig     |  3 ++
 configs/omap3_evm_quick_nand_defconfig    |  3 ++
 configs/omap3_ha_defconfig                |  3 ++
 configs/omap3_logic_defconfig             |  3 ++
 configs/omap3_mvblx_defconfig             |  3 ++
 configs/omap3_pandora_defconfig           |  3 ++
 configs/omap3_sdp3430_defconfig           |  3 ++
 configs/pcm051_rev1_defconfig             |  2 ++
 configs/pcm051_rev3_defconfig             |  2 ++
 configs/pengwyn_defconfig                 |  2 ++
 configs/pepper_defconfig                  |  2 ++
 configs/rpi_defconfig                     |  2 ++
 configs/s5p_goni_defconfig                |  2 ++
 configs/sandbox_defconfig                 |  2 ++
 configs/smdkc100_defconfig                |  2 ++
 configs/snapper9260_defconfig             |  5 ++++
 configs/snapper9g20_defconfig             |  5 ++++
 configs/socfpga_socrates_defconfig        |  3 ++
 configs/stv0991_defconfig                 |  2 ++
 configs/tao3530_defconfig                 |  3 ++
 configs/tricorder_defconfig               |  3 ++
 configs/tricorder_flash_defconfig         |  3 ++
 configs/twister_defconfig                 |  3 ++
 doc/driver-model/spi-howto.txt            |  4 +--
 drivers/Kconfig                           |  4 +++
 drivers/core/Kconfig                      | 50 +++++++++++++++++++++++++++++--
 drivers/demo/Kconfig                      | 26 ++++++++++++++++
 drivers/gpio/Kconfig                      |  7 +++--
 drivers/i2c/Kconfig                       | 12 ++++++--
 drivers/i2c/adi_i2c.c                     |  6 ++--
 drivers/i2c/i2c-uclass.c                  | 11 ++-----
 drivers/i2c/kona_i2c.c                    | 16 +++++-----
 drivers/i2c/mv_i2c.c                      | 10 +++----
 drivers/misc/Kconfig                      |  9 ++++++
 drivers/mtd/Kconfig                       |  2 ++
 drivers/mtd/spi/Kconfig                   | 14 +++++++++
 drivers/serial/Kconfig                    |  6 ++--
 drivers/spi/Kconfig                       | 10 +++++--
 drivers/thermal/Kconfig                   |  7 +++++
 include/config_defaults.h                 |  6 ----
 include/configs/cm_fx6.h                  |  7 -----
 include/configs/exynos-common.h           |  7 -----
 include/configs/gw_ventana.h              |  1 -
 include/configs/mx6sabre_common.h         |  1 -
 include/configs/mx6sxsabresd.h            |  1 -
 include/configs/novena.h                  |  1 -
 include/configs/peach-pi.h                |  1 -
 include/configs/peach-pit.h               |  1 -
 include/configs/rpi.h                     |  7 -----
 include/configs/s5p_goni.h                |  5 ----
 include/configs/sandbox.h                 | 13 --------
 include/configs/smdkc100.h                |  7 -----
 include/configs/snapper9260.h             |  5 ----
 include/configs/socfpga_common.h          |  7 -----
 include/configs/stv0991.h                 |  1 -
 include/configs/sunxi-common.h            |  4 ---
 include/configs/tegra-common.h            | 11 -------
 include/configs/ti_am335x_common.h        |  7 -----
 include/configs/ti_omap3_common.h         |  5 ----
 include/configs/uniphier.h                |  4 ---
 include/configs/x86-common.h              |  6 ----
 include/i2c.h                             | 13 ++++----
 test/Kconfig                              |  1 +
 test/dm/Kconfig                           |  8 +++++
 test/dm/i2c.c                             |  6 ++--
 107 files changed, 554 insertions(+), 165 deletions(-)
 create mode 100644 arch/arm/cpu/arm1176/bcm2835/Kconfig
 create mode 100644 drivers/demo/Kconfig
 create mode 100644 drivers/mtd/spi/Kconfig
 create mode 100644 drivers/thermal/Kconfig
 create mode 100644 test/Kconfig
 create mode 100644 test/dm/Kconfig

-- 
2.2.0.rc0.207.ga3a616c



More information about the U-Boot mailing list