Commit c27ef92d authored by Manuel Lauss's avatar Manuel Lauss Committed by Linus Torvalds

sh7760fb: write colormap value to hardware

The computed color value is never actually written to hardware
colormap register.
Signed-off-by: default avatarManuel Lauss <mano@roarinelk.homelinux.net>
Cc: Nobuhiro Iwamatsu <iwamatsu.nobuhiro@renesas.com>
Cc: Munakata Hisao <munakata.hisao@renesas.com>
Cc: Paul Mundt <lethal@linux-sh.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 7fcba054
...@@ -152,6 +152,7 @@ static int sh7760fb_setcmap(struct fb_cmap *cmap, struct fb_info *info) ...@@ -152,6 +152,7 @@ static int sh7760fb_setcmap(struct fb_cmap *cmap, struct fb_info *info)
col |= ((*g) & 0xff) << 8; col |= ((*g) & 0xff) << 8;
col |= ((*b) & 0xff); col |= ((*b) & 0xff);
col &= SH7760FB_PALETTE_MASK; col &= SH7760FB_PALETTE_MASK;
iowrite32(col, par->base + LDPR(s));
if (s < 16) if (s < 16)
((u32 *) (info->pseudo_palette))[s] = s; ((u32 *) (info->pseudo_palette))[s] = s;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment