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

Michal Simek michal.simek at xilinx.com
Thu Jun 1 05:40:47 UTC 2017


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.

Thanks,
Michal





More information about the U-Boot mailing list