本文整理汇总了C++中socinfo_init函数的典型用法代码示例。如果您正苦于以下问题:C++ socinfo_init函数的具体用法?C++ socinfo_init怎么用?C++ socinfo_init使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了socinfo_init函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: msm8974_init
void __init msm8974_init(void)
{
struct of_dev_auxdata *adata = msm8974_auxdata_lookup;
if (socinfo_init() < 0)
pr_err("%s: socinfo_init() failed\n", __func__);
msm_8974_init_gpiomux();
regulator_has_full_constraints();
board_dt_populate(adata);
msm8974_add_drivers();
#ifndef CONFIG_PANTECH_SNS_PIXART_VLED_PWR_CONTROLED_BY_DDF
{
#define PWR_IRMOTION_3P3 102
static unsigned irmotion_i2c_gpio_table[] = {
GPIO_CFG(PWR_IRMOTION_3P3,0, GPIO_CFG_OUTPUT, GPIO_CFG_PULL_UP, GPIO_CFG_2MA),
};
int ret=0, i=0;
printk("%s (%d) : gpio and pwr setting.\n", __func__, __LINE__);
for(i=0; i<ARRAY_SIZE(irmotion_i2c_gpio_table); i++) {
ret = gpio_tlmm_config(irmotion_i2c_gpio_table[i], GPIO_CFG_ENABLE);
if(ret) {
pr_err("%s:Failed irmotion_i2c_gpio_table gpio_tlmm_config(%d) = %d\n", __func__, i, ret);
return;
}
}
gpio_set_value(PWR_IRMOTION_3P3, 1);
}
#endif
}
示例2: mpq8092_dt_map_io
static void __init mpq8092_dt_map_io(void)
{
msm_map_mpq8092_io();
if (socinfo_init() < 0)
pr_err("%s: socinfo_init() failed\n", __func__);
}
示例3: apq8064_common_init
static void __init apq8064_common_init(void)
{
if (socinfo_init() < 0)
pr_err("socinfo_init() failed!\n");
msm_clock_init(msm_clocks_8064_dummy, msm_num_clocks_8064_dummy);
platform_add_devices(common_devices, ARRAY_SIZE(common_devices));
}
示例4: htc_8916_init
static void __init htc_8916_init(void)
{
struct of_dev_auxdata *adata = htc_8916_auxdata_lookup;
of_platform_populate(NULL, of_default_bus_match_table, adata, NULL);
msm_smem_init();
if (socinfo_init() < 0)
pr_err("%s: socinfo_init() failed\n", __func__);
pr_info("%s: pid=%d, pcbid=0x%X, subtype=0x%X, socver=0x%X\n", __func__
, of_machine_pid(), of_machine_pcbid(), of_machine_subtype(), of_machine_socver());
htc_8916_add_drivers();
#ifdef CONFIG_HTC_POWER_DEBUG
htc_monitor_init();
#endif
#ifdef CONFIG_BT
bt_export_bd_address();
#endif
#ifdef CONFIG_PERFLOCK
platform_device_register(&msm8916_device_perf_lock);
#endif
}
示例5: bravo_map_io
static void __init bravo_map_io(void)
{
msm_map_qsd8x50_io();
msm_clock_init(msm_clocks_8x50, msm_num_clocks_8x50);
if (socinfo_init() < 0)
printk(KERN_ERR "%s: socinfo_init() failed!\n",__func__);
}
示例6: msm_common_io_init
void __init msm_common_io_init(void)
{
msm_map_common_io();
if (socinfo_init() < 0)
pr_err("%s: socinfo_init() failed!\n", __func__);
msm7x27x_cache_init();
}
示例7: msm8226_init
void __init msm8226_init(void)
{
struct of_dev_auxdata *adata = msm8226_auxdata_lookup;
#ifdef CONFIG_SEC_DEBUG
sec_debug_init();
#endif
#ifdef CONFIG_PROC_AVC
sec_avc_log_init();
#endif
if (socinfo_init() < 0)
pr_err("%s: socinfo_init() failed\n", __func__);
msm8226_init_gpiomux();
board_dt_populate(adata);
samsung_sys_class_init();
msm8226_add_drivers();
#if defined(CONFIG_BATTERY_SAMSUNG)
samsung_init_battery();
#endif
#ifdef CONFIG_SENSORS_SSP
sensor_hub_init();
#endif
}
示例8: qsd8x50_init
static void __init qsd8x50_init(void)
{
if (socinfo_init() < 0)
printk(KERN_ERR "%s: socinfo_init() failed!\n",
__func__);
qsd8x50_cfg_smc91x();
msm_acpu_clock_init(&qsd8x50_clock_data);
msm_device_hsusb_peripheral.dev.platform_data = &msm_hsusb_pdata;
msm_device_hsusb_host.dev.platform_data = &msm_hsusb_pdata;
platform_add_devices(devices, ARRAY_SIZE(devices));
msm_fb_add_devices();
msm_camera_add_device();
qsd8x50_init_mmc();
bt_power_init();
audio_gpio_init();
msm_device_i2c_init();
i2c_register_board_info(0, msm_i2c_board_info,
ARRAY_SIZE(msm_i2c_board_info));
spi_register_board_info(msm_spi_board_info,
ARRAY_SIZE(msm_spi_board_info));
msm_pm_set_platform_data(msm_pm_data);
#ifdef CONFIG_SURF_FFA_GPIO_KEYPAD
if (machine_is_qsd8x50_ffa())
platform_device_register(&keypad_device_8k_ffa);
else
platform_device_register(&keypad_device_surf);
#endif
}
示例9: apq8064_map_io
static void __init apq8064_map_io(void)
{
msm_shared_ram_phys = MSM_SHARED_RAM_PHYS;
msm_map_apq8064_io();
if (socinfo_init() < 0)
pr_err("socinfo_init() failed!\n");
}
示例10: htc_8226_init
void __init htc_8226_init(void)
{
struct of_dev_auxdata *adata = htc_8226_auxdata_lookup;
printk(KERN_INFO"[htc_8226_init]: Test to see htc_8226_init()\n");
if (socinfo_init() < 0)
pr_err("%s: socinfo_init() failed\n", __func__);
pr_info("%s: pid=%d, pcbid=%d, socver=0x%x\n", __func__
, of_machine_pid(), of_machine_pcbid(), of_machine_socver());
#ifdef CONFIG_BT
bt_export_bd_address();
#endif
msm8226_htc_init_gpiomux();
board_dt_populate(adata);
htc_8226_add_drivers();
#ifdef CONFIG_HTC_BUILD_EDIAG
platform_device_register(&android_pmem_ediag_device);
platform_device_register(&android_pmem_ediag1_device);
platform_device_register(&android_pmem_ediag2_device);
platform_device_register(&android_pmem_ediag3_device);
#endif
#ifdef CONFIG_PERFLOCK
platform_device_register(&msm8226_device_perf_lock);
#endif
#ifdef CONFIG_HTC_POWER_DEBUG
htc_monitor_init();
#endif
}
示例11: htc_8974_init
void __init htc_8974_init(void)
{
struct of_dev_auxdata *adata = htc_8974_auxdata_lookup;
if (socinfo_init() < 0)
pr_err("%s: socinfo_init() failed\n", __func__);
pr_info("%s: pid=%d, pcbid=%d, socver=0x%x\n", __func__
, of_machine_pid(), of_machine_pcbid(), of_machine_socver());
msm_htc_8974_init_gpiomux();
regulator_has_full_constraints();
board_dt_populate(adata);
htc_8974_add_drivers();
#ifdef CONFIG_HTC_BUILD_EDIAG
platform_device_register(&android_pmem_ediag_device);
platform_device_register(&android_pmem_ediag1_device);
platform_device_register(&android_pmem_ediag2_device);
platform_device_register(&android_pmem_ediag3_device);
#endif
#ifdef CONFIG_BT
bt_export_bd_address();
#endif
#ifdef CONFIG_HTC_POWER_DEBUG
htc_monitor_init();
#endif
}
示例12: msm8916_init
static void __init msm8916_init(void)
{
struct of_dev_auxdata *adata = msm8916_auxdata_lookup;
#ifdef CONFIG_SEC_DEBUG
sec_debug_init();
#endif
#ifdef CONFIG_PROC_AVC
sec_avc_log_init();
#endif
/*
* populate devices from DT first so smem probe will get called as part
* of msm_smem_init. socinfo_init needs smem support so call
* msm_smem_init before it.
*/
of_platform_populate(NULL, of_default_bus_match_table, adata, NULL);
msm_smem_init();
if (socinfo_init() < 0)
pr_err("%s: socinfo_init() failed\n", __func__);
samsung_sys_class_init();
msm8916_add_drivers();
platform_add_devices(common_devices, ARRAY_SIZE(common_devices));
}
示例13: msm_dt_map_io
static void __init msm_dt_map_io(void)
{
if (early_machine_is_copper())
msm_map_copper_io();
if (socinfo_init() < 0)
pr_err("%s: socinfo_init() failed\n", __func__);
}
示例14: msm7x2x_init
static void __init msm7x2x_init(void)
{
if (socinfo_init() < 0)
BUG();
msm_clock_init(msm_clocks_7x27, msm_num_clocks_7x27);
#if defined(CONFIG_MSM_SERIAL_DEBUGGER)
msm_serial_debug_init(MSM_UART1_PHYS, INT_UART1,
&msm_device_uart1.dev, 1);
#endif
if (cpu_is_msm7x27())
msm7x2x_clock_data.max_axi_khz = 200000;
msm_acpu_clock_init(&msm7x2x_clock_data);
msm_add_pmem_devices();
msm_add_fb_device();
#if !defined(CONFIG_MSM_SERIAL_DEBUGGER)
if (lge_get_uart_mode())
platform_device_register(&msm_device_uart3);
#endif
platform_add_devices(devices, ARRAY_SIZE(devices));
#ifdef CONFIG_ARCH_MSM7X27
msm_add_kgsl_device();
#endif
msm_add_usb_devices();
#ifdef CONFIG_MSM_CAMERA
config_camera_off_gpios(); /* might not be necessary */
#endif
msm_device_i2c_init();
i2c_register_board_info(0, i2c_devices, ARRAY_SIZE(i2c_devices));
if (cpu_is_msm7x27())
msm_pm_set_platform_data(msm7x27_pm_data,
ARRAY_SIZE(msm7x27_pm_data));
else
msm_pm_set_platform_data(msm7x25_pm_data,
ARRAY_SIZE(msm7x25_pm_data));
msm7x27_wlan_init();
#ifdef CONFIG_ANDROID_RAM_CONSOLE
lge_add_ramconsole_devices();
lge_add_ers_devices();
lge_add_panic_handler_devices();
#endif
lge_add_camera_devices();
lge_add_lcd_devices();
lge_add_btpower_devices();
lge_add_mmc_devices();
lge_add_input_devices();
lge_add_misc_devices();
lge_add_pm_devices();
/* gpio i2c devices should be registered at latest point */
lge_add_gpio_i2c_devices();
}
示例15: msm9625_init
void __init msm9625_init(void)
{
if (socinfo_init() < 0)
pr_err("%s: socinfo_init() failed\n", __func__);
msm_clock_init(&msm_dummy_clock_init_data);
of_platform_populate(NULL, of_default_bus_match_table,
msm9625_auxdata_lookup, NULL);
}