本文整理汇总了C++中socinfo_get_version函数的典型用法代码示例。如果您正苦于以下问题:C++ socinfo_get_version函数的具体用法?C++ socinfo_get_version怎么用?C++ socinfo_get_version使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了socinfo_get_version函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: apq8064_init_gpu
void __init apq8064_init_gpu(void)
{
unsigned int version = socinfo_get_version();
if (cpu_is_apq8064ab())
kgsl_3d0_pdata.pwrlevel[0].gpu_freq = 450000000;
if (SOCINFO_VERSION_MAJOR(version) == 2) {
kgsl_3d0_pdata.chipid = ADRENO_CHIPID(3, 2, 0, 2);
} else {
if ((SOCINFO_VERSION_MAJOR(version) == 1) &&
(SOCINFO_VERSION_MINOR(version) == 1))
kgsl_3d0_pdata.chipid = ADRENO_CHIPID(3, 2, 0, 1);
else
kgsl_3d0_pdata.chipid = ADRENO_CHIPID(3, 2, 0, 0);
}
platform_device_register(&device_kgsl_3d0);
}
示例2: operaul_init_gpu
void operaul_init_gpu(void)
{
unsigned int version = socinfo_get_version();
/* Set the turbo speed for the AA and AB respectively */
if (cpu_is_msm8930aa())
kgsl_3d0_pdata.pwrlevel[0].gpu_freq = 450000000;
/* Set up the chip ID based on the SoC version */
if ((SOCINFO_VERSION_MAJOR(version) == 1) &&
(SOCINFO_VERSION_MINOR(version) == 2))
kgsl_3d0_pdata.chipid = ADRENO_CHIPID(3, 0, 5, 2);
else
kgsl_3d0_pdata.chipid = ADRENO_CHIPID(3, 0, 5, 0);
platform_device_register(&device_kgsl_3d0);
}
示例3: msm_acpu_clock_fixup
/*
* Version 1.0 parts can't reliably support more than 1 GHz, therefore truncate
* the frequency table at that point if we're running on such parts.
*/
unsigned int __init msm_acpu_clock_fixup(void)
{
unsigned int max;
struct clkctl_acpu_speed *f;
uint32_t version = socinfo_get_version();
if (SOCINFO_VERSION_MINOR(version) == 0)
max = 998400;
else
max = 1305600;
for (f = acpu_freq_tbl; f->acpuclk_khz != 0; f++) {
if (f->acpuclk_khz > max) {
f->acpuclk_khz = 0;
break;
}
}
return (f - 1)->acpuclk_khz;
}
示例4: acpuclk_8064_probe
static int __init acpuclk_8064_probe(struct platform_device *pdev)
{
int ret;
if (cpu_is_apq8064ab() ||
SOCINFO_VERSION_MAJOR(socinfo_get_version()) == 2) {
acpuclk_8064_params.hfpll_data->low_vdd_l_max = 37;
acpuclk_8064_params.hfpll_data->nom_vdd_l_max = 74;
}
if (opt_bin == 1) {
acpuclk_8064_params.l2_freq_tbl = l2_freq_tbl_ultra;
acpuclk_8064_params.l2_freq_tbl_size = sizeof(l2_freq_tbl_ultra);
}
ret = acpuclk_krait_init(&pdev->dev, &acpuclk_8064_params);
#ifdef CONFIG_PERFLOCK
if (!ret)
perftable_fix_up();
#endif
return ret;
}
示例5: msm8960_init_fb
void __init msm8960_init_fb(void)
{
uint32_t soc_platform_version = socinfo_get_version();
if (SOCINFO_VERSION_MAJOR(soc_platform_version) >= 3)
mdp_pdata.mdp_rev = MDP_REV_43;
if (cpu_is_msm8960ab())
mdp_pdata.mdp_rev = MDP_REV_44;
platform_device_register(&msm_fb_device);
#ifdef CONFIG_FB_MSM_WRITEBACK_MSM_PANEL
platform_device_register(&wfd_panel_device);
platform_device_register(&wfd_device);
#endif
platform_device_register(&mipi_dsi_novatek_panel_device);
platform_device_register(&mipi_dsi_orise_panel_device);
#ifdef CONFIG_FB_MSM_HDMI_MSM_PANEL
platform_device_register(&hdmi_msm_device);
#endif
if (machine_is_msm8960_liquid())
platform_device_register(&mipi_dsi2lvds_bridge_device);
else
platform_device_register(&mipi_dsi_toshiba_panel_device);
msm_fb_register_device("mdp", &mdp_pdata);
msm_fb_register_device("mipi_dsi", &mipi_dsi_pdata);
#ifdef CONFIG_MSM_BUS_SCALING
msm_fb_register_device("dtv", &dtv_pdata);
#endif
}
示例6: msm_8974_init_gpiomux
void __init msm_8974_init_gpiomux(void)
{
int rc;
rc = msm_gpiomux_init_dt();
if (rc) {
pr_err("%s failed %d\n", __func__, rc);
return;
}
pr_err("%s:%d socinfo_get_version %x\n", __func__, __LINE__,
socinfo_get_version());
if (socinfo_get_version() >= 0x20000)
msm_tlmm_misc_reg_write(TLMM_SPARE_REG, 0xf);
#if defined(CONFIG_KS8851) || defined(CONFIG_KS8851_MODULE)
if (!(of_board_is_dragonboard() && machine_is_apq8074()))
msm_gpiomux_install(msm_eth_configs, \
ARRAY_SIZE(msm_eth_configs));
#endif
msm_gpiomux_install(msm_blsp_configs, ARRAY_SIZE(msm_blsp_configs));
#if !defined(CONFIG_BT_BCM4335) && !defined(CONFIG_BT_BCM4339)
msm_gpiomux_install(msm_blsp2_uart7_configs,
ARRAY_SIZE(msm_blsp2_uart7_configs));
#endif
#if defined(CONFIG_BT_BCM4335) || defined(CONFIG_BT_BCM4339)
msm_gpiomux_btuart_install();
#endif
if (of_board_is_liquid())
msm_gpiomux_install_nowrite(ath_gpio_configs,
ARRAY_SIZE(ath_gpio_configs));
msm_gpiomux_install(msm8974_slimbus_config,
ARRAY_SIZE(msm8974_slimbus_config));
#ifdef CONFIG_SENSORS_GP2A_IIO_PROX
msm_gpiomux_install(msm_proximity_configs, ARRAY_SIZE(msm_proximity_configs));
#endif
msm_gpiomux_install(msm_mag_sensor_configs, ARRAY_SIZE(msm_mag_sensor_configs));
msm_gpiomux_install(hap_lvl_shft_config,
ARRAY_SIZE(hap_lvl_shft_config));
if (of_board_is_dragonboard() && machine_is_apq8074())
msm_gpiomux_install(msm_sensor_configs_dragonboard, \
ARRAY_SIZE(msm_sensor_configs_dragonboard));
else
msm_gpiomux_install(msm_sensor_configs, \
ARRAY_SIZE(msm_sensor_configs));
msm_gpiomux_install(&sd_card_det, 1);
msm_gpiomux_install(msm_disp_configs, ARRAY_SIZE(msm_disp_configs));
if (machine_is_apq8074() && (of_board_is_liquid() || \
of_board_is_dragonboard()))
msm_gpiomux_sdc3_install();
if (!(of_board_is_dragonboard() && machine_is_apq8074()))
msm_gpiomux_sdc4_install();
msm_gpiomux_install(msm_taiko_config, ARRAY_SIZE(msm_taiko_config));
msm_gpiomux_install(tx_gtr_thres_enable_config, ARRAY_SIZE(tx_gtr_thres_enable_config));
msm_gpiomux_install(speaker_enable_config, ARRAY_SIZE(speaker_enable_config));
msm_gpiomux_install(ear_send_end_config, ARRAY_SIZE(ear_send_end_config));
msm_gpiomux_install(msm_hsic_hub_configs,
ARRAY_SIZE(msm_hsic_hub_configs));
msm_gpiomux_install(msm_hdmi_configs, ARRAY_SIZE(msm_hdmi_configs));
msm_gpiomux_install(wcnss_5wire_interface,
ARRAY_SIZE(wcnss_5wire_interface));
if (of_board_is_liquid() ||
(of_board_is_dragonboard() && machine_is_apq8074()))
msm_gpiomux_install(msm8974_pri_ter_auxpcm_configs,
ARRAY_SIZE(msm8974_pri_ter_auxpcm_configs));
else
msm_gpiomux_install(msm8974_pri_pri_auxpcm_configs,
ARRAY_SIZE(msm8974_pri_pri_auxpcm_configs));
if (of_board_is_cdp()) {
#if 0 /* Not used at Mondrian */
msm_gpiomux_install(msm8974_sec_auxpcm_configs,
ARRAY_SIZE(msm8974_sec_auxpcm_configs));
#endif
} else if (of_board_is_liquid() || of_board_is_fluid() ||
of_board_is_mtp())
msm_gpiomux_install(msm_epm_configs,
ARRAY_SIZE(msm_epm_configs));
msm_gpiomux_install_nowrite(msm_lcd_configs,
ARRAY_SIZE(msm_lcd_configs));
#if !defined(CONFIG_BT_BCM4335) && !defined(CONFIG_BT_BCM4339)
if (of_board_is_rumi())
msm_gpiomux_install(msm_rumi_blsp_configs,
ARRAY_SIZE(msm_rumi_blsp_configs));
#endif
//.........这里部分代码省略.........
示例7: msm_8974_init_gpiomux
void __init msm_8974_init_gpiomux(void)
{
int rc;
rc = msm_gpiomux_init_dt();
if (rc) {
pr_err("%s failed %d\n", __func__, rc);
return;
}
pr_err("%s:%d socinfo_get_version %x\n", __func__, __LINE__,
socinfo_get_version());
msm_tlmm_misc_reg_write(TLMM_SPARE_REG, 0x5);
#if defined(CONFIG_KS8851) || defined(CONFIG_KS8851_MODULE)
msm_gpiomux_install(msm_eth_configs, ARRAY_SIZE(msm_eth_configs));
#endif
msm_gpiomux_install(msm_blsp_configs, ARRAY_SIZE(msm_blsp_configs));
#if !defined(CONFIG_BT_BCM4335) && !defined(CONFIG_BT_BCM4339)
msm_gpiomux_install(msm_blsp2_uart7_configs, ARRAY_SIZE(msm_blsp2_uart7_configs));
#endif
#if 0 //defined(CONFIG_BT_BCM4335) || defined(CONFIG_BT_BCM4339)
msm_gpiomux_btuart_install();
#endif
msm_gpiomux_install(msm8974_slimbus_config,
ARRAY_SIZE(msm8974_slimbus_config));
msm_gpiomux_install(ext_buck_configs, ARRAY_SIZE(ext_buck_configs));
msm_gpiomux_install(hw_rev_configs, ARRAY_SIZE(hw_rev_configs));
msm_gpiomux_install(gpio_nc_configs, ARRAY_SIZE(gpio_nc_configs));
#if !defined(CONFIG_SENSORS_SSP)
msm_gpiomux_install(hap_lvl_shft_config,
ARRAY_SIZE(hap_lvl_shft_config));
#endif
msm_gpiomux_install(msm_sensor_configs, ARRAY_SIZE(msm_sensor_configs));
msm_gpiomux_install(&sd_card_det, 1);
#ifdef CONFIG_MACH_KS01
if(system_rev < 3)
msm_gpiomux_install(wcnss_5wire_interface,
ARRAY_SIZE(wcnss_5wire_interface));
else
msm_gpiomux_sdc3_install();
#else
msm_gpiomux_sdc3_install();
#endif
msm_gpiomux_sdc4_install();
msm_gpiomux_install(msm_taiko_config, ARRAY_SIZE(msm_taiko_config));
msm_gpiomux_install(es325_config, ARRAY_SIZE(es325_config));
msm_gpiomux_install(ear_send_end_config, ARRAY_SIZE(ear_send_end_config));
#if !defined(CONFIG_SENSORS_SSP)
msm_gpiomux_install(msm_hsic_hub_configs,
ARRAY_SIZE(msm_hsic_hub_configs));
#endif
#if defined(CONFIG_SENSORS_SSP)
msm_gpiomux_install(ssp_configs,
ARRAY_SIZE(ssp_configs));
#endif
msm_gpiomux_install(msm_hdmi_configs, ARRAY_SIZE(msm_hdmi_configs));
if (system_rev > 6)
msm_gpiomux_install(msm_hdmi_ddc_configs,
ARRAY_SIZE(msm_hdmi_ddc_configs));
#ifdef CONFIG_VIDEO_MHL_V2
if(system_rev > 1)
msm_gpiomux_install(mhl_configs, ARRAY_SIZE(mhl_configs));
#endif
#if defined(CONFIG_BCM2079X_NFC_I2C) || defined(CONFIG_NFC_PN547)
msm_gpiomux_install(msm_nfc_configs,
ARRAY_SIZE(msm_nfc_configs));
if(system_rev == 9 || system_rev == 10) { // over-write I2C config, rev09,10 has no external Pull-up register.
msm_gpiomux_install(msm_nfc_i2c_configs_rev09,
ARRAY_SIZE(msm_nfc_i2c_configs_rev09));
}
#endif
#if defined(CONFIG_BCM4335) || defined(CONFIG_BCM4335_MODULE) || defined(CONFIG_BCM4339) || defined(CONFIG_BCM4339_MODULE)
msm_gpiomux_wlan_host_wakeup_install();
#endif /* defined(CONFIG_BCM4335) || defined(CONFIG_BCM4335_MODULE) || defined(CONFIG_BCM4339) || defined(CONFIG_BCM4339_MODULE) */
#if defined(CONFIG_LEDS_AN30259A)
#if defined(CONFIG_MACH_KS01SKT) || defined(CONFIG_MACH_KS01KTT)\
|| defined(CONFIG_MACH_KS01LGT)
if (system_rev < 7) {
msm_gpiomux_install(an30259a_led_config,
ARRAY_SIZE(an30259a_led_config));
}
else
{
msm_gpiomux_install(an30259a_led_config_rev7,
//.........这里部分代码省略.........
示例8: msm_8974_init_gpiomux
void __init msm_8974_init_gpiomux(void)
{
int rc;
rc = msm_gpiomux_init_dt();
if (rc) {
pr_err("%s failed %d\n", __func__, rc);
return;
}
pr_err("%s:%d socinfo_get_version %x\n", __func__, __LINE__,
socinfo_get_version());
msm_tlmm_misc_reg_write(TLMM_SPARE_REG, 0x5);
#if defined(CONFIG_KS8851) || defined(CONFIG_KS8851_MODULE)
msm_gpiomux_install(msm_eth_configs, ARRAY_SIZE(msm_eth_configs));
#endif
msm_gpiomux_install(msm_blsp_configs, ARRAY_SIZE(msm_blsp_configs));
#if !defined(CONFIG_MACH_KS01SKT) && !defined(CONFIG_MACH_KS01KTT)\
&& !defined(CONFIG_MACH_KS01LGT)
msm_gpiomux_install(msm_blsp2_uart7_configs, ARRAY_SIZE(msm_blsp2_uart7_configs));
#endif
#if defined(CONFIG_MACH_KS01SKT) || defined(CONFIG_MACH_KS01KTT)\
|| defined(CONFIG_MACH_KS01LGT) && defined(CONFIG_BT_BCM4335)
msm_gpiomux_btuart_install();
#endif
msm_gpiomux_install(msm8974_slimbus_config,
ARRAY_SIZE(msm8974_slimbus_config));
msm_gpiomux_install(msm_touch_configs, ARRAY_SIZE(msm_touch_configs));
#if !defined(CONFIG_SENSORS_SSP)
msm_gpiomux_install(hap_lvl_shft_config,
ARRAY_SIZE(hap_lvl_shft_config));
#endif
msm_gpiomux_install(msm_sensor_configs, ARRAY_SIZE(msm_sensor_configs));
#ifdef CONFIG_MACH_KS01
msm_gpiomux_install(&sd_card_det, 1);
if(system_rev < 3)
msm_gpiomux_install(wcnss_5wire_interface,
ARRAY_SIZE(wcnss_5wire_interface));
else
msm_gpiomux_sdc3_install();
#else
msm_gpiomux_sdc3_install();
#endif
msm_gpiomux_sdc4_install();
msm_gpiomux_install(msm_taiko_config, ARRAY_SIZE(msm_taiko_config));
#if !defined(CONFIG_SENSORS_SSP)
msm_gpiomux_install(msm_hsic_hub_configs,
ARRAY_SIZE(msm_hsic_hub_configs));
#endif
#if defined(CONFIG_SENSORS_SSP)
msm_gpiomux_install(ssp_configs,
ARRAY_SIZE(ssp_configs));
#endif
msm_gpiomux_install(msm_hdmi_configs, ARRAY_SIZE(msm_hdmi_configs));
#if defined(CONFIG_BCM2079X_NFC_I2C)
msm_gpiomux_install(msm_nfc_configs,
ARRAY_SIZE(msm_nfc_configs));
#endif
#if defined(CONFIG_BCM4335) || defined(CONFIG_BCM4335_MODULE)
msm_gpiomux_wlan_host_wakeup_install();
#endif /* defined(CONFIG_BCM4335) || defined(CONFIG_BCM4335_MODULE) */
#if defined(CONFIG_LEDS_AN30259A)
#if defined(CONFIG_MACH_KS01SKT) || defined(CONFIG_MACH_KS01KTT)\
|| defined(CONFIG_MACH_KS01LGT)
if (system_rev < 7) {
msm_gpiomux_install(an30259a_led_config,
ARRAY_SIZE(an30259a_led_config));
}
else
{
msm_gpiomux_install(an30259a_led_config_rev7,
ARRAY_SIZE(an30259a_led_config_rev7));
}
#else
msm_gpiomux_install(an30259a_led_config,
ARRAY_SIZE(an30259a_led_config));
#endif
#endif
msm_gpiomux_install(msm8974_pri_auxpcm_configs,
ARRAY_SIZE(msm8974_pri_auxpcm_configs));
if (of_board_is_rumi())
msm_gpiomux_install(msm_rumi_blsp_configs,
ARRAY_SIZE(msm_rumi_blsp_configs));
//.........这里部分代码省略.........
示例9: ursa_init_gpiomux
//.........这里部分代码省略.........
msm_gpiomux_install(ursa_bt_wifi_configs_p1, ARRAY_SIZE(ursa_bt_wifi_configs_p1));
msm_gpiomux_install(ursa_camera_configs_p1p2common, ARRAY_SIZE(ursa_camera_configs_p1p2common));
msm_gpiomux_install(ursa_sensor_configs_p1_pre_evt, ARRAY_SIZE(ursa_sensor_configs_p1_pre_evt));
msm_gpiomux_install(ursa_system_configs_p1, ARRAY_SIZE(ursa_system_configs_p1));
msm_gpiomux_install(ursa_touch_configs_p1, ARRAY_SIZE(ursa_touch_configs_p1));
/* different for P0.5 */
msm_gpiomux_install(ursa_configs_p0_5, ARRAY_SIZE(ursa_configs_p0_5));
/* before pre DVT */
msm_gpiomux_install(ursa_camera_configs_p1p2evt_common, ARRAY_SIZE(ursa_camera_configs_p1p2evt_common));
}
else if ((ursa_board_revision() == URSA_REVISION_P2) ||
(ursa_board_revision() == URSA_REVISION_PRE_EVT))
{
/* shared with P1 family */
msm_gpiomux_install(ursa_audio_configs_p1, ARRAY_SIZE(ursa_audio_configs_p1));
msm_gpiomux_install(ursa_bt_wifi_configs_p1, ARRAY_SIZE(ursa_bt_wifi_configs_p1));
msm_gpiomux_install(ursa_camera_configs_p1p2common, ARRAY_SIZE(ursa_camera_configs_p1p2common));
msm_gpiomux_install(ursa_sensor_configs_p1_pre_evt, ARRAY_SIZE(ursa_sensor_configs_p1_pre_evt));
msm_gpiomux_install(ursa_system_configs_p1, ARRAY_SIZE(ursa_system_configs_p1));
msm_gpiomux_install(ursa_touch_configs_p1, ARRAY_SIZE(ursa_touch_configs_p1));
/* different for P2 */
msm_gpiomux_install(ursa_camera_configs_p2, ARRAY_SIZE(ursa_camera_configs_p2));
msm_gpiomux_install(ursa_nfc_configs_p2, ARRAY_SIZE(ursa_nfc_configs_p2));
msm_gpiomux_install(ursa_system_configs_p2, ARRAY_SIZE(ursa_system_configs_p2));
/* before pre DVT */
msm_gpiomux_install(ursa_camera_configs_p1p2evt_common, ARRAY_SIZE(ursa_camera_configs_p1p2evt_common));
}
else if ((ursa_board_revision() == URSA_REVISION_EVT) ||
(ursa_board_revision() == URSA_REVISION_P0_E))
{
/* shared with P1 family */
msm_gpiomux_install(ursa_audio_configs_p1, ARRAY_SIZE(ursa_audio_configs_p1));
msm_gpiomux_install(ursa_bt_wifi_configs_p1, ARRAY_SIZE(ursa_bt_wifi_configs_p1));
msm_gpiomux_install(ursa_camera_configs_p1p2common, ARRAY_SIZE(ursa_camera_configs_p1p2common));
msm_gpiomux_install(ursa_system_configs_p1, ARRAY_SIZE(ursa_system_configs_p1));
msm_gpiomux_install(ursa_touch_configs_p1, ARRAY_SIZE(ursa_touch_configs_p1));
/* shared with P2 */
msm_gpiomux_install(ursa_camera_configs_p2, ARRAY_SIZE(ursa_camera_configs_p2));
msm_gpiomux_install(ursa_nfc_configs_p2, ARRAY_SIZE(ursa_nfc_configs_p2));
msm_gpiomux_install(ursa_system_configs_p2, ARRAY_SIZE(ursa_system_configs_p2));
/* before pre DVT */
msm_gpiomux_install(ursa_camera_configs_p1p2evt_common, ARRAY_SIZE(ursa_camera_configs_p1p2evt_common));
}
else if ((ursa_board_revision() == URSA_REVISION_PRE_DVT) )
{
/* shared with P1 family */
msm_gpiomux_install(ursa_audio_configs_p1, ARRAY_SIZE(ursa_audio_configs_p1));
msm_gpiomux_install(ursa_bt_wifi_configs_p1, ARRAY_SIZE(ursa_bt_wifi_configs_p1));
msm_gpiomux_install(ursa_camera_configs_p1p2common, ARRAY_SIZE(ursa_camera_configs_p1p2common));
msm_gpiomux_install(ursa_system_configs_p1, ARRAY_SIZE(ursa_system_configs_p1));
msm_gpiomux_install(ursa_touch_configs_p1, ARRAY_SIZE(ursa_touch_configs_p1));
/* shared with P2 */
msm_gpiomux_install(ursa_nfc_configs_p2, ARRAY_SIZE(ursa_nfc_configs_p2));
msm_gpiomux_install(ursa_system_configs_p2, ARRAY_SIZE(ursa_system_configs_p2));
/* pre DVT */
msm_gpiomux_install(ursa_camera_configs_pre_dvt, ARRAY_SIZE(ursa_camera_configs_pre_dvt));
}
else if ((ursa_board_revision() == URSA_REVISION_DVT) ||
(ursa_board_revision() == URSA_REVISION_DVT3GS) ||
(ursa_board_revision() == URSA_REVISION_PRE_DVT2) )
{
/* shared with P1 family */
msm_gpiomux_install(ursa_audio_configs_p1, ARRAY_SIZE(ursa_audio_configs_p1));
msm_gpiomux_install(ursa_bt_wifi_configs_p1, ARRAY_SIZE(ursa_bt_wifi_configs_p1));
msm_gpiomux_install(ursa_camera_configs_p1p2common, ARRAY_SIZE(ursa_camera_configs_p1p2common));
msm_gpiomux_install(ursa_system_configs_p1, ARRAY_SIZE(ursa_system_configs_p1));
msm_gpiomux_install(ursa_touch_configs_p1, ARRAY_SIZE(ursa_touch_configs_p1));
/* shared with P2 */
msm_gpiomux_install(ursa_nfc_configs_p2, ARRAY_SIZE(ursa_nfc_configs_p2));
msm_gpiomux_install(ursa_system_configs_p2, ARRAY_SIZE(ursa_system_configs_p2));
/* DVT */
msm_gpiomux_install(ursa_camera_configs_dvt, ARRAY_SIZE(ursa_camera_configs_dvt));
}
else if (ursa_board_revision() == URSA_REVISION_DVTHD)
{
/* shared with P1 family */
msm_gpiomux_install(ursa_audio_configs_p1, ARRAY_SIZE(ursa_audio_configs_p1));
msm_gpiomux_install(ursa_bt_wifi_configs_p1, ARRAY_SIZE(ursa_bt_wifi_configs_p1));
msm_gpiomux_install(ursa_system_configs_p1, ARRAY_SIZE(ursa_system_configs_p1));
msm_gpiomux_install(ursa_touch_configs_p1, ARRAY_SIZE(ursa_touch_configs_p1));
/* shared with P2 */
msm_gpiomux_install(ursa_nfc_configs_p2, ARRAY_SIZE(ursa_nfc_configs_p2));
msm_gpiomux_install(ursa_system_configs_p2, ARRAY_SIZE(ursa_system_configs_p2));
/* DVT */
msm_gpiomux_install(ursa_camera_configs_dvt, ARRAY_SIZE(ursa_camera_configs_dvt));
/* DVTHD */
msm_gpiomux_install(ursa_camera_configs_dvthd, ARRAY_SIZE(ursa_camera_configs_dvthd));
msm_gpiomux_install(ursa_hdmi_configs, ARRAY_SIZE(ursa_hdmi_configs));
}
else
{
pr_crit("%s - Invalid board revision\n", __func__);
panic("ursa-gpiomux: Invalid board revision");
}
// Switch camera MCLK source to alternate clocks
if (socinfo_get_version() >= 0x20000) {
msm_tlmm_misc_reg_write(TLMM_SPARE_REG, 0x5);
}
}
示例10: msm8960_init_gpiomux
int __init msm8960_init_gpiomux(void)
{
int rc = msm_gpiomux_init(NR_GPIO_IRQS);
if (rc) {
pr_err(KERN_ERR "msm_gpiomux_init failed %d\n", rc);
return rc;
}
#if defined(CONFIG_KS8851) || defined(CONFIG_KS8851_MODULE)
msm_gpiomux_install(msm8960_ethernet_configs,
ARRAY_SIZE(msm8960_ethernet_configs));
#endif
msm_gpiomux_install(msm8960_gsbi_configs,
ARRAY_SIZE(msm8960_gsbi_configs));
#ifdef CONFIG_VP_A2220
msm_gpiomux_install(audience_suspend_configs,
ARRAY_SIZE(audience_suspend_configs));
#endif
msm8960_gpio_key_configs[0].gpio = gpio_rev(VOLUME_UP);
msm8960_gpio_key_configs[1].gpio = gpio_rev(VOLUME_DOWN);
if (system_rev < BOARD_REV13)
msm_gpiomux_install(msm8960_gpio_key_configs, 2);
else
msm_gpiomux_install(msm8960_gpio_key_configs,
ARRAY_SIZE(msm8960_gpio_key_configs));
msm_gpiomux_install(msm8960_sec_ts_configs,
ARRAY_SIZE(msm8960_sec_ts_configs));
msm_gpiomux_install(msm8960_sec_sensor_configs,
ARRAY_SIZE(msm8960_sec_sensor_configs));
msm_gpiomux_install(msm8960_audio_codec_configs,
ARRAY_SIZE(msm8960_audio_codec_configs));
#ifdef CONFIG_MMC_MSM_SDC4_SUPPORT
if (system_rev >= BOARD_REV09)
msm_gpiomux_install(sdc4_interface, ARRAY_SIZE(sdc4_interface));
else
#endif
msm_gpiomux_install(wcnss_5wire_interface,
ARRAY_SIZE(wcnss_5wire_interface));
msm_gpiomux_install(msm8960_audio_i2s_rx_codec_configs,
ARRAY_SIZE(msm8960_audio_i2s_tx_codec_configs));
msm_gpiomux_install(msm8960_audio_i2s_tx_codec_configs,
ARRAY_SIZE(msm8960_audio_i2s_tx_codec_configs));
#ifdef CONFIG_USB_SWITCH_FSA9485
msm_gpiomux_install(msm8960_fsa9485_configs,
ARRAY_SIZE(msm8960_fsa9485_configs));
#endif
if (machine_is_msm8960_mtp() || machine_is_msm8960_fluid() ||
machine_is_msm8960_liquid() || machine_is_msm8960_cdp())
msm_gpiomux_install(hap_lvl_shft_config,
ARRAY_SIZE(hap_lvl_shft_config));
if (PLATFORM_IS_CHARM25())
msm_gpiomux_install(mdm_configs,
ARRAY_SIZE(mdm_configs));
#ifdef CONFIG_USB_EHCI_MSM_HSIC
if ((SOCINFO_VERSION_MAJOR(socinfo_get_version()) != 1) &&
(PLATFORM_IS_CHARM25() || machine_is_msm8960_liquid()))
msm_gpiomux_install(msm8960_hsic_configs,
ARRAY_SIZE(msm8960_hsic_configs));
#endif
#ifdef CONFIG_FB_MSM_HDMI_MSM_PANEL
msm_gpiomux_install(msm8960_hdmi_configs,
ARRAY_SIZE(msm8960_hdmi_configs));
#endif
#if defined(CONFIG_VIDEO_MHL_V1) || defined(CONFIG_VIDEO_MHL_V2)
msm_gpiomux_install(msm8960_mhl_configs,
ARRAY_SIZE(msm8960_mhl_configs));
#endif
msm_gpiomux_install(msm8960_mdp_vsync_configs,
ARRAY_SIZE(msm8960_mdp_vsync_configs));
return 0;
}
示例11: msm8960_init_gpiomux
int __init msm8960_init_gpiomux(void)
{
int rc = msm_gpiomux_init(NR_GPIO_IRQS);
if (rc) {
pr_err(KERN_ERR "msm_gpiomux_init failed %d\n", rc);
return rc;
}
#if defined(CONFIG_KS8851) || defined(CONFIG_KS8851_MODULE)
if (socinfo_get_platform_subtype() != PLATFORM_SUBTYPE_SGLTE)
msm_gpiomux_install(msm8960_ethernet_configs,
ARRAY_SIZE(msm8960_ethernet_configs));
#endif
msm_gpiomux_install(msm8960_gsbi_configs,
ARRAY_SIZE(msm8960_gsbi_configs));
msm_gpiomux_install(msm8960_cyts_configs,
ARRAY_SIZE(msm8960_cyts_configs));
msm_gpiomux_install(msm8960_slimbus_config,
ARRAY_SIZE(msm8960_slimbus_config));
msm_gpiomux_install(msm8960_audio_codec_configs,
ARRAY_SIZE(msm8960_audio_codec_configs));
msm_gpiomux_install(msm8960_audio_auxpcm_configs,
ARRAY_SIZE(msm8960_audio_auxpcm_configs));
msm_gpiomux_install(wcnss_5wire_interface,
ARRAY_SIZE(wcnss_5wire_interface));
#ifdef CONFIG_MMC_MSM_SDC4_SUPPORT
msm_gpiomux_install(msm8960_sdcc4_configs,
ARRAY_SIZE(msm8960_sdcc4_configs));
#endif
if (machine_is_msm8960_mtp() || machine_is_msm8960_fluid() ||
machine_is_msm8960_liquid() || machine_is_msm8960_cdp()) {
if (socinfo_get_platform_subtype() == PLATFORM_SUBTYPE_SGLTE)
msm_gpiomux_install(hap_lvl_shft_config_sglte,
ARRAY_SIZE(hap_lvl_shft_config_sglte));
else
msm_gpiomux_install(hap_lvl_shft_config,
ARRAY_SIZE(hap_lvl_shft_config));
}
#ifdef CONFIG_USB_EHCI_MSM_HSIC
if ((SOCINFO_VERSION_MAJOR(socinfo_get_version()) != 1) &&
machine_is_msm8960_liquid())
msm_gpiomux_install(msm8960_hsic_configs,
ARRAY_SIZE(msm8960_hsic_configs));
if ((SOCINFO_VERSION_MAJOR(socinfo_get_version()) != 1) &&
machine_is_msm8960_liquid())
msm_gpiomux_install(msm8960_hsic_hub_configs,
ARRAY_SIZE(msm8960_hsic_hub_configs));
#endif
#ifdef CONFIG_FB_MSM_HDMI_MSM_PANEL
msm_gpiomux_install(msm8960_hdmi_configs,
ARRAY_SIZE(msm8960_hdmi_configs));
#endif
msm_gpiomux_install(msm8960_mdp_vsync_configs,
ARRAY_SIZE(msm8960_mdp_vsync_configs));
if (socinfo_get_platform_subtype() != PLATFORM_SUBTYPE_SGLTE)
msm_gpiomux_install(msm8960_gsbi8_uartdm_configs,
ARRAY_SIZE(msm8960_gsbi8_uartdm_configs));
if (socinfo_get_platform_subtype() == PLATFORM_SUBTYPE_SGLTE)
msm_gpiomux_install(msm8960_gsbi8_uart_configs,
ARRAY_SIZE(msm8960_gsbi8_uart_configs));
else
msm_gpiomux_install(msm8960_gsbi5_uart_configs,
ARRAY_SIZE(msm8960_gsbi5_uart_configs));
if (socinfo_get_platform_subtype() == PLATFORM_SUBTYPE_SGLTE) {
/* For 8960 Fusion 2.2 Primary IPC */
msm_gpiomux_install(msm8960_fusion_gsbi_configs,
ARRAY_SIZE(msm8960_fusion_gsbi_configs));
/* For SGLTE 8960 Fusion External VFR */
msm_gpiomux_install(msm8960_external_vfr_configs,
ARRAY_SIZE(msm8960_external_vfr_configs));
}
#ifdef CONFIG_MMC_MSM_SDC2_SUPPORT
msm_gpiomux_install(msm8960_sdcc2_configs,
ARRAY_SIZE(msm8960_sdcc2_configs));
#endif
if (socinfo_get_platform_subtype() == PLATFORM_SUBTYPE_SGLTE)
msm_gpiomux_install(sglte_configs,
ARRAY_SIZE(sglte_configs));
return 0;
}
示例12: msm_8974_init_gpiomux
void __init msm_8974_init_gpiomux(void)
{
int rc;
rc = msm_gpiomux_init_dt();
if (rc) {
pr_err("%s failed %d\n", __func__, rc);
return;
}
pr_err("%s:%d socinfo_get_version %x\n", __func__, __LINE__,
socinfo_get_version());
if (socinfo_get_version() >= 0x20000)
msm_tlmm_misc_reg_write(TLMM_SPARE_REG, 0xf);
#if defined(CONFIG_KS8851) || defined(CONFIG_KS8851_MODULE)
if (!(of_board_is_dragonboard() && machine_is_apq8074()))
msm_gpiomux_install(msm_eth_configs, \
ARRAY_SIZE(msm_eth_configs));
#endif
msm_gpiomux_install(msm_blsp_configs, ARRAY_SIZE(msm_blsp_configs));
#if !defined(CONFIG_BT_BCM4335) && !defined(CONFIG_BT_BCM4339)
msm_gpiomux_install(msm_blsp2_uart7_configs,
ARRAY_SIZE(msm_blsp2_uart7_configs));
#endif
#if 0 //defined(CONFIG_BT_BCM4335) || defined(CONFIG_BT_BCM4339)
msm_gpiomux_btuart_install();
#endif
msm_gpiomux_install(msm8974_slimbus_config,
ARRAY_SIZE(msm8974_slimbus_config));
msm_gpiomux_install(msm_touch_configs, ARRAY_SIZE(msm_touch_configs));
#if !defined(CONFIG_SENSORS_SSP)
msm_gpiomux_install(hap_lvl_shft_config,
ARRAY_SIZE(hap_lvl_shft_config));
#endif
msm_gpiomux_install(msm_sensor_configs, ARRAY_SIZE(msm_sensor_configs));
msm_gpiomux_install(&sd_card_det, 1);
msm_gpiomux_sdc3_install();
msm_gpiomux_sdc4_install();
msm_gpiomux_install(msm_taiko_config, ARRAY_SIZE(msm_taiko_config));
msm_gpiomux_install(fuel_i2c_config, ARRAY_SIZE(fuel_i2c_config));
#if !defined(CONFIG_SENSORS_SSP)
msm_gpiomux_install(msm_hsic_hub_configs,
ARRAY_SIZE(msm_hsic_hub_configs));
#endif
#if defined(CONFIG_SENSORS_SSP)
msm_gpiomux_install(ssp_configs,
ARRAY_SIZE(ssp_configs));
#endif
msm_gpiomux_install(msm_hdmi_configs, ARRAY_SIZE(msm_hdmi_configs));
#if defined(CONFIG_BCM2079X_NFC_I2C) || defined(CONFIG_NFC_PN547)
msm_gpiomux_install(msm_nfc_configs,
ARRAY_SIZE(msm_nfc_configs));
#endif
msm_gpiomux_install(msm8974_pri_pri_auxpcm_configs,
ARRAY_SIZE(msm8974_pri_pri_auxpcm_configs));
#if defined(CONFIG_BCM4335) || defined(CONFIG_BCM4335_MODULE) || defined(CONFIG_BCM4339) || defined(CONFIG_BCM4339_MODULE)
msm_gpiomux_wlan_host_wakeup_install();
#endif /* defined(CONFIG_BCM4335) || defined(CONFIG_BCM4335_MODULE) || defined(CONFIG_BCM4339) || defined(CONFIG_BCM4339_MODULE) */
#if defined(CONFIG_LEDS_AN30259A)
if (system_rev < 7) {
msm_gpiomux_install(an30259a_led_config,
ARRAY_SIZE(an30259a_led_config));
}
else
{
msm_gpiomux_install(an30259a_led_config_rev7,
ARRAY_SIZE(an30259a_led_config_rev7));
}
#endif
msm_gpiomux_install_nowrite(msm_lcd_configs,
ARRAY_SIZE(msm_lcd_configs));
#if !defined(CONFIG_BT_BCM4335) && !defined(CONFIG_BT_BCM4339)
if (of_board_is_rumi())
msm_gpiomux_install(msm_rumi_blsp_configs,
ARRAY_SIZE(msm_rumi_blsp_configs));
#endif
if (socinfo_get_platform_subtype() == PLATFORM_SUBTYPE_MDM)
msm_gpiomux_install(mdm_configs,
ARRAY_SIZE(mdm_configs));
if (of_board_is_dragonboard() && machine_is_apq8074())
msm_gpiomux_install(apq8074_dragonboard_ts_config,
ARRAY_SIZE(apq8074_dragonboard_ts_config));
#ifdef CONFIG_SENSORS_HALL
//.........这里部分代码省略.........
示例13: msm7x30_init
static void __init msm7x30_init(void)
{
uint32_t soc_version = 0;
if (socinfo_init() < 0)
printk(KERN_ERR "%s: socinfo_init() failed!\n",
__func__);
soc_version = socinfo_get_version();
msm_clock_init(msm_clocks_7x30, msm_num_clocks_7x30);
#ifdef CONFIG_SERIAL_MSM_CONSOLE
if (lge_get_uart_mode())
msm7x30_init_uart2();
#endif
msm_spm_init(&msm_spm_data, 1);
msm_acpu_clock_init(&msm7x30_clock_data);
msm_add_pmem_devices();
msm_add_fb_device();
msm_add_kgsl_device();
msm_add_usb_devices();
msm7x30_init_marimba();
#ifdef CONFIG_MSM7KV2_AUDIO
lge_victor_audio_init();
msm_snddev_init();
aux_pcm_gpio_init();
#endif
if (lge_get_uart_mode())
platform_device_register(&msm_device_uart2);
platform_add_devices(devices, ARRAY_SIZE(devices));
msm_device_i2c_init();
msm_device_i2c_2_init();
qup_device_i2c_init();
register_board_info();
#ifdef CONFIG_I2C_SSBI
msm_device_ssbi6.dev.platform_data = &msm_i2c_ssbi6_pdata;
msm_device_ssbi7.dev.platform_data = &msm_i2c_ssbi7_pdata;
#endif
/* initialize pm */
pmic8058_buses_init();
pmic8058_leds_init(); // LGE_UPDATE [email protected] PMIC LED Control Drv.
lge_pm_set_platform_data();
pm8058_special_clock0_setting();
/* add lcd devices */
lge_add_lcd_devices();
/* add mmc devices */
lge_add_mmc_devices();
/* add misc devices */
lge_add_misc_devices();
/* add input devices */
lge_add_input_devices();
/* gpio i2c devices should be registered at latest point */
lge_add_gpio_i2c_devices();
/* add buletooth devices */
lge_add_btpower_devices();
/* add camera devices */
lge_add_camera_devices();
/* add ram console device */
#ifdef CONFIG_ANDROID_RAM_CONSOLE
lge_add_ramconsole_devices();
#endif
#if defined(CONFIG_ANDROID_RAM_CONSOLE) && defined(CONFIG_LGE_HANDLE_PANIC)
lge_add_panic_handler_devices();
#endif
}
示例14: msm8960_init_gpiomux
int __init msm8960_init_gpiomux(void)
{
int rc = msm_gpiomux_init(NR_GPIO_IRQS);
if (rc) {
pr_err(KERN_ERR "msm_gpiomux_init failed %d\n", rc);
return rc;
}
#if defined(CONFIG_KS8851) || defined(CONFIG_KS8851_MODULE)
msm_gpiomux_install(msm8960_ethernet_configs,
ARRAY_SIZE(msm8960_ethernet_configs));
#endif
msm_gpiomux_install(msm8960_gsbi_configs,
ARRAY_SIZE(msm8960_gsbi_configs));
msm_gpiomux_install(msm8960_cyts_configs,
ARRAY_SIZE(msm8960_cyts_configs));
msm_gpiomux_install(msm8960_slimbus_config,
ARRAY_SIZE(msm8960_slimbus_config));
msm_gpiomux_install(msm8960_audio_codec_configs,
ARRAY_SIZE(msm8960_audio_codec_configs));
#ifdef CONFIG_LGE_AUDIO
/* LGE_CHANGE
* 2012-01-30, [email protected]
* do not configurate gpio of auxpcm
* configurated in bootloader (sbl3)
*/
rc = (ARRAY_SIZE(msm8960_audio_auxpcm_configs))?rc:0;
#else
msm_gpiomux_install(msm8960_audio_auxpcm_configs,
ARRAY_SIZE(msm8960_audio_auxpcm_configs));
#endif
//20110725, [email protected], NFC GPIO Setting [START]
#if defined(CONFIG_NFC_DEVICES)
msm_gpiomux_install(msm8960_nfc_configs,
ARRAY_SIZE(msm8960_nfc_configs));
#endif
//20110725, [email protected], NFC GPIO Setting [END]
msm_gpiomux_install(wcnss_5wire_interface,
ARRAY_SIZE(wcnss_5wire_interface));
#ifdef CONFIG_MMC_MSM_SDC4_SUPPORT
msm_gpiomux_install(msm8960_sdcc4_configs,
ARRAY_SIZE(msm8960_sdcc4_configs));
#endif
if (machine_is_msm8960_mtp() || machine_is_msm8960_fluid() ||
machine_is_msm8960_liquid() || machine_is_msm8960_cdp())
msm_gpiomux_install(hap_lvl_shft_config,
ARRAY_SIZE(hap_lvl_shft_config));
#ifdef CONFIG_USB_EHCI_MSM_HSIC
if ((SOCINFO_VERSION_MAJOR(socinfo_get_version()) != 1) &&
machine_is_msm8960_liquid())
msm_gpiomux_install(msm8960_hsic_configs,
ARRAY_SIZE(msm8960_hsic_configs));
if ((SOCINFO_VERSION_MAJOR(socinfo_get_version()) != 1) &&
machine_is_msm8960_liquid())
msm_gpiomux_install(msm8960_hsic_hub_configs,
ARRAY_SIZE(msm8960_hsic_hub_configs));
#endif
#ifdef CONFIG_FB_MSM_HDMI_MSM_PANEL
msm_gpiomux_install(msm8960_hdmi_configs,
ARRAY_SIZE(msm8960_hdmi_configs));
#endif
msm_gpiomux_install(msm8960_mdp_vsync_configs,
ARRAY_SIZE(msm8960_mdp_vsync_configs));
if (socinfo_get_platform_subtype() == PLATFORM_SUBTYPE_SGLTE)
msm_gpiomux_install(msm8960_gsbi8_uart_configs,
ARRAY_SIZE(msm8960_gsbi8_uart_configs));
else
msm_gpiomux_install(msm8960_gsbi5_uart_configs,
ARRAY_SIZE(msm8960_gsbi5_uart_configs));
if (socinfo_get_platform_subtype() == PLATFORM_SUBTYPE_SGLTE) {
/* For 8960 Fusion 2.2 Primary IPC */
msm_gpiomux_install(msm8960_fusion_gsbi_configs,
ARRAY_SIZE(msm8960_fusion_gsbi_configs));
/* For SGLTE 8960 Fusion External VFR */
msm_gpiomux_install(msm8960_external_vfr_configs,
ARRAY_SIZE(msm8960_external_vfr_configs));
}
#ifdef CONFIG_MMC_MSM_SDC2_SUPPORT
msm_gpiomux_install(msm8960_sdcc2_configs,
ARRAY_SIZE(msm8960_sdcc2_configs));
#endif
if (socinfo_get_platform_subtype() == PLATFORM_SUBTYPE_SGLTE)
msm_gpiomux_install(sglte_configs,
ARRAY_SIZE(sglte_configs));
//.........这里部分代码省略.........
示例15: apq8064_init_mmc
void __init apq8064_init_mmc(void)
{
if (apq8064_sdc1_pdata) {
/* 8064 v2 supports upto 200MHz clock on SDC1 slot */
if (SOCINFO_VERSION_MAJOR(socinfo_get_version()) >= 2) {
apq8064_sdc1_pdata->sup_clk_table =
sdc1_sup_clk_rates_all;
apq8064_sdc1_pdata->sup_clk_cnt =
ARRAY_SIZE(sdc1_sup_clk_rates_all);
}
apq8064_add_sdcc(1, apq8064_sdc1_pdata);
}
#if defined(CONFIG_MACH_JFVE_EUR)
apq8064_sdc2_pdata = NULL;
apq8064_sdc4_pdata = NULL;
// SDC3 is used for External memory Card
if (apq8064_sdc3_pdata)
{
apq8064_sdc3_pdata->status_gpio = PM8921_GPIO_PM_TO_SYS(33);
apq8064_sdc3_pdata->status_irq = PM8921_GPIO_IRQ(PM8921_IRQ_BASE, 33);
apq8064_add_sdcc(3, apq8064_sdc3_pdata);
}
#else
/*
if (apq8064_sdc2_pdata)
apq8064_add_sdcc(2, apq8064_sdc2_pdata);
*/
/* system_rev 0x05 or more
* SDC3 is used for WIFI
SDC4 is used for External memory Card
*/
if (apq8064_sdc3_pdata) {
#ifdef CONFIG_MMC_MSM_SDC4_SUPPORT
mmc_vdd_reg_data[SDCC3].high_vol_level = 1800000;
mmc_vdd_reg_data[SDCC3].low_vol_level = 1800000;
mmc_slot_vreg_data[SDCC3].vdd_io_data = NULL;
apq8064_sdc3_pdata->status_irq = 0;
apq8064_sdc3_pdata->status_gpio = 0;
#endif
#if !defined(CONFIG_BCM4335) && !defined(CONFIG_BCM4335_MODULE)
if (!machine_is_apq8064_cdp()) {
apq8064_sdc3_pdata->wpswitch_gpio = 0;
apq8064_sdc3_pdata->is_wpswitch_active_low = false;
}
if (machine_is_mpq8064_cdp() || machine_is_mpq8064_hrd() ||
machine_is_mpq8064_dtv()) {
int rc;
struct pm_gpio sd_card_det_init_cfg = {
.direction = PM_GPIO_DIR_IN,
.output_buffer = PM_GPIO_OUT_BUF_CMOS,
.pull = PM_GPIO_PULL_UP_30,
.vin_sel = PM_GPIO_VIN_S4,
.out_strength = PM_GPIO_STRENGTH_NO,
.function = PM_GPIO_FUNC_NORMAL,
};
apq8064_sdc3_pdata->status_gpio =
PM8921_GPIO_PM_TO_SYS(31);
apq8064_sdc3_pdata->status_irq =
PM8921_GPIO_IRQ(PM8921_IRQ_BASE, 31);
rc = pm8xxx_gpio_config(apq8064_sdc3_pdata->status_gpio,
&sd_card_det_init_cfg);
if (rc) {
pr_info("%s: SD_CARD_DET GPIO%d config "
"failed(%d)\n", __func__,
apq8064_sdc3_pdata->status_gpio, rc);
apq8064_sdc3_pdata->status_gpio = 0;
apq8064_sdc3_pdata->status_irq = 0;
}
}
if (machine_is_apq8064_cdp()) {
int i;
for (i = 0;
i < apq8064_sdc3_pdata->pin_data->pad_data->\
drv->size;
i++)
apq8064_sdc3_pdata->pin_data->pad_data->\
drv->on[i].val = GPIO_CFG_10MA;
}
#endif
apq8064_add_sdcc(3, apq8064_sdc3_pdata);
}