diff options
author | Thierry Reding <treding@nvidia.com> | 2014-08-05 05:15:15 -0400 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2014-11-13 07:56:01 -0500 |
commit | 2f16b89737e24b729305dcd4a3573c175615aa4c (patch) | |
tree | 166168cf338b3abaf655c15e060c2938f891f509 /drivers/gpu/drm/drm_mipi_dsi.c | |
parent | 083d573fd013c9996d7462d39b894d360311d750 (diff) |
drm/dsi: Implement DCS soft_reset command
Provide a small convenience wrapper that transmits a DCS soft_reset
command.
Reviewed-by: Sean Paul <seanpaul@chromium.org>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/gpu/drm/drm_mipi_dsi.c')
-rw-r--r-- | drivers/gpu/drm/drm_mipi_dsi.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/drivers/gpu/drm/drm_mipi_dsi.c b/drivers/gpu/drm/drm_mipi_dsi.c index d953b7fe5013..b3c28feff650 100644 --- a/drivers/gpu/drm/drm_mipi_dsi.c +++ b/drivers/gpu/drm/drm_mipi_dsi.c | |||
@@ -585,6 +585,24 @@ int mipi_dsi_dcs_nop(struct mipi_dsi_device *dsi) | |||
585 | EXPORT_SYMBOL(mipi_dsi_dcs_nop); | 585 | EXPORT_SYMBOL(mipi_dsi_dcs_nop); |
586 | 586 | ||
587 | /** | 587 | /** |
588 | * mipi_dsi_dcs_soft_reset() - perform a software reset of the display module | ||
589 | * @dsi: DSI peripheral device | ||
590 | * | ||
591 | * Return: 0 on success or a negative error code on failure. | ||
592 | */ | ||
593 | int mipi_dsi_dcs_soft_reset(struct mipi_dsi_device *dsi) | ||
594 | { | ||
595 | ssize_t err; | ||
596 | |||
597 | err = mipi_dsi_dcs_write(dsi, MIPI_DCS_SOFT_RESET, NULL, 0); | ||
598 | if (err < 0) | ||
599 | return err; | ||
600 | |||
601 | return 0; | ||
602 | } | ||
603 | EXPORT_SYMBOL(mipi_dsi_dcs_soft_reset); | ||
604 | |||
605 | /** | ||
588 | * mipi_dsi_dcs_enter_sleep_mode() - disable all unnecessary blocks inside the | 606 | * mipi_dsi_dcs_enter_sleep_mode() - disable all unnecessary blocks inside the |
589 | * display module except interface communication | 607 | * display module except interface communication |
590 | * @dsi: DSI peripheral device | 608 | * @dsi: DSI peripheral device |