Sean Cross
2979f4453f
emulation: ensure peripherals are reset
...
Add a `Reset()` call to many more peripherals to ensure they are reset
when the board is reset.
Signed-off-by: Sean Cross <sean@xobs.io>
2022-04-21 10:18:35 +08:00
Sean Cross
df03f8c820
emulation: bq27421: correct endianness
...
Because of the previous commit, endianness was incorrect and we weren't
reading the full range of values.
Correct the endianness and support continuous reads. Also expose various
settings so they may be adjusted.
Signed-off-by: Sean Cross <sean@xobs.io>
2022-04-20 21:27:51 +08:00
Sean Cross
c392d8df90
emulation: BQ27421: implement more registers
...
This gets the gas gauge showing more data.
Signed-off-by: Sean Cross <sean@xobs.io>
2022-02-14 13:41:15 +08:00
Sean Cross
63dc07d633
emulation: get more of the EC working
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-09-27 19:42:04 +08:00
Sean Cross
5aaf166541
emulation: implement partial ec i2c
...
This implements some i2c functionality on the EC. Additionally, it
implements the Betrusted watchdog.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-08-30 12:36:04 +08:00