void __init msm8226_htc_init_gpiomux(void) { int rc; rc = msm_gpiomux_init_dt(); if (rc) { pr_err("%s failed %d\n", __func__, rc); return; } msm_gpiomux_install(msm_slimbus_config, ARRAY_SIZE(msm_slimbus_config)); msm_gpiomux_install(msm_aud_configs, ARRAY_SIZE(msm_aud_configs)); if (of_board_is_skuf()) msm_gpiomux_install(msm_skuf_blsp_configs, ARRAY_SIZE(msm_skuf_blsp_configs)); else msm_gpiomux_install(msm_blsp_configs, ARRAY_SIZE(msm_blsp_configs)); msm_gpiomux_install(wcnss_5wire_interface, ARRAY_SIZE(wcnss_5wire_interface)); msm_gpiomux_install(&sd_card_det, 1); if (of_board_is_skuf()) msm_gpiomux_install(msm_skuf_nfc_configs, ARRAY_SIZE(msm_skuf_nfc_configs)); msm_gpiomux_install_nowrite(msm_lcd_configs, ARRAY_SIZE(msm_lcd_configs)); msm_gpiomux_install(msm_sensor_configs, ARRAY_SIZE(msm_sensor_configs)); if (of_board_is_skuf()) msm_gpiomux_install(msm_sensor_configs_skuf_plus, ARRAY_SIZE(msm_sensor_configs_skuf_plus)); msm_gpiomux_sdc3_install(); #ifdef CONFIG_USB_EHCI_MSM_HSIC if (machine_is_msm8926()) { msm_hsic_configs[0].gpio = 119; msm_hsic_configs[1].gpio = 120; } msm_gpiomux_install(msm_hsic_configs, ARRAY_SIZE(msm_hsic_configs)); #endif }
void __init msm8226_init_gpiomux(void) { int rc; rc = msm_gpiomux_init_dt(); if (rc) { pr_err("%s failed %d\n", __func__, rc); return; } #if defined(CONFIG_KS8851) || defined(CONFIG_KS8851_MODULE) msm_gpiomux_install(msm_eth_configs, ARRAY_SIZE(msm_eth_configs)); #endif msm_gpiomux_install(msm_keypad_configs, ARRAY_SIZE(msm_keypad_configs)); if (of_board_is_skuf()) msm_gpiomux_install(msm_skuf_blsp_configs, ARRAY_SIZE(msm_skuf_blsp_configs)); else msm_gpiomux_install(msm_blsp_configs, ARRAY_SIZE(msm_blsp_configs)); msm_gpiomux_install(wcnss_5wire_interface, ARRAY_SIZE(wcnss_5wire_interface)); msm_gpiomux_install(&sd_card_det, 1); if (of_board_is_skuf()) msm_gpiomux_install(msm_skuf_goodix_configs, ARRAY_SIZE(msm_skuf_goodix_configs)); else msm_gpiomux_install(msm_synaptics_configs, ARRAY_SIZE(msm_synaptics_configs)); if (of_board_is_skuf()) msm_gpiomux_install(msm_skuf_nfc_configs, ARRAY_SIZE(msm_skuf_nfc_configs)); msm_gpiomux_install_nowrite(msm_lcd_configs, ARRAY_SIZE(msm_lcd_configs)); msm_gpiomux_install(msm_sensor_configs, ARRAY_SIZE(msm_sensor_configs)); if (of_board_is_skuf()) msm_gpiomux_install(msm_sensor_configs_skuf_plus, ARRAY_SIZE(msm_sensor_configs_skuf_plus)); msm_gpiomux_install(msm_auxpcm_configs, ARRAY_SIZE(msm_auxpcm_configs)); if (of_board_is_cdp() || of_board_is_mtp() || of_board_is_xpm()) msm_gpiomux_install(usb_otg_sw_configs, ARRAY_SIZE(usb_otg_sw_configs)); #if defined (CONFIG_SEC_MILLET_PROJECT) || defined(CONFIG_SEC_MATISSE_PROJECT) || defined(CONFIG_SEC_BERLUTI_PROJECT) msm_gpiomux_install(msm_nativesensors_configs,ARRAY_SIZE(msm_nativesensors_configs)); #endif msm_gpiomux_sdc3_install(); /* * HSIC STROBE gpio is also used by the ethernet. Install HSIC * gpio mux config only when HSIC is enabled. HSIC config will * be disabled when ethernet config is enabled. */ #ifdef CONFIG_USB_EHCI_MSM_HSIC if (machine_is_msm8926()) { msm_hsic_configs[0].gpio = 119; /* STROBE */ msm_hsic_configs[1].gpio = 120; /* DATA */ } msm_gpiomux_install(msm_hsic_configs, ARRAY_SIZE(msm_hsic_configs)); #endif #if defined(CONFIG_SAMSUNG_JACK) msm_gpiomux_install(msm_earjack_gpio_configs, ARRAY_SIZE(msm_earjack_gpio_configs)); #endif #ifdef CONFIG_SND_SOC_MAX98504 #if defined(CONFIG_MACH_MILLETLTE_OPEN) if ( system_rev >= 0 && system_rev < 3) #elif defined (CONFIG_MACH_MILLET3G_EUR) || defined(CONFIG_MACH_BERLUTI3G_EUR) if ( system_rev >= 2 && system_rev < 4) #elif defined(CONFIG_MACH_MILLETWIFI_OPEN) if ( system_rev >= 0 && system_rev < 5) #endif { msm_gpiomux_install(msm8226_tertiary_mi2s_configs,ARRAY_SIZE(msm8226_tertiary_mi2s_configs)); msm_gpiomux_install(msm8226_blsp_codec_configs,ARRAY_SIZE(msm8226_blsp_codec_configs)); } #endif }
void __init msm8226_init_gpiomux(void) { int rc; rc = msm_gpiomux_init_dt(); if (rc) { pr_err("%s failed %d\n", __func__, rc); return; } #if defined(CONFIG_KS8851) || defined(CONFIG_KS8851_MODULE) msm_gpiomux_install(msm_eth_configs, ARRAY_SIZE(msm_eth_configs)); #endif msm_gpiomux_install(msm_keypad_configs, ARRAY_SIZE(msm_keypad_configs)); if (of_board_is_skuf()) msm_gpiomux_install(msm_skuf_blsp_configs, ARRAY_SIZE(msm_skuf_blsp_configs)); else msm_gpiomux_install(msm_blsp_configs, ARRAY_SIZE(msm_blsp_configs)); msm_gpiomux_install(wcnss_5wire_interface, ARRAY_SIZE(wcnss_5wire_interface)); msm_gpiomux_install(&sd_card_det, 1); if (of_board_is_skuf()) msm_gpiomux_install(msm_skuf_goodix_configs, ARRAY_SIZE(msm_skuf_goodix_configs)); else msm_gpiomux_install(msm_synaptics_configs, ARRAY_SIZE(msm_synaptics_configs)); if (of_board_is_skuf()) msm_gpiomux_install(msm_skuf_nfc_configs, ARRAY_SIZE(msm_skuf_nfc_configs)); msm_gpiomux_install_nowrite(msm_lcd_configs, ARRAY_SIZE(msm_lcd_configs)); msm_gpiomux_install(msm_sensor_configs, ARRAY_SIZE(msm_sensor_configs)); if (of_board_is_skuf()) msm_gpiomux_install(msm_sensor_configs_skuf_plus, ARRAY_SIZE(msm_sensor_configs_skuf_plus)); msm_gpiomux_install(msm_auxpcm_configs, ARRAY_SIZE(msm_auxpcm_configs)); if (of_board_is_cdp() || of_board_is_mtp() || of_board_is_xpm()) msm_gpiomux_install(usb_otg_sw_configs, ARRAY_SIZE(usb_otg_sw_configs)); msm_gpiomux_install(hs_uart_sw_configs, ARRAY_SIZE(hs_uart_sw_configs)); msm_gpiomux_sdc3_install(); msm_gpiomux_extovp_install(); /* * HSIC STROBE gpio is also used by the ethernet. Install HSIC * gpio mux config only when HSIC is enabled. HSIC config will * be disabled when ethernet config is enabled. */ #ifdef CONFIG_USB_EHCI_MSM_HSIC if (machine_is_msm8926()) { msm_hsic_configs[0].gpio = 119; /* STROBE */ msm_hsic_configs[1].gpio = 120; /* DATA */ } msm_gpiomux_install(msm_hsic_configs, ARRAY_SIZE(msm_hsic_configs)); #endif }
void __init msm8226_init_gpiomux(void) { int rc; rc = msm_gpiomux_init_dt(); if (rc) { pr_err("%s failed %d\n", __func__, rc); return; } /* Battery charging and BMS GPIO */ msm_gpiomux_install(msm_ta_nchg_configs, ARRAY_SIZE(msm_ta_nchg_configs)); #if defined (CONFIG_SEC_ATLANTICLTE_COMMON) msm_gpiomux_install(msm_lte_chg_configs, ARRAY_SIZE(msm_lte_chg_configs)); #endif #if defined (CONFIG_SEC_ATLANTIC_PROJECT) msm_gpiomux_install(msm_chg_det_configs, ARRAY_SIZE(msm_chg_det_configs)); #endif #if !defined (CONFIG_MACH_ATLANTIC3GEUR_OPEN) msm_gpiomux_install(msm_nfc_configs, ARRAY_SIZE(msm_nfc_configs)); #endif #if defined(CONFIG_KS8851) || defined(CONFIG_KS8851_MODULE) msm_gpiomux_install(msm_eth_configs, ARRAY_SIZE(msm_eth_configs)); #endif #if defined(CONFIG_SEC_ATLANTICLTE_COMMON) msm_gpiomux_install(expander_configs, ARRAY_SIZE(expander_configs)); #endif msm_gpiomux_install(msm_keypad_configs, ARRAY_SIZE(msm_keypad_configs)); if (of_board_is_skuf()) msm_gpiomux_install(msm_skuf_blsp_configs, ARRAY_SIZE(msm_skuf_blsp_configs)); else msm_gpiomux_install(msm_blsp_configs, ARRAY_SIZE(msm_blsp_configs)); msm_gpiomux_install(wcnss_5wire_interface, ARRAY_SIZE(wcnss_5wire_interface)); if (of_board_is_skuf()) msm_gpiomux_install(msm_skuf_goodix_configs, ARRAY_SIZE(msm_skuf_goodix_configs)); else #if defined (CONFIG_MACH_BERLUTI3G_EUR) msm_gpiomux_install(msm_cypress_configs, ARRAY_SIZE(msm_cypress_configs)); msm_gpiomux_install(msm_keyboad_cypress_configs, ARRAY_SIZE(msm_keyboad_cypress_configs)); #else msm_gpiomux_install(msm_cypress_configs, ARRAY_SIZE(msm_cypress_configs)); #endif if (of_board_is_skuf()) msm_gpiomux_install(msm_skuf_nfc_configs, ARRAY_SIZE(msm_skuf_nfc_configs)); if (system_rev >= 1) msm_gpiomux_install(msm8974_cover_id_config, ARRAY_SIZE(msm8974_cover_id_config)); else msm_gpiomux_install_nowrite(msm_lcd_configs, ARRAY_SIZE(msm_lcd_configs)); msm_gpiomux_install(msm_sensor_configs, ARRAY_SIZE(msm_sensor_configs)); #ifdef CONFIG_SENSORS_VFS61XX msm_gpiomux_install(msm_fingerprint_configs, ARRAY_SIZE(msm_fingerprint_configs)); #endif if (of_board_is_skuf()) msm_gpiomux_install(msm_sensor_configs_skuf_plus, ARRAY_SIZE(msm_sensor_configs_skuf_plus)); /* msm_gpiomux_install(msm_auxpcm_configs, ARRAY_SIZE(msm_auxpcm_configs)); if (of_board_is_cdp() || of_board_is_mtp() || of_board_is_xpm()) msm_gpiomux_install(usb_otg_sw_configs, ARRAY_SIZE(usb_otg_sw_configs)); */ msm_gpiomux_install(msm_nativesensors_configs,ARRAY_SIZE(msm_nativesensors_configs)); msm_gpiomux_sdc3_install(); /* * HSIC STROBE gpio is also used by the ethernet. Install HSIC * gpio mux config only when HSIC is enabled. HSIC config will * be disabled when ethernet config is enabled. */ #ifdef CONFIG_USB_EHCI_MSM_HSIC if (machine_is_msm8926()) { msm_hsic_configs[0].gpio = 119; /* STROBE */ msm_hsic_configs[1].gpio = 120; /* DATA */ } msm_gpiomux_install(msm_hsic_configs, ARRAY_SIZE(msm_hsic_configs)); #endif #if defined(CONFIG_SAMSUNG_JACK) msm_gpiomux_install(msm_earjack_gpio_configs, ARRAY_SIZE(msm_earjack_gpio_configs)); #endif #ifdef CONFIG_SND_SOC_ES325_ATLANTIC msm_gpiomux_install(msm_es325_config, ARRAY_SIZE(msm_es325_config)); #endif #ifdef CONFIG_SND_SOC_MAX98504 msm_gpiomux_install(msm8226_tertiary_mi2s_configs,ARRAY_SIZE(msm8226_tertiary_mi2s_configs)); #endif #if defined (CONFIG_MACH_ATLANTIC3GEUR_OPEN) msm_gpiomux_install(nc_configs, ARRAY_SIZE(nc_configs)); #endif /* Install HW_REV GPIO configurations */ msm_gpiomux_install(atlantic_hw_rev_cfgs, ARRAY_SIZE(atlantic_hw_rev_cfgs)); /* Install NC GPIO configurations */ #if defined(CONFIG_MACH_ATLANTICLTE_ATT) msm_gpiomux_install(atlantic_att_nc_gpios, ARRAY_SIZE(atlantic_att_nc_gpios)); #endif }
void __init msm8226_init_gpiomux(void) { int rc; rc = msm_gpiomux_init_dt(); if (rc) { pr_err("%s failed %d\n", __func__, rc); return; } #if defined(CONFIG_KS8851) || defined(CONFIG_KS8851_MODULE) msm_gpiomux_install(msm_eth_configs, ARRAY_SIZE(msm_eth_configs)); #endif msm_gpiomux_install(msm_keypad_configs, ARRAY_SIZE(msm_keypad_configs)); #if defined(CONFIG_MACH_MS01_EUR_3G) || defined(CONFIG_MACH_MS01_LTE) || defined(CONFIG_MACH_MILLET3G_EUR) || defined(CONFIG_MACH_MS01_CHN_CTC) \ || defined(CONFIG_MACH_MS01_LTE_KOR) || defined(CONFIG_MACH_CRATERVE_CHN_CTC) msm_gpiomux_install(msm_hall_configs, ARRAY_SIZE(msm_hall_configs)); #endif if (of_board_is_qrd()) msm_gpiomux_install(msm_qrd_blsp_configs, ARRAY_SIZE(msm_qrd_blsp_configs)); else msm_gpiomux_install(msm_blsp_configs, ARRAY_SIZE(msm_blsp_configs)); msm_gpiomux_install(wcnss_5wire_interface, ARRAY_SIZE(wcnss_5wire_interface)); msm_gpiomux_install(&sd_card_det, 1); #if defined(CONFIG_MACH_MS01_EUR_3G) || defined(CONFIG_MACH_CRATERQ) || defined(CONFIG_MACH_MS01_LTE) || defined(CONFIG_MACH_MS01_CHN_CTC) \ || defined(CONFIG_MACH_MS01_LTE_KOR) || defined(CONFIG_MACH_CRATERVE_CHN_CTC) msm_gpiomux_install(msm8226_tx_gtr_configs, ARRAY_SIZE(msm8226_tx_gtr_configs)); msm_gpiomux_install(muic_i2c_configs, ARRAY_SIZE(muic_i2c_configs)); #endif if (of_board_is_qrd()) msm_gpiomux_install(msm_qrd_goodix_configs, ARRAY_SIZE(msm_qrd_goodix_configs)); else #if defined(CONFIG_TOUCHSCREEN_ZINITIX_BT531) msm_gpiomux_install(msm_zinitixs_configs, ARRAY_SIZE(msm_zinitixs_configs)); #elif defined(CONFIG_TOUCHSCREEN_ATMEL_MXTS) msm_gpiomux_install(msm_atmel_configs, ARRAY_SIZE(msm_atmel_configs)); #elif defined(CONFIG_TOUCHSCREEN_MMS144) msm_gpiomux_install(msm_melfas_configs, ARRAY_SIZE(msm_melfas_configs)); #else msm_gpiomux_install(msm_synaptics_configs, ARRAY_SIZE(msm_synaptics_configs)); #endif if (of_board_is_skuf()) msm_gpiomux_install(msm_skuf_nfc_configs, ARRAY_SIZE(msm_skuf_nfc_configs)); #if defined(CONFIG_FB_MSM_MDSS_SHARP_HD_PANEL)\ || defined(CONFIG_MACH_MILLET3G_EUR) msm_gpiomux_install_nowrite(msm_lcd_configs, ARRAY_SIZE(msm_lcd_configs)); #endif msm_gpiomux_install(msm_sensor_configs, ARRAY_SIZE(msm_sensor_configs)); /* if (of_board_is_skuf()) msm_gpiomux_install(msm_sensor_configs_skuf_plus, ARRAY_SIZE(msm_sensor_configs_skuf_plus)); */ #if defined(CONFIG_MACH_MILLET3G_EUR) msm_gpiomux_install(msm_speaker_enable_gpio_configs, ARRAY_SIZE(msm_speaker_enable_gpio_configs)); #endif #if defined(CONFIG_SEC_NFC_I2C) || defined(CONFIG_BCM2079X_NFC_I2C) || defined(CONFIG_NFC_PN547) msm_gpiomux_install(msm_nfc_configs, ARRAY_SIZE(msm_nfc_configs)); #else msm_gpiomux_install(msm_nc_configs, ARRAY_SIZE(msm_nc_configs)); #endif #if defined(CONFIG_YAS_ACC_DRIVER_BMA250) || defined(CONFIG_INPUT_MPU6500) || \ defined(CONFIG_PROXIMITY_SENSOR) || defined (CONFIG_SENSORS_HSCDTD008A) msm_gpiomux_install(msm_sensors_configs, ARRAY_SIZE(msm_sensors_configs)); #endif if (of_board_is_cdp() || of_board_is_mtp() || of_board_is_xpm()) msm_gpiomux_install(usb_otg_sw_configs, ARRAY_SIZE(usb_otg_sw_configs)); msm_gpiomux_sdc3_install(); /* * HSIC STROBE gpio is also used by the ethernet. Install HSIC * gpio mux config only when HSIC is enabled. HSIC config will * be disabled when ethernet config is enabled. */ #ifdef CONFIG_USB_EHCI_MSM_HSIC if (machine_is_msm8926()) { msm_hsic_configs[0].gpio = 119; /* STROBE */ msm_hsic_configs[1].gpio = 120; /* DATA */ } msm_gpiomux_install(msm_hsic_configs, ARRAY_SIZE(msm_hsic_configs)); #endif #if defined(CONFIG_LEDS_AN30259A) msm_gpiomux_install(an30259a_led_config, ARRAY_SIZE(an30259a_led_config)); #endif #if defined(CONFIG_MACH_MS01_CHN_CTC) || defined(CONFIG_MACH_CRATERVE_CHN_CTC)||defined(CONFIG_MACH_MS01_EUR_3G) || defined(CONFIG_MACH_CRATERQ) msm_gpiomux_install(msm8226_nc_gpio_cfgs, ARRAY_SIZE(msm8226_nc_gpio_cfgs)); #endif #if defined(CONFIG_SAMSUNG_JACK) msm_gpiomux_install(msm_earjack_gpio_configs, ARRAY_SIZE(msm_earjack_gpio_configs)); #endif #if defined(CONFIG_MACH_MS01_EUR_3G) msm_gpiomux_install(ms01_nc_gpio_cfgs, ARRAY_SIZE(ms01_nc_gpio_cfgs)); #endif #if defined(CONFIG_MACH_MS01_CHN_CTC) || defined(CONFIG_MACH_CRATERVE_CHN_CTC) if ( system_rev >= 4 ) { msm_gpiomux_install(ms01_ctc_nc_gpio_cfgs, ARRAY_SIZE(ms01_ctc_nc_gpio_cfgs)); } #elif defined(CONFIG_MACH_CRATERQ) msm_gpiomux_install(craterq_gpio_configs, ARRAY_SIZE(craterq_gpio_configs)); #endif }
void __init msm8226_init_gpiomux(void) { int rc; rc = msm_gpiomux_init_dt(); if (rc) { pr_err("%s failed %d\n", __func__, rc); return; } /* Battery charging and BMS GPIO */ msm_gpiomux_install(msm_ta_nchg_configs, ARRAY_SIZE(msm_ta_nchg_configs)); msm_gpiomux_install(msm_hrm_configs, ARRAY_SIZE(msm_hrm_configs)); msm_gpiomux_install(msm_sensorhub_configs, ARRAY_SIZE(msm_sensorhub_configs)); msm_gpiomux_install(msm_nfc_configs, ARRAY_SIZE(msm_nfc_configs)); #if defined(CONFIG_KS8851) || defined(CONFIG_KS8851_MODULE) msm_gpiomux_install(msm_eth_configs, ARRAY_SIZE(msm_eth_configs)); #endif msm_gpiomux_install(msm_keypad_configs, ARRAY_SIZE(msm_keypad_configs)); if (of_board_is_skuf()) msm_gpiomux_install(msm_skuf_blsp_configs, ARRAY_SIZE(msm_skuf_blsp_configs)); else msm_gpiomux_install(msm_blsp_configs, ARRAY_SIZE(msm_blsp_configs)); msm_gpiomux_install(wcnss_5wire_interface, ARRAY_SIZE(wcnss_5wire_interface)); if (of_board_is_skuf()) msm_gpiomux_install(msm_skuf_goodix_configs, ARRAY_SIZE(msm_skuf_goodix_configs)); msm_gpiomux_install(msm_synaptics_configs, ARRAY_SIZE(msm_synaptics_configs)); if (of_board_is_skuf()) msm_gpiomux_install(msm_skuf_nfc_configs, ARRAY_SIZE(msm_skuf_nfc_configs)); msm_gpiomux_install_nowrite(msm_lcd_configs, ARRAY_SIZE(msm_lcd_configs)); msm_gpiomux_install(msm_sensor_configs, ARRAY_SIZE(msm_sensor_configs)); if (of_board_is_skuf()) msm_gpiomux_install(msm_sensor_configs_skuf_plus, ARRAY_SIZE(msm_sensor_configs_skuf_plus)); msm_gpiomux_install(msm_auxpcm_configs, ARRAY_SIZE(msm_auxpcm_configs)); if (of_board_is_cdp() || of_board_is_mtp() || of_board_is_xpm()) msm_gpiomux_install(usb_otg_sw_configs, ARRAY_SIZE(usb_otg_sw_configs)); /* * gpio mux settings for the NC GPIOs */ msm_gpiomux_install(nc_gpio_cfgs, ARRAY_SIZE(nc_gpio_cfgs)); msm_gpiomux_install(hw_chkbits_cfg, ARRAY_SIZE(hw_chkbits_cfg)); msm_gpiomux_sdc3_install(); /* * HSIC STROBE gpio is also used by the ethernet. Install HSIC * gpio mux config only when HSIC is enabled. HSIC config will * be disabled when ethernet config is enabled. */ #ifdef CONFIG_USB_EHCI_MSM_HSIC if (machine_is_msm8926()) { msm_hsic_configs[0].gpio = 119; /* STROBE */ msm_hsic_configs[1].gpio = 120; /* DATA */ } msm_gpiomux_install(msm_hsic_configs, ARRAY_SIZE(msm_hsic_configs)); #endif #if defined(CONFIG_SAMSUNG_JACK) msm_gpiomux_install(msm_earjack_gpio_configs, ARRAY_SIZE(msm_earjack_gpio_configs)); #endif #ifdef CONFIG_SND_SOC_MAX98504 msm_gpiomux_install(msm8226_tertiary_mi2s_configs,ARRAY_SIZE(msm8226_tertiary_mi2s_configs)); #endif }
void __init msm8226_htc_init_gpiomux(void) { int rc; rc = msm_gpiomux_init_dt(); if (rc) { pr_err("%s failed %d\n", __func__, rc); return; } #if defined(CONFIG_KS8851) || defined(CONFIG_KS8851_MODULE) msm_gpiomux_install(msm_eth_configs, ARRAY_SIZE(msm_eth_configs)); #endif //htc audio ++ msm_gpiomux_install(msm_slimbus_config, ARRAY_SIZE(msm_slimbus_config)); msm_gpiomux_install(msm_aud_configs, ARRAY_SIZE(msm_aud_configs)); //htc audio -- if (of_board_is_skuf()) msm_gpiomux_install(msm_skuf_blsp_configs, ARRAY_SIZE(msm_skuf_blsp_configs)); else msm_gpiomux_install(msm_blsp_configs, ARRAY_SIZE(msm_blsp_configs)); msm_gpiomux_install(wcnss_5wire_interface, ARRAY_SIZE(wcnss_5wire_interface)); msm_gpiomux_install(&sd_card_det, 1); if (of_board_is_skuf()) msm_gpiomux_install(msm_skuf_nfc_configs, ARRAY_SIZE(msm_skuf_nfc_configs)); msm_gpiomux_install_nowrite(msm_lcd_configs, ARRAY_SIZE(msm_lcd_configs)); msm_gpiomux_install(msm_sensor_configs, ARRAY_SIZE(msm_sensor_configs)); if (of_board_is_skuf()) msm_gpiomux_install(msm_sensor_configs_skuf_plus, ARRAY_SIZE(msm_sensor_configs_skuf_plus)); #if 0 /* it will make gpio low and fail to get batt_id */ if (of_board_is_cdp() || of_board_is_mtp() || of_board_is_xpm()) msm_gpiomux_install(usb_otg_sw_configs, ARRAY_SIZE(usb_otg_sw_configs)); #endif msm_gpiomux_sdc3_install(); msm_gpiomux_install(debug_uart_configs, ARRAY_SIZE(debug_uart_configs)); msm_gpiomux_install(ncgpio_configs, ARRAY_SIZE(ncgpio_configs)); /* * HSIC STROBE gpio is also used by the ethernet. Install HSIC * gpio mux config only when HSIC is enabled. HSIC config will * be disabled when ethernet config is enabled. */ #ifdef CONFIG_USB_EHCI_MSM_HSIC if (machine_is_msm8926()) { msm_hsic_configs[0].gpio = 119; /* STROBE */ msm_hsic_configs[1].gpio = 120; /* DATA */ } msm_gpiomux_install(msm_hsic_configs, ARRAY_SIZE(msm_hsic_configs)); #endif }