提交 ef26958a 编写于 作者: A Archit Taneja 提交者: Tomi Valkeinen

omapdss: HDMI: Rename hdmi driver files to nicer names

Replace the ti_hdmi_4xxx* notation for OMAP4 HDMI driver with hdmi4. Rename
the hdmi.c encoder driver to hdmi4.c. Rename ti_hdmi.h to hdmi.h
Signed-off-by: NArchit Taneja <archit@ti.com>
Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
上级 8696131f
...@@ -10,6 +10,6 @@ omapdss-$(CONFIG_OMAP2_DSS_RFBI) += rfbi.o ...@@ -10,6 +10,6 @@ omapdss-$(CONFIG_OMAP2_DSS_RFBI) += rfbi.o
omapdss-$(CONFIG_OMAP2_DSS_VENC) += venc.o omapdss-$(CONFIG_OMAP2_DSS_VENC) += venc.o
omapdss-$(CONFIG_OMAP2_DSS_SDI) += sdi.o omapdss-$(CONFIG_OMAP2_DSS_SDI) += sdi.o
omapdss-$(CONFIG_OMAP2_DSS_DSI) += dsi.o omapdss-$(CONFIG_OMAP2_DSS_DSI) += dsi.o
omapdss-$(CONFIG_OMAP4_DSS_HDMI) += hdmi.o hdmi_wp.o hdmi_pll.o hdmi_phy.o \ omapdss-$(CONFIG_OMAP4_DSS_HDMI) += hdmi4.o hdmi_wp.o hdmi_pll.o hdmi_phy.o \
ti_hdmi_4xxx_ip.o hdmi4_core.o
ccflags-$(CONFIG_OMAP2_DSS_DEBUG) += -DDEBUG ccflags-$(CONFIG_OMAP2_DSS_DEBUG) += -DDEBUG
...@@ -266,7 +266,7 @@ static int (*dss_output_drv_reg_funcs[])(void) __initdata = { ...@@ -266,7 +266,7 @@ static int (*dss_output_drv_reg_funcs[])(void) __initdata = {
venc_init_platform_driver, venc_init_platform_driver,
#endif #endif
#ifdef CONFIG_OMAP4_DSS_HDMI #ifdef CONFIG_OMAP4_DSS_HDMI
hdmi_init_platform_driver, hdmi4_init_platform_driver,
#endif #endif
}; };
...@@ -287,7 +287,7 @@ static void (*dss_output_drv_unreg_funcs[])(void) __exitdata = { ...@@ -287,7 +287,7 @@ static void (*dss_output_drv_unreg_funcs[])(void) __exitdata = {
venc_uninit_platform_driver, venc_uninit_platform_driver,
#endif #endif
#ifdef CONFIG_OMAP4_DSS_HDMI #ifdef CONFIG_OMAP4_DSS_HDMI
hdmi_uninit_platform_driver, hdmi4_uninit_platform_driver,
#endif #endif
}; };
......
...@@ -427,8 +427,8 @@ int venc_init_platform_driver(void) __init; ...@@ -427,8 +427,8 @@ int venc_init_platform_driver(void) __init;
void venc_uninit_platform_driver(void) __exit; void venc_uninit_platform_driver(void) __exit;
/* HDMI */ /* HDMI */
int hdmi_init_platform_driver(void) __init; int hdmi4_init_platform_driver(void) __init;
void hdmi_uninit_platform_driver(void) __exit; void hdmi4_uninit_platform_driver(void) __exit;
/* RFBI */ /* RFBI */
int rfbi_init_platform_driver(void) __init; int rfbi_init_platform_driver(void) __init;
......
/* /*
* ti_hdmi.h * HDMI driver definition for TI OMAP4 Processor.
*
* HDMI driver definition for TI OMAP4, DM81xx, DM38xx Processor.
* *
* Copyright (C) 2010-2011 Texas Instruments Incorporated - http://www.ti.com/ * Copyright (C) 2010-2011 Texas Instruments Incorporated - http://www.ti.com/
* *
...@@ -18,8 +16,8 @@ ...@@ -18,8 +16,8 @@
* this program. If not, see <http://www.gnu.org/licenses/>. * this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#ifndef _TI_HDMI_H #ifndef _HDMI_H
#define _TI_HDMI_H #define _HDMI_H
#include <linux/delay.h> #include <linux/delay.h>
#include <linux/io.h> #include <linux/io.h>
......
/* /*
* hdmi.c * HDMI interface DSS driver for TI's OMAP4 family of SoCs.
*
* HDMI interface DSS driver setting for TI's OMAP4 family of processor.
* Copyright (C) 2010-2011 Texas Instruments Incorporated - http://www.ti.com/ * Copyright (C) 2010-2011 Texas Instruments Incorporated - http://www.ti.com/
* Authors: Yong Zhi * Authors: Yong Zhi
* Mythri pk <mythripk@ti.com> * Mythri pk <mythripk@ti.com>
...@@ -36,8 +34,7 @@ ...@@ -36,8 +34,7 @@
#include <linux/regulator/consumer.h> #include <linux/regulator/consumer.h>
#include <video/omapdss.h> #include <video/omapdss.h>
#include "ti_hdmi.h" #include "hdmi4_core.h"
#include "ti_hdmi_4xxx_ip.h"
#include "dss.h" #include "dss.h"
#include "dss_features.h" #include "dss_features.h"
...@@ -361,8 +358,8 @@ static const struct hdmi_config *hdmi_find_timing( ...@@ -361,8 +358,8 @@ static const struct hdmi_config *hdmi_find_timing(
static const struct hdmi_config *hdmi_get_timings(void) static const struct hdmi_config *hdmi_get_timings(void)
{ {
const struct hdmi_config *arr; const struct hdmi_config *arr;
int len; int len;
if (hdmi.cfg.cm.mode == HDMI_DVI) { if (hdmi.cfg.cm.mode == HDMI_DVI) {
arr = vesa_timings; arr = vesa_timings;
...@@ -543,9 +540,8 @@ static int hdmi_display_check_timing(struct omap_dss_device *dssdev, ...@@ -543,9 +540,8 @@ static int hdmi_display_check_timing(struct omap_dss_device *dssdev,
struct hdmi_cm cm; struct hdmi_cm cm;
cm = hdmi_get_code(timings); cm = hdmi_get_code(timings);
if (cm.code == -1) { if (cm.code == -1)
return -EINVAL; return -EINVAL;
}
return 0; return 0;
...@@ -1117,12 +1113,12 @@ static struct platform_driver omapdss_hdmihw_driver = { ...@@ -1117,12 +1113,12 @@ static struct platform_driver omapdss_hdmihw_driver = {
}, },
}; };
int __init hdmi_init_platform_driver(void) int __init hdmi4_init_platform_driver(void)
{ {
return platform_driver_register(&omapdss_hdmihw_driver); return platform_driver_register(&omapdss_hdmihw_driver);
} }
void __exit hdmi_uninit_platform_driver(void) void __exit hdmi4_uninit_platform_driver(void)
{ {
platform_driver_unregister(&omapdss_hdmihw_driver); platform_driver_unregister(&omapdss_hdmihw_driver);
} }
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
#include <sound/asoundef.h> #include <sound/asoundef.h>
#endif #endif
#include "ti_hdmi_4xxx_ip.h" #include "hdmi4_core.h"
#include "dss_features.h" #include "dss_features.h"
#define HDMI_CORE_AV 0x500 #define HDMI_CORE_AV 0x500
...@@ -223,7 +223,7 @@ static void hdmi_core_init(struct hdmi_core_video_config *video_cfg, ...@@ -223,7 +223,7 @@ static void hdmi_core_init(struct hdmi_core_video_config *video_cfg,
avi_cfg->db3_nup_scaling = 0; avi_cfg->db3_nup_scaling = 0;
avi_cfg->db4_videocode = 0; avi_cfg->db4_videocode = 0;
avi_cfg->db5_pixel_repeat = 0; avi_cfg->db5_pixel_repeat = 0;
avi_cfg->db6_7_line_eoftop = 0 ; avi_cfg->db6_7_line_eoftop = 0;
avi_cfg->db8_9_line_sofbottom = 0; avi_cfg->db8_9_line_sofbottom = 0;
avi_cfg->db10_11_pixel_eofleft = 0; avi_cfg->db10_11_pixel_eofleft = 0;
avi_cfg->db12_13_pixel_sofright = 0; avi_cfg->db12_13_pixel_sofright = 0;
......
/* /*
* ti_hdmi_4xxx_ip.h * HDMI header definition for OMAP4 HDMI core IP
*
* HDMI header definition for DM81xx, DM38xx, TI OMAP4 etc processors.
* *
* Copyright (C) 2010-2011 Texas Instruments Incorporated - http://www.ti.com/ * Copyright (C) 2010-2011 Texas Instruments Incorporated - http://www.ti.com/
* *
...@@ -18,10 +16,10 @@ ...@@ -18,10 +16,10 @@
* this program. If not, see <http://www.gnu.org/licenses/>. * this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#ifndef _HDMI_TI_4xxx_H_ #ifndef _HDMI4_CORE_H_
#define _HDMI_TI_4xxx_H_ #define _HDMI4_CORE_H_
#include "ti_hdmi.h" #include "hdmi.h"
/* OMAP4 HDMI IP Core System */ /* OMAP4 HDMI IP Core System */
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
#include <video/omapdss.h> #include <video/omapdss.h>
#include "dss.h" #include "dss.h"
#include "ti_hdmi.h" #include "hdmi.h"
void hdmi_phy_dump(struct hdmi_phy_data *phy, struct seq_file *s) void hdmi_phy_dump(struct hdmi_phy_data *phy, struct seq_file *s)
{ {
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
#include <video/omapdss.h> #include <video/omapdss.h>
#include "dss.h" #include "dss.h"
#include "ti_hdmi.h" #include "hdmi.h"
#define HDMI_DEFAULT_REGN 16 #define HDMI_DEFAULT_REGN 16
#define HDMI_DEFAULT_REGM2 1 #define HDMI_DEFAULT_REGM2 1
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
#include <video/omapdss.h> #include <video/omapdss.h>
#include "dss.h" #include "dss.h"
#include "ti_hdmi.h" #include "hdmi.h"
void hdmi_wp_dump(struct hdmi_wp_data *wp, struct seq_file *s) void hdmi_wp_dump(struct hdmi_wp_data *wp, struct seq_file *s)
{ {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册