diff options
author | Raghavendra VK <rvk@nvidia.com> | 2013-02-07 15:40:16 -0800 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2013-09-14 12:57:12 -0700 |
commit | 38e0ce454e09bd59a629de9012fa9473b707e20c (patch) | |
tree | 01871a32b7ae3b991ba28b95a9518abb2dcd026f | |
parent | 981c2a5262e4681c327a62c7de5d13aa97d721fc (diff) |
video: tegra: dc: Power on host1x for CSC, frame end interrupt
bug 1233236
Change-Id: I47ffa44e292c65e89914b58d88c52ffdcb35fdbc
Signed-off-by: Raghavendra VK <rvk@nvidia.com>
Reviewed-on: http://git-master/r/198567
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Gajanan Bhat <gbhat@nvidia.com>
Reviewed-by: Gajanan Bhat <gbhat@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
-rw-r--r-- | drivers/video/tegra/dc/csc.c | 4 | ||||
-rw-r--r-- | drivers/video/tegra/dc/window.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/drivers/video/tegra/dc/csc.c b/drivers/video/tegra/dc/csc.c index 09db5fee4c6f..12434b39e5cd 100644 --- a/drivers/video/tegra/dc/csc.c +++ b/drivers/video/tegra/dc/csc.c @@ -1,7 +1,7 @@ /* * drivers/video/tegra/dc/csc.c * - * Copyright (c) 2010-2012, NVIDIA CORPORATION, All rights reserved. + * Copyright (c) 2010-2013, NVIDIA CORPORATION, All rights reserved. * * This software is licensed under the terms of the GNU General Public * License version 2, as published by the Free Software Foundation, and @@ -54,12 +54,14 @@ int tegra_dc_update_csc(struct tegra_dc *dc, int win_idx) return -EFAULT; } + tegra_dc_io_start(dc); tegra_dc_hold_dc_out(dc); tegra_dc_writel(dc, WINDOW_A_SELECT << win_idx, DC_CMD_DISPLAY_WINDOW_HEADER); tegra_dc_set_csc(dc, &dc->windows[win_idx].csc); tegra_dc_release_dc_out(dc); + tegra_dc_io_end(dc); mutex_unlock(&dc->lock); diff --git a/drivers/video/tegra/dc/window.c b/drivers/video/tegra/dc/window.c index c4bade922884..dfbcdba4b0fd 100644 --- a/drivers/video/tegra/dc/window.c +++ b/drivers/video/tegra/dc/window.c @@ -3,7 +3,7 @@ * * Copyright (C) 2010 Google, Inc. * - * Copyright (c) 2010-2012, NVIDIA CORPORATION, All rights reserved. + * Copyright (c) 2010-2013, NVIDIA CORPORATION, All rights reserved. * * This software is licensed under the terms of the GNU General Public * License version 2, as published by the Free Software Foundation, and @@ -50,12 +50,14 @@ static bool tegra_dc_windows_are_clean(struct tegra_dc_win *windows[], int tegra_dc_config_frame_end_intr(struct tegra_dc *dc, bool enable) { + tegra_dc_io_start(dc); tegra_dc_writel(dc, FRAME_END_INT, DC_CMD_INT_STATUS); if (enable) { atomic_inc(&frame_end_ref); tegra_dc_unmask_interrupt(dc, FRAME_END_INT); } else if (!atomic_dec_return(&frame_end_ref)) tegra_dc_mask_interrupt(dc, FRAME_END_INT); + tegra_dc_io_end(dc); return 0; } |