-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
yaml --- r: 340176 b: refs/heads/master c: 0191bf3 h: refs/heads/master v: v3
- Loading branch information
Tomi Valkeinen
authored and
Tony Lindgren
committed
Nov 7, 2012
1 parent
71c4d7b
commit 31cec98
Showing
5 changed files
with
119 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: cc0677979e3ef1ae25ea9db4edc63786a3731526 | ||
refs/heads/master: 0191bf368fd95ecd4f83e62b0ad6de12048b14bf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
/* | ||
* Copyright (C) 2012 Texas Instruments, Inc.. | ||
* Author: Tomi Valkeinen <tomi.valkeinen@ti.com> | ||
* | ||
* 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. | ||
* | ||
* 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 St, Fifth Floor, Boston, MA | ||
* 02110-1301 USA | ||
* | ||
*/ | ||
|
||
/* | ||
* NOTE: this is a transitional file to help with DT adaptation. | ||
* This file will be removed when DSS supports DT. | ||
*/ | ||
|
||
#include <linux/kernel.h> | ||
#include <video/omapdss.h> | ||
#include <video/omap-panel-tfp410.h> | ||
|
||
#include <plat/cpu.h> | ||
|
||
#include "dss-common.h" | ||
#include "mux.h" | ||
|
||
#define HDMI_GPIO_CT_CP_HPD 60 /* HPD mode enable/disable */ | ||
#define HDMI_GPIO_LS_OE 41 /* Level shifter for HDMI */ | ||
#define HDMI_GPIO_HPD 63 /* Hotplug detect */ | ||
|
||
/* Display DVI */ | ||
#define PANDA_DVI_TFP410_POWER_DOWN_GPIO 0 | ||
|
||
/* Using generic display panel */ | ||
static struct tfp410_platform_data omap4_dvi_panel = { | ||
.i2c_bus_num = 3, | ||
.power_down_gpio = PANDA_DVI_TFP410_POWER_DOWN_GPIO, | ||
}; | ||
|
||
static struct omap_dss_device omap4_panda_dvi_device = { | ||
.type = OMAP_DISPLAY_TYPE_DPI, | ||
.name = "dvi", | ||
.driver_name = "tfp410", | ||
.data = &omap4_dvi_panel, | ||
.phy.dpi.data_lines = 24, | ||
.reset_gpio = PANDA_DVI_TFP410_POWER_DOWN_GPIO, | ||
.channel = OMAP_DSS_CHANNEL_LCD2, | ||
}; | ||
|
||
static struct omap_dss_hdmi_data omap4_panda_hdmi_data = { | ||
.ct_cp_hpd_gpio = HDMI_GPIO_CT_CP_HPD, | ||
.ls_oe_gpio = HDMI_GPIO_LS_OE, | ||
.hpd_gpio = HDMI_GPIO_HPD, | ||
}; | ||
|
||
static struct omap_dss_device omap4_panda_hdmi_device = { | ||
.name = "hdmi", | ||
.driver_name = "hdmi_panel", | ||
.type = OMAP_DISPLAY_TYPE_HDMI, | ||
.channel = OMAP_DSS_CHANNEL_DIGIT, | ||
.data = &omap4_panda_hdmi_data, | ||
}; | ||
|
||
static struct omap_dss_device *omap4_panda_dss_devices[] = { | ||
&omap4_panda_dvi_device, | ||
&omap4_panda_hdmi_device, | ||
}; | ||
|
||
static struct omap_dss_board_info omap4_panda_dss_data = { | ||
.num_devices = ARRAY_SIZE(omap4_panda_dss_devices), | ||
.devices = omap4_panda_dss_devices, | ||
.default_device = &omap4_panda_dvi_device, | ||
}; | ||
|
||
void __init omap4_panda_display_init(void) | ||
{ | ||
omap_display_init(&omap4_panda_dss_data); | ||
|
||
/* | ||
* OMAP4460SDP/Blaze and OMAP4430 ES2.3 SDP/Blaze boards and | ||
* later have external pull up on the HDMI I2C lines | ||
*/ | ||
if (cpu_is_omap446x() || omap_rev() > OMAP4430_REV_ES2_2) | ||
omap_hdmi_init(OMAP_HDMI_SDA_SCL_EXTERNAL_PULLUP); | ||
else | ||
omap_hdmi_init(0); | ||
|
||
omap_mux_init_gpio(HDMI_GPIO_LS_OE, OMAP_PIN_OUTPUT); | ||
omap_mux_init_gpio(HDMI_GPIO_CT_CP_HPD, OMAP_PIN_OUTPUT); | ||
omap_mux_init_gpio(HDMI_GPIO_HPD, OMAP_PIN_INPUT_PULLDOWN); | ||
} | ||
|
||
void __init omap4_panda_display_init_of(void) | ||
{ | ||
omap_display_init(&omap4_panda_dss_data); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#ifndef __OMAP_DSS_COMMON__ | ||
#define __OMAP_DSS_COMMON__ | ||
|
||
/* | ||
* NOTE: this is a transitional file to help with DT adaptation. | ||
* This file will be removed when DSS supports DT. | ||
*/ | ||
|
||
void __init omap4_panda_display_init(void); | ||
void __init omap4_panda_display_init_of(void); | ||
|
||
#endif |