Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
6d2c05e6
Commit
6d2c05e6
authored
Sep 28, 2006
by
Juha Yrjola
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
omapfb: Enable DISPC and DSS autoidling
Signed-off-by:
Juha Yrjola
<
juha.yrjola@solidboot.com
>
parent
caf6e45a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
drivers/video/omap/dispc.c
drivers/video/omap/dispc.c
+15
-0
No files found.
drivers/video/omap/dispc.c
View file @
6d2c05e6
...
...
@@ -35,6 +35,9 @@
#define MODULE_NAME "dispc"
#define DSS_BASE 0x48050000
#define DSS_SYSCONFIG 0x0010
#define DISPC_BASE 0x48050400
/* DISPC common */
...
...
@@ -1111,6 +1114,18 @@ static int omap_dispc_init(struct omapfb_device *fbdev, int ext_mode,
enable_digit_clocks
(
0
);
}
/* Enable smart idle and autoidle */
l
=
dispc_read_reg
(
DISPC_CONTROL
);
l
&=
~
((
3
<<
12
)
|
(
3
<<
3
));
l
|=
(
2
<<
12
)
|
(
2
<<
3
)
|
(
1
<<
0
);
dispc_write_reg
(
DISPC_SYSCONFIG
,
l
);
omap_writel
(
1
<<
0
,
DSS_BASE
+
DSS_SYSCONFIG
);
/* Set functional clock autogating */
l
=
dispc_read_reg
(
DISPC_CONFIG
);
l
|=
1
<<
9
;
dispc_write_reg
(
DISPC_CONFIG
,
l
);
l
=
dispc_read_reg
(
DISPC_IRQSTATUS
);
dispc_write_reg
(
l
,
DISPC_IRQSTATUS
);
...
...
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