Re: [PATCH 12/17] hw/arm/spitz: Encapsulate misc GPIO handling in a device

2020-07-02 Thread Alistair Francis
On Sun, Jun 28, 2020 at 7:33 AM Peter Maydell wrote: > > Currently we have a free-floating set of IRQs and a function > spitz_out_switch() which handle some miscellaneous GPIO lines for the > spitz board. Encapsulate this behaviour in a simple QOM device. > > At this point we can finally remove t

Re: [PATCH 12/17] hw/arm/spitz: Encapsulate misc GPIO handling in a device

2020-06-29 Thread Philippe Mathieu-Daudé
On 6/28/20 4:24 PM, Peter Maydell wrote: > Currently we have a free-floating set of IRQs and a function > spitz_out_switch() which handle some miscellaneous GPIO lines for the > spitz board. Encapsulate this behaviour in a simple QOM device. > > At this point we can finally remove the 'max' g

[PATCH 12/17] hw/arm/spitz: Encapsulate misc GPIO handling in a device

2020-06-28 Thread Peter Maydell
Currently we have a free-floating set of IRQs and a function spitz_out_switch() which handle some miscellaneous GPIO lines for the spitz board. Encapsulate this behaviour in a simple QOM device. At this point we can finally remove the 'max' global, because the ADC battery-temperature value is