s5p-cec: add cec-notifier support, move out of staging
Subsystems (3)
This is an automatic generated email to let you know that the following patch were queued:
Subject: [media] s5p-cec: add cec-notifier support, move out of staging Author: Hans Verkuil <[email protected]> Date: Tue Dec 13 12:37:16 2016 -0200
By using the CEC notifier framework there is no longer any reason to manually set the physical address. This was the one blocking issue that prevented this driver from going out of staging, so do this move as well.
Update the bindings documenting the new hdmi phandle and update exynos4.dtsi accordingly.
Tested with my Odroid U3.
drivers/media/platform/Kconfig | 10 + drivers/media/platform/Makefile | 1 + drivers/media/platform/s5p-cec/Makefile | 2 + drivers/media/platform/s5p-cec/exynos_hdmi_cec.h | 37 +++ .../media/platform/s5p-cec/exynos_hdmi_cecctrl.c | 208 ++++++++++++++ drivers/media/platform/s5p-cec/regs-cec.h | 96 +++++++ drivers/media/platform/s5p-cec/s5p_cec.c | 305 +++++++++++++++++++++ drivers/media/platform/s5p-cec/s5p_cec.h | 79 ++++++ drivers/staging/media/Kconfig | 2 - drivers/staging/media/Makefile | 1 - drivers/staging/media/s5p-cec/Kconfig | 9 - drivers/staging/media/s5p-cec/Makefile | 2 - drivers/staging/media/s5p-cec/TODO | 7 - drivers/staging/media/s5p-cec/exynos_hdmi_cec.h | 37 --- .../staging/media/s5p-cec/exynos_hdmi_cecctrl.c | 208 -------------- drivers/staging/media/s5p-cec/regs-cec.h | 96 ------- drivers/staging/media/s5p-cec/s5p_cec.c | 280 ------------------- drivers/staging/media/s5p-cec/s5p_cec.h | 76 ----- 18 files changed, 738 insertions(+), 718 deletions(-)
---
drivers/media/platform/Kconfig +10 -0
@@ -466,6 +466,16 @@ menuconfig V4L_CEC_DRIVERS if V4L_CEC_DRIVERS +config VIDEO_SAMSUNG_S5P_CEC + tristate "Samsung S5P CEC driver" + depends on VIDEO_DEV && MEDIA_CEC_SUPPORT && (PLAT_S5P || ARCH_EXYNOS || COMPILE_TEST) + select MEDIA_CEC_NOTIFIER + ---help--- + This is a driver for Samsung S5P HDMI CEC interface. It uses the + generic CEC framework interface. + CEC bus is present in the HDMI connector and enables communication + between compatible devices. + config VIDEO_STI_HDMI_CEC tristate "STMicroelectronics STiH4xx HDMI CEC driver" depends on VIDEO_DEV && MEDIA_CEC_SUPPORT && (ARCH_STI || COMPILE_TEST)
drivers/media/platform/Makefile +1 -0
@@ -33,6 +33,7 @@ obj-$(CONFIG_VIDEO_SAMSUNG_S5P_JPEG) += s5p-jpeg/ obj-$(CONFIG_VIDEO_SAMSUNG_S5P_MFC) += s5p-mfc/ obj-$(CONFIG_VIDEO_SAMSUNG_S5P_G2D) += s5p-g2d/ +obj-$(CONFIG_VIDEO_SAMSUNG_S5P_CEC) += s5p-cec/ obj-$(CONFIG_VIDEO_SAMSUNG_EXYNOS_GSC) += exynos-gsc/ obj-$(CONFIG_VIDEO_STI_BDISP) += sti/bdisp/
drivers/media/platform/s5p-cec/Makefile new file +2 -0
@@ -0,0 +1,2 @@ +obj-$(CONFIG_VIDEO_SAMSUNG_S5P_CEC) += s5p-cec.o +s5p-cec-y += s5p_cec.o exynos_hdmi_cecctrl.o
drivers/media/platform/s5p-cec/exynos_hdmi_cec.h new file +37 -0
@@ -0,0 +1,37 @@ +/* drivers/media/platform/s5p-cec/exynos_hdmi_cec.h +* +* Copyright (c) 2010, 2014 Samsung Electronics +* http://www.samsung.com/ +* +* Header file for interface of Samsung Exynos hdmi cec hardware +* +* This program is free software; you can redistribute it and/or modify +* it under the terms of the GNU General Public License version 2 as +* published by the Free Software Foundation. +*/ + +#ifndef _EXYNOS_HDMI_CEC_H_ +#define _EXYNOS_HDMI_CEC_H_ __FILE__ + +#include <linux/regmap.h> +#include "s5p_cec.h" + +void s5p_cec_set_divider (struct s5p_cec_dev *cec); +void s5p_cec_enable_rx (struct s5p_cec_dev *cec); +void s5p_cec_mask_rx_interrupts (struct s5p_cec_dev *cec); +void s5p_cec_unmask_rx_interrupts (struct s5p_cec_dev *cec); +void s5p_cec_mask_tx_interrupts (struct s5p_cec_dev *cec); +void s5p_cec_unmask_tx_interrupts (struct s5p_cec_dev *cec); +void s5p_cec_reset (struct s5p_cec_dev *cec); +void s5p_cec_tx_reset (struct s5p_cec_dev *cec); +void s5p_cec_rx_reset (struct s5p_cec_dev *cec); +void s5p_cec_threshold (struct s5p_cec_dev *cec); +void s5p_cec_copy_packet (struct s5p_cec_dev *cec,char *data, +size_t count,u8 retries); +void s5p_cec_set_addr (struct s5p_cec_dev *cec,u32 addr); +u32 s5p_cec_get_status (struct s5p_cec_dev *cec); +void s5p_clr_pending_tx (struct s5p_cec_dev *cec); +void s5p_clr_pending_rx (struct s5p_cec_dev *cec); +void s5p_cec_get_rx_buf (struct s5p_cec_dev *cec,u32 size,u8 *buffer); + +#endif /* _EXYNOS_HDMI_CEC_H_ */
drivers/media/platform/s5p-cec/exynos_hdmi_cecctrl.c new file +208 -0
208 lines not on this page · raw message
drivers/media/platform/s5p-cec/regs-cec.h new file +96 -0
96 lines not on this page · raw message
drivers/media/platform/s5p-cec/s5p_cec.c new file +305 -0
305 lines not on this page · raw message
drivers/media/platform/s5p-cec/s5p_cec.h new file +79 -0
79 lines not on this page · raw message
drivers/staging/media/Kconfig +0 -2
@@ -29,8 +29,6 @@ source "drivers/staging/media/omap4iss/Kconfig" source "drivers/staging/media/platform/bcm2835/Kconfig" -source "drivers/staging/media/s5p-cec/Kconfig" - # Keep LIRC at the end, as it has sub-menus source "drivers/staging/media/lirc/Kconfig"
drivers/staging/media/Makefile +0 -1
@@ -1,5 +1,4 @@ obj-$(CONFIG_I2C_BCM2048) += bcm2048/ -obj-$(CONFIG_VIDEO_SAMSUNG_S5P_CEC) += s5p-cec/ obj-$(CONFIG_DVB_CXD2099) += cxd2099/ obj-$(CONFIG_LIRC_STAGING) += lirc/ obj-$(CONFIG_VIDEO_BCM2835) += platform/bcm2835/
drivers/staging/media/s5p-cec/Kconfig deleted +0 -9
@@ -1,9 +0,0 @@ -config VIDEO_SAMSUNG_S5P_CEC - tristate "Samsung S5P CEC driver" - depends on VIDEO_DEV && MEDIA_CEC_SUPPORT && (ARCH_EXYNOS || COMPILE_TEST) - ---help--- - This is a driver for Samsung S5P HDMI CEC interface. It uses the - generic CEC framework interface. - CEC bus is present in the HDMI connector and enables communication - between compatible devices. -
drivers/staging/media/s5p-cec/Makefile deleted +0 -2
@@ -1,2 +0,0 @@ -obj-$(CONFIG_VIDEO_SAMSUNG_S5P_CEC) += s5p-cec.o -s5p-cec-y += s5p_cec.o exynos_hdmi_cecctrl.o
drivers/staging/media/s5p-cec/TODO deleted +0 -7
@@ -1,7 +0,0 @@ -This driver requires that userspace sets the physical address. -However, this should be passed on from the corresponding -Samsung HDMI driver. - -We have to wait until the HDMI notifier framework has been merged -in order to handle this gracefully, until that time this driver -has to remain in staging.
drivers/staging/media/s5p-cec/exynos_hdmi_cec.h deleted +0 -37
@@ -1,37 +0,0 @@ -/* drivers/media/platform/s5p-cec/exynos_hdmi_cec.h -* -* Copyright (c) 2010, 2014 Samsung Electronics -* http://www.samsung.com/ -* -* Header file for interface of Samsung Exynos hdmi cec hardware -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License version 2 as -* published by the Free Software Foundation. -*/ - -#ifndef _EXYNOS_HDMI_CEC_H_ -#define _EXYNOS_HDMI_CEC_H_ __FILE__ - -#include <linux/regmap.h> -#include "s5p_cec.h" - -void s5p_cec_set_divider (struct s5p_cec_dev *cec); -void s5p_cec_enable_rx (struct s5p_cec_dev *cec); -void s5p_cec_mask_rx_interrupts (struct s5p_cec_dev *cec); -void s5p_cec_unmask_rx_interrupts (struct s5p_cec_dev *cec); -void s5p_cec_mask_tx_interrupts (struct s5p_cec_dev *cec); -void s5p_cec_unmask_tx_interrupts (struct s5p_cec_dev *cec); -void s5p_cec_reset (struct s5p_cec_dev *cec); -void s5p_cec_tx_reset (struct s5p_cec_dev *cec); -void s5p_cec_rx_reset (struct s5p_cec_dev *cec); -void s5p_cec_threshold (struct s5p_cec_dev *cec); -void s5p_cec_copy_packet (struct s5p_cec_dev *cec,char *data, -size_t count,u8 retries); -void s5p_cec_set_addr (struct s5p_cec_dev *cec,u32 addr); -u32 s5p_cec_get_status (struct s5p_cec_dev *cec); -void s5p_clr_pending_tx (struct s5p_cec_dev *cec); -void s5p_clr_pending_rx (struct s5p_cec_dev *cec); -void s5p_cec_get_rx_buf (struct s5p_cec_dev *cec,u32 size,u8 *buffer); - -#endif /* _EXYNOS_HDMI_CEC_H_ */
drivers/staging/media/s5p-cec/exynos_hdmi_cecctrl.c deleted +0 -208
208 lines not on this page · raw message
drivers/staging/media/s5p-cec/regs-cec.h deleted +0 -96
96 lines not on this page · raw message
drivers/staging/media/s5p-cec/s5p_cec.c deleted +0 -280
280 lines not on this page · raw message
drivers/staging/media/s5p-cec/s5p_cec.h deleted +0 -76
76 lines not on this page · raw message
_______________________________________________
linuxtv-commits mailing list
[email protected]
https://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits