void __init hub_peripherals_init(void)
{
	hub_mmc1_gpio_init();
	omap_i2c_init();
	subpm_lp8720_init();
	platform_add_devices(hub_devices, ARRAY_SIZE(hub_devices));

	hub_synaptics_dev_init(); // 20100619 [email protected] Hub touchscreen
	hub_mcbsp_init();
/* LGE_CHANGE_S, [email protected], 2011-03-03, Porting for MPLv3.3.3 */
#if defined(CONFIG_MPU_SENSORS_MPU3050) || defined(CONFIG_MPU_SENSORS_MPU3050_MODULE)
	mpu3050_dev_init();
#endif
/* LGE_CHANGE_E, [email protected], 2011-03-03, Porting for MPLv3.3.3 */

// [email protected] Adapted to new interface of omap_serial_init() in 2.6.35 kernel [START]
//	omap_serial_init();
	omap_serial_init(omap_serial_platform_data);	
// [email protected] Adapted to new interface of omap_serial_init() in 2.6.35 kernel [END]
#ifdef CONFIG_INPUT_HALLEFFECT_BU52014HV
	sniper_hall_effect_init();
#endif
#ifdef CONFIG_PANEL_HUB
	hub_lcd_tv_panel_init();
#endif
	usb_musb_init(&musb_board_data);
// [email protected] Added function to initialize SYS_NIRQ pin [START]
	enable_board_wakeup_source();
// [email protected] Added function to initialize SYS_NIRQ pin [END]
	hub_cam_init();

#ifdef CONFIG_LGE_SPI
	hub_ipc_spi_init();
#endif

#ifdef CONFIG_SPI_TDMB
	hub_tdmb_spi_init();
#endif
/*LGSI_LGP970_TD#112577_Call Error_Shilpa_27Oct2011_Start*/
	omap3_mux_config("OMAP_GPIO_43"); // hwlee for test
/*LGSI_LGP970_TD#112577_Call Error_Shilpa_27Oct2011_End*/

}
void __init hub_peripherals_init(void)
{
        sniper_select_magnetic_device();

	hub_mmc1_gpio_init();
	omap_i2c_init();
	subpm_lp8720_init();
	platform_add_devices(hub_devices, ARRAY_SIZE(hub_devices));

	hub_synaptics_dev_init();

#ifdef CONFIG_TOUCHSCREEN_ANDROID_VIRTUALKEYS
        sniper_init_android_virtualkeys();
#endif

#if defined(CONFIG_MPU_SENSORS_MPU3050) || defined(CONFIG_MPU_SENSORS_MPU3050_MODULE)
	mpu3050_dev_init();
#endif

//	omap_serial_init();
	omap_serial_init(omap_serial_platform_data);	
#ifdef CONFIG_INPUT_HALLEFFECT_BU52014HV
	sniper_hall_effect_init();
#endif
#ifdef CONFIG_PANEL_HUB
	hub_lcd_tv_panel_init();
#endif
	usb_musb_init(&musb_board_data);
	enable_board_wakeup_source();
	hub_cam_init();

#ifdef CONFIG_LGE_SPI
	hub_ipc_spi_init();
#endif

#ifdef CONFIG_SPI_TDMB
	hub_tdmb_spi_init();
#endif
/*LGSI_LGP970_TD#112577_Call Error_Shilpa_27Oct2011_Start*/
	omap3_mux_config("OMAP_GPIO_43"); // hwlee for test
/*LGSI_LGP970_TD#112577_Call Error_Shilpa_27Oct2011_End*/

}
Exemple #3
0
static int hub_pcm_hw_params(struct snd_pcm_substream *substream,
	struct snd_pcm_hw_params *params)
{
	struct snd_soc_pcm_runtime *rtd = substream->private_data;
	struct snd_soc_dai *cpu_dai = rtd->cpu_dai;
	int ret;

	struct snd_soc_dai *codec_dai = rtd->codec_dai;
	int divisor;

	omap3_mux_config("OMAP_MCBSP3_MASTER");

	/* Set cpu DAI configuration */
	ret = snd_soc_dai_set_fmt(cpu_dai,
				  SND_SOC_DAIFMT_DSP_A |
				  SND_SOC_DAIFMT_IB_IF |
				  SND_SOC_DAIFMT_CBS_CFS);
	if (ret < 0) {
		printk(KERN_ERR "can't set cpu DAI configuration\n");
		return ret;
	}

	/* Use external (CLK256FS) clock for mcBSP3 */
	ret = snd_soc_dai_set_sysclk(cpu_dai, OMAP_MCBSP_SYSCLK_CLKS_FCLK, //iggikim 20091012 bs300 mic
			0, SND_SOC_CLOCK_OUT);
	if (ret < 0) {
		printk(KERN_ERR "can't set mcBSP3 to external clock\n");
		return ret;
	}

	ret = snd_soc_dai_set_clkdiv(cpu_dai, OMAP_MCBSP_CLKGDV, 75); //iggikim 20091012 bs300 mic
	if (ret < 0) {
		printk(KERN_ERR "can't set codec clock divisor\n");
		return ret;
	}

	return 0;
}
static void hub_mcbsp_init(void)
{
	omap3_mux_config("OMAP_MCBSP2_SLAVE");
}