hdmi4_cec.h 1017 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * HDMI header definition for OMAP4 HDMI CEC IP
  4. *
  5. * Copyright 2016-2017 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
  6. */
  7. #ifndef _HDMI4_CEC_H_
  8. #define _HDMI4_CEC_H_
  9. struct hdmi_core_data;
  10. struct hdmi_wp_data;
  11. struct platform_device;
  12. /* HDMI CEC funcs */
  13. #ifdef CONFIG_OMAP4_DSS_HDMI_CEC
  14. void hdmi4_cec_set_phys_addr(struct hdmi_core_data *core, u16 pa);
  15. void hdmi4_cec_irq(struct hdmi_core_data *core);
  16. int hdmi4_cec_init(struct platform_device *pdev, struct hdmi_core_data *core,
  17. struct hdmi_wp_data *wp);
  18. void hdmi4_cec_uninit(struct hdmi_core_data *core);
  19. #else
  20. static inline void hdmi4_cec_set_phys_addr(struct hdmi_core_data *core, u16 pa)
  21. {
  22. }
  23. static inline void hdmi4_cec_irq(struct hdmi_core_data *core)
  24. {
  25. }
  26. static inline int hdmi4_cec_init(struct platform_device *pdev,
  27. struct hdmi_core_data *core,
  28. struct hdmi_wp_data *wp)
  29. {
  30. return 0;
  31. }
  32. static inline void hdmi4_cec_uninit(struct hdmi_core_data *core)
  33. {
  34. }
  35. #endif
  36. #endif