Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
u-boot
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
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
Florian Mayer
u-boot
Commits
59869ca7
Commit
59869ca7
authored
15 years ago
by
Wolfgang Denk
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of
git://git.denx.de/u-boot-video
parents
8e5e9b94
6bbced67
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
drivers/video/atmel_lcdfb.c
+5
-2
5 additions, 2 deletions
drivers/video/atmel_lcdfb.c
with
5 additions
and
2 deletions
drivers/video/atmel_lcdfb.c
+
5
−
2
View file @
59869ca7
...
@@ -42,6 +42,9 @@ short console_row;
...
@@ -42,6 +42,9 @@ short console_row;
/* configurable parameters */
/* configurable parameters */
#define ATMEL_LCDC_CVAL_DEFAULT 0xc8
#define ATMEL_LCDC_CVAL_DEFAULT 0xc8
#define ATMEL_LCDC_DMA_BURST_LEN 8
#define ATMEL_LCDC_DMA_BURST_LEN 8
#ifndef ATMEL_LCDC_GUARD_TIME
#define ATMEL_LCDC_GUARD_TIME 1
#endif
#if defined(CONFIG_AT91SAM9263) || defined(CONFIG_AT91CAP9)
#if defined(CONFIG_AT91SAM9263) || defined(CONFIG_AT91CAP9)
#define ATMEL_LCDC_FIFO_SIZE 2048
#define ATMEL_LCDC_FIFO_SIZE 2048
...
@@ -69,7 +72,7 @@ void lcd_ctrl_init(void *lcdbase)
...
@@ -69,7 +72,7 @@ void lcd_ctrl_init(void *lcdbase)
/* Turn off the LCD controller and the DMA controller */
/* Turn off the LCD controller and the DMA controller */
lcdc_writel
(
panel_info
.
mmio
,
ATMEL_LCDC_PWRCON
,
lcdc_writel
(
panel_info
.
mmio
,
ATMEL_LCDC_PWRCON
,
1
<<
ATMEL_LCDC_GUARDT_OFFSET
);
ATMEL_LCDC_GUARD_TIME
<<
ATMEL_LCDC_GUARDT_OFFSET
);
/* Wait for the LCDC core to become idle */
/* Wait for the LCDC core to become idle */
while
(
lcdc_readl
(
panel_info
.
mmio
,
ATMEL_LCDC_PWRCON
)
&
ATMEL_LCDC_BUSY
)
while
(
lcdc_readl
(
panel_info
.
mmio
,
ATMEL_LCDC_PWRCON
)
&
ATMEL_LCDC_BUSY
)
...
@@ -150,7 +153,7 @@ void lcd_ctrl_init(void *lcdbase)
...
@@ -150,7 +153,7 @@ void lcd_ctrl_init(void *lcdbase)
lcdc_writel
(
panel_info
.
mmio
,
ATMEL_LCDC_DMACON
,
ATMEL_LCDC_DMAEN
);
lcdc_writel
(
panel_info
.
mmio
,
ATMEL_LCDC_DMACON
,
ATMEL_LCDC_DMAEN
);
lcdc_writel
(
panel_info
.
mmio
,
ATMEL_LCDC_PWRCON
,
lcdc_writel
(
panel_info
.
mmio
,
ATMEL_LCDC_PWRCON
,
(
1
<<
ATMEL_LCDC_GUARDT_OFFSET
)
|
ATMEL_LCDC_PWR
);
(
ATMEL_LCDC_GUARD_TIME
<<
ATMEL_LCDC_GUARDT_OFFSET
)
|
ATMEL_LCDC_PWR
);
}
}
ulong
calc_fbsize
(
void
)
ulong
calc_fbsize
(
void
)
...
...
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