]> git.sur5r.net Git - u-boot/commit
mmc: fsl_esdhc: make GPIO support optional
authorYangbo Lu <yangbo.lu@nxp.com>
Wed, 7 Dec 2016 03:54:30 +0000 (11:54 +0800)
committerYork Sun <york.sun@nxp.com>
Wed, 18 Jan 2017 17:28:14 +0000 (09:28 -0800)
commitfc8048a88e7b5467a77512bf31e5225c0e5a2a0b
tree2cd39e28149b4e2a5d0e06e5e4d4d5967883c8e6
parent3564208e013d34eb0dab58d2f1561feee3f5735d
mmc: fsl_esdhc: make GPIO support optional

There would be compiling error as below when enable driver model for esdhc.
undefined reference to `dm_gpio_get_value'
undefined reference to `gpio_request_by_name_nodev'
This patch is to make GPIO support optional with CONFIG_DM_GPIO. Because
all boards of QorIQ platform don't need it and they just check register for
CD/WP status, only some boards of i.MX platform require this.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
Acked-by: Jaehoon Chung <jh80.chung@samsung.com>
Reviewed-by: York Sun <york.sun@nxp.com>
drivers/mmc/fsl_esdhc.c