0001
0002
0003
0004
0005
0006
0007
0008 #ifndef __LINUX_MFD_ALTERA_SYSMGR_H__
0009 #define __LINUX_MFD_ALTERA_SYSMGR_H__
0010
0011 #include <linux/err.h>
0012 #include <linux/errno.h>
0013 #include <linux/firmware/intel/stratix10-smc.h>
0014
0015 struct device_node;
0016
0017 #ifdef CONFIG_MFD_ALTERA_SYSMGR
0018 struct regmap *altr_sysmgr_regmap_lookup_by_phandle(struct device_node *np,
0019 const char *property);
0020 #else
0021 static inline struct regmap *
0022 altr_sysmgr_regmap_lookup_by_phandle(struct device_node *np,
0023 const char *property)
0024 {
0025 return ERR_PTR(-ENOTSUPP);
0026 }
0027 #endif
0028
0029 #endif