[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 4/5] hw/misc: add MAX34451 device
From: |
Joel Stanley |
Subject: |
Re: [PATCH v2 4/5] hw/misc: add MAX34451 device |
Date: |
Mon, 10 May 2021 07:29:07 +0000 |
On Wed, 5 May 2021 at 17:29, Titus Rwantare <titusr@google.com> wrote:
>
> The MAX34451 is a Maxim power-supply system manager that can monitor up to 16
> voltage rails or currents. It also contains a temperature sensor and supports
> up to four external temperature sensors.
>
> This commit adds support for interfacing with it, and setting limits on the
> supported sensors.
>
> Reviewed-by: Hao Wu <wuhaotsh@google.com>
> Signed-off-by: Titus Rwantare <titusr@google.com>
Reviewed-by: Joel Stanley <joel@jms.id.au>
> +static void max34451_class_init(ObjectClass *klass, void *data)
> +{
> + ResettableClass *rc = RESETTABLE_CLASS(klass);
> + DeviceClass *dc = DEVICE_CLASS(klass);
> + PMBusDeviceClass *k = PMBUS_DEVICE_CLASS(klass);
> + dc->desc = "Maxim MAX34451 16-Channel V/I monitor";
> + k->write_data = max34451_write_data;
> + k->receive_byte = max34451_read_byte;
> + k->device_num_pages = MAX34451_NUM_PAGES;
> + /* k->quick_cmd */
> + /* rc->phase.enter */
> + /* rc->phases.hold */
These look like they can be removed.
> + rc->phases.exit = max34451_exit_reset;
> +}
- [PATCH v2 0/5] Add support for PMBus in QEMU, Titus Rwantare, 2021/05/05
- [PATCH v2 1/5] hw/i2c: add support for PMBus, Titus Rwantare, 2021/05/05
- [PATCH v2 3/5] tests/qtest: add tests for ADM1272 device model, Titus Rwantare, 2021/05/05
- [PATCH v2 2/5] hw/misc: add ADM1272 device, Titus Rwantare, 2021/05/05
- [PATCH v2 4/5] hw/misc: add MAX34451 device, Titus Rwantare, 2021/05/05
- Re: [PATCH v2 4/5] hw/misc: add MAX34451 device,
Joel Stanley <=
- [PATCH v2 5/5] tests/qtest: add tests for MAX34451 device model, Titus Rwantare, 2021/05/05