How can we enable WP of micro SD card If WP pin of processor is already used as GPIO

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How can we enable WP of micro SD card If WP pin of processor is already used as GPIO

ソリューションへジャンプ
2,503件の閲覧回数
johnwesley
Contributor III

Hi all,

I am using IMX6SL processor  booting through SD1 card with micro SD which doesn't have WP enable. So I have connected WP pin of processor for another purpose like interrupt. Because of this I can't able to write to SD card.I am using Eval board code.Is it mandatory to keep WP pin of processor unused i.e., for other purpose?   Could you please help me how can I resolve this problem.

Thanks and Regards,

John Wesley.

ラベル(2)
1 解決策
1,748件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi John

you can look at attached board-mx6sl_evk.c from ltib

check struct esdhc_platform_data mx6_evk_sd1_data

and change it as esdhc_platform_data mx6_evk_sd3_data -

it has not WP signal.

for new kernels WP is defined in dts files check

..boot/dts/imx6sl-evk-common.dtsi for "wp-gpios"

Re: [PATCH v2 3/3] mmc: sdhci-esdhc-imx: add device tree probe support -- Linux MMC Development

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

元の投稿で解決策を見る

3 返答(返信)
1,748件の閲覧回数
johnwesley
Contributor III

Hi igor ,

Thank you for your valuable reply.

currently we are using Kernel 3.17 version. Kindly clarify whether above mentioned patch is compatible with our kernel 3.17.

Thanks in advance,

John Wesley.

1,748件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi John

yes compatible, kernel 3.17 is with device tree

Best regards

igor

0 件の賞賛
返信
1,749件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi John

you can look at attached board-mx6sl_evk.c from ltib

check struct esdhc_platform_data mx6_evk_sd1_data

and change it as esdhc_platform_data mx6_evk_sd3_data -

it has not WP signal.

for new kernels WP is defined in dts files check

..boot/dts/imx6sl-evk-common.dtsi for "wp-gpios"

Re: [PATCH v2 3/3] mmc: sdhci-esdhc-imx: add device tree probe support -- Linux MMC Development

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------