mirror of
https://github.com/ukui/kernel.git
synced 2026-03-09 10:07:04 -07:00
e6fedd4433
When creating dumb buffers with 32bpp and 24bit colour depth this is default mode return by drm_mode_legacy_fb_format. So we need to support this for common dumb buffers to just work. Signed-off-by: Emil Renner Berthing <kernel@esmil.dk>
Display Subsystem:(default FBdev) Steps switch to DRM: 1、Disable fbdev,close below config items: CONFIG_FB_STARFIVE=y CONFIG_FB_STARFIVE_HDMI_TDA998X=y CONFIG_FB_STARFIVE_VIDEO=y 2、open DRM hdmi pipeline,enable items: CONFIG_DRM_I2C_NXP_TDA998X=y CONFIG_DRM_I2C_NXP_TDA9950=y CONFIG_DRM_STARFIVE=y CONFIG_FRAMEBUFFER_CONSOLE=y Precautions:when use DRM hdmi pipeline,please make sure CONFIG_DRM_STARFIVE_MIPI_DSI is disable , or will cause color abnormal. 3、open DRM mipi pipeline enable items: CONFIG_PHY_M31_DPHY_RX0=y CONFIG_DRM_STARFIVE_MIPI_DSI=y change jh7100.dtsi display-encoder as below: display-encoder { compatible = "starfive,display-encoder"; encoder-type = <6>; //2-TMDS, 3-LVDS, 6-DSI, 8-DPI status = "okay"; ports { port@0 { endpoint { remote-endpoint = <&dsi_out_port>; }; }; port@1 { endpoint { remote-endpoint = <&crtc_0_out>; }; }; }; }; install libdrm: make buildroot_initramfs-menuconfig choose: BR2_PACKAGE_LIBDRM=y BR2_PACKAGE_LIBDRM_RADEON=y BR2_PACKAGE_LIBDRM_AMDGPU=y BR2_PACKAGE_LIBDRM_NOUVEAU=y BR2_PACKAGE_LIBDRM_ETNAVIV=y BR2_PACKAGE_LIBDRM_INSTALL_TESTS=y