Add a CEC driver for the dw-hdmi hardware. Reviewed-by: Neil Armstrong <narmstrong@baylibre.com> Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk> [hans.verkuil: unsigned -> unsigned int] [hans.verkuil: cec_transmit_done -> cec_transmit_attempt_done] [hans.verkuil: add missing CEC_CAP_PASSTHROUGH] Acked-by: Hans Verkuil <hans.verkuil@cisco.com> Tested-by: Hans Verkuil <hans.verkuil@cisco.com> Tested-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Archit Taneja <architt@codeaurora.org> Link: https://patchwork.freedesktop.org/patch/msgid/20170802184108.7913-4-hverkuil@xs4all.nl
		
			
				
	
	
		
			20 lines
		
	
	
		
			381 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			381 B
		
	
	
	
		
			C
		
	
	
	
	
	
| #ifndef DW_HDMI_CEC_H
 | |
| #define DW_HDMI_CEC_H
 | |
| 
 | |
| struct dw_hdmi;
 | |
| 
 | |
| struct dw_hdmi_cec_ops {
 | |
| 	void (*write)(struct dw_hdmi *hdmi, u8 val, int offset);
 | |
| 	u8 (*read)(struct dw_hdmi *hdmi, int offset);
 | |
| 	void (*enable)(struct dw_hdmi *hdmi);
 | |
| 	void (*disable)(struct dw_hdmi *hdmi);
 | |
| };
 | |
| 
 | |
| struct dw_hdmi_cec_data {
 | |
| 	struct dw_hdmi *hdmi;
 | |
| 	const struct dw_hdmi_cec_ops *ops;
 | |
| 	int irq;
 | |
| };
 | |
| 
 | |
| #endif
 |