mirror of
https://github.com/Fishwaldo/build.git
synced 2025-03-29 18:21:27 +00:00
42 lines
1.2 KiB
Text
42 lines
1.2 KiB
Text
diff --git a/arch/arm/boot/dts/sun7i-a20-olinuxino-lime2.dts b/arch/arm/boot/dts/sun7i-a20-olinuxino-lime2.dts
|
|
index d5c796c..1f5339d 100644
|
|
--- a/arch/arm/boot/dts/sun7i-a20-olinuxino-lime2.dts
|
|
+++ b/arch/arm/boot/dts/sun7i-a20-olinuxino-lime2.dts
|
|
@@ -188,6 +188,15 @@
|
|
status = "okay";
|
|
};
|
|
|
|
+&mmc2 {
|
|
+ pinctrl-names = "default";
|
|
+ pinctrl-0 = <&mmc2_pins_a>;
|
|
+ vmmc-supply = <®_vcc3v3>;
|
|
+ bus-width = <4>;
|
|
+ non-removable;
|
|
+ status = "okay";
|
|
+};
|
|
+
|
|
&ohci0 {
|
|
status = "okay";
|
|
};
|
|
diff --git a/drivers/mmc/core/mmc.c b/drivers/mmc/core/mmc.c
|
|
index 3d5087b..78668aa 100644
|
|
--- a/drivers/mmc/core/mmc.c
|
|
+++ b/drivers/mmc/core/mmc.c
|
|
@@ -504,7 +504,7 @@ static int mmc_decode_ext_csd(struct mmc_card *card, u8 *ext_csd)
|
|
pr_info("%s: MAN_BKOPS_EN bit is not set\n",
|
|
mmc_hostname(card->host));
|
|
}
|
|
-
|
|
+#if 0
|
|
/* check whether the eMMC card supports HPI */
|
|
if (!broken_hpi && (ext_csd[EXT_CSD_HPI_FEATURES] & 0x1)) {
|
|
card->ext_csd.hpi = 1;
|
|
@@ -519,7 +519,7 @@ static int mmc_decode_ext_csd(struct mmc_card *card, u8 *ext_csd)
|
|
card->ext_csd.out_of_int_time =
|
|
ext_csd[EXT_CSD_OUT_OF_INTERRUPT_TIME] * 10;
|
|
}
|
|
-
|
|
+#endif
|
|
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];
|
|
|