diff options
author | Andrew Donnellan <ajd@linux.ibm.com> | 2019-05-09 15:11:15 +1000 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2019-08-05 18:53:03 +1000 |
commit | 08a456aa643776757e07adfdebe7f7681117d144 (patch) | |
tree | ae477a0ad078276e74c99e5ee02b82b5bbeb56de /arch/powerpc/platforms/powernv/opal-xscom.c | |
parent | 0df3e42167caaf9f8c7b64de3da40a459979afe8 (diff) | |
download | linux-stable-08a456aa643776757e07adfdebe7f7681117d144.tar.gz linux-stable-08a456aa643776757e07adfdebe7f7681117d144.tar.bz2 linux-stable-08a456aa643776757e07adfdebe7f7681117d144.zip |
powerpc/powernv: Move SCOM access code into powernv platform
The powernv platform is the only one that directly accesses SCOMs.
Move the support code to platforms/powernv, and get rid of the
PPC_SCOM Kconfig option, as SCOM support is always selected when
compiling for powernv.
This also means that the Kconfig item for CONFIG_SCOM_DEBUGFS will
show up in menuconfig in the platform menu, rather than at the root,
which is a much better location.
Signed-off-by: Andrew Donnellan <ajd@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20190509051119.7694-1-ajd@linux.ibm.com
Diffstat (limited to 'arch/powerpc/platforms/powernv/opal-xscom.c')
-rw-r--r-- | arch/powerpc/platforms/powernv/opal-xscom.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/powernv/opal-xscom.c b/arch/powerpc/platforms/powernv/opal-xscom.c index 66430eebe869..3f48ee69928c 100644 --- a/arch/powerpc/platforms/powernv/opal-xscom.c +++ b/arch/powerpc/platforms/powernv/opal-xscom.c @@ -14,7 +14,8 @@ #include <asm/machdep.h> #include <asm/firmware.h> #include <asm/opal.h> -#include <asm/scom.h> + +#include "scom.h" /* * We could probably fit that inside the scom_map_t |