Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
MMC U-Boot Custodian Tree
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
U-Boot
Custodians
MMC U-Boot Custodian Tree
Commits
59deb7fe
Commit
59deb7fe
authored
9 years ago
by
Vasily Khoruzhick
Committed by
Tom Rini
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
pxa_lcd: make driver cache-aware
Signed-off-by:
Vasily Khoruzhick
<
anarsoul@gmail.com
>
parent
9cfc0598
No related branches found
Branches containing commit
No related tags found
Tags containing commit
Loading
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
drivers/video/pxa_lcd.c
+16
-0
16 additions, 0 deletions
drivers/video/pxa_lcd.c
with
16 additions
and
0 deletions
drivers/video/pxa_lcd.c
+
16
−
0
View file @
59deb7fe
...
...
@@ -353,6 +353,9 @@ void lcd_ctrl_init (void *lcdbase)
pxafb_init
(
&
panel_info
);
pxafb_setup_gpio
(
&
panel_info
);
pxafb_enable_controller
(
&
panel_info
);
/* Enable flushing if we enabled dcache */
lcd_set_flush_dcache
(
1
);
}
/*----------------------------------------------------------------------*/
...
...
@@ -565,6 +568,10 @@ static int pxafb_init (vidinfo_t *vid)
fbi
->
dmadesc_fblow
->
fidr
=
0
;
fbi
->
dmadesc_fblow
->
ldcmd
=
BYTES_PER_PANEL
;
flush_dcache_range
((
u32
)
fbi
->
dmadesc_fblow
,
(
u32
)
fbi
->
dmadesc_fblow
+
sizeof
(
*
fbi
->
dmadesc_fblow
));
fbi
->
fdadr1
=
(
u_long
)
fbi
->
dmadesc_fblow
;
/* only used in dual-panel mode */
fbi
->
dmadesc_fbhigh
->
fsadr
=
fbi
->
screen
;
...
...
@@ -580,11 +587,20 @@ static int pxafb_init (vidinfo_t *vid)
/* assume any mode with <12 bpp is palette driven */
fbi
->
dmadesc_palette
->
fdadr
=
(
u_long
)
fbi
->
dmadesc_fbhigh
;
fbi
->
dmadesc_fbhigh
->
fdadr
=
(
u_long
)
fbi
->
dmadesc_palette
;
flush_dcache_range
((
u32
)
fbi
->
dmadesc_fbhigh
,
(
u32
)
fbi
->
dmadesc_fbhigh
+
sizeof
(
*
fbi
->
dmadesc_fbhigh
));
flush_dcache_range
((
u32
)
fbi
->
dmadesc_palette
,
(
u32
)
fbi
->
dmadesc_palette
+
sizeof
(
*
fbi
->
dmadesc_palette
));
/* flips back and forth between pal and fbhigh */
fbi
->
fdadr0
=
(
u_long
)
fbi
->
dmadesc_palette
;
}
else
{
flush_dcache_range
((
u32
)
fbi
->
dmadesc_fbhigh
,
(
u32
)
fbi
->
dmadesc_fbhigh
+
sizeof
(
*
fbi
->
dmadesc_fbhigh
));
/* palette shouldn't be loaded in true-color mode */
fbi
->
dmadesc_fbhigh
->
fdadr
=
(
u_long
)
fbi
->
dmadesc_fbhigh
;
fbi
->
fdadr0
=
(
u_long
)
fbi
->
dmadesc_fbhigh
;
/* no pal just fbhigh */
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment