Add a late HPD dock mode

This commit is contained in:
Baptiste MOINE committed 2026-11-13 13:38:17 +01:00
1 parent afc3dfe28a
commit 6e72741878
3 files changed
+11 -3

No files matched your search

+4 -2
View File
@@ -455,8 +455,10 @@ void command(uint16_t cmd) {
chip.dp_pin = (pin & 0x08) ? 0x08 : 0x04;
DLOG("DisplayPort configured, pin %c\n", chip.dp_pin == 0x08 ? 'D' : 'C');
done(LASTCMD_COMPLETE);
if (tv_present())
after_us(150000, [] { if (chip.dp_configured) hpd_update(true); });
if (tv_present()) {
bool late = g_state && g_state->dock_late_hpd.load();
after_us(late ? 25000000 : 150000, [] { if (chip.dp_configured) hpd_update(true); });
}
});
break;
}