mirror of
https://github.com/Fishwaldo/build.git
synced 2025-03-24 07:41:53 +00:00
Add basic support for A20-OLinuXino-MICRO-eMMC. This includes new board configuration, new .fex file. The board needs kernel patch, with disable hpi on eMMC. Additionally starting from revision J, the phy is changed - RTL8201 to LAN8710. This needs patch of dts file, to enable PA17 pin support.
35 lines
1.2 KiB
Diff
35 lines
1.2 KiB
Diff
diff --git a/drivers/mmc/core/mmc.c b/drivers/mmc/core/mmc.c
|
|
index 5352cd7..0004b8f 100644
|
|
--- a/drivers/mmc/core/mmc.c
|
|
+++ b/drivers/mmc/core/mmc.c
|
|
@@ -480,21 +480,6 @@ static int mmc_read_ext_csd(struct mmc_card *card, u8 *ext_csd)
|
|
}
|
|
|
|
if (card->ext_csd.rev >= 5) {
|
|
- /* check whether the eMMC card supports HPI */
|
|
- if (ext_csd[EXT_CSD_HPI_FEATURES] & 0x1) {
|
|
- card->ext_csd.hpi = 1;
|
|
- if (ext_csd[EXT_CSD_HPI_FEATURES] & 0x2)
|
|
- card->ext_csd.hpi_cmd = MMC_STOP_TRANSMISSION;
|
|
- else
|
|
- card->ext_csd.hpi_cmd = MMC_SEND_STATUS;
|
|
- /*
|
|
- * Indicate the maximum timeout to close
|
|
- * a command interrupted by HPI
|
|
- */
|
|
- card->ext_csd.out_of_int_time =
|
|
- ext_csd[EXT_CSD_OUT_OF_INTERRUPT_TIME] * 10;
|
|
- }
|
|
-
|
|
card->ext_csd.rel_param = ext_csd[EXT_CSD_WR_REL_PARAM];
|
|
card->ext_csd.rst_n_function = ext_csd[EXT_CSD_RST_N_FUNCTION];
|
|
}
|
|
@@ -1026,7 +1011,7 @@ static int mmc_init_card(struct mmc_host *host, u32 ocr,
|
|
err = 0;
|
|
if (card->ext_csd.hs_max_dtr > 52000000 &&
|
|
host->caps2 & MMC_CAP2_HS200)
|
|
- err = mmc_select_hs200(card);
|
|
+ err = -EBADMSG;
|
|
else if (host->caps & MMC_CAP_MMC_HIGHSPEED)
|
|
err = mmc_switch(card, EXT_CSD_CMD_SET_NORMAL,
|
|
EXT_CSD_HS_TIMING, 1,
|