@@ -10,6 +10,10 @@
*/
#include <plat/fimc.h>
+#include <plat/fifo.h>
+#include <linux/fb.h>
+#include <plat/fb.h>
+#include <plat/devs.h>
struct samsung_plat_fimc s5p_fimc0_default_data __initdata = {
.capability = S5P_FIMC_IN_ROT | S5P_FIMC_OUT_ROT,
@@ -23,3 +27,22 @@ struct samsung_plat_fimc s5p_fimc0_default_data __initdata = {
.out_rot_en_w = 1920,
.out_rot_dis_w = 4224
};
+
+static struct s3c_fifo_link s5pv210_fimc0_win0_link = {
+ .master_dev = &s5p_device_fimc0.dev,
+ .slave_dev = &s3c_device_fb.dev,
+};
+
+void __init s5pv210_setup_fimc0_fb_link(void)
+{
+ struct s3c_fb_platdata *fb_pd;
+ struct samsung_plat_fimc *fimc_pd;
+
+ fimc_pd = s5p_device_fimc0.dev.platform_data;
+ fb_pd = s3c_device_fb.dev.platform_data;
+
+ if (fimc_pd && fb_pd && fb_pd->win[0]) {
+ fb_pd->win[0]->fifo_sources[0] = &s5pv210_fimc0_win0_link;
+ fimc_pd->fifo_targets[0] = &s5pv210_fimc0_win0_link;
+ }
+}
@@ -10,6 +10,10 @@
*/
#include <plat/fimc.h>
+#include <plat/fifo.h>
+#include <linux/fb.h>
+#include <plat/fb.h>
+#include <plat/devs.h>
struct samsung_plat_fimc s5p_fimc1_default_data __initdata = {
.capability = S5P_FIMC_IN_ROT | S5P_FIMC_OUT_ROT,
@@ -23,3 +27,22 @@ struct samsung_plat_fimc s5p_fimc1_default_data __initdata = {
.out_rot_en_w = 1920,
.out_rot_dis_w = 4224
};
+
+static struct s3c_fifo_link s5pv210_fimc1_win1_link = {
+ .master_dev = &s5p_device_fimc1.dev,
+ .slave_dev = &s3c_device_fb.dev,
+};
+
+void __init s5pv210_setup_fimc1_fb_link(void)
+{
+ struct s3c_fb_platdata *fb_pd;
+ struct samsung_plat_fimc *fimc_pd;
+
+ fimc_pd = s5p_device_fimc1.dev.platform_data;
+ fb_pd = s3c_device_fb.dev.platform_data;
+
+ if (fimc_pd && fb_pd && fb_pd->win[1]) {
+ fb_pd->win[1]->fifo_sources[0] = &s5pv210_fimc1_win1_link;
+ fimc_pd->fifo_targets[0] = &s5pv210_fimc1_win1_link;
+ }
+}
@@ -10,6 +10,10 @@
*/
#include <plat/fimc.h>
+#include <plat/fifo.h>
+#include <linux/fb.h>
+#include <plat/fb.h>
+#include <plat/devs.h>
struct samsung_plat_fimc s5p_fimc2_default_data __initdata = {
.capability = S5P_FIMC_IN_ROT | S5P_FIMC_OUT_ROT,
@@ -23,3 +27,22 @@ struct samsung_plat_fimc s5p_fimc2_default_data __initdata = {
.out_rot_en_w = 1280,
.out_rot_dis_w = 1920
};
+
+static struct s3c_fifo_link s5pv210_fimc2_win2_link = {
+ .master_dev = &s5p_device_fimc2.dev,
+ .slave_dev = &s3c_device_fb.dev,
+};
+
+void __init s5pv210_setup_fimc2_fb_link(void)
+{
+ struct s3c_fb_platdata *fb_pd;
+ struct samsung_plat_fimc *fimc_pd;
+
+ fimc_pd = s5p_device_fimc2.dev.platform_data;
+ fb_pd = s3c_device_fb.dev.platform_data;
+
+ if (fimc_pd && fb_pd && fb_pd->win[2]) {
+ fb_pd->win[2]->fifo_sources[0] = &s5pv210_fimc2_win2_link;
+ fimc_pd->fifo_targets[0] = &s5pv210_fimc2_win2_link;
+ }
+}
@@ -54,5 +54,9 @@ extern void s5p_fimc0_set_platdata(struct samsung_plat_fimc *fimc);
extern void s5p_fimc1_set_platdata(struct samsung_plat_fimc *fimc);
extern void s5p_fimc2_set_platdata(struct samsung_plat_fimc *fimc);
+extern void __init s5pv210_setup_fimc0_fb_link(void);
+extern void __init s5pv210_setup_fimc1_fb_link(void);
+extern void __init s5pv210_setup_fimc2_fb_link(void);
+
#endif /* FIMC_H_ */