void __init msm_snddev_init(void) { if (machine_is_msm7x30_ffa() || machine_is_qsd8x55_ffa()) { platform_add_devices(snd_devices_ffa, ARRAY_SIZE(snd_devices_ffa)); #ifdef CONFIG_DEBUG_FS debugfs_hsed_config = debugfs_create_file("msm_hsed_config", S_IFREG | S_IRUGO, NULL, (void *) "msm_hsed_config", &snddev_hsed_config_debug_fops); #endif } else if (machine_is_msm7x30_surf() || machine_is_qsd8x55_surf()) platform_add_devices(snd_devices_surf, ARRAY_SIZE(snd_devices_surf)); else platform_add_devices(snd_devices_fluid, ARRAY_SIZE(snd_devices_fluid)); }
static int __devinit hs_rpc_init(void) { int rc; if (machine_is_msm7x27_surf() || machine_is_msm7x27_ffa() || machine_is_qsd8x50_surf() || machine_is_qsd8x50_ffa() || machine_is_msm7x30_surf() || machine_is_msm7x30_ffa()) { rc = hs_rpc_cb_init(); if (rc) pr_err("%s: failed to initialize\n", __func__); } rc = msm_rpc_create_server(&hs_rpc_server); if (rc < 0) pr_err("%s: failed to create rpc server\n", __func__); return 0; }
static int __init adv7520_init(void) { int rc; pinfo = &hdmi_panel_data.panel_info; pinfo->xres = 1280 ; pinfo->yres = 720 ; pinfo->type = DTV_PANEL; pinfo->pdest = DISPLAY_2; pinfo->wait_cycle = 0; pinfo->bpp = 24; pinfo->fb_num = 1; pinfo->clk_rate = 74250000; pinfo->lcdc.h_back_porch = 220; pinfo->lcdc.h_front_porch = 110; pinfo->lcdc.h_pulse_width = 40; pinfo->lcdc.v_back_porch = 20; pinfo->lcdc.v_front_porch = 5; pinfo->lcdc.v_pulse_width = 5; pinfo->lcdc.border_clr = 0; /* blk */ pinfo->lcdc.underflow_clr = 0xff; /* blue */ pinfo->lcdc.hsync_skew = 0; rc = i2c_add_driver(&hdmi_i2c_driver); if (rc) { printk(KERN_ERR "hdmi_init FAILED: i2c_add_driver rc=%d\n", rc); goto init_exit; } if (machine_is_msm7x30_surf()) { hdtv_mux = (short *)ioremap(0x8e000170 , 0x100); *hdtv_mux++ = 0x0202; *hdtv_mux = 0x8000; } return 0; init_exit: return rc; }