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
dc43275a
Commit
dc43275a
authored
Mar 18, 2004
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PM2FB]: Fix build on big-endian.
parent
ccc3b252
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
drivers/video/pm2fb.c
drivers/video/pm2fb.c
+3
-3
No files found.
drivers/video/pm2fb.c
View file @
dc43275a
...
@@ -434,14 +434,14 @@ static void reset_config(struct pm2fb_par* p)
...
@@ -434,14 +434,14 @@ static void reset_config(struct pm2fb_par* p)
pm2_RDAC_WR
(
p
,
PM2I_RD_BLUE_KEY
,
0
);
pm2_RDAC_WR
(
p
,
PM2I_RD_BLUE_KEY
,
0
);
}
}
static
void
set_aperture
(
struct
pm2fb_par
*
p
)
static
void
set_aperture
(
struct
pm2fb_par
*
p
,
u32
depth
)
{
{
WAIT_FIFO
(
p
,
4
);
WAIT_FIFO
(
p
,
4
);
#ifdef __LITTLE_ENDIAN
#ifdef __LITTLE_ENDIAN
pm2_WR
(
p
,
PM2R_APERTURE_ONE
,
0
);
pm2_WR
(
p
,
PM2R_APERTURE_ONE
,
0
);
pm2_WR
(
p
,
PM2R_APERTURE_TWO
,
0
);
pm2_WR
(
p
,
PM2R_APERTURE_TWO
,
0
);
#else
#else
switch
(
p
->
depth
)
{
switch
(
depth
)
{
case
8
:
case
8
:
case
24
:
case
24
:
pm2_WR
(
p
,
PM2R_APERTURE_ONE
,
0
);
pm2_WR
(
p
,
PM2R_APERTURE_ONE
,
0
);
...
@@ -744,7 +744,7 @@ static int pm2fb_set_par(struct fb_info *info)
...
@@ -744,7 +744,7 @@ static int pm2fb_set_par(struct fb_info *info)
pm2_WR
(
par
,
PM2VR_RD_INDEX_HIGH
,
0
);
pm2_WR
(
par
,
PM2VR_RD_INDEX_HIGH
,
0
);
}
}
set_aperture
(
par
);
set_aperture
(
par
,
depth
);
DEFRW
();
DEFRW
();
WAIT_FIFO
(
par
,
19
);
WAIT_FIFO
(
par
,
19
);
...
...
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