[PATCH v4 2/5] psci: add features/reset2 support

Alex G. mr.nuke.me at gmail.com
Wed May 5 21:20:16 CEST 2021


On 4/20/21 9:21 AM, Tom Rini wrote:
> On Thu, Apr 01, 2021 at 02:01:53AM +0300, Igor Opaniuk wrote:
> 
>> From: Igor Opaniuk <igor.opaniuk at foundries.io>
>>
>> Adds support for:
>> * PSCI_FEATURES, which was introduced in PSCI 1.0. This provides API
>> that allows discovering whether a specific PSCI function is implemented
>> and its features.
>> * SYSTEM_RESET2, which was introduced in PSCI 1.1, which extends existing
>> SYSTEM_RESET. It provides support for vendor-specific resets, providing
>> reset_type as an additional param.
>>
>> For additional details visit [1].
>>
>> Implementations of some functions were borrowed from Linux PSCI driver
>> code [2].
>>
>> [1] https://developer.arm.com/documentation/den0022/latest/
>> [2] drivers/firmware/psci/psci.c
>>
>> Signed-off-by: Igor Opaniuk <igor.opaniuk at foundries.io>
> 
> Applied to u-boot/master, thanks!


I'm seeing a build failure on stm32mp1 from this patch:

drivers/firmware/psci.c:69:12: error: conflicting types for 'psci_features'
    69 | static int psci_features(u32 psci_func_id)
       |            ^~~~~~~~~~~~~
In file included from drivers/firmware/psci.c:23:
./arch/arm/include/asm/system.h:548:5: note: previous declaration of 
'psci_features' was here
   548 | s32 psci_features(u32 function_id, u32 psci_fid);
       |     ^~~~~~~~~~~~~
make[2]: *** [scripts/Makefile.build:266: drivers/firmware/psci.o] Error 1
make[1]: *** [scripts/Makefile.build:419: drivers/firmware] Error 2


More information about the U-Boot mailing list