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
Kirill Smelkov
linux
Commits
64cebcb5
Commit
64cebcb5
authored
Nov 22, 2011
by
Florian Tobias Schandinat
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fbdev-for-linus' into fbdev-next
parents
2dfd7cf6
a3283969
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
23 additions
and
10 deletions
+23
-10
drivers/video/da8xx-fb.c
drivers/video/da8xx-fb.c
+14
-1
drivers/video/omap/dispc.c
drivers/video/omap/dispc.c
+1
-0
drivers/video/omap2/dss/dispc.c
drivers/video/omap2/dss/dispc.c
+5
-6
drivers/video/omap2/dss/hdmi.c
drivers/video/omap2/dss/hdmi.c
+1
-1
drivers/video/via/share.h
drivers/video/via/share.h
+2
-2
No files found.
drivers/video/da8xx-fb.c
View file @
64cebcb5
...
@@ -116,6 +116,7 @@
...
@@ -116,6 +116,7 @@
/* Clock registers available only on Version 2 */
/* Clock registers available only on Version 2 */
#define LCD_CLK_ENABLE_REG 0x6c
#define LCD_CLK_ENABLE_REG 0x6c
#define LCD_CLK_RESET_REG 0x70
#define LCD_CLK_RESET_REG 0x70
#define LCD_CLK_MAIN_RESET BIT(3)
#define LCD_NUM_BUFFERS 2
#define LCD_NUM_BUFFERS 2
...
@@ -244,6 +245,10 @@ static inline void lcd_enable_raster(void)
...
@@ -244,6 +245,10 @@ static inline void lcd_enable_raster(void)
{
{
u32
reg
;
u32
reg
;
/* Bring LCDC out of reset */
if
(
lcd_revision
==
LCD_VERSION_2
)
lcdc_write
(
0
,
LCD_CLK_RESET_REG
);
reg
=
lcdc_read
(
LCD_RASTER_CTRL_REG
);
reg
=
lcdc_read
(
LCD_RASTER_CTRL_REG
);
if
(
!
(
reg
&
LCD_RASTER_ENABLE
))
if
(
!
(
reg
&
LCD_RASTER_ENABLE
))
lcdc_write
(
reg
|
LCD_RASTER_ENABLE
,
LCD_RASTER_CTRL_REG
);
lcdc_write
(
reg
|
LCD_RASTER_ENABLE
,
LCD_RASTER_CTRL_REG
);
...
@@ -257,6 +262,10 @@ static inline void lcd_disable_raster(void)
...
@@ -257,6 +262,10 @@ static inline void lcd_disable_raster(void)
reg
=
lcdc_read
(
LCD_RASTER_CTRL_REG
);
reg
=
lcdc_read
(
LCD_RASTER_CTRL_REG
);
if
(
reg
&
LCD_RASTER_ENABLE
)
if
(
reg
&
LCD_RASTER_ENABLE
)
lcdc_write
(
reg
&
~
LCD_RASTER_ENABLE
,
LCD_RASTER_CTRL_REG
);
lcdc_write
(
reg
&
~
LCD_RASTER_ENABLE
,
LCD_RASTER_CTRL_REG
);
if
(
lcd_revision
==
LCD_VERSION_2
)
/* Write 1 to reset LCDC */
lcdc_write
(
LCD_CLK_MAIN_RESET
,
LCD_CLK_RESET_REG
);
}
}
static
void
lcd_blit
(
int
load_mode
,
struct
da8xx_fb_par
*
par
)
static
void
lcd_blit
(
int
load_mode
,
struct
da8xx_fb_par
*
par
)
...
@@ -584,8 +593,12 @@ static void lcd_reset(struct da8xx_fb_par *par)
...
@@ -584,8 +593,12 @@ static void lcd_reset(struct da8xx_fb_par *par)
lcdc_write
(
0
,
LCD_DMA_CTRL_REG
);
lcdc_write
(
0
,
LCD_DMA_CTRL_REG
);
lcdc_write
(
0
,
LCD_RASTER_CTRL_REG
);
lcdc_write
(
0
,
LCD_RASTER_CTRL_REG
);
if
(
lcd_revision
==
LCD_VERSION_2
)
if
(
lcd_revision
==
LCD_VERSION_2
)
{
lcdc_write
(
0
,
LCD_INT_ENABLE_SET_REG
);
lcdc_write
(
0
,
LCD_INT_ENABLE_SET_REG
);
/* Write 1 to reset */
lcdc_write
(
LCD_CLK_MAIN_RESET
,
LCD_CLK_RESET_REG
);
lcdc_write
(
0
,
LCD_CLK_RESET_REG
);
}
}
}
static
void
lcd_calc_clk_divider
(
struct
da8xx_fb_par
*
par
)
static
void
lcd_calc_clk_divider
(
struct
da8xx_fb_par
*
par
)
...
...
drivers/video/omap/dispc.c
View file @
64cebcb5
...
@@ -19,6 +19,7 @@
...
@@ -19,6 +19,7 @@
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
*/
#include <linux/kernel.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/dma-mapping.h>
#include <linux/dma-mapping.h>
#include <linux/mm.h>
#include <linux/mm.h>
#include <linux/vmalloc.h>
#include <linux/vmalloc.h>
...
...
drivers/video/omap2/dss/dispc.c
View file @
64cebcb5
...
@@ -1720,12 +1720,11 @@ static int dispc_ovl_calc_scaling(enum omap_plane plane,
...
@@ -1720,12 +1720,11 @@ static int dispc_ovl_calc_scaling(enum omap_plane plane,
const
int
maxdownscale
=
dss_feat_get_param_max
(
FEAT_PARAM_DOWNSCALE
);
const
int
maxdownscale
=
dss_feat_get_param_max
(
FEAT_PARAM_DOWNSCALE
);
unsigned
long
fclk
=
0
;
unsigned
long
fclk
=
0
;
if
((
ovl
->
caps
&
OMAP_DSS_OVL_CAP_SCALE
)
==
0
)
{
if
(
width
==
out_width
&&
height
==
out_height
)
if
(
width
!=
out_width
||
height
!=
out_height
)
return
0
;
return
-
EINVAL
;
else
if
((
ovl
->
caps
&
OMAP_DSS_OVL_CAP_SCALE
)
==
0
)
return
0
;
return
-
EINVAL
;
}
if
(
out_width
<
width
/
maxdownscale
||
if
(
out_width
<
width
/
maxdownscale
||
out_width
>
width
*
8
)
out_width
>
width
*
8
)
...
...
drivers/video/omap2/dss/hdmi.c
View file @
64cebcb5
...
@@ -269,7 +269,7 @@ static void update_hdmi_timings(struct hdmi_config *cfg,
...
@@ -269,7 +269,7 @@ static void update_hdmi_timings(struct hdmi_config *cfg,
unsigned
long
hdmi_get_pixel_clock
(
void
)
unsigned
long
hdmi_get_pixel_clock
(
void
)
{
{
/* HDMI Pixel Clock in Mhz */
/* HDMI Pixel Clock in Mhz */
return
hdmi
.
ip_data
.
cfg
.
timings
.
timings
.
pixel_clock
*
1000
0
;
return
hdmi
.
ip_data
.
cfg
.
timings
.
timings
.
pixel_clock
*
1000
;
}
}
static
void
hdmi_compute_pll
(
struct
omap_dss_device
*
dssdev
,
int
phy
,
static
void
hdmi_compute_pll
(
struct
omap_dss_device
*
dssdev
,
int
phy
,
...
...
drivers/video/via/share.h
View file @
64cebcb5
...
@@ -559,8 +559,8 @@
...
@@ -559,8 +559,8 @@
#define M1200X720_R60_VSP POSITIVE
#define M1200X720_R60_VSP POSITIVE
/* 1200x900@60 Sync Polarity (DCON) */
/* 1200x900@60 Sync Polarity (DCON) */
#define M1200X900_R60_HSP
NEGA
TIVE
#define M1200X900_R60_HSP
POSI
TIVE
#define M1200X900_R60_VSP
NEGA
TIVE
#define M1200X900_R60_VSP
POSI
TIVE
/* 1280x600@60 Sync Polarity (GTF Mode) */
/* 1280x600@60 Sync Polarity (GTF Mode) */
#define M1280x600_R60_HSP NEGATIVE
#define M1280x600_R60_HSP NEGATIVE
...
...
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