The 6022BL has the multiplexers connected to port A bits instead of
port C.
Signed-off-by: Jan Losinski <redacted>
/*
* This sets three bits for each channel, one channel at a time.
/*
* This sets three bits for each channel, one channel at a time.
- * For channel 0 we want to set bits 5, 6 & 7
- * For channel 1 we want to set bits 2, 3 & 4
+ * For channel 0 we want to set bits 1, 2 & 3
+ * For channel 1 we want to set bits 4, 5 & 6
*
* We convert the input values that are strange due to original
* firmware code into the value of the three bits as follows:
*
* We convert the input values that are strange due to original
* firmware code into the value of the three bits as follows:
break;
default:
return FALSE;
}
break;
default:
return FALSE;
}
- mask = (channel) ? 0xe0 : 0x1c;
- IOC = (IOC & ~mask) | (bits & mask);
+ bits = bits << (channel ? 1 : 4);
+ mask = (channel) ? 0x70 : 0x0e;
+ IOA = (IOA & ~mask) | (bits & mask);