aboutsummaryrefslogtreecommitdiff
path: root/sys/arm/freescale/imx/imx51_ipuv3_fbd.c
diff options
context:
space:
mode:
authorJean-Sébastien Pédron <dumbbell@FreeBSD.org>2014-08-10 22:24:14 +0000
committerJean-Sébastien Pédron <dumbbell@FreeBSD.org>2014-08-10 22:24:14 +0000
commitca885fdfdec2a2abe1237a95b00a6492565f0c12 (patch)
treec36b4437a0586bc99e501a687c6cc5809059caa5 /sys/arm/freescale/imx/imx51_ipuv3_fbd.c
parentfd71d3ebeed399892ef1f286cd7ea1209dd1f601 (diff)
downloadsrc-ca885fdfdec2a2abe1237a95b00a6492565f0c12.tar.gz
src-ca885fdfdec2a2abe1237a95b00a6492565f0c12.zip
Fix two files forgotten in r269783 (vt_generate_cons_palette)
Reported by: bz MFC after: 1 week MFC with: 269783
Notes
Notes: svn path=/head/; revision=269791
Diffstat (limited to 'sys/arm/freescale/imx/imx51_ipuv3_fbd.c')
-rw-r--r--sys/arm/freescale/imx/imx51_ipuv3_fbd.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/arm/freescale/imx/imx51_ipuv3_fbd.c b/sys/arm/freescale/imx/imx51_ipuv3_fbd.c
index 25d17c7aa180..48282407e9a1 100644
--- a/sys/arm/freescale/imx/imx51_ipuv3_fbd.c
+++ b/sys/arm/freescale/imx/imx51_ipuv3_fbd.c
@@ -163,18 +163,18 @@ ipu3_fb_init_cmap(uint32_t *cmap, int bytespp)
switch (bytespp) {
case 8:
- return (vt_generate_vga_palette(cmap, COLOR_FORMAT_RGB,
+ return (vt_generate_cons_palette(cmap, COLOR_FORMAT_RGB,
0x7, 5, 0x7, 2, 0x3, 0));
case 15:
- return (vt_generate_vga_palette(cmap, COLOR_FORMAT_RGB,
+ return (vt_generate_cons_palette(cmap, COLOR_FORMAT_RGB,
0x1f, 10, 0x1f, 5, 0x1f, 0));
case 16:
- return (vt_generate_vga_palette(cmap, COLOR_FORMAT_RGB,
+ return (vt_generate_cons_palette(cmap, COLOR_FORMAT_RGB,
0x1f, 11, 0x3f, 5, 0x1f, 0));
case 24:
case 32: /* Ignore alpha. */
- return (vt_generate_vga_palette(cmap, COLOR_FORMAT_RGB,
- 0xff, 16, 0xff, 8, 0xff, 0));
+ return (vt_generate_cons_palette(cmap, COLOR_FORMAT_RGB,
+ 0xff, 0, 0xff, 8, 0xff, 16));
default:
return (1);
}