Lines Matching +full:0 +full:x1e6e2000
34 sendack = ast_get_index_reg_mask(ast, AST_IO_CRTC_PORT, 0x9b, 0xff); in send_ack()
35 sendack |= 0x80; in send_ack()
36 ast_set_index_reg_mask(ast, AST_IO_CRTC_PORT, 0x9b, 0x00, sendack); in send_ack()
42 sendack = ast_get_index_reg_mask(ast, AST_IO_CRTC_PORT, 0x9b, 0xff); in send_nack()
43 sendack &= ~0x80; in send_nack()
44 ast_set_index_reg_mask(ast, AST_IO_CRTC_PORT, 0x9b, 0x00, sendack); in send_nack()
50 u32 retry = 0; in wait_ack()
52 waitack = ast_get_index_reg_mask(ast, AST_IO_CRTC_PORT, 0xd2, 0xff); in wait_ack()
53 waitack &= 0x80; in wait_ack()
66 u32 retry = 0; in wait_nack()
68 waitack = ast_get_index_reg_mask(ast, AST_IO_CRTC_PORT, 0xd2, 0xff); in wait_nack()
69 waitack &= 0x80; in wait_nack()
81 ast_set_index_reg_mask(ast, AST_IO_CRTC_PORT, 0x9b, ~0x40, 0x40); in set_cmd_trigger()
86 ast_set_index_reg_mask(ast, AST_IO_CRTC_PORT, 0x9b, ~0x40, 0x00); in clear_cmd_trigger()
89 #if 0
93 u32 retry = 0;
95 waitready = ast_get_index_reg_mask(ast, AST_IO_CRTC_PORT, 0xd2, 0xff);
96 waitready &= 0x40;
110 int retry = 0; in ast_write_cmd()
113 ast_set_index_reg_mask(ast, AST_IO_CRTC_PORT, 0x9a, 0x00, data); in ast_write_cmd()
135 ast_set_index_reg_mask(ast, AST_IO_CRTC_PORT, 0x9a, 0x00, data); in ast_write_data()
146 #if 0
152 *data = 0;
156 tmp = ast_get_index_reg_mask(ast, AST_IO_CRTC_PORT, 0xd3, 0xff);
169 ast_set_index_reg_mask(ast, AST_IO_CRTC_PORT, 0x9a, 0x00, 0x00);
175 ast_write_cmd(dev, 0x40); in ast_set_dp501_video_output()
183 return ast_mindwm(ast, 0x1e6e2104) & 0x7fffffff; in get_fw_base()
192 data = ast_mindwm(ast, 0x1e6e2100) & 0x01; in ast_backup_fw()
195 for (i = 0; i < size; i += 4) in ast_backup_fw()
205 u32 i, data, len = 0; in ast_launch_m68k()
210 data = ast_mindwm(ast, 0x1e6e2100) & 0x01; in ast_launch_m68k()
218 ast_load_dp501_microcode(dev) < 0) in ast_launch_m68k()
225 ast_moutdwm(ast, 0x1e6e2000, 0x1688a8a8); in ast_launch_m68k()
226 data = ast_mindwm(ast, 0x1e6e0004); in ast_launch_m68k()
227 switch (data & 0x03) { in ast_launch_m68k()
228 case 0: in ast_launch_m68k()
229 boot_address = 0x44000000; in ast_launch_m68k()
233 boot_address = 0x48000000; in ast_launch_m68k()
236 boot_address = 0x50000000; in ast_launch_m68k()
239 boot_address = 0x60000000; in ast_launch_m68k()
242 boot_address -= 0x200000; /* -2MB */ in ast_launch_m68k()
245 for (i = 0; i < len; i += 4) { in ast_launch_m68k()
251 ast_moutdwm(ast, 0x1e6e2000, 0x1688a8a8); in ast_launch_m68k()
254 ast_moutdwm(ast, 0x1e6e2104, 0x80000000 + boot_address); in ast_launch_m68k()
255 ast_moutdwm(ast, 0x1e6e2100, 1); in ast_launch_m68k()
258 data = ast_mindwm(ast, 0x1e6e2040) & 0xfffff1ff; /* D[11:9] = 100b: UEFI handling */ in ast_launch_m68k()
259 data |= 0x800; in ast_launch_m68k()
260 ast_moutdwm(ast, 0x1e6e2040, data); in ast_launch_m68k()
262 …jreg = ast_get_index_reg_mask(ast, AST_IO_CRTC_PORT, 0x99, 0xfc); /* D[1:0]: Reserved Video Buffer… in ast_launch_m68k()
263 jreg |= 0x02; in ast_launch_m68k()
264 ast_set_index_reg(ast, AST_IO_CRTC_PORT, 0x99, jreg); in ast_launch_m68k()
273 u8 linkcap[4], linkrate, linklanes, maxclk = 0xff; in ast_get_dp501_max_clk()
278 offset = 0xf000; in ast_get_dp501_max_clk()
280 if ((data & 0xf0) != 0x10) /* version: 1x */ in ast_get_dp501_max_clk()
284 offset = 0xf014; in ast_get_dp501_max_clk()
286 if (linkcap[2] == 0) { in ast_get_dp501_max_clk()
287 linkrate = linkcap[0]; in ast_get_dp501_max_clk()
289 data = (linkrate == 0x0a) ? (90 * linklanes) : (54 * linklanes); in ast_get_dp501_max_clk()
290 if (data > 0xff) in ast_get_dp501_max_clk()
291 data = 0xff; in ast_get_dp501_max_clk()
305 offset = 0xf000; in ast_dp501_read_edid()
307 if ((data & 0xf0) != 0x10) in ast_dp501_read_edid()
311 offset = 0xf010; in ast_dp501_read_edid()
313 if (!(data & 0x01)) in ast_dp501_read_edid()
317 offset = 0xf020; in ast_dp501_read_edid()
318 for (i = 0; i < 128; i += 4) { in ast_dp501_read_edid()
331 ast_write32(ast, 0xf004, 0x1e6e0000); in ast_init_dvo()
332 ast_write32(ast, 0xf000, 0x1); in ast_init_dvo()
333 ast_write32(ast, 0x12000, 0x1688a8a8); in ast_init_dvo()
335 jreg = ast_get_index_reg_mask(ast, AST_IO_CRTC_PORT, 0xd0, 0xff); in ast_init_dvo()
336 if (!(jreg & 0x80)) { in ast_init_dvo()
338 data = ast_read32(ast, 0x12008); in ast_init_dvo()
340 data &= 0xfffff8ff; in ast_init_dvo()
341 data |= 0x00000500; in ast_init_dvo()
342 ast_write32(ast, 0x12008, data); in ast_init_dvo()
345 data = ast_read32(ast, 0x12084); in ast_init_dvo()
347 data |= 0xfffe0000; in ast_init_dvo()
348 ast_write32(ast, 0x12084, data); in ast_init_dvo()
350 data = ast_read32(ast, 0x12088); in ast_init_dvo()
352 data |= 0x000fffff; in ast_init_dvo()
353 ast_write32(ast, 0x12088, data); in ast_init_dvo()
355 data = ast_read32(ast, 0x12090); in ast_init_dvo()
357 data &= 0xffffffcf; in ast_init_dvo()
358 data |= 0x00000020; in ast_init_dvo()
359 ast_write32(ast, 0x12090, data); in ast_init_dvo()
361 data = ast_read32(ast, 0x12088); in ast_init_dvo()
363 data |= 0x30000000; in ast_init_dvo()
364 ast_write32(ast, 0x12088, data); in ast_init_dvo()
366 data = ast_read32(ast, 0x1208c); in ast_init_dvo()
368 data |= 0x000000cf; in ast_init_dvo()
369 ast_write32(ast, 0x1208c, data); in ast_init_dvo()
371 data = ast_read32(ast, 0x120a4); in ast_init_dvo()
373 data |= 0xffff0000; in ast_init_dvo()
374 ast_write32(ast, 0x120a4, data); in ast_init_dvo()
376 data = ast_read32(ast, 0x120a8); in ast_init_dvo()
378 data |= 0x0000000f; in ast_init_dvo()
379 ast_write32(ast, 0x120a8, data); in ast_init_dvo()
381 data = ast_read32(ast, 0x12094); in ast_init_dvo()
383 data |= 0x00000002; in ast_init_dvo()
384 ast_write32(ast, 0x12094, data); in ast_init_dvo()
389 data = ast_read32(ast, 0x1202c); in ast_init_dvo()
390 data &= 0xfffbffff; in ast_init_dvo()
391 ast_write32(ast, 0x1202c, data); in ast_init_dvo()
394 ast_set_index_reg_mask(ast, AST_IO_CRTC_PORT, 0xa3, 0xcf, 0x80); in ast_init_dvo()
409 ast_write32(ast, 0xf004, 0x1e6e0000); in ast_init_analog()
410 ast_write32(ast, 0xf000, 0x1); in ast_init_analog()
413 ast_write32(ast, 0x12000, 0x1688a8a8); in ast_init_analog()
414 ast_write32(ast, 0x12000, 0x1688a8a8); in ast_init_analog()
415 ast_write32(ast, 0x12000, 0x1688a8a8); in ast_init_analog()
418 data = ast_read32(ast, 0x1202c); in ast_init_analog()
419 data &= 0xfffcffff; in ast_init_analog()
420 ast_write32(ast, 0, data); in ast_init_analog()
423 ast_set_index_reg_mask(ast, AST_IO_CRTC_PORT, 0xa3, 0xcf, 0x00); in ast_init_analog()
432 jreg = ast_get_index_reg_mask(ast, AST_IO_CRTC_PORT, 0xd1, 0xff); in ast_init_3rdtx()
433 switch (jreg & 0x0e) { in ast_init_3rdtx()
434 case 0x04: in ast_init_3rdtx()
437 case 0x08: in ast_init_3rdtx()
440 case 0x0c: in ast_init_3rdtx()