Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
64a9de8f
Commit
64a9de8f
authored
Jan 28, 2012
by
Florian Tobias Schandinat
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'for-3.3-rc' of
git://gitorious.org/linux-omap-dss2/linux
into fbdev-for-linus
parents
f7f5ef0a
c49d005b
Changes
12
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
110 additions
and
22 deletions
+110
-22
arch/arm/mach-omap2/board-4430sdp.c
arch/arm/mach-omap2/board-4430sdp.c
+14
-4
arch/arm/mach-omap2/board-omap4panda.c
arch/arm/mach-omap2/board-omap4panda.c
+14
-4
arch/arm/mach-omap2/display.c
arch/arm/mach-omap2/display.c
+0
-4
drivers/video/omap2/dss/dispc.c
drivers/video/omap2/dss/dispc.c
+1
-1
drivers/video/omap2/dss/dsi.c
drivers/video/omap2/dss/dsi.c
+1
-1
drivers/video/omap2/dss/dss.c
drivers/video/omap2/dss/dss.c
+1
-1
drivers/video/omap2/dss/hdmi.c
drivers/video/omap2/dss/hdmi.c
+4
-1
drivers/video/omap2/dss/rfbi.c
drivers/video/omap2/dss/rfbi.c
+1
-1
drivers/video/omap2/dss/ti_hdmi.h
drivers/video/omap2/dss/ti_hdmi.h
+4
-0
drivers/video/omap2/dss/ti_hdmi_4xxx_ip.c
drivers/video/omap2/dss/ti_hdmi_4xxx_ip.c
+64
-4
drivers/video/omap2/dss/venc.c
drivers/video/omap2/dss/venc.c
+1
-1
include/video/omapdss.h
include/video/omapdss.h
+5
-0
No files found.
arch/arm/mach-omap2/board-4430sdp.c
View file @
64a9de8f
...
@@ -52,8 +52,9 @@
...
@@ -52,8 +52,9 @@
#define ETH_KS8851_QUART 138
#define ETH_KS8851_QUART 138
#define OMAP4_SFH7741_SENSOR_OUTPUT_GPIO 184
#define OMAP4_SFH7741_SENSOR_OUTPUT_GPIO 184
#define OMAP4_SFH7741_ENABLE_GPIO 188
#define OMAP4_SFH7741_ENABLE_GPIO 188
#define HDMI_GPIO_
HPD 60
/* Hot plug pin for HDMI
*/
#define HDMI_GPIO_
CT_CP_HPD 60
/* HPD mode enable/disable
*/
#define HDMI_GPIO_LS_OE 41
/* Level shifter for HDMI */
#define HDMI_GPIO_LS_OE 41
/* Level shifter for HDMI */
#define HDMI_GPIO_HPD 63
/* Hotplug detect */
#define DISPLAY_SEL_GPIO 59
/* LCD2/PicoDLP switch */
#define DISPLAY_SEL_GPIO 59
/* LCD2/PicoDLP switch */
#define DLP_POWER_ON_GPIO 40
#define DLP_POWER_ON_GPIO 40
...
@@ -596,8 +597,9 @@ static void __init omap_sfh7741prox_init(void)
...
@@ -596,8 +597,9 @@ static void __init omap_sfh7741prox_init(void)
}
}
static
struct
gpio
sdp4430_hdmi_gpios
[]
=
{
static
struct
gpio
sdp4430_hdmi_gpios
[]
=
{
{
HDMI_GPIO_
HPD
,
GPIOF_OUT_INIT_HIGH
,
"hdmi_gpio_hpd"
},
{
HDMI_GPIO_
CT_CP_HPD
,
GPIOF_OUT_INIT_HIGH
,
"hdmi_gpio_ct_cp_hpd"
},
{
HDMI_GPIO_LS_OE
,
GPIOF_OUT_INIT_HIGH
,
"hdmi_gpio_ls_oe"
},
{
HDMI_GPIO_LS_OE
,
GPIOF_OUT_INIT_HIGH
,
"hdmi_gpio_ls_oe"
},
{
HDMI_GPIO_HPD
,
GPIOF_DIR_IN
,
"hdmi_gpio_hpd"
},
};
};
static
int
sdp4430_panel_enable_hdmi
(
struct
omap_dss_device
*
dssdev
)
static
int
sdp4430_panel_enable_hdmi
(
struct
omap_dss_device
*
dssdev
)
...
@@ -614,8 +616,7 @@ static int sdp4430_panel_enable_hdmi(struct omap_dss_device *dssdev)
...
@@ -614,8 +616,7 @@ static int sdp4430_panel_enable_hdmi(struct omap_dss_device *dssdev)
static
void
sdp4430_panel_disable_hdmi
(
struct
omap_dss_device
*
dssdev
)
static
void
sdp4430_panel_disable_hdmi
(
struct
omap_dss_device
*
dssdev
)
{
{
gpio_free
(
HDMI_GPIO_LS_OE
);
gpio_free_array
(
sdp4430_hdmi_gpios
,
ARRAY_SIZE
(
sdp4430_hdmi_gpios
));
gpio_free
(
HDMI_GPIO_HPD
);
}
}
static
struct
nokia_dsi_panel_data
dsi1_panel
=
{
static
struct
nokia_dsi_panel_data
dsi1_panel
=
{
...
@@ -731,6 +732,10 @@ static void sdp4430_lcd_init(void)
...
@@ -731,6 +732,10 @@ static void sdp4430_lcd_init(void)
pr_err
(
"%s: Could not get lcd2_reset_gpio
\n
"
,
__func__
);
pr_err
(
"%s: Could not get lcd2_reset_gpio
\n
"
,
__func__
);
}
}
static
struct
omap_dss_hdmi_data
sdp4430_hdmi_data
=
{
.
hpd_gpio
=
HDMI_GPIO_HPD
,
};
static
struct
omap_dss_device
sdp4430_hdmi_device
=
{
static
struct
omap_dss_device
sdp4430_hdmi_device
=
{
.
name
=
"hdmi"
,
.
name
=
"hdmi"
,
.
driver_name
=
"hdmi_panel"
,
.
driver_name
=
"hdmi_panel"
,
...
@@ -738,6 +743,7 @@ static struct omap_dss_device sdp4430_hdmi_device = {
...
@@ -738,6 +743,7 @@ static struct omap_dss_device sdp4430_hdmi_device = {
.
platform_enable
=
sdp4430_panel_enable_hdmi
,
.
platform_enable
=
sdp4430_panel_enable_hdmi
,
.
platform_disable
=
sdp4430_panel_disable_hdmi
,
.
platform_disable
=
sdp4430_panel_disable_hdmi
,
.
channel
=
OMAP_DSS_CHANNEL_DIGIT
,
.
channel
=
OMAP_DSS_CHANNEL_DIGIT
,
.
data
=
&
sdp4430_hdmi_data
,
};
};
static
struct
picodlp_panel_data
sdp4430_picodlp_pdata
=
{
static
struct
picodlp_panel_data
sdp4430_picodlp_pdata
=
{
...
@@ -822,6 +828,10 @@ static void omap_4430sdp_display_init(void)
...
@@ -822,6 +828,10 @@ static void omap_4430sdp_display_init(void)
omap_hdmi_init
(
OMAP_HDMI_SDA_SCL_EXTERNAL_PULLUP
);
omap_hdmi_init
(
OMAP_HDMI_SDA_SCL_EXTERNAL_PULLUP
);
else
else
omap_hdmi_init
(
0
);
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
);
}
}
#ifdef CONFIG_OMAP_MUX
#ifdef CONFIG_OMAP_MUX
...
...
arch/arm/mach-omap2/board-omap4panda.c
View file @
64a9de8f
...
@@ -51,8 +51,9 @@
...
@@ -51,8 +51,9 @@
#define GPIO_HUB_NRESET 62
#define GPIO_HUB_NRESET 62
#define GPIO_WIFI_PMENA 43
#define GPIO_WIFI_PMENA 43
#define GPIO_WIFI_IRQ 53
#define GPIO_WIFI_IRQ 53
#define HDMI_GPIO_
HPD 60
/* Hot plug pin for HDMI
*/
#define HDMI_GPIO_
CT_CP_HPD 60
/* HPD mode enable/disable
*/
#define HDMI_GPIO_LS_OE 41
/* Level shifter for HDMI */
#define HDMI_GPIO_LS_OE 41
/* Level shifter for HDMI */
#define HDMI_GPIO_HPD 63
/* Hotplug detect */
/* wl127x BT, FM, GPS connectivity chip */
/* wl127x BT, FM, GPS connectivity chip */
static
int
wl1271_gpios
[]
=
{
46
,
-
1
,
-
1
};
static
int
wl1271_gpios
[]
=
{
46
,
-
1
,
-
1
};
...
@@ -479,8 +480,9 @@ int __init omap4_panda_dvi_init(void)
...
@@ -479,8 +480,9 @@ int __init omap4_panda_dvi_init(void)
}
}
static
struct
gpio
panda_hdmi_gpios
[]
=
{
static
struct
gpio
panda_hdmi_gpios
[]
=
{
{
HDMI_GPIO_
HPD
,
GPIOF_OUT_INIT_HIGH
,
"hdmi_gpio_hpd"
},
{
HDMI_GPIO_
CT_CP_HPD
,
GPIOF_OUT_INIT_HIGH
,
"hdmi_gpio_ct_cp_hpd"
},
{
HDMI_GPIO_LS_OE
,
GPIOF_OUT_INIT_HIGH
,
"hdmi_gpio_ls_oe"
},
{
HDMI_GPIO_LS_OE
,
GPIOF_OUT_INIT_HIGH
,
"hdmi_gpio_ls_oe"
},
{
HDMI_GPIO_HPD
,
GPIOF_DIR_IN
,
"hdmi_gpio_hpd"
},
};
};
static
int
omap4_panda_panel_enable_hdmi
(
struct
omap_dss_device
*
dssdev
)
static
int
omap4_panda_panel_enable_hdmi
(
struct
omap_dss_device
*
dssdev
)
...
@@ -497,10 +499,13 @@ static int omap4_panda_panel_enable_hdmi(struct omap_dss_device *dssdev)
...
@@ -497,10 +499,13 @@ static int omap4_panda_panel_enable_hdmi(struct omap_dss_device *dssdev)
static
void
omap4_panda_panel_disable_hdmi
(
struct
omap_dss_device
*
dssdev
)
static
void
omap4_panda_panel_disable_hdmi
(
struct
omap_dss_device
*
dssdev
)
{
{
gpio_free
(
HDMI_GPIO_LS_OE
);
gpio_free_array
(
panda_hdmi_gpios
,
ARRAY_SIZE
(
panda_hdmi_gpios
));
gpio_free
(
HDMI_GPIO_HPD
);
}
}
static
struct
omap_dss_hdmi_data
omap4_panda_hdmi_data
=
{
.
hpd_gpio
=
HDMI_GPIO_HPD
,
};
static
struct
omap_dss_device
omap4_panda_hdmi_device
=
{
static
struct
omap_dss_device
omap4_panda_hdmi_device
=
{
.
name
=
"hdmi"
,
.
name
=
"hdmi"
,
.
driver_name
=
"hdmi_panel"
,
.
driver_name
=
"hdmi_panel"
,
...
@@ -508,6 +513,7 @@ static struct omap_dss_device omap4_panda_hdmi_device = {
...
@@ -508,6 +513,7 @@ static struct omap_dss_device omap4_panda_hdmi_device = {
.
platform_enable
=
omap4_panda_panel_enable_hdmi
,
.
platform_enable
=
omap4_panda_panel_enable_hdmi
,
.
platform_disable
=
omap4_panda_panel_disable_hdmi
,
.
platform_disable
=
omap4_panda_panel_disable_hdmi
,
.
channel
=
OMAP_DSS_CHANNEL_DIGIT
,
.
channel
=
OMAP_DSS_CHANNEL_DIGIT
,
.
data
=
&
omap4_panda_hdmi_data
,
};
};
static
struct
omap_dss_device
*
omap4_panda_dss_devices
[]
=
{
static
struct
omap_dss_device
*
omap4_panda_dss_devices
[]
=
{
...
@@ -539,6 +545,10 @@ void omap4_panda_display_init(void)
...
@@ -539,6 +545,10 @@ void omap4_panda_display_init(void)
omap_hdmi_init
(
OMAP_HDMI_SDA_SCL_EXTERNAL_PULLUP
);
omap_hdmi_init
(
OMAP_HDMI_SDA_SCL_EXTERNAL_PULLUP
);
else
else
omap_hdmi_init
(
0
);
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
);
}
}
static
void
__init
omap4_panda_init
(
void
)
static
void
__init
omap4_panda_init
(
void
)
...
...
arch/arm/mach-omap2/display.c
View file @
64a9de8f
...
@@ -102,12 +102,8 @@ static void omap4_hdmi_mux_pads(enum omap_hdmi_flags flags)
...
@@ -102,12 +102,8 @@ static void omap4_hdmi_mux_pads(enum omap_hdmi_flags flags)
u32
reg
;
u32
reg
;
u16
control_i2c_1
;
u16
control_i2c_1
;
/* PAD0_HDMI_HPD_PAD1_HDMI_CEC */
omap_mux_init_signal
(
"hdmi_hpd"
,
OMAP_PIN_INPUT_PULLUP
);
omap_mux_init_signal
(
"hdmi_cec"
,
omap_mux_init_signal
(
"hdmi_cec"
,
OMAP_PIN_INPUT_PULLUP
);
OMAP_PIN_INPUT_PULLUP
);
/* PAD0_HDMI_DDC_SCL_PAD1_HDMI_DDC_SDA */
omap_mux_init_signal
(
"hdmi_ddc_scl"
,
omap_mux_init_signal
(
"hdmi_ddc_scl"
,
OMAP_PIN_INPUT_PULLUP
);
OMAP_PIN_INPUT_PULLUP
);
omap_mux_init_signal
(
"hdmi_ddc_sda"
,
omap_mux_init_signal
(
"hdmi_ddc_sda"
,
...
...
drivers/video/omap2/dss/dispc.c
View file @
64a9de8f
...
@@ -401,7 +401,7 @@ void dispc_runtime_put(void)
...
@@ -401,7 +401,7 @@ void dispc_runtime_put(void)
DSSDBG
(
"dispc_runtime_put
\n
"
);
DSSDBG
(
"dispc_runtime_put
\n
"
);
r
=
pm_runtime_put
(
&
dispc
.
pdev
->
dev
);
r
=
pm_runtime_put
_sync
(
&
dispc
.
pdev
->
dev
);
WARN_ON
(
r
<
0
);
WARN_ON
(
r
<
0
);
}
}
...
...
drivers/video/omap2/dss/dsi.c
View file @
64a9de8f
...
@@ -1079,7 +1079,7 @@ void dsi_runtime_put(struct platform_device *dsidev)
...
@@ -1079,7 +1079,7 @@ void dsi_runtime_put(struct platform_device *dsidev)
DSSDBG
(
"dsi_runtime_put
\n
"
);
DSSDBG
(
"dsi_runtime_put
\n
"
);
r
=
pm_runtime_put
(
&
dsi
->
pdev
->
dev
);
r
=
pm_runtime_put
_sync
(
&
dsi
->
pdev
->
dev
);
WARN_ON
(
r
<
0
);
WARN_ON
(
r
<
0
);
}
}
...
...
drivers/video/omap2/dss/dss.c
View file @
64a9de8f
...
@@ -720,7 +720,7 @@ void dss_runtime_put(void)
...
@@ -720,7 +720,7 @@ void dss_runtime_put(void)
DSSDBG
(
"dss_runtime_put
\n
"
);
DSSDBG
(
"dss_runtime_put
\n
"
);
r
=
pm_runtime_put
(
&
dss
.
pdev
->
dev
);
r
=
pm_runtime_put
_sync
(
&
dss
.
pdev
->
dev
);
WARN_ON
(
r
<
0
);
WARN_ON
(
r
<
0
);
}
}
...
...
drivers/video/omap2/dss/hdmi.c
View file @
64a9de8f
...
@@ -176,7 +176,7 @@ static void hdmi_runtime_put(void)
...
@@ -176,7 +176,7 @@ static void hdmi_runtime_put(void)
DSSDBG
(
"hdmi_runtime_put
\n
"
);
DSSDBG
(
"hdmi_runtime_put
\n
"
);
r
=
pm_runtime_put
(
&
hdmi
.
pdev
->
dev
);
r
=
pm_runtime_put
_sync
(
&
hdmi
.
pdev
->
dev
);
WARN_ON
(
r
<
0
);
WARN_ON
(
r
<
0
);
}
}
...
@@ -497,6 +497,7 @@ bool omapdss_hdmi_detect(void)
...
@@ -497,6 +497,7 @@ bool omapdss_hdmi_detect(void)
int
omapdss_hdmi_display_enable
(
struct
omap_dss_device
*
dssdev
)
int
omapdss_hdmi_display_enable
(
struct
omap_dss_device
*
dssdev
)
{
{
struct
omap_dss_hdmi_data
*
priv
=
dssdev
->
data
;
int
r
=
0
;
int
r
=
0
;
DSSDBG
(
"ENTER hdmi_display_enable
\n
"
);
DSSDBG
(
"ENTER hdmi_display_enable
\n
"
);
...
@@ -509,6 +510,8 @@ int omapdss_hdmi_display_enable(struct omap_dss_device *dssdev)
...
@@ -509,6 +510,8 @@ int omapdss_hdmi_display_enable(struct omap_dss_device *dssdev)
goto
err0
;
goto
err0
;
}
}
hdmi
.
ip_data
.
hpd_gpio
=
priv
->
hpd_gpio
;
r
=
omap_dss_start_device
(
dssdev
);
r
=
omap_dss_start_device
(
dssdev
);
if
(
r
)
{
if
(
r
)
{
DSSERR
(
"failed to start device
\n
"
);
DSSERR
(
"failed to start device
\n
"
);
...
...
drivers/video/omap2/dss/rfbi.c
View file @
64a9de8f
...
@@ -140,7 +140,7 @@ static void rfbi_runtime_put(void)
...
@@ -140,7 +140,7 @@ static void rfbi_runtime_put(void)
DSSDBG
(
"rfbi_runtime_put
\n
"
);
DSSDBG
(
"rfbi_runtime_put
\n
"
);
r
=
pm_runtime_put
(
&
rfbi
.
pdev
->
dev
);
r
=
pm_runtime_put
_sync
(
&
rfbi
.
pdev
->
dev
);
WARN_ON
(
r
<
0
);
WARN_ON
(
r
<
0
);
}
}
...
...
drivers/video/omap2/dss/ti_hdmi.h
View file @
64a9de8f
...
@@ -126,6 +126,10 @@ struct hdmi_ip_data {
...
@@ -126,6 +126,10 @@ struct hdmi_ip_data {
const
struct
ti_hdmi_ip_ops
*
ops
;
const
struct
ti_hdmi_ip_ops
*
ops
;
struct
hdmi_config
cfg
;
struct
hdmi_config
cfg
;
struct
hdmi_pll_info
pll_data
;
struct
hdmi_pll_info
pll_data
;
/* ti_hdmi_4xxx_ip private data. These should be in a separate struct */
int
hpd_gpio
;
bool
phy_tx_enabled
;
};
};
int
ti_hdmi_4xxx_phy_enable
(
struct
hdmi_ip_data
*
ip_data
);
int
ti_hdmi_4xxx_phy_enable
(
struct
hdmi_ip_data
*
ip_data
);
void
ti_hdmi_4xxx_phy_disable
(
struct
hdmi_ip_data
*
ip_data
);
void
ti_hdmi_4xxx_phy_disable
(
struct
hdmi_ip_data
*
ip_data
);
...
...
drivers/video/omap2/dss/ti_hdmi_4xxx_ip.c
View file @
64a9de8f
...
@@ -28,6 +28,7 @@
...
@@ -28,6 +28,7 @@
#include <linux/delay.h>
#include <linux/delay.h>
#include <linux/string.h>
#include <linux/string.h>
#include <linux/seq_file.h>
#include <linux/seq_file.h>
#include <linux/gpio.h>
#include "ti_hdmi_4xxx_ip.h"
#include "ti_hdmi_4xxx_ip.h"
#include "dss.h"
#include "dss.h"
...
@@ -223,6 +224,49 @@ void ti_hdmi_4xxx_pll_disable(struct hdmi_ip_data *ip_data)
...
@@ -223,6 +224,49 @@ void ti_hdmi_4xxx_pll_disable(struct hdmi_ip_data *ip_data)
hdmi_set_pll_pwr
(
ip_data
,
HDMI_PLLPWRCMD_ALLOFF
);
hdmi_set_pll_pwr
(
ip_data
,
HDMI_PLLPWRCMD_ALLOFF
);
}
}
static
int
hdmi_check_hpd_state
(
struct
hdmi_ip_data
*
ip_data
)
{
unsigned
long
flags
;
bool
hpd
;
int
r
;
/* this should be in ti_hdmi_4xxx_ip private data */
static
DEFINE_SPINLOCK
(
phy_tx_lock
);
spin_lock_irqsave
(
&
phy_tx_lock
,
flags
);
hpd
=
gpio_get_value
(
ip_data
->
hpd_gpio
);
if
(
hpd
==
ip_data
->
phy_tx_enabled
)
{
spin_unlock_irqrestore
(
&
phy_tx_lock
,
flags
);
return
0
;
}
if
(
hpd
)
r
=
hdmi_set_phy_pwr
(
ip_data
,
HDMI_PHYPWRCMD_TXON
);
else
r
=
hdmi_set_phy_pwr
(
ip_data
,
HDMI_PHYPWRCMD_LDOON
);
if
(
r
)
{
DSSERR
(
"Failed to %s PHY TX power
\n
"
,
hpd
?
"enable"
:
"disable"
);
goto
err
;
}
ip_data
->
phy_tx_enabled
=
hpd
;
err:
spin_unlock_irqrestore
(
&
phy_tx_lock
,
flags
);
return
r
;
}
static
irqreturn_t
hpd_irq_handler
(
int
irq
,
void
*
data
)
{
struct
hdmi_ip_data
*
ip_data
=
data
;
hdmi_check_hpd_state
(
ip_data
);
return
IRQ_HANDLED
;
}
int
ti_hdmi_4xxx_phy_enable
(
struct
hdmi_ip_data
*
ip_data
)
int
ti_hdmi_4xxx_phy_enable
(
struct
hdmi_ip_data
*
ip_data
)
{
{
u16
r
=
0
;
u16
r
=
0
;
...
@@ -232,10 +276,6 @@ int ti_hdmi_4xxx_phy_enable(struct hdmi_ip_data *ip_data)
...
@@ -232,10 +276,6 @@ int ti_hdmi_4xxx_phy_enable(struct hdmi_ip_data *ip_data)
if
(
r
)
if
(
r
)
return
r
;
return
r
;
r
=
hdmi_set_phy_pwr
(
ip_data
,
HDMI_PHYPWRCMD_TXON
);
if
(
r
)
return
r
;
/*
/*
* Read address 0 in order to get the SCP reset done completed
* Read address 0 in order to get the SCP reset done completed
* Dummy access performed to make sure reset is done
* Dummy access performed to make sure reset is done
...
@@ -257,12 +297,32 @@ int ti_hdmi_4xxx_phy_enable(struct hdmi_ip_data *ip_data)
...
@@ -257,12 +297,32 @@ int ti_hdmi_4xxx_phy_enable(struct hdmi_ip_data *ip_data)
/* Write to phy address 3 to change the polarity control */
/* Write to phy address 3 to change the polarity control */
REG_FLD_MOD
(
phy_base
,
HDMI_TXPHY_PAD_CFG_CTRL
,
0x1
,
27
,
27
);
REG_FLD_MOD
(
phy_base
,
HDMI_TXPHY_PAD_CFG_CTRL
,
0x1
,
27
,
27
);
r
=
request_threaded_irq
(
gpio_to_irq
(
ip_data
->
hpd_gpio
),
NULL
,
hpd_irq_handler
,
IRQF_DISABLED
|
IRQF_TRIGGER_RISING
|
IRQF_TRIGGER_FALLING
,
"hpd"
,
ip_data
);
if
(
r
)
{
DSSERR
(
"HPD IRQ request failed
\n
"
);
hdmi_set_phy_pwr
(
ip_data
,
HDMI_PHYPWRCMD_OFF
);
return
r
;
}
r
=
hdmi_check_hpd_state
(
ip_data
);
if
(
r
)
{
free_irq
(
gpio_to_irq
(
ip_data
->
hpd_gpio
),
ip_data
);
hdmi_set_phy_pwr
(
ip_data
,
HDMI_PHYPWRCMD_OFF
);
return
r
;
}
return
0
;
return
0
;
}
}
void
ti_hdmi_4xxx_phy_disable
(
struct
hdmi_ip_data
*
ip_data
)
void
ti_hdmi_4xxx_phy_disable
(
struct
hdmi_ip_data
*
ip_data
)
{
{
free_irq
(
gpio_to_irq
(
ip_data
->
hpd_gpio
),
ip_data
);
hdmi_set_phy_pwr
(
ip_data
,
HDMI_PHYPWRCMD_OFF
);
hdmi_set_phy_pwr
(
ip_data
,
HDMI_PHYPWRCMD_OFF
);
ip_data
->
phy_tx_enabled
=
false
;
}
}
static
int
hdmi_core_ddc_init
(
struct
hdmi_ip_data
*
ip_data
)
static
int
hdmi_core_ddc_init
(
struct
hdmi_ip_data
*
ip_data
)
...
...
drivers/video/omap2/dss/venc.c
View file @
64a9de8f
...
@@ -401,7 +401,7 @@ static void venc_runtime_put(void)
...
@@ -401,7 +401,7 @@ static void venc_runtime_put(void)
DSSDBG
(
"venc_runtime_put
\n
"
);
DSSDBG
(
"venc_runtime_put
\n
"
);
r
=
pm_runtime_put
(
&
venc
.
pdev
->
dev
);
r
=
pm_runtime_put
_sync
(
&
venc
.
pdev
->
dev
);
WARN_ON
(
r
<
0
);
WARN_ON
(
r
<
0
);
}
}
...
...
include/video/omapdss.h
View file @
64a9de8f
...
@@ -590,6 +590,11 @@ struct omap_dss_device {
...
@@ -590,6 +590,11 @@ struct omap_dss_device {
int
(
*
get_backlight
)(
struct
omap_dss_device
*
dssdev
);
int
(
*
get_backlight
)(
struct
omap_dss_device
*
dssdev
);
};
};
struct
omap_dss_hdmi_data
{
int
hpd_gpio
;
};
struct
omap_dss_driver
{
struct
omap_dss_driver
{
struct
device_driver
driver
;
struct
device_driver
driver
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment