diff mbox

sh: LCDC start_transfer() for the KFR2R09 board

Message ID 20091207142605.6728.6076.sendpatchset@rxone.opensource.se (mailing list archive)
State Accepted
Headers show

Commit Message

Magnus Damm Dec. 7, 2009, 2:26 p.m. UTC
None
diff mbox

Patch

--- 0001/arch/sh/boards/mach-kfr2r09/lcd_wqvga.c
+++ work/arch/sh/boards/mach-kfr2r09/lcd_wqvga.c	2009-12-07 18:32:49.000000000 +0900
@@ -273,6 +273,12 @@  int kfr2r09_lcd_setup(void *board_data, 
 	return 0;
 }
 
+void kfr2r09_lcd_start(void *board_data, void *sohandle,
+		       struct sh_mobile_lcdc_sys_bus_ops *so)
+{
+	write_memory_start(sohandle, so);
+}
+
 #define CTRL_CKSW       0x10
 #define CTRL_C10        0x20
 #define CTRL_CPSW       0x80
--- 0001/arch/sh/boards/mach-kfr2r09/setup.c
+++ work/arch/sh/boards/mach-kfr2r09/setup.c	2009-12-07 18:32:49.000000000 +0900
@@ -149,6 +149,7 @@  static struct sh_mobile_lcdc_info kfr2r0
 		},
 		.board_cfg = {
 			.setup_sys = kfr2r09_lcd_setup,
+			.start_transfer = kfr2r09_lcd_start,
 			.display_on = kfr2r09_lcd_on,
 			.display_off = kfr2r09_lcd_off,
 		},
--- 0001/arch/sh/include/mach-kfr2r09/mach/kfr2r09.h
+++ work/arch/sh/include/mach-kfr2r09/mach/kfr2r09.h	2009-12-07 18:32:49.000000000 +0900
@@ -8,6 +8,8 @@  void kfr2r09_lcd_on(void *board_data);
 void kfr2r09_lcd_off(void *board_data);
 int kfr2r09_lcd_setup(void *board_data, void *sys_ops_handle,
 		      struct sh_mobile_lcdc_sys_bus_ops *sys_ops);
+void kfr2r09_lcd_start(void *board_data, void *sys_ops_handle,
+		       struct sh_mobile_lcdc_sys_bus_ops *sys_ops);
 #else
 static inline void kfr2r09_lcd_on(void *board_data) {}
 static inline void kfr2r09_lcd_off(void *board_data) {}
@@ -16,6 +18,10 @@  static inline int kfr2r09_lcd_setup(void
 {
 	return -ENODEV;
 }
+static inline void kfr2r09_lcd_start(void *board_data, void *sys_ops_handle,
+				     struct sh_mobile_lcdc_sys_bus_ops *sys_ops)
+{
+}
 #endif
 
 #endif /* __ASM_SH_KFR2R09_H */