finish off DACPower modes

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42285 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Alexander von Gluck IV 2011-06-22 21:17:56 +00:00
parent d137ab049b
commit e3e0bb558a
1 changed files with 13 additions and 1 deletions

View File

@ -146,7 +146,6 @@ DACPower(uint8 dacIndex, int mode)
uint32 powerdown;
switch (mode) {
// TODO : RHD_POWER_OFF, etc
case RHD_POWER_ON:
// TODO : SensedType Detection?
powerdown = 0;
@ -159,5 +158,18 @@ DACPower(uint8 dacIndex, int mode)
Write32Mask(OUT, dacOffset + DACA_SYNC_SELECT, 0, 0x00000101);
Write32(OUT, dacOffset + DACA_SYNC_TRISTATE_CONTROL, 0);
return;
case RHD_POWER_RESET:
// No action
return;
case RHD_POWER_SHUTDOWN:
default:
Write32Mask(OUT, dacOffset + DACA_FORCE_DATA, 0, 0x0000FFFF);
Write32Mask(OUT, dacOffset + DACA_FORCE_OUTPUT_CNTL,
0x0000701, 0x0000701);
Write32(OUT, dacOffset + DACA_POWERDOWN, 0x01010100);
Write32(OUT, dacOffset + DACA_POWERDOWN, 0x01010101);
Write32(OUT, dacOffset + DACA_ENABLE, 0);
Write32(OUT, dacOffset + DACA_ENABLE, 0);
return;
}
}