18c2ecf20Sopenharmony_ci/*
28c2ecf20Sopenharmony_ci * HDMI header definition for OMAP4 HDMI CEC IP
38c2ecf20Sopenharmony_ci *
48c2ecf20Sopenharmony_ci * Copyright 2016-2017 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
58c2ecf20Sopenharmony_ci *
68c2ecf20Sopenharmony_ci * This program is free software; you may redistribute it and/or modify
78c2ecf20Sopenharmony_ci * it under the terms of the GNU General Public License as published by
88c2ecf20Sopenharmony_ci * the Free Software Foundation; version 2 of the License.
98c2ecf20Sopenharmony_ci *
108c2ecf20Sopenharmony_ci * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
118c2ecf20Sopenharmony_ci * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
128c2ecf20Sopenharmony_ci * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
138c2ecf20Sopenharmony_ci * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
148c2ecf20Sopenharmony_ci * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
158c2ecf20Sopenharmony_ci * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
168c2ecf20Sopenharmony_ci * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
178c2ecf20Sopenharmony_ci * SOFTWARE.
188c2ecf20Sopenharmony_ci */
198c2ecf20Sopenharmony_ci
208c2ecf20Sopenharmony_ci#ifndef _HDMI4_CEC_H_
218c2ecf20Sopenharmony_ci#define _HDMI4_CEC_H_
228c2ecf20Sopenharmony_ci
238c2ecf20Sopenharmony_cistruct hdmi_core_data;
248c2ecf20Sopenharmony_cistruct hdmi_wp_data;
258c2ecf20Sopenharmony_cistruct platform_device;
268c2ecf20Sopenharmony_ci
278c2ecf20Sopenharmony_ci/* HDMI CEC funcs */
288c2ecf20Sopenharmony_ci#ifdef CONFIG_OMAP4_DSS_HDMI_CEC
298c2ecf20Sopenharmony_civoid hdmi4_cec_set_phys_addr(struct hdmi_core_data *core, u16 pa);
308c2ecf20Sopenharmony_civoid hdmi4_cec_irq(struct hdmi_core_data *core);
318c2ecf20Sopenharmony_ciint hdmi4_cec_init(struct platform_device *pdev, struct hdmi_core_data *core,
328c2ecf20Sopenharmony_ci		  struct hdmi_wp_data *wp);
338c2ecf20Sopenharmony_civoid hdmi4_cec_uninit(struct hdmi_core_data *core);
348c2ecf20Sopenharmony_ci#else
358c2ecf20Sopenharmony_cistatic inline void hdmi4_cec_set_phys_addr(struct hdmi_core_data *core, u16 pa)
368c2ecf20Sopenharmony_ci{
378c2ecf20Sopenharmony_ci}
388c2ecf20Sopenharmony_ci
398c2ecf20Sopenharmony_cistatic inline void hdmi4_cec_irq(struct hdmi_core_data *core)
408c2ecf20Sopenharmony_ci{
418c2ecf20Sopenharmony_ci}
428c2ecf20Sopenharmony_ci
438c2ecf20Sopenharmony_cistatic inline int hdmi4_cec_init(struct platform_device *pdev,
448c2ecf20Sopenharmony_ci				struct hdmi_core_data *core,
458c2ecf20Sopenharmony_ci				struct hdmi_wp_data *wp)
468c2ecf20Sopenharmony_ci{
478c2ecf20Sopenharmony_ci	return 0;
488c2ecf20Sopenharmony_ci}
498c2ecf20Sopenharmony_ci
508c2ecf20Sopenharmony_cistatic inline void hdmi4_cec_uninit(struct hdmi_core_data *core)
518c2ecf20Sopenharmony_ci{
528c2ecf20Sopenharmony_ci}
538c2ecf20Sopenharmony_ci#endif
548c2ecf20Sopenharmony_ci
558c2ecf20Sopenharmony_ci#endif
56