From: Sandor Yu Date: Wed, 4 Sep 2013 07:45:00 +0000 (+0800) Subject: ENGR00277843-02 imx6sl: Enable sii902x hdmi function X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=6708e9116ba29bc33373b9d714a9fb8245b45c57;p=karo-tx-linux.git ENGR00277843-02 imx6sl: Enable sii902x hdmi function - Add sii902x hdmi chip driver. - Sii902x initialized as I2C device. - Support resolution change by application or FB command line. - Max support resolution 1080p60. - Support read EDID from hdmi sink. - Support hdmi cable hotplug. - Support default video mode read from dts. Signed-off-by: Sandor Yu --- diff --git a/drivers/video/mxc/Kconfig b/drivers/video/mxc/Kconfig index e1f5627830e8..759ff096826c 100644 --- a/drivers/video/mxc/Kconfig +++ b/drivers/video/mxc/Kconfig @@ -57,3 +57,7 @@ config FB_MXC_EINK_AUTO_UPDATE_MODE bool "E-Ink Auto-update Mode Support" default n depends on FB_MXC_EINK_PANEL + +config FB_MXS_SII902X + tristate "Si Image SII9022 DVI/HDMI Interface Chip" + depends on FB_MXS && I2C diff --git a/drivers/video/mxc/Makefile b/drivers/video/mxc/Makefile index f8b589c4ec42..6a5b855dbafa 100644 --- a/drivers/video/mxc/Makefile +++ b/drivers/video/mxc/Makefile @@ -5,3 +5,4 @@ obj-$(CONFIG_FB_MXC_HDMI) += mxc_hdmi.o obj-$(CONFIG_FB_MXC_EDID) += mxc_edid.o obj-$(CONFIG_FB_MXC_SYNC_PANEL) += mxc_dispdrv.o mxc_lcdif.o mxc_ipuv3_fb.o obj-$(CONFIG_FB_MXC_EINK_PANEL) += mxc_epdc_fb.o +obj-$(CONFIG_FB_MXS_SII902X) += mxsfb_sii902x.o diff --git a/drivers/video/mxc/mxsfb_sii902x.c b/drivers/video/mxc/mxsfb_sii902x.c new file mode 100644 index 000000000000..531d3f66a116 --- /dev/null +++ b/drivers/video/mxc/mxsfb_sii902x.c @@ -0,0 +1,532 @@ +/* + * Copyright (C) 2010-2013 Freescale Semiconductor, Inc. All Rights Reserved. + */ + +/* + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + */ + +/*! + * @defgroup Framebuffer Framebuffer Driver for Sii902x. + */ + +/*! + * @file mxsfb_sii902x.c + * + * @brief Frame buffer driver for SII902x + * + * @ingroup Framebuffer + */ + +/*! + * Include files + */ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include