Lines Matching full:so

60 			      struct sh_mobile_lcdc_sys_bus_ops *so)  in read_reg()  argument
62 return so->read_data(sohandle); in read_reg()
66 struct sh_mobile_lcdc_sys_bus_ops *so, in write_reg() argument
70 so->write_data(sohandle, v); /* PTH4/LCDRS High [param, 17:0] */ in write_reg()
72 so->write_index(sohandle, v); /* PTH4/LCDRS Low [cmd, 7:0] */ in write_reg()
76 struct sh_mobile_lcdc_sys_bus_ops *so, in write_data() argument
82 write_reg(sohandle, so, 1, data[i]); in write_data()
86 struct sh_mobile_lcdc_sys_bus_ops *so) in read_device_code() argument
91 write_reg(sohandle, so, 0, 0xb0); in read_device_code()
92 write_reg(sohandle, so, 1, 0x00); in read_device_code()
95 write_reg(sohandle, so, 0, 0xb1); in read_device_code()
96 write_reg(sohandle, so, 1, 0x00); in read_device_code()
99 write_reg(sohandle, so, 0, 0xbf); in read_device_code()
103 read_reg(sohandle, so); in read_device_code()
106 device_code = ((read_reg(sohandle, so) & 0xff) << 24); in read_device_code()
107 device_code |= ((read_reg(sohandle, so) & 0xff) << 16); in read_device_code()
108 device_code |= ((read_reg(sohandle, so) & 0xff) << 8); in read_device_code()
109 device_code |= (read_reg(sohandle, so) & 0xff); in read_device_code()
115 struct sh_mobile_lcdc_sys_bus_ops *so) in write_memory_start() argument
117 write_reg(sohandle, so, 0, 0x2c); in write_memory_start()
121 struct sh_mobile_lcdc_sys_bus_ops *so) in clear_memory() argument
126 write_memory_start(sohandle, so); in clear_memory()
130 write_reg(sohandle, so, 1, 0x00); in clear_memory()
134 struct sh_mobile_lcdc_sys_bus_ops *so) in display_on() argument
137 write_reg(sohandle, so, 0, 0xb0); in display_on()
138 write_reg(sohandle, so, 1, 0x00); in display_on()
141 write_reg(sohandle, so, 0, 0xb1); in display_on()
142 write_reg(sohandle, so, 1, 0x00); in display_on()
145 write_reg(sohandle, so, 0, 0xb3); in display_on()
146 write_data(sohandle, so, data_frame_if, ARRAY_SIZE(data_frame_if)); in display_on()
149 write_reg(sohandle, so, 0, 0xb4); in display_on()
150 write_reg(sohandle, so, 1, 0x00); /* DBI, internal clock */ in display_on()
153 write_reg(sohandle, so, 0, 0xc0); in display_on()
154 write_data(sohandle, so, data_panel, ARRAY_SIZE(data_panel)); in display_on()
157 write_reg(sohandle, so, 0, 0xc1); in display_on()
158 write_data(sohandle, so, data_timing, ARRAY_SIZE(data_timing)); in display_on()
161 write_reg(sohandle, so, 0, 0xc2); in display_on()
162 write_data(sohandle, so, data_timing, ARRAY_SIZE(data_timing)); in display_on()
165 write_reg(sohandle, so, 0, 0xc3); in display_on()
166 write_data(sohandle, so, data_timing, ARRAY_SIZE(data_timing)); in display_on()
169 write_reg(sohandle, so, 0, 0xc4); in display_on()
170 write_data(sohandle, so, data_timing_src, ARRAY_SIZE(data_timing_src)); in display_on()
173 write_reg(sohandle, so, 0, 0xc8); in display_on()
174 write_data(sohandle, so, data_gamma, ARRAY_SIZE(data_gamma)); in display_on()
177 write_reg(sohandle, so, 0, 0xc9); in display_on()
178 write_data(sohandle, so, data_gamma, ARRAY_SIZE(data_gamma)); in display_on()
181 write_reg(sohandle, so, 0, 0xca); in display_on()
182 write_data(sohandle, so, data_gamma, ARRAY_SIZE(data_gamma)); in display_on()
185 write_reg(sohandle, so, 0, 0xd0); in display_on()
186 write_data(sohandle, so, data_power, ARRAY_SIZE(data_power)); in display_on()
189 write_reg(sohandle, so, 0, 0xd1); in display_on()
190 write_reg(sohandle, so, 1, 0x00); in display_on()
191 write_reg(sohandle, so, 1, 0x0f); in display_on()
192 write_reg(sohandle, so, 1, 0x02); in display_on()
195 write_reg(sohandle, so, 0, 0xd2); in display_on()
196 write_reg(sohandle, so, 1, 0x63); in display_on()
197 write_reg(sohandle, so, 1, 0x24); in display_on()
200 write_reg(sohandle, so, 0, 0xd3); in display_on()
201 write_reg(sohandle, so, 1, 0x63); in display_on()
202 write_reg(sohandle, so, 1, 0x24); in display_on()
205 write_reg(sohandle, so, 0, 0xd4); in display_on()
206 write_reg(sohandle, so, 1, 0x63); in display_on()
207 write_reg(sohandle, so, 1, 0x24); in display_on()
209 write_reg(sohandle, so, 0, 0xd8); in display_on()
210 write_reg(sohandle, so, 1, 0x77); in display_on()
211 write_reg(sohandle, so, 1, 0x77); in display_on()
214 write_reg(sohandle, so, 0, 0x35); in display_on()
215 write_reg(sohandle, so, 1, 0x00); in display_on()
218 write_reg(sohandle, so, 0, 0x44); in display_on()
219 write_reg(sohandle, so, 1, 0x00); in display_on()
220 write_reg(sohandle, so, 1, 0x00); in display_on()
223 write_reg(sohandle, so, 0, 0x2a); in display_on()
224 write_reg(sohandle, so, 1, 0x00); in display_on()
225 write_reg(sohandle, so, 1, 0x00); in display_on()
226 write_reg(sohandle, so, 1, 0x00); in display_on()
227 write_reg(sohandle, so, 1, 0xef); in display_on()
230 write_reg(sohandle, so, 0, 0x2b); in display_on()
231 write_reg(sohandle, so, 1, 0x00); in display_on()
232 write_reg(sohandle, so, 1, 0x00); in display_on()
233 write_reg(sohandle, so, 1, 0x01); in display_on()
234 write_reg(sohandle, so, 1, 0x8f); in display_on()
237 write_reg(sohandle, so, 0, 0x11); in display_on()
242 clear_memory(sohandle, so); in display_on()
245 write_reg(sohandle, so, 0, 0x29); in display_on()
248 write_memory_start(sohandle, so); in display_on()
251 int kfr2r09_lcd_setup(void *sohandle, struct sh_mobile_lcdc_sys_bus_ops *so) in kfr2r09_lcd_setup() argument
263 if (read_device_code(sohandle, so) != 0x01221517) in kfr2r09_lcd_setup()
268 display_on(sohandle, so); in kfr2r09_lcd_setup()
272 void kfr2r09_lcd_start(void *sohandle, struct sh_mobile_lcdc_sys_bus_ops *so) in kfr2r09_lcd_start() argument
274 write_memory_start(sohandle, so); in kfr2r09_lcd_start()