我按下面配置AM335内核的LCD但是,内核启动没有logo
配置dts文件(dts文件配置了对应的LCD引脚):
dts中加入LCD的背光控制
backlight {
compatible = "pwm-backlight";
pwms = <&ecap2 0 50000 PWM_POLARITY_INVERTED>;
brightness-levels = <0 58 61 66 75 90 125 170 255>;
default-brightness-level = <8>;
};
LCD的参数配置:
panel {
compatible = "ti,tilcdc,panel";
pinctrl-names = "default", "sleep";
pinctrl-0 = <&lcd_pins_default>;
pinctrl-1 = <&lcd_pins_sleep>;
status = "okay";
panel-info {
ac-bias = <255>;
ac-bias-intrpt = <0>;
dma-burst-sz = <16>;
bpp = <32>;
fdd = <0x80>;
sync-edge = <0>;
sync-ctrl = <1>;
raster-order = <0>;
fifo-th = <0>;
};
display-timings {
480x272 {
hactive = <480>;
vactive = <272>;
hback-porch = <43>;
hfront-porch = <8>;
hsync-len = <4>;
vback-porch = <12>;
vfront-porch = <4>;
vsync-len = <10>;
clock-frequency = <9000000>;
hsync-active = <0>;
vsync-active = <0>;
};
};
};
使能LCD
&lcdc {
status = "okay";
};
内核menuconfig的配置:
PWM背光:
> Device Drivers > Pulse-Width Modulation (PWM) Support
<*> ECAP PWM support
<*> EHRPWM PWM support
LCD驱动配置:
> Device Drivers > Graphics support
<*> Direct Rendering Manager (XFree86 4.1.0 and higher DRI support
<*> DRM Support for TI LCDC Display Controller
> Device Drivers > Graphics support > Support for frame buffer devices
[*] Simple framebuffer support
--- Backlight & LCD device support │ │
│ │ < > Lowlevel LCD controls │ │
│ │ -*- Lowlevel Backlight controls │ │
│ │ <*> Generic (aka Sharp Corgi) Backlight Driver │ │
│ │ <*> Generic PWM based Backlight Driver
<*> Generic GPIO based Backlight Driver
> Device Drivers > Graphics support > Console display driver support
<*> Framebuffer Console support │ │
│ │ -*- Map the console to the primary display device │ │
│ │ [*] Framebuffer Console Rotation
--- Bootup logo │ │
│ │ [*] Standard black and white Linux logo │ │
│ │ [ ] Standard 16-color Linux logo │ │
│ │ [*] Standard 224-color Linux logo
这样配置之后编译内核和dts文件,下载入开发板,没有内核的启动logo显示,是我哪里没配置好吗?
PS: 在启动过程中屏膜一闪而过,之后就是黑屏了。