powerpc: Detect the secure boot mode of the system
authorNayna Jain <nayna@linux.ibm.com>
Tue, 5 Nov 2019 23:00:22 +0000 (17:00 -0600)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 12 Nov 2019 01:25:02 +0000 (12:25 +1100)
commit1a8916ee3ac29054322cdac687d36e1b5894d272
tree64f2ce5cccea8774b8f5c97baf6ee7de4f5e8b24
parentda0c9ea146cbe92b832f1b0f694840ea8eb33cce
powerpc: Detect the secure boot mode of the system

This patch defines a function to detect the secure boot state of a
PowerNV system.

The PPC_SECURE_BOOT config represents the base enablement of secure
boot for powerpc.

Signed-off-by: Nayna Jain <nayna@linux.ibm.com>
Signed-off-by: Eric Richter <erichte@linux.ibm.com>
[mpe: Fold in change from Nayna to add "ibm,secureboot" to ids]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/46b003b9-3225-6bf7-9101-ed6580bb748c@linux.ibm.com
arch/powerpc/Kconfig
arch/powerpc/include/asm/secure_boot.h [new file with mode: 0644]
arch/powerpc/kernel/Makefile
arch/powerpc/kernel/secure_boot.c [new file with mode: 0644]