[PATCH 4/5] arm: mach-mx3: pcm043: add write-protect and card-detect for SD1

Fabio Estevam festevam at gmail.com
Tue Feb 22 14:26:51 EST 2011


Hi Wolfram,

On Tue, Feb 22, 2011 at 9:58 AM, Wolfram Sang <w.sang at pengutronix.de> wrote:
...
>  #define AC97_GPIO_TXFS (1 * 32 + 31)
>  #define AC97_GPIO_TXD  (1 * 32 + 28)
>  #define AC97_GPIO_RESET        (1 * 32 + 0)
>
> +#define SD1_GPIO_WP    (1 * 32 + 23)
> +#define SD1_GPIO_CD    (1 * 32 + 24)

You could also do:

+#define SD1_GPIO_WP    IMX_GPIO_NR(2, 23)
+#define SD1_GPIO_CD     IMX_GPIO_NR(2, 24)

Regards,

Fabio Estevam



More information about the linux-arm-kernel mailing list