px30-andrioid8.1在启动时关闭logo,只显示andriod动画logo

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>;
	};

你可能感兴趣的:(px30-andrioid8.1在启动时关闭logo,只显示andriod动画logo)