mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 11:46:19 +00:00
sh7760fb: write colormap value to hardware
The computed color value is never actually written to hardware colormap register. Signed-off-by: Manuel 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: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
7fcba05437
commit
c27ef92d8e
1 changed files with 1 additions and 0 deletions
|
@ -152,6 +152,7 @@ static int sh7760fb_setcmap(struct fb_cmap *cmap, struct fb_info *info)
|
|||
col |= ((*g) & 0xff) << 8;
|
||||
col |= ((*b) & 0xff);
|
||||
col &= SH7760FB_PALETTE_MASK;
|
||||
iowrite32(col, par->base + LDPR(s));
|
||||
|
||||
if (s < 16)
|
||||
((u32 *) (info->pseudo_palette))[s] = s;
|
||||
|
|
Loading…
Reference in a new issue