aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArchit Taneja <archit@ti.com>2013-09-12 08:15:57 -0400
committerTomi Valkeinen <tomi.valkeinen@ti.com>2013-10-09 05:42:30 -0400
commitef26958a0c44b503ee39b2319e240be36bb34415 (patch)
tree2abb7746efe53601cb82c1aa8d93ed5067409380
parent8696131fadda03c4c9bc12496c3e4c1001ebf8a8 (diff)
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: Archit Taneja <archit@ti.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
-rw-r--r--drivers/video/omap2/dss/Makefile4
-rw-r--r--drivers/video/omap2/dss/core.c4
-rw-r--r--drivers/video/omap2/dss/dss.h4
-rw-r--r--drivers/video/omap2/dss/hdmi.h (renamed from drivers/video/omap2/dss/ti_hdmi.h)8
-rw-r--r--drivers/video/omap2/dss/hdmi4.c (renamed from drivers/video/omap2/dss/hdmi.c)18
-rw-r--r--drivers/video/omap2/dss/hdmi4_core.c (renamed from drivers/video/omap2/dss/ti_hdmi_4xxx_ip.c)4
-rw-r--r--drivers/video/omap2/dss/hdmi4_core.h (renamed from drivers/video/omap2/dss/ti_hdmi_4xxx_ip.h)10
-rw-r--r--drivers/video/omap2/dss/hdmi_phy.c2
-rw-r--r--drivers/video/omap2/dss/hdmi_pll.c2
-rw-r--r--drivers/video/omap2/dss/hdmi_wp.c2
10 files changed, 25 insertions, 33 deletions
diff --git a/drivers/video/omap2/dss/Makefile b/drivers/video/omap2/dss/Makefile
index d88e93870e15..f87ca3216a1f 100644
--- a/drivers/video/omap2/dss/Makefile
+++ b/drivers/video/omap2/dss/Makefile
@@ -10,6 +10,6 @@ omapdss-$(CONFIG_OMAP2_DSS_RFBI) += rfbi.o
10omapdss-$(CONFIG_OMAP2_DSS_VENC) += venc.o 10omapdss-$(CONFIG_OMAP2_DSS_VENC) += venc.o
11omapdss-$(CONFIG_OMAP2_DSS_SDI) += sdi.o 11omapdss-$(CONFIG_OMAP2_DSS_SDI) += sdi.o
12omapdss-$(CONFIG_OMAP2_DSS_DSI) += dsi.o 12omapdss-$(CONFIG_OMAP2_DSS_DSI) += dsi.o
13omapdss-$(CONFIG_OMAP4_DSS_HDMI) += hdmi.o hdmi_wp.o hdmi_pll.o hdmi_phy.o \ 13omapdss-$(CONFIG_OMAP4_DSS_HDMI) += hdmi4.o hdmi_wp.o hdmi_pll.o hdmi_phy.o \
14 ti_hdmi_4xxx_ip.o 14 hdmi4_core.o
15ccflags-$(CONFIG_OMAP2_DSS_DEBUG) += -DDEBUG 15ccflags-$(CONFIG_OMAP2_DSS_DEBUG) += -DDEBUG
diff --git a/drivers/video/omap2/dss/core.c b/drivers/video/omap2/dss/core.c
index 60d3958d04f7..ffa45c894cd4 100644
--- a/drivers/video/omap2/dss/core.c
+++ b/drivers/video/omap2/dss/core.c
@@ -266,7 +266,7 @@ static int (*dss_output_drv_reg_funcs[])(void) __initdata = {
266 venc_init_platform_driver, 266 venc_init_platform_driver,
267#endif 267#endif
268#ifdef CONFIG_OMAP4_DSS_HDMI 268#ifdef CONFIG_OMAP4_DSS_HDMI
269 hdmi_init_platform_driver, 269 hdmi4_init_platform_driver,
270#endif 270#endif
271}; 271};
272 272
@@ -287,7 +287,7 @@ static void (*dss_output_drv_unreg_funcs[])(void) __exitdata = {
287 venc_uninit_platform_driver, 287 venc_uninit_platform_driver,
288#endif 288#endif
289#ifdef CONFIG_OMAP4_DSS_HDMI 289#ifdef CONFIG_OMAP4_DSS_HDMI
290 hdmi_uninit_platform_driver, 290 hdmi4_uninit_platform_driver,
291#endif 291#endif
292}; 292};
293 293
diff --git a/drivers/video/omap2/dss/dss.h b/drivers/video/omap2/dss/dss.h
index e172531d196b..f538e867c0f8 100644
--- a/drivers/video/omap2/dss/dss.h
+++ b/drivers/video/omap2/dss/dss.h
@@ -427,8 +427,8 @@ int venc_init_platform_driver(void) __init;
427void venc_uninit_platform_driver(void) __exit; 427void venc_uninit_platform_driver(void) __exit;
428 428
429/* HDMI */ 429/* HDMI */
430int hdmi_init_platform_driver(void) __init; 430int hdmi4_init_platform_driver(void) __init;
431void hdmi_uninit_platform_driver(void) __exit; 431void hdmi4_uninit_platform_driver(void) __exit;
432 432
433/* RFBI */ 433/* RFBI */
434int rfbi_init_platform_driver(void) __init; 434int rfbi_init_platform_driver(void) __init;
diff --git a/drivers/video/omap2/dss/ti_hdmi.h b/drivers/video/omap2/dss/hdmi.h
index 5034080ccfa9..b92d981063dc 100644
--- a/drivers/video/omap2/dss/ti_hdmi.h
+++ b/drivers/video/omap2/dss/hdmi.h
@@ -1,7 +1,5 @@
1/* 1/*
2 * ti_hdmi.h 2 * HDMI driver definition for TI OMAP4 Processor.
3 *
4 * HDMI driver definition for TI OMAP4, DM81xx, DM38xx Processor.
5 * 3 *
6 * Copyright (C) 2010-2011 Texas Instruments Incorporated - http://www.ti.com/ 4 * Copyright (C) 2010-2011 Texas Instruments Incorporated - http://www.ti.com/
7 * 5 *
@@ -18,8 +16,8 @@
18 * this program. If not, see <http://www.gnu.org/licenses/>. 16 * this program. If not, see <http://www.gnu.org/licenses/>.
19 */ 17 */
20 18
21#ifndef _TI_HDMI_H 19#ifndef _HDMI_H
22#define _TI_HDMI_H 20#define _HDMI_H
23 21
24#include <linux/delay.h> 22#include <linux/delay.h>
25#include <linux/io.h> 23#include <linux/io.h>
diff --git a/drivers/video/omap2/dss/hdmi.c b/drivers/video/omap2/dss/hdmi4.c
index f03d6c7530e4..324ecd00e4da 100644
--- a/drivers/video/omap2/dss/hdmi.c
+++ b/drivers/video/omap2/dss/hdmi4.c
@@ -1,7 +1,5 @@
1/* 1/*
2 * hdmi.c 2 * HDMI interface DSS driver for TI's OMAP4 family of SoCs.
3 *
4 * HDMI interface DSS driver setting for TI's OMAP4 family of processor.
5 * Copyright (C) 2010-2011 Texas Instruments Incorporated - http://www.ti.com/ 3 * Copyright (C) 2010-2011 Texas Instruments Incorporated - http://www.ti.com/
6 * Authors: Yong Zhi 4 * Authors: Yong Zhi
7 * Mythri pk <mythripk@ti.com> 5 * Mythri pk <mythripk@ti.com>
@@ -36,8 +34,7 @@
36#include <linux/regulator/consumer.h> 34#include <linux/regulator/consumer.h>
37#include <video/omapdss.h> 35#include <video/omapdss.h>
38 36
39#include "ti_hdmi.h" 37#include "hdmi4_core.h"
40#include "ti_hdmi_4xxx_ip.h"
41#include "dss.h" 38#include "dss.h"
42#include "dss_features.h" 39#include "dss_features.h"
43 40
@@ -361,8 +358,8 @@ static const struct hdmi_config *hdmi_find_timing(
361 358
362static const struct hdmi_config *hdmi_get_timings(void) 359static const struct hdmi_config *hdmi_get_timings(void)
363{ 360{
364 const struct hdmi_config *arr; 361 const struct hdmi_config *arr;
365 int len; 362 int len;
366 363
367 if (hdmi.cfg.cm.mode == HDMI_DVI) { 364 if (hdmi.cfg.cm.mode == HDMI_DVI) {
368 arr = vesa_timings; 365 arr = vesa_timings;
@@ -543,9 +540,8 @@ static int hdmi_display_check_timing(struct omap_dss_device *dssdev,
543 struct hdmi_cm cm; 540 struct hdmi_cm cm;
544 541
545 cm = hdmi_get_code(timings); 542 cm = hdmi_get_code(timings);
546 if (cm.code == -1) { 543 if (cm.code == -1)
547 return -EINVAL; 544 return -EINVAL;
548 }
549 545
550 return 0; 546 return 0;
551 547
@@ -1117,12 +1113,12 @@ static struct platform_driver omapdss_hdmihw_driver = {
1117 }, 1113 },
1118}; 1114};
1119 1115
1120int __init hdmi_init_platform_driver(void) 1116int __init hdmi4_init_platform_driver(void)
1121{ 1117{
1122 return platform_driver_register(&omapdss_hdmihw_driver); 1118 return platform_driver_register(&omapdss_hdmihw_driver);
1123} 1119}
1124 1120
1125void __exit hdmi_uninit_platform_driver(void) 1121void __exit hdmi4_uninit_platform_driver(void)
1126{ 1122{
1127 platform_driver_unregister(&omapdss_hdmihw_driver); 1123 platform_driver_unregister(&omapdss_hdmihw_driver);
1128} 1124}
diff --git a/drivers/video/omap2/dss/ti_hdmi_4xxx_ip.c b/drivers/video/omap2/dss/hdmi4_core.c
index 93a99fd080af..3f7fc572be10 100644
--- a/drivers/video/omap2/dss/ti_hdmi_4xxx_ip.c
+++ b/drivers/video/omap2/dss/hdmi4_core.c
@@ -34,7 +34,7 @@
34#include <sound/asoundef.h> 34#include <sound/asoundef.h>
35#endif 35#endif
36 36
37#include "ti_hdmi_4xxx_ip.h" 37#include "hdmi4_core.h"
38#include "dss_features.h" 38#include "dss_features.h"
39 39
40#define HDMI_CORE_AV 0x500 40#define HDMI_CORE_AV 0x500
@@ -223,7 +223,7 @@ static void hdmi_core_init(struct hdmi_core_video_config *video_cfg,
223 avi_cfg->db3_nup_scaling = 0; 223 avi_cfg->db3_nup_scaling = 0;
224 avi_cfg->db4_videocode = 0; 224 avi_cfg->db4_videocode = 0;
225 avi_cfg->db5_pixel_repeat = 0; 225 avi_cfg->db5_pixel_repeat = 0;
226 avi_cfg->db6_7_line_eoftop = 0 ; 226 avi_cfg->db6_7_line_eoftop = 0;
227 avi_cfg->db8_9_line_sofbottom = 0; 227 avi_cfg->db8_9_line_sofbottom = 0;
228 avi_cfg->db10_11_pixel_eofleft = 0; 228 avi_cfg->db10_11_pixel_eofleft = 0;
229 avi_cfg->db12_13_pixel_sofright = 0; 229 avi_cfg->db12_13_pixel_sofright = 0;
diff --git a/drivers/video/omap2/dss/ti_hdmi_4xxx_ip.h b/drivers/video/omap2/dss/hdmi4_core.h
index 78319ff0b227..1181b4c1a068 100644
--- a/drivers/video/omap2/dss/ti_hdmi_4xxx_ip.h
+++ b/drivers/video/omap2/dss/hdmi4_core.h
@@ -1,7 +1,5 @@
1/* 1/*
2 * ti_hdmi_4xxx_ip.h 2 * HDMI header definition for OMAP4 HDMI core IP
3 *
4 * HDMI header definition for DM81xx, DM38xx, TI OMAP4 etc processors.
5 * 3 *
6 * Copyright (C) 2010-2011 Texas Instruments Incorporated - http://www.ti.com/ 4 * Copyright (C) 2010-2011 Texas Instruments Incorporated - http://www.ti.com/
7 * 5 *
@@ -18,10 +16,10 @@
18 * this program. If not, see <http://www.gnu.org/licenses/>. 16 * this program. If not, see <http://www.gnu.org/licenses/>.
19 */ 17 */
20 18
21#ifndef _HDMI_TI_4xxx_H_ 19#ifndef _HDMI4_CORE_H_
22#define _HDMI_TI_4xxx_H_ 20#define _HDMI4_CORE_H_
23 21
24#include "ti_hdmi.h" 22#include "hdmi.h"
25 23
26/* OMAP4 HDMI IP Core System */ 24/* OMAP4 HDMI IP Core System */
27 25
diff --git a/drivers/video/omap2/dss/hdmi_phy.c b/drivers/video/omap2/dss/hdmi_phy.c
index 16feaa80b3b4..45acb997ac00 100644
--- a/drivers/video/omap2/dss/hdmi_phy.c
+++ b/drivers/video/omap2/dss/hdmi_phy.c
@@ -15,7 +15,7 @@
15#include <video/omapdss.h> 15#include <video/omapdss.h>
16 16
17#include "dss.h" 17#include "dss.h"
18#include "ti_hdmi.h" 18#include "hdmi.h"
19 19
20void hdmi_phy_dump(struct hdmi_phy_data *phy, struct seq_file *s) 20void hdmi_phy_dump(struct hdmi_phy_data *phy, struct seq_file *s)
21{ 21{
diff --git a/drivers/video/omap2/dss/hdmi_pll.c b/drivers/video/omap2/dss/hdmi_pll.c
index 6e187e63daae..d3e6e78c0082 100644
--- a/drivers/video/omap2/dss/hdmi_pll.c
+++ b/drivers/video/omap2/dss/hdmi_pll.c
@@ -16,7 +16,7 @@
16#include <video/omapdss.h> 16#include <video/omapdss.h>
17 17
18#include "dss.h" 18#include "dss.h"
19#include "ti_hdmi.h" 19#include "hdmi.h"
20 20
21#define HDMI_DEFAULT_REGN 16 21#define HDMI_DEFAULT_REGN 16
22#define HDMI_DEFAULT_REGM2 1 22#define HDMI_DEFAULT_REGM2 1
diff --git a/drivers/video/omap2/dss/hdmi_wp.c b/drivers/video/omap2/dss/hdmi_wp.c
index 93039ea970f0..8151d8969a6e 100644
--- a/drivers/video/omap2/dss/hdmi_wp.c
+++ b/drivers/video/omap2/dss/hdmi_wp.c
@@ -15,7 +15,7 @@
15#include <video/omapdss.h> 15#include <video/omapdss.h>
16 16
17#include "dss.h" 17#include "dss.h"
18#include "ti_hdmi.h" 18#include "hdmi.h"
19 19
20void hdmi_wp_dump(struct hdmi_wp_data *wp, struct seq_file *s) 20void hdmi_wp_dump(struct hdmi_wp_data *wp, struct seq_file *s)
21{ 21{