mx5: Rename mx51_fb_init()
The ipuv3 driver is currently only used on mx51, but it can be extended to work on mx53 and mx6 as well. Rename mx51_fb_init(), so that it can be used by other SoCs. Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com> Acked-by: Jason Liu <r64343@freescale.com>
This commit is contained in:
parent
fff6ef72b3
commit
a1b0e190a3
@ -502,7 +502,7 @@ void lcd_iomux(void)
|
||||
|
||||
void lcd_enable(void)
|
||||
{
|
||||
int ret = mx51_fb_init(&claa_wvga, 1, IPU_PIX_FMT_RGB565);
|
||||
int ret = ipuv3_fb_init(&claa_wvga, 1, IPU_PIX_FMT_RGB565);
|
||||
if (ret)
|
||||
printf("LCD cannot be configured: %d\n", ret);
|
||||
}
|
||||
|
@ -604,7 +604,7 @@ void lcd_enable(void)
|
||||
gpio_set_value(2, 1);
|
||||
mxc_request_iomux(MX51_PIN_GPIO1_2, IOMUX_CONFIG_ALT0);
|
||||
|
||||
ret = mx51_fb_init(&nec_nl6448bc26_09c, 0, IPU_PIX_FMT_RGB666);
|
||||
ret = ipuv3_fb_init(&nec_nl6448bc26_09c, 0, IPU_PIX_FMT_RGB666);
|
||||
if (ret)
|
||||
puts("LCD cannot be configured\n");
|
||||
}
|
||||
|
@ -599,7 +599,7 @@ void video_set_lut(unsigned int index, /* color number */
|
||||
return;
|
||||
}
|
||||
|
||||
int mx51_fb_init(struct fb_videomode *mode, uint8_t disp, uint32_t pixfmt)
|
||||
int ipuv3_fb_init(struct fb_videomode *mode, uint8_t disp, uint32_t pixfmt)
|
||||
{
|
||||
gmode = mode;
|
||||
gdisp = disp;
|
||||
|
@ -76,6 +76,6 @@
|
||||
#define IPU_PIX_FMT_YVU422P fourcc('Y', 'V', '1', '6') /*< 16 YVU 4:2:2 */
|
||||
#define IPU_PIX_FMT_YUV422P fourcc('4', '2', '2', 'P') /*< 16 YUV 4:2:2 */
|
||||
|
||||
int mx51_fb_init(struct fb_videomode *mode, uint8_t disp, uint32_t pixfmt);
|
||||
int ipuv3_fb_init(struct fb_videomode *mode, uint8_t disp, uint32_t pixfmt);
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user