diff options
author | Kevin Brace <kevinbrace@gmx.com> | 2017-07-07 15:03:27 -0500 |
---|---|---|
committer | Kevin Brace <kevinbrace@gmx.com> | 2017-07-07 15:03:27 -0500 |
commit | ff311da0f99217bf67e9fbca7fe729de3467555c (patch) | |
tree | 6a6c795b1810473d63e7010eebd74627e9dc00ed | |
parent | d1a10f7cf55bcf09f2515258cc8bd4a1ff1cf056 (diff) |
Added via_fp_primary_hard_power_seq
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
-rw-r--r-- | drivers/gpu/drm/via/via_fp.c | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/drivers/gpu/drm/via/via_fp.c b/drivers/gpu/drm/via/via_fp.c index 20b494234c55..17655593568e 100644 --- a/drivers/gpu/drm/via/via_fp.c +++ b/drivers/gpu/drm/via/via_fp.c @@ -364,6 +364,37 @@ via_fp_secondary_soft_power_seq(struct via_device *dev_priv, bool power_state) DRM_DEBUG_KMS("Exiting via_fp_secondary_soft_power_seq.\n"); } +static void +via_fp_primary_hard_power_seq(struct via_device *dev_priv, bool power_state) +{ + DRM_DEBUG_KMS("Entered via_fp_primary_hard_power_seq.\n"); + + /* Use hardware FP power sequence control. */ + via_fp_set_primary_power_seq_type(VGABASE, true); + + if (power_state) { + /* Turn on FP Display Period. */ + via_fp_set_primary_direct_display_period(VGABASE, true); + + /* Turn on FP hardware power sequence. */ + via_fp_set_primary_hard_power(VGABASE, true); + + /* Turn on FP back light. */ + via_fp_set_primary_direct_back_light_ctrl(VGABASE, true); + } else { + /* Turn off FP back light. */ + via_fp_set_primary_direct_back_light_ctrl(VGABASE, false); + + /* Turn off FP hardware power sequence. */ + via_fp_set_primary_hard_power(VGABASE, false); + + /* Turn on FP Display Period. */ + via_fp_set_primary_direct_display_period(VGABASE, false); + } + + DRM_DEBUG_KMS("Entered via_fp_primary_hard_power_seq.\n"); +} + /* * Sets flat panel I/O pad state. */ |