aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChaotian Jing <chaotian.jing@mediatek.com>2016-02-14 13:31:00 -0500
committerUlf Hansson <ulf.hansson@linaro.org>2016-02-29 05:03:24 -0500
commit8d53e41238a860fa27c6d312adde16148d2ffe07 (patch)
tree2897ef6c670d76163016937e469de4d8aa44e1b6
parenta72e8b170069e98e1f5ca2a2855ee399148a9152 (diff)
mmc: mediatek: add SD write protect support
use mmc core layer's API to support sd write protect Signed-off-by: Chaotian Jing <chaotian.jing@mediatek.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
-rw-r--r--drivers/mmc/host/mtk-sd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mmc/host/mtk-sd.c b/drivers/mmc/host/mtk-sd.c
index 82a97ac4e956..f01972eb57e9 100644
--- a/drivers/mmc/host/mtk-sd.c
+++ b/drivers/mmc/host/mtk-sd.c
@@ -35,6 +35,7 @@
35#include <linux/mmc/mmc.h> 35#include <linux/mmc/mmc.h>
36#include <linux/mmc/sd.h> 36#include <linux/mmc/sd.h>
37#include <linux/mmc/sdio.h> 37#include <linux/mmc/sdio.h>
38#include <linux/mmc/slot-gpio.h>
38 39
39#define MAX_BD_NUM 1024 40#define MAX_BD_NUM 1024
40 41
@@ -1452,6 +1453,7 @@ static struct mmc_host_ops mt_msdc_ops = {
1452 .pre_req = msdc_pre_req, 1453 .pre_req = msdc_pre_req,
1453 .request = msdc_ops_request, 1454 .request = msdc_ops_request,
1454 .set_ios = msdc_ops_set_ios, 1455 .set_ios = msdc_ops_set_ios,
1456 .get_ro = mmc_gpio_get_ro,
1455 .start_signal_voltage_switch = msdc_ops_switch_volt, 1457 .start_signal_voltage_switch = msdc_ops_switch_volt,
1456 .card_busy = msdc_card_busy, 1458 .card_busy = msdc_card_busy,
1457 .execute_tuning = msdc_execute_tuning, 1459 .execute_tuning = msdc_execute_tuning,