I'm using i.MX6UL processor. I want to enable write protection for the usdhc1 [mmc].
But setting the register MX6UL_PAD_CSI_DATA04__USDHC1_WP to proper value. but still seeing write protection is not enabled for the sd card connected.
I even tried adding following line to DTS file:
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_usdhc1>;
cd-gpios = <&gpio2 21 0>;
wp-gpios = <&gpio4 25 0>;
status = "okay";
But still it didnt work.
Am I missing any setting further? Can you please help me out.