Commit a1b0e190a3c0c7e1a40877218804a656e45194be

Authored by Fabio Estevam
Committed by Anatolij Gustschin
1 parent fff6ef72b3

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>

Showing 4 changed files with 4 additions and 4 deletions Side-by-side Diff

board/freescale/mx51evk/mx51evk.c
... ... @@ -502,7 +502,7 @@
502 502  
503 503 void lcd_enable(void)
504 504 {
505   - int ret = mx51_fb_init(&claa_wvga, 1, IPU_PIX_FMT_RGB565);
  505 + int ret = ipuv3_fb_init(&claa_wvga, 1, IPU_PIX_FMT_RGB565);
506 506 if (ret)
507 507 printf("LCD cannot be configured: %d\n", ret);
508 508 }
board/ttcontrol/vision2/vision2.c
... ... @@ -604,7 +604,7 @@
604 604 gpio_set_value(2, 1);
605 605 mxc_request_iomux(MX51_PIN_GPIO1_2, IOMUX_CONFIG_ALT0);
606 606  
607   - ret = mx51_fb_init(&nec_nl6448bc26_09c, 0, IPU_PIX_FMT_RGB666);
  607 + ret = ipuv3_fb_init(&nec_nl6448bc26_09c, 0, IPU_PIX_FMT_RGB666);
608 608 if (ret)
609 609 puts("LCD cannot be configured\n");
610 610 }
drivers/video/mxc_ipuv3_fb.c
... ... @@ -599,7 +599,7 @@
599 599 return;
600 600 }
601 601  
602   -int mx51_fb_init(struct fb_videomode *mode, uint8_t disp, uint32_t pixfmt)
  602 +int ipuv3_fb_init(struct fb_videomode *mode, uint8_t disp, uint32_t pixfmt)
603 603 {
604 604 gmode = mode;
605 605 gdisp = disp;
include/ipu_pixfmt.h
... ... @@ -76,7 +76,7 @@
76 76 #define IPU_PIX_FMT_YVU422P fourcc('Y', 'V', '1', '6') /*< 16 YVU 4:2:2 */
77 77 #define IPU_PIX_FMT_YUV422P fourcc('4', '2', '2', 'P') /*< 16 YUV 4:2:2 */
78 78  
79   -int mx51_fb_init(struct fb_videomode *mode, uint8_t disp, uint32_t pixfmt);
  79 +int ipuv3_fb_init(struct fb_videomode *mode, uint8_t disp, uint32_t pixfmt);
80 80  
81 81 #endif