Lines Matching refs:so
116 int migor_lcd_qvga_setup(void *sohandle, struct sh_mobile_lcdc_sys_bus_ops *so) in migor_lcd_qvga_setup() argument
123 migor_lcd_qvga_seq(sohandle, so, sync_data, ARRAY_SIZE(sync_data)); in migor_lcd_qvga_setup()
125 if (read_reg16(sohandle, so, 0) != 0x1505) in migor_lcd_qvga_setup()
130 migor_lcd_qvga_seq(sohandle, so, sync_data, ARRAY_SIZE(sync_data)); in migor_lcd_qvga_setup()
131 write_reg16(sohandle, so, 0x00A4, 0x0001); in migor_lcd_qvga_setup()
134 migor_lcd_qvga_seq(sohandle, so, magic0_data, ARRAY_SIZE(magic0_data)); in migor_lcd_qvga_setup()
137 migor_lcd_qvga_seq(sohandle, so, magic1_data, ARRAY_SIZE(magic1_data)); in migor_lcd_qvga_setup()
138 write_reg16(sohandle, so, 0x0050, 0xef - (yres - 1)); in migor_lcd_qvga_setup()
139 write_reg16(sohandle, so, 0x0051, 0x00ef); in migor_lcd_qvga_setup()
140 write_reg16(sohandle, so, 0x0052, 0x0000); in migor_lcd_qvga_setup()
141 write_reg16(sohandle, so, 0x0053, xres - 1); in migor_lcd_qvga_setup()
143 migor_lcd_qvga_seq(sohandle, so, magic2_data, ARRAY_SIZE(magic2_data)); in migor_lcd_qvga_setup()
146 migor_lcd_qvga_seq(sohandle, so, magic3_data, ARRAY_SIZE(magic3_data)); in migor_lcd_qvga_setup()
151 write_reg16(sohandle, so, 0x0020, 0x0000); /* horiz addr */ in migor_lcd_qvga_setup()
152 write_reg16(sohandle, so, 0x0021, 0x0000); /* vert addr */ in migor_lcd_qvga_setup()
155 write_reg16(sohandle, so, 0x0022, 0x0000); in migor_lcd_qvga_setup()
157 write_reg16(sohandle, so, 0x0020, 0x0000); /* reset horiz addr */ in migor_lcd_qvga_setup()
158 write_reg16(sohandle, so, 0x0021, 0x0000); /* reset vert addr */ in migor_lcd_qvga_setup()
159 write_reg16(sohandle, so, 0x0007, 0x0173); in migor_lcd_qvga_setup()
163 write_reg(sohandle, so, 0x00, 0x22); in migor_lcd_qvga_setup()