本文整理汇总了C++中socinfo_init函数的典型用法代码示例。如果您正苦于以下问题:C++ socinfo_init函数的具体用法?C++ socinfo_init怎么用?C++ socinfo_init使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了socinfo_init函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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
}
开发者ID:CertainlyT,项目名称:Time_Kernel-stock-VEGA-LTE-A-,代码行数:32,代码来源:board-8974.c
示例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__);
}
开发者ID:robcore,项目名称:Alucard-Kernel-jfltexx,代码行数:7,代码来源:board-8092.c
示例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));
}
开发者ID:Brainiarc7,项目名称:android_kernel_huawei_u8185,代码行数:7,代码来源:board-apq8064.c
示例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
}
开发者ID:PatrikKT,项目名称:android_kernel_htc_a11ul,代码行数:26,代码来源:board-htc-8916.c
示例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__);
}
开发者ID:javilonas,项目名称:Lonas_KL-HTC-Desire-2.6.38.8,代码行数:7,代码来源:board-bravo.c
示例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();
}
开发者ID:DAGr8,项目名称:gp-peak-kernel,代码行数:7,代码来源:devices-msm7x27a.c
示例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
}
开发者ID:GalaxyTab4,项目名称:android_kernel_samsung_matisse,代码行数:26,代码来源:board-8226.c
示例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
}
开发者ID:drakaz,项目名称:GalaxoKernel,代码行数:29,代码来源:board-qsd8x50.c
示例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");
}
开发者ID:AndyOpie,项目名称:android_kernel_lge_msm7x27-3.0.x,代码行数:7,代码来源:board-8064.c
示例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
}
开发者ID:wpandroidios,项目名称:android_kernel_htc_b2wlj_LP50_Sense7,代码行数:30,代码来源:board-htc-8x26.c
示例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
}
开发者ID:cpflayan,项目名称:htc_kernel_a3,代码行数:27,代码来源:board-htc-8974.c
示例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));
}
开发者ID:Kamin4ri,项目名称:android_kernel_samsung_msm8916,代码行数:25,代码来源:board-8916.c
示例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__);
}
开发者ID:DooMLoRD,项目名称:semc-kernel-msm7x30-dev,代码行数:7,代码来源:board-dt.c
示例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();
}
开发者ID:LGBean,项目名称:arm_kernel_2.6.32,代码行数:59,代码来源:board-pecan.c
示例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);
}
开发者ID:0987363,项目名称:BMW-OpenSource,代码行数:8,代码来源:board-9625.c
示例16: msm9615_map_io
void __init msm9615_map_io(void)
{
msm_shared_ram_phys = MSM_SHARED_RAM_PHYS;
msm_map_msm9615_io();
l2x0_cache_init();
if (socinfo_init() < 0)
pr_err("socinfo_init() failed!\n");
}
开发者ID:StanTRC,项目名称:lge-kernel-e400,代码行数:8,代码来源:devices-9615.c
示例17: msmkrypton_init
void __init msmkrypton_init(void)
{
if (socinfo_init() < 0)
pr_err("%s: socinfo_init() failed\n", __func__);
msmkrypton_init_gpiomux();
board_dt_populate(msmkrypton_auxdata_lookup);
msmkrypton_add_drivers();
}
开发者ID:1041574425,项目名称:Z5S_NX503A_KitKat_kernel,代码行数:9,代码来源:board-krypton.c
示例18: msmzinc_init
void __init msmzinc_init(void)
{
if (socinfo_init() < 0)
pr_err("%s: socinfo_init() failed\n", __func__);
msmzinc_init_gpiomux();
of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
msmzinc_add_drivers();
}
开发者ID:miing,项目名称:lmkp_msm,代码行数:9,代码来源:board-zinc.c
示例19: msm7x2x_init
static void __init msm7x2x_init(void)
{
if (socinfo_init() < 0)
printk(KERN_ERR "%s: socinfo_init() failed!\n",
__func__);
msm_clock_init(msm_clocks_7x27a, msm_num_clocks_7x27a);
msm_acpu_clock_init(&msm7x2x_clock_data);
/* Common functions for SURF/FFA/RUMI3 */
msm_device_i2c_init();
msm7x27a_init_ebi2();
#ifdef CONFIG_SERIAL_MSM_HS
msm_uart_dm1_pdata.wakeup_irq = gpio_to_irq(UART1DM_RX_GPIO);
msm_device_uart_dm1.dev.platform_data = &msm_uart_dm1_pdata;
#endif
msm_add_pmem_devices();
msm_add_fb_device();
platform_add_devices(m3eu_devices,
ARRAY_SIZE(m3eu_devices));
/*7x25a kgsl initializations*/
msm7x25a_kgsl_3d0_init();
if (lge_get_uart_mode()) {
if (lge_bd_rev == LGE_REV_A)
platform_device_register(&msm_device_uart3);
else
platform_device_register(&msm_device_uart1);
}
lge_add_input_devices();
lge_add_misc_devices();
lge_add_mmc_devices();
lge_add_sound_devices();
lge_add_lcd_devices();
lge_add_camera_devices();
lge_add_pm_devices();
lge_add_usb_devices();
lge_add_connectivity_devices(); /* [email protected], for Bluetooth/FM */
/* gpio i2c devices should be registered at latest point */
lge_add_gpio_i2c_devices();
lge_add_ramconsole_devices();
#if defined(CONFIG_ANDROID_RAM_CONSOLE) && defined(CONFIG_LGE_HANDLE_PANIC)
lge_add_panic_handler_devices();
#endif
/* [email protected] [2011-09-22] - Read power on status and update boot reason */
#ifdef CONFIG_LGE_POWER_ON_STATUS_PATCH
lge_board_pwr_on_status();
#endif
}
开发者ID:arjen75,项目名称:L3_kernel2,代码行数:57,代码来源:board-m3eu.c
示例20: msm7x2x_init
static void __init msm7x2x_init(void)
{
if (socinfo_init() < 0)
printk(KERN_ERR "%s: socinfo_init() failed!\n",
__func__);
msm_clock_init(msm_clocks_7x27a, msm_num_clocks_7x27a);
msm_acpu_clock_init(&msm7x2x_clock_data);
/* Common functions for SURF/FFA/RUMI3 */
msm_device_i2c_init();
msm7x27a_init_ebi2();
#ifdef CONFIG_SERIAL_MSM_HS
msm_uart_dm1_pdata.wakeup_irq = gpio_to_irq(UART1DM_RX_GPIO);
msm_device_uart_dm1.dev.platform_data = &msm_uart_dm1_pdata;
#endif
msm_add_pmem_devices();
msm_add_fb_device();
platform_add_devices(m3_devices,
ARRAY_SIZE(m3_devices));
/*7x25a kgsl initializations*/
msm7x25a_kgsl_3d0_init();
platform_device_register(&msm_device_uart1);
lge_add_input_devices();
lge_add_misc_devices();
lge_add_mmc_devices();
lge_add_sound_devices();
lge_add_lcd_devices();
lge_add_camera_devices();
//lge_add_pm_devices();
lge_add_usb_devices();
lge_add_connectivity_devices(); /* */
/* gpio i2c devices should be registered at latest point */
lge_add_gpio_i2c_devices();
lge_add_ramconsole_devices();
#if defined(CONFIG_ANDROID_RAM_CONSOLE) && defined(CONFIG_LGE_HANDLE_PANIC)
lge_add_panic_handler_devices();
#endif
/* */
#ifdef CONFIG_LGE_POWER_ON_STATUS_PATCH
lge_board_pwr_on_status();
#endif
#ifdef CONFIG_LGE_SILENCE_RESET
check_smem_ers_status();
#endif
}
开发者ID:rcunningham12,项目名称:L38C-Dynamic-Kernel,代码行数:56,代码来源:board-trfus.c
注:本文中的socinfo_init函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论