Re: [PATCH v2 4/6] ARM: psci: implement PSCI client driver

2019-11-07 Thread Sascha Hauer
On Wed, Nov 06, 2019 at 11:21:47AM +0100, Ahmad Fatoum wrote: > > +#ifdef CONFIG_ARM_PSCI_CLIENT > +int psci_invoke(ulong function, ulong arg0, ulong arg1, ulong arg2, > + ulong *result); > + > +int psci_get_version(void); > +#else > +int psci_invoke(ulong function, ulong arg0, ulong

[PATCH v2 4/6] ARM: psci: implement PSCI client driver

2019-11-06 Thread Ahmad Fatoum
System reset on the STM32MP may be done via PSCI when running TF-A as first-stage boot loader. Provide a PSCI driver to simplify using it: - A psci_invoke function is exported, so other code can use it - A fixup for the PSCI device tree node is registered - A reset and poweroff handler via PSCI is