Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4f408cc6 authored by Seungwon Jeon's avatar Seungwon Jeon Committed by Chris Ball
Browse files

mmc: dw_mmc: Add more capabilities field



This patch adds another capabilities field for MMC_CAPS2_XXX.

Signed-off-by: default avatarSeungwon Jeon <tgih.jun@samsung.com>
Signed-off-by: default avatarChris Ball <cjb@laptop.org>
parent 6fe8890d
Loading
Loading
Loading
Loading
+6 −0
Original line number Original line Diff line number Diff line
@@ -1681,6 +1681,12 @@ static int __init dw_mci_init_slot(struct dw_mci *host, unsigned int id)
	else
	else
		mmc->caps = 0;
		mmc->caps = 0;


	if (host->pdata->caps2)
		mmc->caps2 = host->pdata->caps2;
	else
		mmc->caps2 = 0;


	if (host->pdata->get_bus_wd)
	if (host->pdata->get_bus_wd)
		if (host->pdata->get_bus_wd(slot->id) >= 4)
		if (host->pdata->get_bus_wd(slot->id) >= 4)
			mmc->caps |= MMC_CAP_4_BIT_DATA;
			mmc->caps |= MMC_CAP_4_BIT_DATA;
+1 −0
Original line number Original line Diff line number Diff line
@@ -214,6 +214,7 @@ struct dw_mci_board {
	unsigned int bus_hz; /* Bus speed */
	unsigned int bus_hz; /* Bus speed */


	unsigned int caps;	/* Capabilities */
	unsigned int caps;	/* Capabilities */
	unsigned int caps2;	/* More capabilities */
	/*
	/*
	 * Override fifo depth. If 0, autodetect it from the FIFOTH register,
	 * Override fifo depth. If 0, autodetect it from the FIFOTH register,
	 * but note that this may not be reliable after a bootloader has used
	 * but note that this may not be reliable after a bootloader has used