[PATCH v7 0/4] initial support for yosemite4

alexander.hansen@9elements.com posted 4 patches 4 days, 14 hours ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20260619115533.5664-1-alexander.hansen@9elements.com
Maintainers: "Cédric Le Goater" <clg@kaod.org>, Peter Maydell <peter.maydell@linaro.org>, Steven Lee <steven_lee@aspeedtech.com>, Troy Lee <leetroy@gmail.com>, Jamin Lin <jamin_lin@aspeedtech.com>, Kane Chen <kane_chen@aspeedtech.com>, Andrew Jeffery <andrew@codeconstruct.com.au>, Joel Stanley <joel@jms.id.au>, Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>, Paolo Bonzini <pbonzini@redhat.com>, "Philippe Mathieu-Daudé" <philmd@mailo.com>, Titus Rwantare <titusr@google.com>
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
[PATCH v7 0/4] initial support for yosemite4
Posted by alexander.hansen@9elements.com 4 days, 14 hours ago
From: Alexander Hansen <alexander.hansen@9elements.com>

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 <eblot@meta.com>
Cc: Titus Rwantare <titusr@google.com>
Cc: "Cédric Le Goater" <clg@kaod.org> (maintainer:ASPEED BMCs)
-- 
2.54.0