
From: Peng Fan peng.fan@nxp.com Sent: Tuesday, July 14, 2020 4:52 PM To: Tokumoto, Shunsuke/徳本 俊介 s-tokumoto@fujitsu.com Cc: u-boot@lists.denx.de; Iida, Yasushi/飯田 康志 yasushi.iida@fujitsu.com Subject: RE: [PATCH] mmc: Parse new binding for eMMC fixed driver type
Subject: [PATCH] mmc: Parse new binding for eMMC fixed driver type
Parse the new binding and store it in the mmc config struct after doing some sanity checks. The code is designed to support fixed mmc driver type if we ever need that.
Signed-off-by: Shunsuke Tokumoto s-tokumoto@fujitsu.com Signed-off-by: Yasushi Iida yasushi.iida@fujitsu.com
drivers/mmc/mmc-uclass.c | 30
++++++++++++++++++++++++++++++
drivers/mmc/mmc.c | 8 ++++++++ include/mmc.h | 3 +++ 3 files changed, 41 insertions(+)
diff --git a/drivers/mmc/mmc-uclass.c b/drivers/mmc/mmc-uclass.c
index
c5b7872900..e67aae451f 100644 --- a/drivers/mmc/mmc-uclass.c +++ b/drivers/mmc/mmc-uclass.c @@ -162,6 +162,36 @@ int dm_mmc_deferred_probe(struct udevice *dev) if (ops->deferred_probe) return ops->deferred_probe(dev);
- /* Check eMMC driver type selection */
- val = dev_read_u32_default(dev, "fixed-emmc-driver-type", 0);
Has the bindings been accepted by Linux Kernel?
The bindings "fixed-emmc-driver-type" has already included in the Linux Kernel. The others, "fixed-emmc-driver-type-hs200" and "fixed-emmc-driver-type-hs400" are not included in the Linux Kernel.
Regards, Peng.
Best regards Shunsuke