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
nexedi
linux
Commits
924cb5ff
Commit
924cb5ff
authored
Jul 12, 2013
by
Patrik Jakobsson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/gma500: Add generic set_config() function
Signed-off-by:
Patrik Jakobsson
<
patrik.r.jakobsson@gmail.com
>
parent
f0ff07b7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
0 deletions
+19
-0
drivers/gpu/drm/gma500/gma_display.c
drivers/gpu/drm/gma500/gma_display.c
+16
-0
drivers/gpu/drm/gma500/gma_display.h
drivers/gpu/drm/gma500/gma_display.h
+3
-0
No files found.
drivers/gpu/drm/gma500/gma_display.c
View file @
924cb5ff
...
...
@@ -519,6 +519,22 @@ void gma_crtc_destroy(struct drm_crtc *crtc)
kfree
(
psb_intel_crtc
);
}
int
gma_crtc_set_config
(
struct
drm_mode_set
*
set
)
{
struct
drm_device
*
dev
=
set
->
crtc
->
dev
;
struct
drm_psb_private
*
dev_priv
=
dev
->
dev_private
;
int
ret
;
if
(
!
dev_priv
->
rpm_enabled
)
return
drm_crtc_helper_set_config
(
set
);
pm_runtime_forbid
(
&
dev
->
pdev
->
dev
);
ret
=
drm_crtc_helper_set_config
(
set
);
pm_runtime_allow
(
&
dev
->
pdev
->
dev
);
return
ret
;
}
/**
* Save HW states of given crtc
*/
...
...
drivers/gpu/drm/gma500/gma_display.h
View file @
924cb5ff
...
...
@@ -22,6 +22,8 @@
#ifndef _GMA_DISPLAY_H_
#define _GMA_DISPLAY_H_
#include <linux/pm_runtime.h>
struct
gma_clock_t
{
/* given values */
int
n
;
...
...
@@ -80,6 +82,7 @@ extern void gma_crtc_prepare(struct drm_crtc *crtc);
extern
void
gma_crtc_commit
(
struct
drm_crtc
*
crtc
);
extern
void
gma_crtc_disable
(
struct
drm_crtc
*
crtc
);
extern
void
gma_crtc_destroy
(
struct
drm_crtc
*
crtc
);
extern
int
gma_crtc_set_config
(
struct
drm_mode_set
*
set
);
extern
void
gma_crtc_save
(
struct
drm_crtc
*
crtc
);
extern
void
gma_crtc_restore
(
struct
drm_crtc
*
crtc
);
...
...
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