Lines Matching refs:so
113 int migor_lcd_qvga_setup(void *sohandle, struct sh_mobile_lcdc_sys_bus_ops *so)
120 migor_lcd_qvga_seq(sohandle, so, sync_data, ARRAY_SIZE(sync_data));
122 if (read_reg16(sohandle, so, 0) != 0x1505)
127 migor_lcd_qvga_seq(sohandle, so, sync_data, ARRAY_SIZE(sync_data));
128 write_reg16(sohandle, so, 0x00A4, 0x0001);
131 migor_lcd_qvga_seq(sohandle, so, magic0_data, ARRAY_SIZE(magic0_data));
134 migor_lcd_qvga_seq(sohandle, so, magic1_data, ARRAY_SIZE(magic1_data));
135 write_reg16(sohandle, so, 0x0050, 0xef - (yres - 1));
136 write_reg16(sohandle, so, 0x0051, 0x00ef);
137 write_reg16(sohandle, so, 0x0052, 0x0000);
138 write_reg16(sohandle, so, 0x0053, xres - 1);
140 migor_lcd_qvga_seq(sohandle, so, magic2_data, ARRAY_SIZE(magic2_data));
143 migor_lcd_qvga_seq(sohandle, so, magic3_data, ARRAY_SIZE(magic3_data));
148 write_reg16(sohandle, so, 0x0020, 0x0000); /* horiz addr */
149 write_reg16(sohandle, so, 0x0021, 0x0000); /* vert addr */
152 write_reg16(sohandle, so, 0x0022, 0x0000);
154 write_reg16(sohandle, so, 0x0020, 0x0000); /* reset horiz addr */
155 write_reg16(sohandle, so, 0x0021, 0x0000); /* reset vert addr */
156 write_reg16(sohandle, so, 0x0007, 0x0173);
160 write_reg(sohandle, so, 0x00, 0x22);