static void __init universal_machine_init(void) { universal_sdhci_init(); s5p_tv_setup(); s3c_i2c0_set_platdata(&universal_i2c0_platdata); i2c_register_board_info(1, i2c1_devs, ARRAY_SIZE(i2c1_devs)); universal_tsp_init(); s3c_i2c3_set_platdata(NULL); i2c_register_board_info(3, i2c3_devs, ARRAY_SIZE(i2c3_devs)); s3c_i2c5_set_platdata(NULL); s5p_i2c_hdmiphy_set_platdata(NULL); i2c_register_board_info(5, i2c5_devs, ARRAY_SIZE(i2c5_devs)); #ifdef CONFIG_DRM_EXYNOS s5p_device_fimd0.dev.platform_data = &drm_fimd_pdata; exynos4_fimd0_gpio_setup_24bpp(); #else s5p_fimd0_set_platdata(&universal_lcd_pdata); #endif universal_touchkey_init(); i2c_register_board_info(I2C_GPIO_BUS_12, i2c_gpio12_devs, ARRAY_SIZE(i2c_gpio12_devs)); s3c_hsotg_set_platdata(&universal_hsotg_pdata); universal_camera_init(); /* Last */ platform_add_devices(universal_devices, ARRAY_SIZE(universal_devices)); }
static void __init universal_machine_init(void) { universal_sdhci_init(); s5p_tv_setup(); s3c_i2c0_set_platdata(&universal_i2c0_platdata); i2c_register_board_info(1, i2c1_devs, ARRAY_SIZE(i2c1_devs)); universal_tsp_init(); s3c_i2c3_set_platdata(NULL); i2c_register_board_info(3, i2c3_devs, ARRAY_SIZE(i2c3_devs)); s3c_i2c5_set_platdata(NULL); s5p_i2c_hdmiphy_set_platdata(NULL); i2c_register_board_info(5, i2c5_devs, ARRAY_SIZE(i2c5_devs)); s5p_fimd0_set_platdata(&universal_lcd_pdata); universal_touchkey_init(); i2c_register_board_info(I2C_GPIO_BUS_12, i2c_gpio12_devs, ARRAY_SIZE(i2c_gpio12_devs)); universal_camera_init(); /* Last */ platform_add_devices(universal_devices, ARRAY_SIZE(universal_devices)); }
static void __init nuri_machine_init(void) { nuri_sdhci_init(); nuri_tsp_init(); nuri_power_init(); s3c_i2c0_set_platdata(&nuri_i2c0_platdata); i2c_register_board_info(1, i2c1_devs, ARRAY_SIZE(i2c1_devs)); s3c_i2c3_set_platdata(&i2c3_data); i2c_register_board_info(3, i2c3_devs, ARRAY_SIZE(i2c3_devs)); s3c_i2c5_set_platdata(NULL); i2c5_devs[I2C5_MAX8997].irq = gpio_to_irq(EXYNOS4_GPX0(7)); i2c_register_board_info(5, i2c5_devs, ARRAY_SIZE(i2c5_devs)); i2c9_devs[I2C9_MAX17042].irq = gpio_to_irq(EXYNOS4_GPX2(3)); i2c_register_board_info(9, i2c9_devs, ARRAY_SIZE(i2c9_devs)); s5p_fimd0_set_platdata(&nuri_fb_pdata); nuri_camera_init(); nuri_ehci_init(); clk_xusbxti.rate = 24000000; /* Last */ platform_add_devices(nuri_devices, ARRAY_SIZE(nuri_devices)); s5p_device_mfc.dev.parent = &exynos4_device_pd[PD_MFC].dev; s5p_device_fimd0.dev.parent = &exynos4_device_pd[PD_LCD0].dev; s5p_device_fimc0.dev.parent = &exynos4_device_pd[PD_CAM].dev; s5p_device_fimc1.dev.parent = &exynos4_device_pd[PD_CAM].dev; s5p_device_fimc2.dev.parent = &exynos4_device_pd[PD_CAM].dev; s5p_device_fimc3.dev.parent = &exynos4_device_pd[PD_CAM].dev; s5p_device_mipi_csis0.dev.parent = &exynos4_device_pd[PD_CAM].dev; }
static void __init nuri_machine_init(void) { nuri_sdhci_init(); nuri_tsp_init(); nuri_power_init(); s3c_i2c0_set_platdata(&nuri_i2c0_platdata); i2c_register_board_info(1, i2c1_devs, ARRAY_SIZE(i2c1_devs)); s3c_i2c3_set_platdata(&i2c3_data); i2c_register_board_info(3, i2c3_devs, ARRAY_SIZE(i2c3_devs)); s3c_i2c5_set_platdata(NULL); i2c5_devs[I2C5_MAX8997].irq = gpio_to_irq(EXYNOS4_GPX0(7)); i2c_register_board_info(5, i2c5_devs, ARRAY_SIZE(i2c5_devs)); i2c9_devs[I2C9_MAX17042].irq = gpio_to_irq(EXYNOS4_GPX2(3)); i2c_register_board_info(9, i2c9_devs, ARRAY_SIZE(i2c9_devs)); s3c_i2c6_set_platdata(&nuri_i2c6_platdata); #ifdef CONFIG_DRM_EXYNOS s5p_device_fimd0.dev.platform_data = &drm_fimd_pdata; exynos4_fimd0_gpio_setup_24bpp(); #else s5p_fimd0_set_platdata(&nuri_fb_pdata); #endif nuri_camera_init(); nuri_ehci_init(); s3c_hsotg_set_platdata(&nuri_hsotg_pdata); /* Last */ platform_add_devices(nuri_devices, ARRAY_SIZE(nuri_devices)); }
static void __init nuri_machine_init(void) { nuri_sdhci_init(); nuri_tsp_init(); nuri_power_init(); s3c_i2c0_set_platdata(&nuri_i2c0_platdata); i2c_register_board_info(1, i2c1_devs, ARRAY_SIZE(i2c1_devs)); s3c_i2c3_set_platdata(&i2c3_data); i2c_register_board_info(3, i2c3_devs, ARRAY_SIZE(i2c3_devs)); s3c_i2c5_set_platdata(NULL); i2c5_devs[I2C5_MAX8997].irq = gpio_to_irq(EXYNOS4_GPX0(7)); i2c_register_board_info(5, i2c5_devs, ARRAY_SIZE(i2c5_devs)); i2c9_devs[I2C9_MAX17042].irq = gpio_to_irq(EXYNOS4_GPX2(3)); i2c_register_board_info(9, i2c9_devs, ARRAY_SIZE(i2c9_devs)); s3c_i2c6_set_platdata(&nuri_i2c6_platdata); s5p_fimd0_set_platdata(&nuri_fb_pdata); nuri_camera_init(); nuri_ehci_init(); /* Last */ platform_add_devices(nuri_devices, ARRAY_SIZE(nuri_devices)); }
static void __init universal_machine_init(void) { universal_sdhci_init(); i2c_register_board_info(0, i2c0_devs, ARRAY_SIZE(i2c0_devs)); i2c_register_board_info(1, i2c1_devs, ARRAY_SIZE(i2c1_devs)); s3c_i2c5_set_platdata(NULL); i2c_register_board_info(5, i2c5_devs, ARRAY_SIZE(i2c5_devs)); /* Last */ platform_add_devices(universal_devices, ARRAY_SIZE(universal_devices)); }
void __init synaptics_tsp_init(void) { gpio_request(GPIO_TSP_INT, "TSP_INT"); s3c_gpio_cfgpin(GPIO_TSP_INT, S3C_GPIO_SFN(0xf)); s3c_gpio_setpull(GPIO_TSP_INT, S3C_GPIO_PULL_UP); s5p_register_gpio_interrupt(GPIO_TSP_INT); rmi4_platformdata.gpio = GPIO_TSP_INT; synaptics_i2c_devs0[0].irq = gpio_to_irq(GPIO_TSP_INT); synaptics_verify_panel_revision(); s3c_i2c5_set_platdata(NULL); i2c_register_board_info(5, synaptics_i2c_devs0, ARRAY_SIZE(synaptics_i2c_devs0)); printk(KERN_ERR "%s touch : %d\n", __func__, synaptics_i2c_devs0[0].irq); }
static void __init universal_machine_init(void) { universal_sdhci_init(); s5p_tv_setup(); s3c_i2c0_set_platdata(&universal_i2c0_platdata); i2c_register_board_info(1, i2c1_devs, ARRAY_SIZE(i2c1_devs)); universal_tsp_init(); s3c_i2c3_set_platdata(NULL); i2c_register_board_info(3, i2c3_devs, ARRAY_SIZE(i2c3_devs)); s3c_i2c5_set_platdata(NULL); s5p_i2c_hdmiphy_set_platdata(NULL); i2c_register_board_info(5, i2c5_devs, ARRAY_SIZE(i2c5_devs)); s5p_fimd0_set_platdata(&universal_lcd_pdata); universal_touchkey_init(); i2c_register_board_info(I2C_GPIO_BUS_12, i2c_gpio12_devs, ARRAY_SIZE(i2c_gpio12_devs)); universal_camera_init(); /* Last */ platform_add_devices(universal_devices, ARRAY_SIZE(universal_devices)); s5p_device_mfc.dev.parent = &exynos4_device_pd[PD_MFC].dev; s5p_device_fimd0.dev.parent = &exynos4_device_pd[PD_LCD0].dev; s5p_device_fimc0.dev.parent = &exynos4_device_pd[PD_CAM].dev; s5p_device_fimc1.dev.parent = &exynos4_device_pd[PD_CAM].dev; s5p_device_fimc2.dev.parent = &exynos4_device_pd[PD_CAM].dev; s5p_device_fimc3.dev.parent = &exynos4_device_pd[PD_CAM].dev; s5p_device_mipi_csis0.dev.parent = &exynos4_device_pd[PD_CAM].dev; }
static void __init smdk4210_machine_init(void) { c1_config_gpio_table(); c1_config_sleep_gpio_table(); s3c_pm_init(); s3c_gpio_cfgpin(GPIO_WLAN_EN, S3C_GPIO_OUTPUT); s3c_gpio_setpull(GPIO_WLAN_EN, S3C_GPIO_PULL_NONE); exynos4_pd_enable(&exynos4_device_pd[PD_MFC].dev); exynos4_pd_enable(&exynos4_device_pd[PD_G3D].dev); exynos4_pd_enable(&exynos4_device_pd[PD_LCD0].dev); exynos4_pd_enable(&exynos4_device_pd[PD_LCD1].dev); exynos4_pd_enable(&exynos4_device_pd[PD_CAM].dev); exynos4_pd_enable(&exynos4_device_pd[PD_TV].dev); /* SROMC Setup */ /* TODO: Move me to a separate function */ /*u32 tmp; tmp = __raw_readl(S5P_SROM_BW); tmp &= ~(0xffff); tmp |= (0x9999); __raw_writel(tmp, S5P_SROM_BW); __raw_writel(0xff1ffff1, S5P_SROM_BC1); tmp = __raw_readl(S5P_VA_GPIO + 0x120); tmp &= ~(0xffffff); tmp |= (0x221121); __raw_writel(tmp, (S5P_VA_GPIO + 0x120)); __raw_writel(0x22222222, (S5P_VA_GPIO + 0x180)); __raw_writel(0x22222222, (S5P_VA_GPIO + 0x1a0)); __raw_writel(0x22222222, (S5P_VA_GPIO + 0x1c0)); __raw_writel(0x22222222, (S5P_VA_GPIO + 0x1e0)); */ /* MMC Card init */ s3c_gpio_cfgpin(GPIO_MASSMEM_EN, S3C_GPIO_OUTPUT); gpio_set_value(GPIO_MASSMEM_EN, GPIO_MASSMEM_EN_LEVEL); /* 400 kHz for initialization of MMC Card */ __raw_writel((__raw_readl(S5P_CLKDIV_FSYS3) & 0xfffffff0) | 0x9, S5P_CLKDIV_FSYS3); __raw_writel((__raw_readl(S5P_CLKDIV_FSYS2) & 0xfff0fff0) | 0x80008, S5P_CLKDIV_FSYS2); __raw_writel((__raw_readl(S5P_CLKDIV_FSYS1) & 0xfff0fff0) | 0x90009, S5P_CLKDIV_FSYS1); /* PLATDATA init */ s3c_i2c0_set_platdata(NULL); /*i2c_register_board_info(0, i2c_devs0, ARRAY_SIZE(i2c_devs0))*/ s3c_i2c1_set_platdata(NULL); /*i2c_register_board_info(1, i2c_devs1, ARRAY_SIZE(i2c_devs1));*/ smdk4210_init_tsp(); s3c_i2c3_set_platdata(&i2c3_data); i2c_register_board_info(3, i2c_devs3, ARRAY_SIZE(i2c_devs3)); /* TSP */ smdk4210_init_pmic(); s3c_i2c5_set_platdata(NULL); i2c_register_board_info(5, i2c_devs5, ARRAY_SIZE(i2c_devs5)); s3c_i2c6_set_platdata(NULL); //i2c_register_board_info(6, i2c_devs6, ARRAY_SIZE(i2c_devs6)); /*s3c_i2c7_set_platdata(NULL); TVOUT i2c_register_board_info(7, i2c_devs7, ARRAY_SIZE(i2c_devs7));*/ smdk4210_init_touchkey(); i2c_register_board_info(9, i2c_gpio_gauge_devs, ARRAY_SIZE(i2c_gpio_gauge_devs)); s3cfb_set_platdata(NULL); s3c_device_fb.dev.parent = &exynos4_device_pd[PD_LCD0].dev; s3c_sdhci2_set_platdata(&smdk4210_hsmmc2_pdata); s3c_sdhci0_set_platdata(&smdk4210_hsmmc0_pdata); s3c_sdhci3_set_platdata(&smdk4210_hsmmc3_pdata); s3c_mshci_set_platdata(&smdk4210_mshc_pdata); s5p_fimg2d_set_platdata(&fimg2d_data); s5p_device_fimg2d.dev.parent = &exynos4_device_pd[PD_LCD0].dev; /* fimc */ s3c_fimc0_set_platdata(&fimc_plat); s3c_fimc1_set_platdata(&fimc_plat); s3c_fimc2_set_platdata(&fimc_plat); #if 0 /* TVOUT - Will nebkat hax? */ s5p_hdmi_hpd_set_platdata(&hdmi_hpd_data); s5p_hdmi_cec_set_platdata(&hdmi_cec_data); s5p_device_tvout.dev.parent = &exynos4_device_pd[PD_TV].dev; #endif smdk4210_otg_init(); smdk4210_ohci_init(); clk_xusbxti.rate = 24000000; smdk4210_init_battery_gauge(); smdk4210_ehci_init(); platform_add_devices(smdk4210_devices, ARRAY_SIZE(smdk4210_devices)); samsung_bl_set(&smdk4210_bl_gpio_info, &smdk4210_bl_data); /*smdk4210_bt_setup();*/ }