Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libCEC driver #1

Closed
wants to merge 21 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
c767c00
new amlogic cec driver redesigned initialization - code of delayed in…
gdachs Mar 4, 2016
62214a7
amlogic_cec: add cec_late_timer
kszaq Apr 10, 2016
59eec3e
amlogic_cec: rely on Amlogic HW driver to transmit messages
kszaq Apr 10, 2016
b0f4c83
amlogic_cec: rely on Amlogic HW driver to receive messages
kszaq Apr 10, 2016
63adc1a
amlogic_cec: delete unused read and write methods
kszaq Apr 10, 2016
1d6dc4e
amlogic_cec: add tx_irq_handle for MESON8
kszaq Apr 9, 2016
0ddc205
amlogic_cec: modify rx irq handling
kszaq Apr 11, 2016
9e61468
amlogic_cec: move INIT_LIST_HEAD
kszaq Apr 17, 2016
5dfcdd5
amlogic_cec: add hw reset on driver reopen
kszaq Apr 19, 2016
5386ba8
amlogic_cec: reset_hw on wait error
kszaq Apr 10, 2016
c0b38c6
amlogic_cec: don't delete list entry if copy_to_user failed
kszaq Apr 25, 2016
7318e96
amlogic_cec: don't wait for interrupt if there are messages in rx queue
kszaq Apr 25, 2016
3876edb
amlogic_cec: move irq init/release to module init/exit
kszaq Apr 23, 2016
7cfda72
amlogic_cec: fix tabbing
kszaq Apr 28, 2016
326f499
amlogic_cec: move common read methods to one function
kszaq Apr 28, 2016
6c7f61f
amlogic_cec: perform cec_node_init later
kszaq Apr 23, 2016
dd6730c
amlogic_cec: init CEC only once
kszaq Apr 28, 2016
80da95c
amlogic_cec: always trigger libCEC on first open
kszaq May 5, 2016
773d4df
amlogic_cec: trigger libCEC on every driver open
kszaq May 11, 2016
f41db30
amlogic_cec: always save logical address to cec_global_info
kszaq May 12, 2016
cbeeb32
amlogic_cec: use common parameter to toggle debugging and turn it off…
kszaq May 24, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion arch/arm/mach-mesong9bb/hdmi_tx_hw_20/hdmi_tx_cec_hw.c
Original file line number Diff line number Diff line change
Expand Up @@ -996,6 +996,7 @@ void cec_tx_irq_handle(void)
#endif
}

#ifndef CONFIG_AML_HDMI_TX_NEW_CEC_DRIVER
void cec_polling_online_dev(int log_addr, int *bool)
{
#ifdef AO_CEC
Expand All @@ -1005,7 +1006,7 @@ void cec_polling_online_dev(int log_addr, int *bool)
#endif
hdmi_print(INF, CEC "CEC: poll online logic device: 0x%x BOOL: %d\n", log_addr, *bool);
}

#endif

// DELETE LATER, TEST ONLY
void cec_test_(unsigned int cmd)
Expand Down
8 changes: 8 additions & 0 deletions drivers/amlogic/hdmi/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,12 @@ config AML_HDMI_TX_HDCP
hdmitx hdcp enable, it should be enalbe if board burned hdmitx hdcp keys
endif

if AML_HDMI_TX
config AML_HDMI_TX_NEW_CEC_DRIVER
bool "HDMI new CEC driver"
default n
help
hdmitx uses new CEC driver
endif

endmenu
8 changes: 7 additions & 1 deletion drivers/amlogic/hdmi/hdmi_tx/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
obj-$(CONFIG_AML_HDMI_TX) += hdmitx.o

hdmitx-objs := hdmi_tx.o hdmi_tx_cec.o hdmi_cec_key.o hdmi_tx_video.o hdmi_tx_audio.o hdmi_tx_edid.o hdmi_tx_audio.o hdmi_tx_hdcp.o hdmi_tx_compliance.o
hdmitx-objs := hdmi_tx.o hdmi_tx_video.o hdmi_tx_audio.o hdmi_tx_edid.o hdmi_tx_audio.o hdmi_tx_hdcp.o hdmi_tx_compliance.o

ifdef CONFIG_AML_HDMI_TX_NEW_CEC_DRIVER
hdmitx-objs += amlogic_cec.o
else
hdmitx-objs += hdmi_tx_cec.o hdmi_cec_key.o
endif

#EXTRA_CFLAGS += -O2
Loading