1*b94b7353SCai Huoqing /* SPDX-License-Identifier: GPL-2.0-only */
28d7f934dSHans Verkuil /*
38d7f934dSHans Verkuil * HDMI header definition for OMAP4 HDMI CEC IP
48d7f934dSHans Verkuil *
58d7f934dSHans Verkuil * Copyright 2016-2017 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
68d7f934dSHans Verkuil */
78d7f934dSHans Verkuil
88d7f934dSHans Verkuil #ifndef _HDMI4_CEC_H_
98d7f934dSHans Verkuil #define _HDMI4_CEC_H_
108d7f934dSHans Verkuil
118d7f934dSHans Verkuil struct hdmi_core_data;
128d7f934dSHans Verkuil struct hdmi_wp_data;
138d7f934dSHans Verkuil struct platform_device;
148d7f934dSHans Verkuil
158d7f934dSHans Verkuil /* HDMI CEC funcs */
168d7f934dSHans Verkuil #ifdef CONFIG_OMAP4_DSS_HDMI_CEC
178d7f934dSHans Verkuil void hdmi4_cec_set_phys_addr(struct hdmi_core_data *core, u16 pa);
188d7f934dSHans Verkuil void hdmi4_cec_irq(struct hdmi_core_data *core);
198d7f934dSHans Verkuil int hdmi4_cec_init(struct platform_device *pdev, struct hdmi_core_data *core,
208d7f934dSHans Verkuil struct hdmi_wp_data *wp);
218d7f934dSHans Verkuil void hdmi4_cec_uninit(struct hdmi_core_data *core);
228d7f934dSHans Verkuil #else
hdmi4_cec_set_phys_addr(struct hdmi_core_data * core,u16 pa)238d7f934dSHans Verkuil static inline void hdmi4_cec_set_phys_addr(struct hdmi_core_data *core, u16 pa)
248d7f934dSHans Verkuil {
258d7f934dSHans Verkuil }
268d7f934dSHans Verkuil
hdmi4_cec_irq(struct hdmi_core_data * core)278d7f934dSHans Verkuil static inline void hdmi4_cec_irq(struct hdmi_core_data *core)
288d7f934dSHans Verkuil {
298d7f934dSHans Verkuil }
308d7f934dSHans Verkuil
hdmi4_cec_init(struct platform_device * pdev,struct hdmi_core_data * core,struct hdmi_wp_data * wp)318d7f934dSHans Verkuil static inline int hdmi4_cec_init(struct platform_device *pdev,
328d7f934dSHans Verkuil struct hdmi_core_data *core,
338d7f934dSHans Verkuil struct hdmi_wp_data *wp)
348d7f934dSHans Verkuil {
358d7f934dSHans Verkuil return 0;
368d7f934dSHans Verkuil }
378d7f934dSHans Verkuil
hdmi4_cec_uninit(struct hdmi_core_data * core)388d7f934dSHans Verkuil static inline void hdmi4_cec_uninit(struct hdmi_core_data *core)
398d7f934dSHans Verkuil {
408d7f934dSHans Verkuil }
418d7f934dSHans Verkuil #endif
428d7f934dSHans Verkuil
438d7f934dSHans Verkuil #endif
44