[U-Boot] [PATCH] arm: Add support for poweroff via PSCI

Simon Glass sjg at chromium.org
Fri Jun 2 02:55:37 UTC 2017


+Tom

On 31 May 2017 at 23:40, Michal Simek <michal.simek at xilinx.com> wrote:
> On 1.6.2017 05:11, Simon Glass wrote:
>> On 29 May 2017 at 01:11, Michal Simek <michal.simek at xilinx.com> wrote:
>>> Add support for calling poweroff in case of psci is wired.
>>> Based on the same solution as is used for reset.
>>>
>>> Signed-off-by: Michal Simek <michal.simek at xilinx.com>
>>> ---
>>>
>>>  arch/arm/cpu/armv8/fwcall.c |  7 +++++++
>>>  arch/arm/lib/Makefile       |  1 +
>>>  arch/arm/lib/poweroff.c     | 47 +++++++++++++++++++++++++++++++++++++++++++++
>>>  3 files changed, 55 insertions(+)
>>>  create mode 100644 arch/arm/lib/poweroff.c
>>>
>>
>> Reviewed-by: Simon Glass <sjg at chromium.org>
>>
>> BTW I think we use printf() instead of puts() instead.
>
> Thanks for review.
>
> This is what was used in reset.c and normally puts is used for simple
> prints. If this is something what we should use then I think that will
> be the best to run one big sed and replace all puts by printfs
> and deprecate it.

Tom, what do you think?

Regards,
Simon


More information about the U-Boot mailing list