mbox series

[V2,0/5] Add mmc-pwrseq file to use common function

Message ID 20210216011656.12855-1-jh80.chung@samsung.com
Headers show
Series Add mmc-pwrseq file to use common function | expand

Message

Jaehoon Chung Feb. 16, 2021, 1:16 a.m. UTC
Some Socs need to use H/W power-reset before probing eMMC.
Its function can be resued with same behavior.

Changelog on V2:
- Not enable CONFIG_MMC_PWRSEQ by default when CONFIG_PWRSEQ is enabled.
- Remove unused variable in each drivers.

Jaehoon Chung (5):
  mmc: pwrseq: add mmc-pwrseq file to provide a generic interface
  mmc: meson_gx_mmc: use mmc_pwrseq instead of meson_mmc_pwrseq
  mmc: rockchip_dw_mmc: use mmc_pwrseq instead of rockchip_mmc_pwrseq
  ARM: mach-meson: select MMC_PWRSEQ config
  configs: enable CONFIG_MMC_PWRSEQ configuration

 arch/arm/mach-meson/Kconfig         |  1 +
 configs/chromebit_mickey_defconfig  |  1 +
 configs/chromebook_bob_defconfig    |  1 +
 configs/chromebook_jerry_defconfig  |  1 +
 configs/chromebook_minnie_defconfig |  1 +
 configs/chromebook_speedy_defconfig |  1 +
 drivers/mmc/Kconfig                 |  7 ++++
 drivers/mmc/Makefile                |  1 +
 drivers/mmc/meson_gx_mmc.c          | 45 ++-----------------------
 drivers/mmc/mmc-pwrseq.c            | 51 +++++++++++++++++++++++++++++
 drivers/mmc/rockchip_dw_mmc.c       | 42 ++----------------------
 include/mmc.h                       | 14 ++++++++
 12 files changed, 85 insertions(+), 81 deletions(-)
 create mode 100644 drivers/mmc/mmc-pwrseq.c