diff options
author | Chao Xu <cxu@nvidia.com> | 2011-08-30 09:45:10 -0700 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2011-11-30 21:48:58 -0800 |
commit | 7ff1bf0db911b72e2bf6270d9457d8ddf3291653 (patch) | |
tree | 4590ef08aef33a436f95e9989cd06f3287c60a0a /drivers/video | |
parent | 8243317b0f457ab2c18231cafec51c333b71a013 (diff) |
tegra: dc: Workaround a simulator bug.
- Workaround the simulator issue that WIN_x_UPDATE fields are not cleared.
Change-Id: I8060a32740e7641eebefe650cee13fd49260df03
Reviewed-on: http://git-master/r/52994
Tested-by: Chao Xu <cxu@nvidia.com>
Reviewed-by: Mark Stadler <mastadler@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Rebase-Id: R2f813f017b8c009146c1c4a8dac80333a833e3fd
Diffstat (limited to 'drivers/video')
-rw-r--r-- | drivers/video/tegra/dc/dc.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/video/tegra/dc/dc.c b/drivers/video/tegra/dc/dc.c index 13c1028acaa8..7f079fd6fd86 100644 --- a/drivers/video/tegra/dc/dc.c +++ b/drivers/video/tegra/dc/dc.c @@ -1886,12 +1886,19 @@ static void tegra_dc_trigger_windows(struct tegra_dc *dc) val = tegra_dc_readl(dc, DC_CMD_STATE_CONTROL); for (i = 0; i < DC_N_WINDOWS; i++) { +#ifdef CONFIG_TEGRA_SIMULATION_PLATFORM + /* FIXME: this is not needed when the simulator + clears WIN_x_UPDATE bits as in HW */ + dc->windows[i].dirty = 0; + completed = 1; +#else if (!(val & (WIN_A_UPDATE << i))) { dc->windows[i].dirty = 0; completed = 1; } else { dirty = 1; } +#endif } if (!dirty) { |