|
@@ -1262,3 +1262,90 @@ struct platform_device s3c_device_spi1 = {
|
|
|
|
|
|
#ifdef CONFIG_PLAT_S3C24XX
|
|
|
static struct resource s3c_ts_resource[] = {
|
|
|
+ [0] = DEFINE_RES_MEM(S3C24XX_PA_ADC, S3C24XX_SZ_ADC),
|
|
|
+ [1] = DEFINE_RES_IRQ(IRQ_TC),
|
|
|
+};
|
|
|
+
|
|
|
+struct platform_device s3c_device_ts = {
|
|
|
+ .name = "s3c2410-ts",
|
|
|
+ .id = -1,
|
|
|
+ .dev.parent = &s3c_device_adc.dev,
|
|
|
+ .num_resources = ARRAY_SIZE(s3c_ts_resource),
|
|
|
+ .resource = s3c_ts_resource,
|
|
|
+};
|
|
|
+
|
|
|
+void __init s3c24xx_ts_set_platdata(struct s3c2410_ts_mach_info *hard_s3c2410ts_info)
|
|
|
+{
|
|
|
+ s3c_set_platdata(hard_s3c2410ts_info,
|
|
|
+ sizeof(struct s3c2410_ts_mach_info), &s3c_device_ts);
|
|
|
+}
|
|
|
+#endif /* CONFIG_PLAT_S3C24XX */
|
|
|
+
|
|
|
+#ifdef CONFIG_SAMSUNG_DEV_TS
|
|
|
+static struct resource s3c_ts_resource[] = {
|
|
|
+ [0] = DEFINE_RES_MEM(SAMSUNG_PA_ADC, SZ_256),
|
|
|
+ [1] = DEFINE_RES_IRQ(IRQ_TC),
|
|
|
+};
|
|
|
+
|
|
|
+static struct s3c2410_ts_mach_info default_ts_data __initdata = {
|
|
|
+ .delay = 10000,
|
|
|
+ .presc = 49,
|
|
|
+ .oversampling_shift = 2,
|
|
|
+};
|
|
|
+
|
|
|
+struct platform_device s3c_device_ts = {
|
|
|
+ .name = "s3c64xx-ts",
|
|
|
+ .id = -1,
|
|
|
+ .num_resources = ARRAY_SIZE(s3c_ts_resource),
|
|
|
+ .resource = s3c_ts_resource,
|
|
|
+};
|
|
|
+
|
|
|
+void __init s3c24xx_ts_set_platdata(struct s3c2410_ts_mach_info *pd)
|
|
|
+{
|
|
|
+ if (!pd)
|
|
|
+ pd = &default_ts_data;
|
|
|
+
|
|
|
+ s3c_set_platdata(pd, sizeof(struct s3c2410_ts_mach_info),
|
|
|
+ &s3c_device_ts);
|
|
|
+}
|
|
|
+#endif /* CONFIG_SAMSUNG_DEV_TS */
|
|
|
+
|
|
|
+/* TV */
|
|
|
+
|
|
|
+#ifdef CONFIG_S5P_DEV_TV
|
|
|
+
|
|
|
+static struct resource s5p_hdmi_resources[] = {
|
|
|
+ [0] = DEFINE_RES_MEM(S5P_PA_HDMI, SZ_1M),
|
|
|
+ [1] = DEFINE_RES_IRQ(IRQ_HDMI),
|
|
|
+};
|
|
|
+
|
|
|
+struct platform_device s5p_device_hdmi = {
|
|
|
+ .name = "s5p-hdmi",
|
|
|
+ .id = -1,
|
|
|
+ .num_resources = ARRAY_SIZE(s5p_hdmi_resources),
|
|
|
+ .resource = s5p_hdmi_resources,
|
|
|
+};
|
|
|
+
|
|
|
+static struct resource s5p_sdo_resources[] = {
|
|
|
+ [0] = DEFINE_RES_MEM(S5P_PA_SDO, SZ_64K),
|
|
|
+ [1] = DEFINE_RES_IRQ(IRQ_SDO),
|
|
|
+};
|
|
|
+
|
|
|
+struct platform_device s5p_device_sdo = {
|
|
|
+ .name = "s5p-sdo",
|
|
|
+ .id = -1,
|
|
|
+ .num_resources = ARRAY_SIZE(s5p_sdo_resources),
|
|
|
+ .resource = s5p_sdo_resources,
|
|
|
+};
|
|
|
+
|
|
|
+static struct resource s5p_mixer_resources[] = {
|
|
|
+ [0] = DEFINE_RES_MEM_NAMED(S5P_PA_MIXER, SZ_64K, "mxr"),
|
|
|
+ [1] = DEFINE_RES_MEM_NAMED(S5P_PA_VP, SZ_64K, "vp"),
|
|
|
+ [2] = DEFINE_RES_IRQ_NAMED(IRQ_MIXER, "irq"),
|
|
|
+};
|
|
|
+
|
|
|
+struct platform_device s5p_device_mixer = {
|
|
|
+ .name = "s5p-mixer",
|
|
|
+ .id = -1,
|
|
|
+ .num_resources = ARRAY_SIZE(s5p_mixer_resources),
|
|
|
+ .resource = s5p_mixer_resources,
|