Loading arch/arm/mach-msm/board-samarium-gpiomux.c +52 −0 Original line number Diff line number Diff line Loading @@ -62,6 +62,18 @@ static struct gpiomux_setting gpio_touch_reset_sus_config = { .pull = GPIOMUX_PULL_DOWN, }; static struct gpiomux_setting wcnss_5wire_suspend_cfg = { .func = GPIOMUX_FUNC_GPIO, .drv = GPIOMUX_DRV_2MA, .pull = GPIOMUX_PULL_UP, }; static struct gpiomux_setting wcnss_5wire_active_cfg = { .func = GPIOMUX_FUNC_1, .drv = GPIOMUX_DRV_6MA, .pull = GPIOMUX_PULL_DOWN, }; #if defined(CONFIG_KS8851) || defined(CONFIG_KS8851_MODULE) static struct gpiomux_setting gpio_spi_config = { .func = GPIOMUX_FUNC_1, Loading Loading @@ -97,6 +109,44 @@ static struct msm_gpiomux_config msm_eth_configs[] = { }; #endif static struct msm_gpiomux_config wcnss_5wire_interface[] = { { .gpio = 36, .settings = { [GPIOMUX_ACTIVE] = &wcnss_5wire_active_cfg, [GPIOMUX_SUSPENDED] = &wcnss_5wire_suspend_cfg, }, }, { .gpio = 37, .settings = { [GPIOMUX_ACTIVE] = &wcnss_5wire_active_cfg, [GPIOMUX_SUSPENDED] = &wcnss_5wire_suspend_cfg, }, }, { .gpio = 38, .settings = { [GPIOMUX_ACTIVE] = &wcnss_5wire_active_cfg, [GPIOMUX_SUSPENDED] = &wcnss_5wire_suspend_cfg, }, }, { .gpio = 39, .settings = { [GPIOMUX_ACTIVE] = &wcnss_5wire_active_cfg, [GPIOMUX_SUSPENDED] = &wcnss_5wire_suspend_cfg, }, }, { .gpio = 40, .settings = { [GPIOMUX_ACTIVE] = &wcnss_5wire_active_cfg, [GPIOMUX_SUSPENDED] = &wcnss_5wire_suspend_cfg, }, }, }; static struct msm_gpiomux_config msm_blsp_configs[] __initdata = { { .gpio = 0, /* BLSP1 QUP1 SPI_DATA_MOSI */ Loading Loading @@ -268,4 +318,6 @@ void __init msmsamarium_init_gpiomux(void) msm_gpiomux_install(msm_lcd_configs, ARRAY_SIZE(msm_lcd_configs)); msm_gpiomux_install(msm_touch_configs, ARRAY_SIZE(msm_touch_configs)); msm_gpiomux_install(sd_card_det, ARRAY_SIZE(sd_card_det)); msm_gpiomux_install(wcnss_5wire_interface, ARRAY_SIZE(wcnss_5wire_interface)); } Loading
arch/arm/mach-msm/board-samarium-gpiomux.c +52 −0 Original line number Diff line number Diff line Loading @@ -62,6 +62,18 @@ static struct gpiomux_setting gpio_touch_reset_sus_config = { .pull = GPIOMUX_PULL_DOWN, }; static struct gpiomux_setting wcnss_5wire_suspend_cfg = { .func = GPIOMUX_FUNC_GPIO, .drv = GPIOMUX_DRV_2MA, .pull = GPIOMUX_PULL_UP, }; static struct gpiomux_setting wcnss_5wire_active_cfg = { .func = GPIOMUX_FUNC_1, .drv = GPIOMUX_DRV_6MA, .pull = GPIOMUX_PULL_DOWN, }; #if defined(CONFIG_KS8851) || defined(CONFIG_KS8851_MODULE) static struct gpiomux_setting gpio_spi_config = { .func = GPIOMUX_FUNC_1, Loading Loading @@ -97,6 +109,44 @@ static struct msm_gpiomux_config msm_eth_configs[] = { }; #endif static struct msm_gpiomux_config wcnss_5wire_interface[] = { { .gpio = 36, .settings = { [GPIOMUX_ACTIVE] = &wcnss_5wire_active_cfg, [GPIOMUX_SUSPENDED] = &wcnss_5wire_suspend_cfg, }, }, { .gpio = 37, .settings = { [GPIOMUX_ACTIVE] = &wcnss_5wire_active_cfg, [GPIOMUX_SUSPENDED] = &wcnss_5wire_suspend_cfg, }, }, { .gpio = 38, .settings = { [GPIOMUX_ACTIVE] = &wcnss_5wire_active_cfg, [GPIOMUX_SUSPENDED] = &wcnss_5wire_suspend_cfg, }, }, { .gpio = 39, .settings = { [GPIOMUX_ACTIVE] = &wcnss_5wire_active_cfg, [GPIOMUX_SUSPENDED] = &wcnss_5wire_suspend_cfg, }, }, { .gpio = 40, .settings = { [GPIOMUX_ACTIVE] = &wcnss_5wire_active_cfg, [GPIOMUX_SUSPENDED] = &wcnss_5wire_suspend_cfg, }, }, }; static struct msm_gpiomux_config msm_blsp_configs[] __initdata = { { .gpio = 0, /* BLSP1 QUP1 SPI_DATA_MOSI */ Loading Loading @@ -268,4 +318,6 @@ void __init msmsamarium_init_gpiomux(void) msm_gpiomux_install(msm_lcd_configs, ARRAY_SIZE(msm_lcd_configs)); msm_gpiomux_install(msm_touch_configs, ARRAY_SIZE(msm_touch_configs)); msm_gpiomux_install(sd_card_det, ARRAY_SIZE(sd_card_det)); msm_gpiomux_install(wcnss_5wire_interface, ARRAY_SIZE(wcnss_5wire_interface)); }