From: Alexander Hansen <[email protected]> Thanks to Cedric and Emmanuel for reviewing.
Summary of changes from v6: machine: - fix underline in doc functional test: - no changes max31790: - considered defining "max31790" string in header, but it would only provide a single string, so meh. - wrap macro arguments in parentheses, thanks :) - use switch case ranges to make code more compact.. - use hexadecimal literals instead of binary literals. - define an explicit constant for the tach count - use modulo arithmetic for indexing into 'pwm' array to prevent out of bounds - use modulo arithmetic for indexing into 'tach_count' array to prevent out of bounds - use g_assert to check for index inside bounds for the arrays: - 'pwm' - 'tach_count' - 'tach_target' - 'fan_config' - 'fan_dynamics' - fix format string in trace events to match the width of data passed, thanks - functional test: fix spacing between imports and test class (2 newlines) - implemented new Resettable API instead of legacy reset max11615: - implement new Resettable API - replace binary literals with hex Alexander Hansen (4): ast2600: yosemite4 initial support ast2600: yosemite4 functional test hw/sensor: MAX31790 support hw/sensor: support MAX11615 MAINTAINERS | 2 + docs/system/arm/aspeed.rst | 5 +- hw/arm/Kconfig | 2 + hw/arm/aspeed_ast2600_fby4.c | 266 +++++++++++ hw/arm/meson.build | 1 + hw/sensor/Kconfig | 8 + hw/sensor/max11615.c | 320 +++++++++++++ hw/sensor/max31790.c | 584 +++++++++++++++++++++++ hw/sensor/meson.build | 2 + hw/sensor/trace-events | 22 + include/hw/sensor/max11615.h | 19 + tests/functional/arm/meson.build | 2 + tests/functional/arm/test_aspeed_fby4.py | 101 ++++ 13 files changed, 1332 insertions(+), 2 deletions(-) create mode 100644 hw/arm/aspeed_ast2600_fby4.c create mode 100644 hw/sensor/max11615.c create mode 100644 hw/sensor/max31790.c create mode 100644 include/hw/sensor/max11615.h create mode 100755 tests/functional/arm/test_aspeed_fby4.py Cc: Emmanuel Blot <[email protected]> Cc: Titus Rwantare <[email protected]> Cc: "Cédric Le Goater" <[email protected]> (maintainer:ASPEED BMCs) -- 2.54.0
