static void __init sc8830_init_machine(void) { printk("sci get chip id = 0x%x\n",__sci_get_chip_id()); sci_adc_init((void __iomem *)ADC_BASE); sci_regulator_init(); #if defined(CONFIG_ION) && defined(SPRD_ION_BASE_USE_VARIABLE) { extern void init_ion_addr_param(void); init_ion_addr_param(); } #endif #if defined(CONFIG_PSTORE_RAM) && defined(SPRD_ION_BASE_USE_VARIABLE) { extern void init_pstore_addr_param(void); init_pstore_addr_param(); } #endif sprd_add_otg_device(); platform_device_add_data(&sprd_serial_device0,(const void*)&plat_data0,sizeof(plat_data0)); platform_device_add_data(&sprd_serial_device1,(const void*)&plat_data1,sizeof(plat_data1)); platform_device_add_data(&sprd_serial_device2,(const void*)&plat_data2,sizeof(plat_data2)); platform_device_add_data(&sprd_keypad_device,(const void*)&sci_keypad_data,sizeof(sci_keypad_data)); platform_device_add_data(&sprd_audio_i2s0_device,(const void*)&i2s0_config,sizeof(i2s0_config)); platform_device_add_data(&sprd_audio_i2s1_device,(const void*)&i2s1_config,sizeof(i2s1_config)); platform_device_add_data(&sprd_audio_i2s2_device,(const void*)&i2s2_config,sizeof(i2s2_config)); platform_device_add_data(&sprd_audio_i2s3_device,(const void*)&i2s3_config,sizeof(i2s3_config)); platform_add_devices(devices, ARRAY_SIZE(devices)); sc8810_add_i2c_devices(); sc8810_add_misc_devices(); sprd_spi_init(); sprd_sr2351_gpio_ctrl_power_register(GPIO_RF2351_POWER_CTRL_NUM); }
static void __init sc8830_init_machine(void) { printk("sci get chip id = 0x%x\n", __sci_get_chip_id()); sci_adc_init(); #ifndef CONFIG_MACH_SPX35LFPGA sci_regulator_init(); #endif of_sprd_default_bus_lookup[0].phys_addr = 0x20300000; of_sprd_default_bus_lookup[1].phys_addr = 0x20400000; of_sprd_default_bus_lookup[2].phys_addr = 0x20500000; of_sprd_default_bus_lookup[3].phys_addr = 0x20600000; of_platform_populate(NULL, of_sprd_default_bus_match_table, of_sprd_default_bus_lookup, NULL); }
static void __init sc8830_init_machine(void) { printk("sci get chip id = 0x%x\n",__sci_get_chip_id()); sci_adc_init((void __iomem *)ADC_BASE); sci_regulator_init(); #ifndef CONFIG_OF #if defined(CONFIG_ION) && defined(SPRD_ION_BASE_USE_VARIABLE) { extern void init_ion_addr_param(void); init_ion_addr_param(); } #endif #if defined(CONFIG_PSTORE_RAM) && defined(SPRD_ION_BASE_USE_VARIABLE) { extern void init_pstore_addr_param(void); init_pstore_addr_param(); } #endif sprd_add_otg_device(); platform_device_add_data(&sprd_serial_device0,(const void*)&plat_data0,sizeof(plat_data0)); platform_device_add_data(&sprd_serial_device1,(const void*)&plat_data1,sizeof(plat_data1)); platform_device_add_data(&sprd_serial_device2,(const void*)&plat_data2,sizeof(plat_data2)); platform_device_add_data(&sprd_serial_device3,(const void*)&plat_data3,sizeof(plat_data3)); platform_device_add_data(&sprd_keypad_device,(const void*)&sci_keypad_data,sizeof(sci_keypad_data)); platform_device_add_data(&sprd_audio_i2s0_device,(const void*)&i2s0_config,sizeof(i2s0_config)); platform_device_add_data(&sprd_audio_i2s1_device,(const void*)&i2s1_config,sizeof(i2s1_config)); platform_device_add_data(&sprd_audio_i2s2_device,(const void*)&i2s2_config,sizeof(i2s2_config)); platform_device_add_data(&sprd_audio_i2s3_device,(const void*)&i2s3_config,sizeof(i2s3_config)); #if(defined(CONFIG_BACKLIGHT_SPRD_PWM)||defined(CONFIG_BACKLIGHT_SPRD_PWM_MODULE)) platform_device_add_data(&sprd_pwm_bl_device, (const void*)&sprd_pwm_bl_platform_data, sizeof(sprd_pwm_bl_platform_data)); #endif #if(defined(CONFIG_INPUT_HEADSET_SPRD_SC2723)||defined(CONFIG_INPUT_HEADSET_SPRD_SC2723_MODULE)) platform_device_add_data(&headset_sprd_sc2723_device, (const void*)&headset_sprd_sc2723_pdata, sizeof(headset_sprd_sc2723_pdata)); #endif #if(defined(CONFIG_SPRD_KPLED_2723) || defined(CONFIG_SPRD_KPLED_2723_MODULE)) platform_device_add_data(&sprd_kpled_2723_device, (const void*)&sprd_kpled_2723_pdata, sizeof(sprd_kpled_2723_pdata)); #endif platform_add_devices(devices, ARRAY_SIZE(devices)); sc8810_add_i2c_devices(); sc8810_add_misc_devices(); sprd_spi_init(); #else of_platform_populate(NULL, of_sprd_default_bus_match_table, of_sprd_default_bus_lookup, NULL); #endif //sprd_sr2351_vddwpa_ctrl_power_register(); }
static void __init sc8830_init_machine(void) { printk("sci get chip id = 0x%x\n",__sci_get_chip_id()); sci_adc_init((void __iomem *)ADC_BASE); sci_regulator_init(); #ifndef CONFIG_OF #if defined(CONFIG_ION) && defined(SPRD_ION_BASE_USE_VARIABLE) { extern void init_ion_addr_param(void); init_ion_addr_param(); } #endif #if defined(CONFIG_PSTORE_RAM) && defined(SPRD_ION_BASE_USE_VARIABLE) { extern void init_pstore_addr_param(void); init_pstore_addr_param(); } #endif sprd_add_otg_device(); platform_device_add_data(&sprd_serial_device0,(const void*)&plat_data0,sizeof(plat_data0)); platform_device_add_data(&sprd_serial_device1,(const void*)&plat_data1,sizeof(plat_data1)); platform_device_add_data(&sprd_serial_device2,(const void*)&plat_data2,sizeof(plat_data2)); platform_device_add_data(&sprd_keypad_device,(const void*)&sci_keypad_data,sizeof(sci_keypad_data)); platform_device_add_data(&sprd_audio_i2s0_device,(const void*)&i2s0_config,sizeof(i2s0_config)); platform_device_add_data(&sprd_audio_i2s1_device,(const void*)&i2s1_config,sizeof(i2s1_config)); platform_device_add_data(&sprd_audio_i2s2_device,(const void*)&i2s2_config,sizeof(i2s2_config)); platform_device_add_data(&sprd_audio_i2s3_device,(const void*)&i2s3_config,sizeof(i2s3_config)); platform_add_devices(devices, ARRAY_SIZE(devices)); sc8810_add_i2c_devices(); sc8810_add_misc_devices(); sprd_spi_init(); #else of_platform_populate(NULL, of_sprd_default_bus_match_table, of_sprd_default_bus_lookup, NULL); #endif sec_class = class_create(THIS_MODULE, "sec"); if (IS_ERR(sec_class)) { pr_err("Failed to create class(sec)!\n"); printk("Failed create class \n"); return PTR_ERR(sec_class); } }
static void __init sc8830_init_machine(void) { printk("sci get chip id = 0x%x\n",__sci_get_chip_id()); sci_adc_init((void __iomem *)ADC_BASE); sci_regulator_init(); sprd_add_otg_device(); platform_device_add_data(&sprd_serial_device0,(const void*)&plat_data0,sizeof(plat_data0)); platform_device_add_data(&sprd_serial_device1,(const void*)&plat_data1,sizeof(plat_data1)); platform_device_add_data(&sprd_serial_device2,(const void*)&plat_data2,sizeof(plat_data2)); platform_device_add_data(&sprd_keypad_device,(const void*)&sci_keypad_data,sizeof(sci_keypad_data)); platform_device_add_data(&sprd_audio_i2s0_device,(const void*)&i2s0_config,sizeof(i2s0_config)); platform_device_add_data(&sprd_audio_i2s1_device,(const void*)&i2s1_config,sizeof(i2s1_config)); platform_device_add_data(&sprd_audio_i2s2_device,(const void*)&i2s2_config,sizeof(i2s2_config)); platform_device_add_data(&sprd_audio_i2s3_device,(const void*)&i2s3_config,sizeof(i2s3_config)); platform_add_devices(devices, ARRAY_SIZE(devices)); sc8810_add_i2c_devices(); sc8810_add_misc_devices(); sprd_spi_init(); }
static void __init sc8830_init_machine(void) { printk("sci get chip id = 0x%x\n", __sci_get_chip_id()); sci_adc_init(); #ifndef CONFIG_MACH_SPX35LFPGA sci_regulator_init(); #endif of_sprd_default_bus_lookup[0].phys_addr = 0x20300000; of_sprd_default_bus_lookup[1].phys_addr = 0x20400000; of_sprd_default_bus_lookup[2].phys_addr = 0x20500000; of_sprd_default_bus_lookup[3].phys_addr = 0x20600000; of_platform_populate(NULL, of_sprd_default_bus_match_table, of_sprd_default_bus_lookup, NULL); sec_class = class_create(THIS_MODULE, "sec"); if (IS_ERR(sec_class)) { pr_err("Failed to create class(sec)!\n"); printk("Failed create class \n"); return PTR_ERR(sec_class); } }
static void __init sc8830_init_machine(void) { printk("sci get chip id = 0x%x\n",__sci_get_chip_id()); sci_adc_init((void __iomem *)ADC_BASE); sci_regulator_init(); #if defined(CONFIG_ION) && defined(SPRD_ION_BASE_USE_VARIABLE) { extern void init_ion_addr_param(void); init_ion_addr_param(); } #endif #if defined(CONFIG_PSTORE_RAM) && defined(SPRD_ION_BASE_USE_VARIABLE) { extern void init_pstore_addr_param(void); init_pstore_addr_param(); } #endif sprd_add_otg_device(); platform_device_add_data(&sprd_serial_device0,(const void*)&plat_data0,sizeof(plat_data0)); platform_device_add_data(&sprd_serial_device1,(const void*)&plat_data1,sizeof(plat_data1)); platform_device_add_data(&sprd_serial_device2,(const void*)&plat_data2,sizeof(plat_data2)); platform_device_add_data(&sprd_serial_device3,(const void*)&plat_data3,sizeof(plat_data3)); platform_device_add_data(&sprd_audio_i2s0_device,(const void*)&i2s0_config,sizeof(i2s0_config)); platform_device_add_data(&sprd_audio_i2s1_device,(const void*)&i2s1_config,sizeof(i2s1_config)); platform_device_add_data(&sprd_audio_i2s2_device,(const void*)&i2s2_config,sizeof(i2s2_config)); platform_device_add_data(&sprd_audio_i2s3_device,(const void*)&i2s3_config,sizeof(i2s3_config)); platform_device_add_data(&sprd_keypad_device,(const void*)&sci_keypad_data,sizeof(sci_keypad_data)); platform_device_add_data(&sprd_backlight_device,&ktd253b_data,sizeof(ktd253b_data)); // GPS for marvell #ifdef CONFIG_PROC_FS /* create proc for gps GPS control */ create_sirf_proc_file(); #endif // GPS for marvell platform_add_devices(devices, ARRAY_SIZE(devices)); sc8810_add_i2c_devices(); sc8810_add_misc_devices(); }
static void __init sc8830_init_machine(void) { printk("sci get chip id = 0x%x\n",__sci_get_chip_id()); #ifdef CONFIG_PROC_AVC sec_avc_log_init(); #endif sci_adc_init(); sci_regulator_init(); #if defined(CONFIG_PSTORE_RAM) && defined(SPRD_ION_BASE_USE_VARIABLE) { extern void init_pstore_addr_param(void); init_pstore_addr_param(); } #endif of_platform_populate(NULL, of_sprd_default_bus_match_table, of_sprd_default_bus_lookup, NULL); sec_class = class_create(THIS_MODULE, "sec"); if (IS_ERR(sec_class)) { pr_err("Failed to create class(sec)!\n"); printk("Failed create class \n"); return PTR_ERR(sec_class); } }
void teddy3g_pmic_init() { sci_regulator_init(); }