]> git.sur5r.net Git - u-boot/commitdiff
efi_loader: add missing EFI_RESET_PLATFORM_SPECIFIC
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Tue, 6 Feb 2018 21:00:22 +0000 (22:00 +0100)
committerAlexander Graf <agraf@suse.de>
Wed, 4 Apr 2018 09:00:07 +0000 (11:00 +0200)
EFI_RESET_PLATFORM_SPECIFIC is one of the values that can be used for the
EFI service ResetSystem. The missing definition is added. The value has to
handled in efi_reset_system().

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Alexander Graf <agraf@suse.de>
arch/arm/cpu/armv8/fsl-layerscape/cpu.c
arch/arm/cpu/armv8/fwcall.c
arch/arm/mach-bcm283x/reset.c
include/efi_api.h
lib/efi_loader/efi_runtime.c

index 0e90302d3fbc65e38969d183adb6c0d380e0a484..45cbd91d97cc9cad7aef7f6ebb02d83986b457ee 100644 (file)
@@ -644,6 +644,7 @@ void __efi_runtime EFIAPI efi_reset_system(
        switch (reset_type) {
        case EFI_RESET_COLD:
        case EFI_RESET_WARM:
+       case EFI_RESET_PLATFORM_SPECIFIC:
                reset_cpu(0);
                break;
        case EFI_RESET_SHUTDOWN:
index c2202675366f37d3853f1ef3e5d4d11d2b4a3e08..ff0712bf6505fe913e888e0021600c03291ea1a0 100644 (file)
@@ -146,6 +146,7 @@ void __efi_runtime EFIAPI efi_reset_system(
        switch (reset_type) {
        case EFI_RESET_COLD:
        case EFI_RESET_WARM:
+       case EFI_RESET_PLATFORM_SPECIFIC:
                psci_system_reset();
                break;
        case EFI_RESET_SHUTDOWN:
index 5b83fdf43d6c2dfea76dc72664d2fd422feb90c9..aa02d3f9f6a6ac78947ce9ddecdfd1254dd360fd 100644 (file)
@@ -63,6 +63,7 @@ void __efi_runtime EFIAPI efi_reset_system(
        switch (reset_type) {
        case EFI_RESET_COLD:
        case EFI_RESET_WARM:
+       case EFI_RESET_PLATFORM_SPECIFIC:
                reset_cpu(0);
                break;
        case EFI_RESET_SHUTDOWN:
index 167c44e3a44f1c618dfa7721c130fa2d4676dab9..28de93a1324eb3ad46a5281d01256e1803b1a208 100644 (file)
@@ -180,7 +180,8 @@ struct efi_boot_services {
 enum efi_reset_type {
        EFI_RESET_COLD = 0,
        EFI_RESET_WARM = 1,
-       EFI_RESET_SHUTDOWN = 2
+       EFI_RESET_SHUTDOWN = 2,
+       EFI_RESET_PLATFORM_SPECIFIC = 3,
 };
 
 /* EFI Runtime Services table */
index 9e281728f9ff204b428aacf3dff62a74956ffe48..0888316140721af756c8225008554f09ea6a9590 100644 (file)
@@ -91,6 +91,7 @@ static void EFIAPI efi_reset_system_boottime(
        switch (reset_type) {
        case EFI_RESET_COLD:
        case EFI_RESET_WARM:
+       case EFI_RESET_PLATFORM_SPECIFIC:
                do_reset(NULL, 0, 0, NULL);
                break;
        case EFI_RESET_SHUTDOWN: