diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2021-06-18 05:45:53 +0200 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2021-06-21 13:15:58 +0200 |
commit | aa9c5adf2f61da39c92280d9336e091852e292ff (patch) | |
tree | 68ec33035c8024e57c2b1ea64e7612a7b9721f09 /arch/powerpc/include/asm/xics.h | |
parent | powerpc/microwatt: Populate platform bus from device-tree (diff) | |
download | linux-aa9c5adf2f61da39c92280d9336e091852e292ff.tar.xz linux-aa9c5adf2f61da39c92280d9336e091852e292ff.zip |
powerpc/xics: Add a native ICS backend for microwatt
This is a simple native ICS backend that matches the layout of
the Microwatt implementation of ICS.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
Reviewed-by: Segher Boessenkool <segher@kernel.crashing.org>
[mpe: Add empty ics_native_init() to unbreak non-microwatt builds]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
fixup-ics
Link: https://lore.kernel.org/r/YMwW8cxrwB2W5EUN@thinks.paulus.ozlabs.org
Diffstat (limited to 'arch/powerpc/include/asm/xics.h')
-rw-r--r-- | arch/powerpc/include/asm/xics.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/xics.h b/arch/powerpc/include/asm/xics.h index 8e903b3f9c24..d9cf192368ad 100644 --- a/arch/powerpc/include/asm/xics.h +++ b/arch/powerpc/include/asm/xics.h @@ -65,8 +65,12 @@ struct icp_ops { extern const struct icp_ops *icp_ops; +#ifdef CONFIG_PPC_ICS_NATIVE /* Native ICS */ extern int ics_native_init(void); +#else +static inline int ics_native_init(void) { return -ENODEV; } +#endif /* RTAS ICS */ #ifdef CONFIG_PPC_ICS_RTAS |