mirror of
https://github.com/u-boot/u-boot.git
synced 2024-11-26 13:44:29 +08:00
MX5: mx53smd: make use of GPIO framework
Signed-off-by: Stefano Babic <sbabic@denx.de> CC: Fabio Estevam <fabio.estevam@freescale.com>
This commit is contained in:
parent
00c07fe692
commit
04e25fd629
@ -31,7 +31,7 @@
|
||||
#include <netdev.h>
|
||||
#include <mmc.h>
|
||||
#include <fsl_esdhc.h>
|
||||
#include <mxc_gpio.h>
|
||||
#include <asm/gpio.h>
|
||||
|
||||
DECLARE_GLOBAL_DATA_PTR;
|
||||
|
||||
@ -139,7 +139,7 @@ struct fsl_esdhc_cfg esdhc_cfg[1] = {
|
||||
|
||||
int board_mmc_getcd(u8 *cd, struct mmc *mmc)
|
||||
{
|
||||
*cd = mxc_gpio_get(77); /*GPIO3_13*/
|
||||
*cd = gpio_get_value(77); /*GPIO3_13*/
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user