firmware: arm_sdei: Discover SDEI support via ACPI
authorJames Morse <james.morse@arm.com>
Mon, 8 Jan 2018 15:38:16 +0000 (15:38 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Sun, 14 Jan 2018 18:49:49 +0000 (18:49 +0000)
commit677a60bd2003ff5517a0b502365112531446a3e3
tree869611cd3f71dc7868479c36e022f0542daa3134
parentfa31ab77ced9fbab87fbac4fca3682009b7f9be2
firmware: arm_sdei: Discover SDEI support via ACPI

SDEI defines a new ACPI table to indicate the presence of the interface.
The conduit is discovered in the same way as PSCI.

For ACPI we need to create the platform device ourselves as SDEI doesn't
have an entry in the DSDT.

The SDEI platform device should be created after ACPI has been initialised
so that we can parse the table, but before GHES devices are created, which
may register SDE events if they use SDEI as their notification type.

Reviewed-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Signed-off-by: James Morse <james.morse@arm.com>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
drivers/firmware/arm_sdei.c