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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

Jump to solution
2,056 Views
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.

Labels (2)
1 Solution
1,301 Views
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!

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

View solution in original post

3 Replies
1,301 Views
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,301 Views
igorpadykov
NXP Employee
NXP Employee

Hi John

yes compatible, kernel 3.17 is with device tree

Best regards

igor

0 Kudos
1,302 Views
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!

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