]> git.baikalelectronics.ru Git - uboot.git/commit
mmc: fsl_esdhc: Fix wp_enable issue
authorYe Li <ye.li@nxp.com>
Mon, 7 Jan 2019 09:10:27 +0000 (09:10 +0000)
committerPeng Fan <peng.fan@nxp.com>
Fri, 3 May 2019 12:04:30 +0000 (20:04 +0800)
commite6a5421a32d91f04967072258ceed168d484885a
tree1cfd4948fba91c27c4d565f33f7db83b9c9e020e
parent1bf215b1ee4d3e7496ee7be200453b7679ac1f65
mmc: fsl_esdhc: Fix wp_enable issue

The wp-gpios property is used for gpio, if this is set, the WP pin is muxed
to gpio function, can't be used as internal WP checking. However the codes
remain to use internal WP checking.

This patch changes to examine the "fsl,wp-controller" for enabling internal WP
checking, and "wp-gpios" for muxing to gpio.

Signed-off-by: Ye Li <ye.li@nxp.com>
drivers/mmc/fsl_esdhc.c