Lines Matching refs:so
63 struct sh_mobile_lcdc_sys_bus_ops *so) in read_reg() argument
65 return so->read_data(sohandle); in read_reg()
69 struct sh_mobile_lcdc_sys_bus_ops *so, in write_reg() argument
73 so->write_data(sohandle, v); /* PTH4/LCDRS High [param, 17:0] */ in write_reg()
75 so->write_index(sohandle, v); /* PTH4/LCDRS Low [cmd, 7:0] */ in write_reg()
79 struct sh_mobile_lcdc_sys_bus_ops *so, in write_data() argument
85 write_reg(sohandle, so, 1, data[i]); in write_data()
89 struct sh_mobile_lcdc_sys_bus_ops *so) in read_device_code() argument
94 write_reg(sohandle, so, 0, 0xb0); in read_device_code()
95 write_reg(sohandle, so, 1, 0x00); in read_device_code()
98 write_reg(sohandle, so, 0, 0xb1); in read_device_code()
99 write_reg(sohandle, so, 1, 0x00); in read_device_code()
102 write_reg(sohandle, so, 0, 0xbf); in read_device_code()
106 read_reg(sohandle, so); in read_device_code()
109 device_code = ((read_reg(sohandle, so) & 0xff) << 24); in read_device_code()
110 device_code |= ((read_reg(sohandle, so) & 0xff) << 16); in read_device_code()
111 device_code |= ((read_reg(sohandle, so) & 0xff) << 8); in read_device_code()
112 device_code |= (read_reg(sohandle, so) & 0xff); in read_device_code()
118 struct sh_mobile_lcdc_sys_bus_ops *so) in write_memory_start() argument
120 write_reg(sohandle, so, 0, 0x2c); in write_memory_start()
124 struct sh_mobile_lcdc_sys_bus_ops *so) in clear_memory() argument
129 write_memory_start(sohandle, so); in clear_memory()
133 write_reg(sohandle, so, 1, 0x00); in clear_memory()
137 struct sh_mobile_lcdc_sys_bus_ops *so) in display_on() argument
140 write_reg(sohandle, so, 0, 0xb0); in display_on()
141 write_reg(sohandle, so, 1, 0x00); in display_on()
144 write_reg(sohandle, so, 0, 0xb1); in display_on()
145 write_reg(sohandle, so, 1, 0x00); in display_on()
148 write_reg(sohandle, so, 0, 0xb3); in display_on()
149 write_data(sohandle, so, data_frame_if, ARRAY_SIZE(data_frame_if)); in display_on()
152 write_reg(sohandle, so, 0, 0xb4); in display_on()
153 write_reg(sohandle, so, 1, 0x00); /* DBI, internal clock */ in display_on()
156 write_reg(sohandle, so, 0, 0xc0); in display_on()
157 write_data(sohandle, so, data_panel, ARRAY_SIZE(data_panel)); in display_on()
160 write_reg(sohandle, so, 0, 0xc1); in display_on()
161 write_data(sohandle, so, data_timing, ARRAY_SIZE(data_timing)); in display_on()
164 write_reg(sohandle, so, 0, 0xc2); in display_on()
165 write_data(sohandle, so, data_timing, ARRAY_SIZE(data_timing)); in display_on()
168 write_reg(sohandle, so, 0, 0xc3); in display_on()
169 write_data(sohandle, so, data_timing, ARRAY_SIZE(data_timing)); in display_on()
172 write_reg(sohandle, so, 0, 0xc4); in display_on()
173 write_data(sohandle, so, data_timing_src, ARRAY_SIZE(data_timing_src)); in display_on()
176 write_reg(sohandle, so, 0, 0xc8); in display_on()
177 write_data(sohandle, so, data_gamma, ARRAY_SIZE(data_gamma)); in display_on()
180 write_reg(sohandle, so, 0, 0xc9); in display_on()
181 write_data(sohandle, so, data_gamma, ARRAY_SIZE(data_gamma)); in display_on()
184 write_reg(sohandle, so, 0, 0xca); in display_on()
185 write_data(sohandle, so, data_gamma, ARRAY_SIZE(data_gamma)); in display_on()
188 write_reg(sohandle, so, 0, 0xd0); in display_on()
189 write_data(sohandle, so, data_power, ARRAY_SIZE(data_power)); in display_on()
192 write_reg(sohandle, so, 0, 0xd1); in display_on()
193 write_reg(sohandle, so, 1, 0x00); in display_on()
194 write_reg(sohandle, so, 1, 0x0f); in display_on()
195 write_reg(sohandle, so, 1, 0x02); in display_on()
198 write_reg(sohandle, so, 0, 0xd2); in display_on()
199 write_reg(sohandle, so, 1, 0x63); in display_on()
200 write_reg(sohandle, so, 1, 0x24); in display_on()
203 write_reg(sohandle, so, 0, 0xd3); in display_on()
204 write_reg(sohandle, so, 1, 0x63); in display_on()
205 write_reg(sohandle, so, 1, 0x24); in display_on()
208 write_reg(sohandle, so, 0, 0xd4); in display_on()
209 write_reg(sohandle, so, 1, 0x63); in display_on()
210 write_reg(sohandle, so, 1, 0x24); in display_on()
212 write_reg(sohandle, so, 0, 0xd8); in display_on()
213 write_reg(sohandle, so, 1, 0x77); in display_on()
214 write_reg(sohandle, so, 1, 0x77); in display_on()
217 write_reg(sohandle, so, 0, 0x35); in display_on()
218 write_reg(sohandle, so, 1, 0x00); in display_on()
221 write_reg(sohandle, so, 0, 0x44); in display_on()
222 write_reg(sohandle, so, 1, 0x00); in display_on()
223 write_reg(sohandle, so, 1, 0x00); in display_on()
226 write_reg(sohandle, so, 0, 0x2a); in display_on()
227 write_reg(sohandle, so, 1, 0x00); in display_on()
228 write_reg(sohandle, so, 1, 0x00); in display_on()
229 write_reg(sohandle, so, 1, 0x00); in display_on()
230 write_reg(sohandle, so, 1, 0xef); in display_on()
233 write_reg(sohandle, so, 0, 0x2b); in display_on()
234 write_reg(sohandle, so, 1, 0x00); in display_on()
235 write_reg(sohandle, so, 1, 0x00); in display_on()
236 write_reg(sohandle, so, 1, 0x01); in display_on()
237 write_reg(sohandle, so, 1, 0x8f); in display_on()
240 write_reg(sohandle, so, 0, 0x11); in display_on()
245 clear_memory(sohandle, so); in display_on()
248 write_reg(sohandle, so, 0, 0x29); in display_on()
251 write_memory_start(sohandle, so); in display_on()
254 int kfr2r09_lcd_setup(void *sohandle, struct sh_mobile_lcdc_sys_bus_ops *so) in kfr2r09_lcd_setup() argument
266 if (read_device_code(sohandle, so) != 0x01221517) in kfr2r09_lcd_setup()
271 display_on(sohandle, so); in kfr2r09_lcd_setup()
275 void kfr2r09_lcd_start(void *sohandle, struct sh_mobile_lcdc_sys_bus_ops *so) in kfr2r09_lcd_start() argument
277 write_memory_start(sohandle, so); in kfr2r09_lcd_start()