[U-Boot] [PATCH 4/7] mmc: move DesignWare-based drivers to Kconfig

Simon Glass sjg at chromium.org
Fri Jan 13 03:19:19 CET 2017


On 1 January 2017 at 05:11, Masahiro Yamada
<yamada.masahiro at socionext.com> wrote:
> Move (and rename) the following CONFIG options to Kconfig:
>
>   CONFIG_EXYNOS_DWMMC  (renamed to CONFIG_MMC_DW_EXYNOS)
>   CONFIG_HIKEY_DWMMC   (renamed to CONFIG_MMC_DW_K3)
>   CONFIG_SOCFPGA_DWMMC (renamed to CONFIG_MMC_DW_SOCFPGA)
>
> The "HIKEY" is a board name, so it is not suitable for the MMC
> controller name.  I am following the name used in Linux.
>
> This commit was generated as follows:
>
> [1] Rename the config options with the following command:
> find . -name .git -prune -o ! -path ./scripts/config_whitelist.txt \
> -type f -print | xargs sed -i -e '
> s/CONFIG_EXYNOS_DWMMC/CONFIG_MMC_DW_EXYNOS/g
> s/CONFIG_HIKEY_DWMMC/CONFIG_MMC_DW_K3/g
> s/CONFIG_SOCFPGA_DWMMC/CONFIG_MMC_DW_SOCFPGA/g
> '
>
> [2] Commit the changes
>
> [3] Create the entries in drivers/mmc/Kconfig
>     (with default y for EXYNOS and SOCFPGA)
>
> [4] Run the following:
> tools/moveconfig.py -y -r HEAD MMC_DW_EXYNOS MMC_DW_K3 MMC_DW_SOCFPGA
>
> [5] Sort and align drivers/mmc/Makefile for readability
>
> Signed-off-by: Masahiro Yamada <yamada.masahiro at socionext.com>
> ---
>
>  configs/hikey_defconfig          |  1 +
>  doc/README.socfpga               |  3 ---
>  drivers/mmc/Kconfig              | 28 ++++++++++++++++++++++++++++
>  drivers/mmc/Makefile             | 10 +++++-----
>  include/configs/exynos-common.h  |  1 -
>  include/configs/hikey.h          |  1 -
>  include/configs/socfpga_common.h |  1 -
>  7 files changed, 34 insertions(+), 11 deletions(-)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list