diff options
author | Dima Zavin <dima@android.com> | 2011-03-02 16:16:36 -0500 |
---|---|---|
committer | David Brown <davidb@codeaurora.org> | 2011-03-02 16:43:15 -0500 |
commit | b0a679326ce90e65779178906df5b8b6180163d6 (patch) | |
tree | 27fd11f34cdf1fdc880730a2c22b59aeba718276 /drivers/video/msm/msm_fb.c | |
parent | bd32344a6baa8baac9c2b3e9c6c649cc4ed53920 (diff) |
video: msmfb: Put the partial update magic value into the fix_screen struct.
This can then be tested by userspace to see if the capability is supported.
Userspace cannot rely on that value being left in var_screen, since userspace
itself can change it.
Signed-off-by: Dima Zavin <dima@android.com>
Signed-off-by: Carl Vanderlip <carlv@codeaurora.org>
Signed-off-by: David Brown <davidb@codeaurora.org>
Diffstat (limited to 'drivers/video/msm/msm_fb.c')
-rw-r--r-- | drivers/video/msm/msm_fb.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/video/msm/msm_fb.c b/drivers/video/msm/msm_fb.c index 5436aeb94456..fe5efe59d5c5 100644 --- a/drivers/video/msm/msm_fb.c +++ b/drivers/video/msm/msm_fb.c | |||
@@ -469,6 +469,18 @@ static void setup_fb_info(struct msmfb_info *msmfb) | |||
469 | fb_info->var.yoffset = 0; | 469 | fb_info->var.yoffset = 0; |
470 | 470 | ||
471 | if (msmfb->panel->caps & MSMFB_CAP_PARTIAL_UPDATES) { | 471 | if (msmfb->panel->caps & MSMFB_CAP_PARTIAL_UPDATES) { |
472 | /* | ||
473 | * Set the param in the fixed screen, so userspace can't | ||
474 | * change it. This will be used to check for the | ||
475 | * capability. | ||
476 | */ | ||
477 | fb_info->fix.reserved[0] = 0x5444; | ||
478 | fb_info->fix.reserved[1] = 0x5055; | ||
479 | |||
480 | /* | ||
481 | * This preloads the value so that if userspace doesn't | ||
482 | * change it, it will be a full update | ||
483 | */ | ||
472 | fb_info->var.reserved[0] = 0x54445055; | 484 | fb_info->var.reserved[0] = 0x54445055; |
473 | fb_info->var.reserved[1] = 0; | 485 | fb_info->var.reserved[1] = 0; |
474 | fb_info->var.reserved[2] = (uint16_t)msmfb->xres | | 486 | fb_info->var.reserved[2] = (uint16_t)msmfb->xres | |