赞
踩
uboot
阶段:
在px30_android-8.1\uboot\drivers\video\pwm_backlight.c
中对
dm_gpio_set_value(&priv->enable, 0);
设值,0
表示uboot
阶段不开起gpio
使能,效果为uboot
阶段黑屏达到不显示logo
的作用
static int pwm_backlight_enable(struct udevice *dev)
{
->
->
->
->
->
if (dm_gpio_is_valid(&priv->enable))
dm_gpio_set_value(&priv->enable, 0); //uboot不开起gpio使能,效果不显示logo
//dm_gpio_set_value(&priv->enable, 1);
return 0;
}
kernel
阶段:
在px30_android-8.1\kernel\arch\arm64\boot\dts\rockchip\px30-evb-ddr3-v10-096-rk618-1920x1080-lvds.dts
中对
default-brightness-level = <0>;//200
的初始值设置为0
backlight: backlight {
compatible = "pwm-backlight";
power-supply = <&power_bl>;
pwms = <&pwm2 0 25000 1>;
brightness-levels = <
0 1 2 3 4 5 6 7
->
->
->
->
248 249 250 251 252 253 254 255>;
default-brightness-level = <0>;//200
enable-gpios = <&gpio0 RK_PA0 GPIO_ACTIVE_HIGH>;
};
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。