Merge pull request #2887 from Cacodemon345/acer_s20_mpu401
OPTiMC: MC6 register is readable, despite what the datasheet says
This commit is contained in:
@@ -312,7 +312,8 @@ optimc_reg_read(uint16_t addr, void *p)
|
|||||||
case 3: /* MC4 */
|
case 3: /* MC4 */
|
||||||
case 4: /* MC5 */
|
case 4: /* MC5 */
|
||||||
temp = optimc->regs[addr - 0xF8D];
|
temp = optimc->regs[addr - 0xF8D];
|
||||||
case 5: /* MC6 (not readable) */
|
case 5: /* MC6 */
|
||||||
|
temp = optimc->regs[5];
|
||||||
break;
|
break;
|
||||||
case 2: /* MC3 */
|
case 2: /* MC3 */
|
||||||
temp = (optimc->regs[2] & ~0x3) | 0x2;
|
temp = (optimc->regs[2] & ~0x3) | 0x2;
|
||||||
|
Reference in New Issue
Block a user