Make all boards except oryp11 use the legacy PECI implementation. The
oryp11 removed the legacy pin (H_PECI) and must use PECI over eSPI.
All boards that use eSPI should switch to using PECI over eSPI once the
implementation is working correctly.
Signed-off-by: Tim Crawford <tcrawford@system76.com>
Unconditionally set the power limit based on the current AC state when
power_set_limit is called. The contional logic to run it only on ACIN#
state change is already done in power_event.
Signed-off-by: Tim Crawford <tcrawford@system76.com>
Per the flow charts for PECI programming guide, clear the status
register after the command has completed.
Ref: IT5570E V0.3.2 datasheet
Signed-off-by: Tim Crawford <tcrawford@system76.com>
Per the IT5570E datasheet, FINISH should be used to check if a
transaction completed, not HOBY.
> For the polling mode, software continues reading the Host Status
> Register to check whether the transaction is completed or not (the
> Finish bit in the Host Status Register will be set when the
> transaction is completed).
Ref: IT5570E V0.3.2 datasheet
Signed-off-by: Tim Crawford <tcrawford@system76.com>
Check if any hardware error bits are set instead of checking for only
command completion.
Move logging of WrPkgConfig() errors from power to peci.
Ref: IT5570E V0.3.2 datasheet
Signed-off-by: Tim Crawford <tcrawford@system76.com>
Step 2 for data transmission (both RX and TX) is to enable the
Transaction Done interrupt.
Ref: IT5570 V0.3.2, 7.9.3.1 Hardware Mode Selected
Signed-off-by: Tim Crawford <tcrawford@system76.com>