arm: tegra: Pass WM8903 gpio configuration
Sumit Bhattacharya [Sun, 2 Oct 2011 08:57:55 +0000 (13:57 +0530)]
On cardhu and ventana WM8903 GPIO1 is used for digital mic lrclk
output and GPIO2 is used for digital mic data input. Pass corresponding
WM8903 gpio configuration through platform data to enable cardhu and
ventana digital mic support.

Bug 872652

Change-Id: I410265f1b4f9a8c5e43e5437ed6bac4122709178
Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-on: http://git-master/r/55654
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: R4410b3a40f7577b4358b85e40a6e37544dc6c2b4

arch/arm/mach-tegra/board-cardhu.c

index 137b625..6c137fd 100644 (file)
@@ -257,8 +257,9 @@ static struct wm8903_platform_data cardhu_wm8903_pdata = {
        .micdet_delay = 100,
        .gpio_base = CARDHU_GPIO_WM8903(0),
        .gpio_cfg = {
-               WM8903_GPIO_NO_CONFIG,
-               WM8903_GPIO_NO_CONFIG,
+               (WM8903_GPn_FN_DMIC_LR_CLK_OUTPUT << WM8903_GP1_FN_SHIFT),
+               (WM8903_GPn_FN_DMIC_LR_CLK_OUTPUT << WM8903_GP2_FN_SHIFT) |
+                       WM8903_GP2_DIR,
                0,
                WM8903_GPIO_NO_CONFIG,
                WM8903_GPIO_NO_CONFIG,