platinum: Implement FB_TEST read/write.

This commit is contained in:
joevt 2024-05-04 22:16:15 -07:00 committed by dingusdev
parent d7fb49166f
commit 99972307dc

View File

@ -145,6 +145,9 @@ uint32_t PlatinumCtrl::read(uint32_t rgn_start, uint32_t offset, int size) {
case PlatinumReg::MON_ID_SENSE:
value = (this->mon_sense ^ 7);
break;
case PlatinumReg::FB_TEST:
value = this->fb_test;
break;
case PlatinumReg::SWATCH_CONFIG:
value = this->swatch_config;
break;
@ -296,6 +299,11 @@ void PlatinumCtrl::write(uint32_t rgn_start, uint32_t offset, uint32_t value, in
}
break;
case PlatinumReg::FB_TEST:
this->fb_test =
(this->fb_test & ~(SENSE_LINE_OUTPUT_DATA | SYNCS_OUTPUT_ENABLE | FORCED_SYNC_LEVELS)) |
(value & (SENSE_LINE_OUTPUT_DATA | SYNCS_OUTPUT_ENABLE | FORCED_SYNC_LEVELS));
break;
case PlatinumReg::VRAM_REFRESH:
this->vram_refresh = value;
break;