|
发表于 2021-8-5 16:53:39
5045 浏览 0 回复
[调试] sd
本帖最后由 星空 于 2021-8-5 16:55 编辑
一硬件
二 软件
1 dws
- <gpio12>
- <eint_mode>true</eint_mode>
- <def_mode>0</def_mode>
- <inpull_en>true</inpull_en>
- <inpull_selhigh>true</inpull_selhigh>
- <def_dir>IN</def_dir>
- <out_high>false</out_high>
- <varName0>GPIO_SDHC_EINT_PIN</varName0>
- <smt>false</smt>
- <ies>true</ies>
- </gpio12>
-
- <eint12>
- <varName>MSDC1_INS</varName>
- <debounce_time>16</debounce_time>
- <polarity>Low</polarity>
- <sensitive_level>Level</sensitive_level>
- <debounce_en>Disable</debounce_en>
- </eint12>
复制代码
2 dts
3 其他
这里一般不用改,但8788有这现象不上电 正常现象: 插入应该有VMCH_PMU电压,拔出电压消失,
4 热插拔改非热插拔
- diff --git a/kernel-3.18/arch/arm/boot/dts/k80_bsp.dts b/kernel-3.18/arch/arm/boot/dts/k80_bsp.dts
- index 78c02e0..73472e3 100755
- --- a/kernel-3.18/arch/arm/boot/dts/k80_bsp.dts
- +++ b/kernel-3.18/arch/arm/boot/dts/k80_bsp.dts
- @@ -159,6 +159,7 @@
- sd-uhs-sdr25;
- sd-uhs-sdr50;
- sd-uhs-sdr104;
- + non-removable;
- pinctrl-names = "default","insert_cfg";
- pinctrl-0 = <&mmc1_pins_insert_default>;
- pinctrl-1 = <&mmc1_pins_insert_cfg>;
-
-
-
- &mmc1 {
- clk_src = /bits/ 8 <MSDC1_CLKSRC_187MHZ>;
- bus-width = <4>;
- max-frequency = <208000000>;
- msdc-sys-suspend;
- cap-sd-highspeed;
- sd-uhs-sdr12;
- sd-uhs-sdr25;
- sd-uhs-sdr50;
- sd-uhs-sdr104;
- non-removable;
- pinctrl-names = "default","insert_cfg";
- pinctrl-0 = <&mmc1_pins_insert_default>;
- pinctrl-1 = <&mmc1_pins_insert_cfg>;
- pinctl = <&mmc1_pins_default>;
- pinctl_sdr104 = <&mmc1_pins_sdr104>;
- pinctl_sdr50 = <&mmc1_pins_sdr50>;
- pinctl_ddr50 = <&mmc1_pins_ddr50>;
- register_setting = <&mmc1_register_setting_default>;
- host_function = /bits/ 8 <MSDC_SD>;
- cd_level = /bits/ 8 <MSDC_CD_LOW>;
- cd-gpios = <&pio 6 0>;
- status = "okay";
- };
复制代码
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
|
|
|
|
|
|
登录或注册
|