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:
parent
d137ab049b
commit
e3e0bb558a
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user