Re: [PATCH v3] Add basic power management to raspi.

2021-06-29 Thread Nolan
On 6/29/21 12:46 AM, Philippe Mathieu-Daudé wrote: I had to do move bcm2835_peripherals.c to build (otherwise meson complains and refuses to finish the configure script). I assumed it was a problem on my side (or with my git version) and didn't noticed bcm2835_peripherals.h was not under include/

Re: [PATCH v3] Add basic power management to raspi.

2021-06-29 Thread Philippe Mathieu-Daudé
On 6/28/21 7:38 PM, Peter Maydell wrote: > On Sat, 26 Jun 2021 at 11:16, Philippe Mathieu-Daudé wrote: >> >> Hi Nolan, Peter, >> >> On 6/25/21 11:02 PM, Nolan Leake wrote: >>> diff --git hw/arm/bcm2835_peripherals.c hw/arm/bcm2835_peripherals.c >> >> Odd, usually the diff line comes with a/ b/ pre

Re: [PATCH v3] Add basic power management to raspi.

2021-06-28 Thread Peter Maydell
On Sat, 26 Jun 2021 at 11:16, Philippe Mathieu-Daudé wrote: > > Hi Nolan, Peter, > > On 6/25/21 11:02 PM, Nolan Leake wrote: > > diff --git hw/arm/bcm2835_peripherals.c hw/arm/bcm2835_peripherals.c > > Odd, usually the diff line comes with a/ b/ prefix, I can not > apply your patch (git version 2.

Re: [PATCH v3] Add basic power management to raspi.

2021-06-26 Thread Philippe Mathieu-Daudé
On 6/25/21 11:02 PM, Nolan Leake wrote: > This is just enough to make reboot and poweroff work. Works for > linux, u-boot, and the arm trusted firmware. Not tested, but should > work for plan9, and bare-metal/hobby OSes, since they seem to generally > do what linux does for reset. > > The watchdog

Re: [PATCH v3] Add basic power management to raspi.

2021-06-26 Thread Philippe Mathieu-Daudé
Hi Nolan, Peter, On 6/25/21 11:02 PM, Nolan Leake wrote: > This is just enough to make reboot and poweroff work. Works for > linux, u-boot, and the arm trusted firmware. Not tested, but should > work for plan9, and bare-metal/hobby OSes, since they seem to generally > do what linux does for reset.

[PATCH v3] Add basic power management to raspi.

2021-06-25 Thread Nolan Leake
This is just enough to make reboot and poweroff work. Works for linux, u-boot, and the arm trusted firmware. Not tested, but should work for plan9, and bare-metal/hobby OSes, since they seem to generally do what linux does for reset. The watchdog timer functionality is not yet implemented. Resolv