summaryrefslogtreecommitdiff
path: root/arch/powerpc/include/asm/pmac_feature.h
diff options
context:
space:
mode:
authorChristophe Leroy <christophe.leroy@csgroup.eu>2021-09-03 14:18:40 +0300
committerMichael Ellerman <mpe@ellerman.id.au>2022-02-07 13:02:20 +0300
commite6d03ac156db84422519aa8628efc210d24bf889 (patch)
treee7767e9b448dfe89ebb7dedb8cf6bd6b6325696b /arch/powerpc/include/asm/pmac_feature.h
parentd6a6c725a20467f52a41270bdaad9565c66f3b7a (diff)
downloadlinux-e6d03ac156db84422519aa8628efc210d24bf889.tar.xz
powerpc/machdep: Move sys_ctrler_t definition into pmac_feature.h
sys_ctrler_t definitions are tied to pmac. Move it into pmac_feature.h Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu> [mpe: Move to pmac_feature.h to fix some build errors] Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/7dd5ead4bbca749e2da089ff6fe2b1878d6bf40e.1630667612.git.christophe.leroy@csgroup.eu
Diffstat (limited to 'arch/powerpc/include/asm/pmac_feature.h')
-rw-r--r--arch/powerpc/include/asm/pmac_feature.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/pmac_feature.h b/arch/powerpc/include/asm/pmac_feature.h
index e08e829261b6..2495866f2e97 100644
--- a/arch/powerpc/include/asm/pmac_feature.h
+++ b/arch/powerpc/include/asm/pmac_feature.h
@@ -401,5 +401,17 @@ extern u32 __iomem *uninorth_base;
*/
extern int pmac_get_uninorth_variant(void);
+/*
+ * Power macintoshes have either a CUDA, PMU or SMU controlling
+ * system reset, power, NVRAM, RTC.
+ */
+typedef enum sys_ctrler_kind {
+ SYS_CTRLER_UNKNOWN = 0,
+ SYS_CTRLER_CUDA = 1,
+ SYS_CTRLER_PMU = 2,
+ SYS_CTRLER_SMU = 3,
+} sys_ctrler_t;
+extern sys_ctrler_t sys_ctrler;
+
#endif /* __ASM_POWERPC_PMAC_FEATURE_H */
#endif /* __KERNEL__ */