public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH v2 0/19] dm: Convert boards to Kconfig for driver model
@ 2015-02-06  4:41 Simon Glass
  2015-02-06  4:41 ` [U-Boot] [PATCH v2 01/19] dm: i2c: Add a dm_ prefix to driver model bus speed functions Simon Glass
                   ` (18 more replies)
  0 siblings, 19 replies; 55+ messages in thread
From: Simon Glass @ 2015-02-06  4:41 UTC (permalink / raw)
  To: u-boot

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

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

end of thread, other threads:[~2015-02-19 14:06 UTC | newest]

Thread overview: 55+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-06  4:41 [U-Boot] [PATCH v2 0/19] dm: Convert boards to Kconfig for driver model Simon Glass
2015-02-06  4:41 ` [U-Boot] [PATCH v2 01/19] dm: i2c: Add a dm_ prefix to driver model bus speed functions Simon Glass
2015-02-06  7:12   ` Heiko Schocher
2015-02-11 19:44     ` Simon Glass
2015-02-06  4:41 ` [U-Boot] [PATCH v2 02/19] dm: i2c: Make API accessible even without CONFIG_DM Simon Glass
2015-02-06  7:15   ` Heiko Schocher
2015-02-11 19:45     ` Simon Glass
2015-02-06  4:41 ` [U-Boot] [PATCH v2 03/19] dm: Add Kconfig for driver/demo Simon Glass
2015-02-09  3:51   ` Masahiro Yamada
2015-02-11 19:45     ` Simon Glass
2015-02-06  4:41 ` [U-Boot] [PATCH v2 04/19] dm: Expand and complete Kconfig in drivers/ Simon Glass
2015-02-09  3:46   ` Masahiro Yamada
2015-02-11 19:45     ` Simon Glass
2015-02-06  4:41 ` [U-Boot] [PATCH v2 05/19] dm: Add Kconfig options for driver model SPL support Simon Glass
2015-02-11 19:45   ` Simon Glass
2015-02-06  4:41 ` [U-Boot] [PATCH v2 06/19] dm: test: Add a Kconfig file Simon Glass
2015-02-09  3:51   ` Masahiro Yamada
2015-02-11 19:45     ` Simon Glass
2015-02-06  4:41 ` [U-Boot] [PATCH v2 07/19] dm: Add CMD_DM and CMD_DEMO to Kconfig Simon Glass
2015-02-09  4:10   ` Masahiro Yamada
2015-02-11 19:45     ` Simon Glass
2015-02-06  4:41 ` [U-Boot] [PATCH v2 08/19] dm: Move Raspberry Pi driver model CONFIGs " Simon Glass
2015-02-11 19:45   ` Simon Glass
2015-02-06  4:41 ` [U-Boot] [PATCH v2 09/19] dm: exynos: Move " Simon Glass
2015-02-11 19:45   ` Simon Glass
2015-02-06  4:41 ` [U-Boot] [PATCH v2 10/19] dm: x86: " Simon Glass
2015-02-11 19:46   ` Simon Glass
2015-02-06  4:41 ` [U-Boot] [PATCH v2 11/19] dm: tegra: " Simon Glass
2015-02-11 19:46   ` Simon Glass
2015-02-06  4:41 ` [U-Boot] [PATCH v2 12/19] dm: at91: snapper: " Simon Glass
2015-02-09  3:43   ` Masahiro Yamada
2015-02-10  5:04     ` Simon Glass
2015-02-06  4:41 ` [U-Boot] [PATCH v2 13/19] dm: omap3: " Simon Glass
2015-02-09  5:35   ` Masahiro Yamada
2015-02-10  5:04     ` Simon Glass
2015-02-11 19:46       ` Simon Glass
2015-02-06  4:41 ` [U-Boot] [PATCH v2 14/19] dm: sandbox: " Simon Glass
2015-02-11 19:46   ` Simon Glass
2015-02-06  4:41 ` [U-Boot] [PATCH v2 15/19] dm: sunxi: " Simon Glass
2015-02-07  4:22   ` Ian Campbell
2015-02-07 15:12     ` Simon Glass
2015-02-11 19:46       ` Simon Glass
2015-02-06  4:41 ` [U-Boot] [PATCH v2 16/19] dm: mx6: " Simon Glass
2015-02-11 19:47   ` Simon Glass
2015-02-06  4:41 ` [U-Boot] [PATCH v2 17/19] dm: Kconfig: Move CONFIG_SYS_MALLOC_F_LEN " Simon Glass
2015-02-18 13:44   ` Alexey Brodkin
2015-02-19 14:06     ` Simon Glass
2015-02-06  4:41 ` [U-Boot] [PATCH v2 18/19] dm: socfpga: Move driver model CONFIGs " Simon Glass
2015-02-06 23:36   ` Dinh Nguyen
2015-02-07  0:11     ` Simon Glass
2015-02-09  7:29       ` Stefan Roese
2015-02-09 16:45         ` Dinh Nguyen
2015-02-09 17:04           ` Marek Vasut
2015-02-11 19:47             ` Simon Glass
2015-02-06  4:41 ` [U-Boot] [PATCH v2 19/19] dm: Drop unused driver model config_defaults Simon Glass

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