[GPIOMUX_SUSPENDED] = &nfc_irq_cfg, }, }, { .gpio = 101, /* NFC FIRMWARE */ .settings = { [GPIOMUX_ACTIVE] = &nfc_firmware_cfg, [GPIOMUX_SUSPENDED] = &nfc_firmware_cfg, }, }, }; #endif #if defined(CONFIG_MACH_KANAS3G_CU) static struct msm_gpiomux_config nc_gpio_configs[] __initdata = { FAST_GPIO_CONFIG( 7, nc_gpio_cfg, nc_gpio_cfg), FAST_GPIO_CONFIG( 14, nc_gpio_cfg, nc_gpio_cfg), FAST_GPIO_CONFIG( 15, nc_gpio_cfg, nc_gpio_cfg), FAST_GPIO_CONFIG( 18, nc_gpio_cfg, nc_gpio_cfg), FAST_GPIO_CONFIG( 19, nc_gpio_cfg, nc_gpio_cfg), FAST_GPIO_CONFIG( 80, nc_gpio_cfg, nc_gpio_cfg), FAST_GPIO_CONFIG( 98, nc_gpio_cfg, nc_gpio_cfg), FAST_GPIO_CONFIG(101, nc_gpio_cfg, nc_gpio_cfg), }; #endif void __init msm8610_init_gpiomux(void) { int rc; rc = msm_gpiomux_init_dt();
.drv = GPIOMUX_DRV_2MA, .pull = GPIOMUX_PULL_DOWN, .dir = GPIOMUX_OUT_LOW, }; static struct gpiomux_setting motor_en_gpio_suspend_cfg = { .func = GPIOMUX_FUNC_GPIO, .drv = GPIOMUX_DRV_2MA, .pull = GPIOMUX_PULL_DOWN, .dir = GPIOMUX_OUT_LOW, }; static struct msm_gpiomux_config craterq_gpio_configs[] __initdata = { /* ETC */ FAST_GPIO_CONFIG(14, default_cfg_inp_np, default_cfg_inp_np), /* HW_CHK_BIT1 */ FAST_GPIO_CONFIG(15, default_cfg_inp_np, default_cfg_inp_np), /* HW_CHK_BIT0 */ FAST_GPIO_CONFIG(22, default_cfg_inp_np, default_cfg_inp_np), /* CHECK_DS_SS */ FAST_GPIO_CONFIG(51, default_cfg_inp_np, default_cfg_inp_np), /* CHG_DET */ /* AUDIO */ FAST_GPIO_CONFIG(68, codec_int_gpio_suspend_cfg , codec_int_gpio_active_cfg), FAST_GPIO_CONFIG(69, ear_det_gpio_suspend_cfg , ear_det_gpio_active_cfg), FAST_GPIO_CONFIG(72, codec_reset_gpio_suspend_cfg, codec_reset_gpio_active_cfg), FAST_GPIO_CONFIG(111, motor_en_gpio_suspend_cfg , motor_en_gpio_active_cfg), }; #endif #if defined(CONFIG_MACH_MS01_CHN_CTC) || defined(CONFIG_MACH_CRATERVE_CHN_CTC) static struct msm_gpiomux_config msm8226_nc_gpio_cfgs[] __initdata = { NC_GPIO_CONFIG(24), NC_GPIO_CONFIG(49),