Skip to content

Commit

Permalink
Merge pull request torvalds#161 from hzhuang1/emmc_rpmb
Browse files Browse the repository at this point in the history
Emmc rpmb
  • Loading branch information
fboudra committed Dec 1, 2015
2 parents f7136b7 + f5ad7da commit 88c232f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm64/configs/defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ CONFIG_USB_FUNCTIONFS_RNDIS=y
CONFIG_USB_MASS_STORAGE=m
CONFIG_USB_G_SERIAL=m
CONFIG_MMC=y
CONFIG_MMC_BLOCK_MINORS=64
CONFIG_MMC_BLOCK_MINORS=32
CONFIG_MMC_ARMMMCI=y
CONFIG_MMC_SDHCI=y
CONFIG_MMC_SDHCI_PLTFM=y
Expand Down
8 changes: 8 additions & 0 deletions drivers/mmc/host/dw_mmc-k3.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@ struct k3_priv {
struct regmap *reg;
};

/* only enable MMC_CAP_CMD23 for eMMC controller */
static unsigned long dw_mci_hi6220_caps[] = {
MMC_CAP_CMD23,
0,
0
};

static void dw_mci_k3_set_ios(struct dw_mci *host, struct mmc_ios *ios)
{
int ret;
Expand Down Expand Up @@ -133,6 +140,7 @@ static int dw_mci_hi6220_execute_tunning(struct dw_mci_slot *slot)
}

static const struct dw_mci_drv_data hi6220_data = {
.caps = dw_mci_hi6220_caps,
.switch_voltage = dw_mci_hi6220_switch_voltage,
.set_ios = dw_mci_hi6220_set_ios,
.parse_dt = dw_mci_hi6220_parse_dt,
Expand Down

0 comments on commit 88c232f

Please sign in to comment.