AnsweredAssumed Answered

what`s the difference between fb_pix_fmt and interface_pix_fmt

Question asked by Edward Fu on Nov 23, 2017
Latest reply on Nov 26, 2017 by igorpadykov

uboot中的lcd参数: video=mxcfb0:dev=lcd,HUD-WVGA,if=RGB24,bpp=24

设备树:mxcfb1: fb@0 {
        compatible = "fsl,mxc_sdc_fb";
        disp_dev = "lcd";
        interface_pix_fmt = "RGB24";
        mode_str ="HUD-WVGA";
        default_bpp = <24>;
        int_clk = <0>;
        late_init = <0>;
        status = "disabled";
    };

   lcd@0 {
        compatible = "fsl,lcd";
        ipu_id = <0>;
        disp_id = <0>;
        default_ifmt = "RGB24";
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_ipu1>;
        status = "okay";
    };

在结合驱动文件: mxc_ipuv3_fb.c中的mxcfb_option_setup函数解析, 可以知道uboot中传递的参数bpp = 24用于确定fb_pix_fmt, 而uboot中的if = RGB24用于确定 interface_pix_fmt, 请问这两个有什么区别, 这个lcd屏与imx6硬件连接有关系吗?

Outcomes