xref: /openbmc/linux/arch/powerpc/include/asm/powernv.h (revision 806b5228)
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3  * Copyright 2017 IBM Corp.
4  */
5 
6 #ifndef _ASM_POWERNV_H
7 #define _ASM_POWERNV_H
8 
9 #ifdef CONFIG_PPC_POWERNV
10 extern void powernv_set_nmmu_ptcr(unsigned long ptcr);
11 
12 void pnv_program_cpu_hotplug_lpcr(unsigned int cpu, u64 lpcr_val);
13 
14 void pnv_tm_init(void);
15 #else
16 static inline void powernv_set_nmmu_ptcr(unsigned long ptcr) { }
17 
18 static inline void pnv_tm_init(void) { }
19 #endif
20 
21 #endif /* _ASM_POWERNV_H */
22