altera-sysmgr.h 725 B

123456789101112131415161718192021222324252627282930
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * Copyright (C) 2018-2019 Intel Corporation
  4. * Copyright (C) 2012 Freescale Semiconductor, Inc.
  5. * Copyright (C) 2012 Linaro Ltd.
  6. */
  7. #ifndef __LINUX_MFD_ALTERA_SYSMGR_H__
  8. #define __LINUX_MFD_ALTERA_SYSMGR_H__
  9. #include <linux/err.h>
  10. #include <linux/errno.h>
  11. #include <linux/firmware/intel/stratix10-smc.h>
  12. struct device_node;
  13. #ifdef CONFIG_MFD_ALTERA_SYSMGR
  14. struct regmap *altr_sysmgr_regmap_lookup_by_phandle(struct device_node *np,
  15. const char *property);
  16. #else
  17. static inline struct regmap *
  18. altr_sysmgr_regmap_lookup_by_phandle(struct device_node *np,
  19. const char *property)
  20. {
  21. return ERR_PTR(-ENOTSUPP);
  22. }
  23. #endif
  24. #endif /* __LINUX_MFD_ALTERA_SYSMGR_H__ */