cec: add cec drivers for m8baby

PD#141217: initial add cec drivers for m8baby

1. update dts config for m200;
2. update KConfig and Makefiles for compile cec drivers;
3. add driver files to support cec driver on m8baby

Change-Id: I8e96839542360e625c47c5c31f4ddd45b3b93bc7
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
This commit is contained in:
Tao Zeng
2017-03-27 14:27:58 +08:00
committed by Jianxin Pan
parent 3537756b8e
commit 5b0f016ff9
9 changed files with 2031 additions and 7 deletions

View File

@@ -527,6 +527,13 @@
function = "i2c_mst_ao";
};
};
hdmi_cec_1: hdmi_cec_1 {
mux {
groups = "hdmi_cec_1";
function = "hdmi_cec";
};
};
};
dwc2_b {
compatible = "amlogic,dwc2";

View File

@@ -228,6 +228,22 @@
status = "okay";
};
};
aocec: aocec{
compatible = "amlogic, amlogic-aocec";
device_name = "aocec";
status = "okay";
vendor_id = <0x000000>;
cec_osd_string = "MBox"; /* Max Chars: 14 */
cec_version = <6>; /* 5: 1.4, 6: 2.0 */
port_num = <1>;
arc_port_mask = <0x0>;
interrupts = <0 151 1>;
interrupt-names = "hdmi_aocec";
pinctrl-names = "hdmi_cec_1";
pinctrl-0=<&hdmi_cec_1>;
reg = <0xc8100000 0x200>;
};
};
&uart_AO {

View File

@@ -66,6 +66,8 @@ CONFIG_AMLOGIC_INPUT=y
CONFIG_AMLOGIC_SARADC=y
CONFIG_AMLOGIC_MMC=y
CONFIG_AMLOGIC_M8B_MMC=y
CONFIG_AMLOGIC_CEC=y
CONFIG_AMLOGIC_M8B_CEC=y
CONFIG_AMLOGIC_POWER=y
CONFIG_AMLOGIC_PMU_OF=y
CONFIG_AMLOGIC_PMU=y

View File

@@ -233,6 +233,7 @@ CONFIG_AMLOGIC_MMC=y
CONFIG_AMLOGIC_NAND=y
CONFIG_AMLOGIC_VRTC=y
CONFIG_AMLOGIC_SMARTCARD=y
CONFIG_AMLOGIC_CEC=y
CONFIG_AMLOGIC_AO_CEC=y
CONFIG_AMLOGIC_SECURITY_KEY=y
CONFIG_AMLOGIC_KEY_MANAGE=y

View File

@@ -58,7 +58,7 @@ obj-$(CONFIG_AMLOGIC_VRTC) += vrtc/
obj-$(CONFIG_AMLOGIC_SMARTCARD) += smartcard/
obj-$(CONFIG_AMLOGIC_AO_CEC) += cec/
obj-$(CONFIG_AMLOGIC_CEC) += cec/
obj-$(CONFIG_AMLOGIC_SECURITY_KEY) += securitykey/

View File

@@ -1,9 +1,28 @@
menu "AO CEC Support"
menuconfig AMLOGIC_CEC
bool "AMLOGIC CEC Support"
depends on AMLOGIC_DRIVER
default n
help
HDMI cec driver provide cec support on Amlogic SOC chips,
you can use this driver to implement cec features on TV/MBOX
choice
prompt "Amlogic cec chip driver select"
depends on AMLOGIC_CEC
default AMLOGIC_AO_CEC
config AMLOGIC_AO_CEC
bool "HDMI AO cec driver support"
bool "HDMI AO cec driver support for gx/gxl/gxm/txl/txlx"
depends on AMLOGIC_CEC
help
HDMI AO cec driver provide cec support on Amlogic SOC chips, you can
use this driver to implement cec features on TV/MBOX
HDMI cec driver provide cec support for gx/gxl/gxm/txl/txlx chips
select if your chip belongs
endmenu
config AMLOGIC_M8B_CEC
bool "HDMI CEC driver support for m8/m8b"
depends on MACH_MESON8B && AMLOGIC_CEC
help
HDMI CEC driver support for m8/m8b chips
Select if your chip belongs
endchoice #AMLOGIC_CEC

View File

@@ -1 +1,2 @@
obj-$(CONFIG_AMLOGIC_AO_CEC) += hdmi_ao_cec.o
obj-$(CONFIG_AMLOGIC_M8B_CEC) += m8_ao_cec.o

File diff suppressed because it is too large Load Diff

View File

@@ -489,7 +489,7 @@ extern void hdmitx_event_notify(unsigned long state, void *arg);
#else
static inline struct hdmitx_dev *get_hdmitx_device(void)
{
urn NULL;
return NULL;
}
static inline int get_hpd_state(void)
{