Skip to content
Permalink
Browse files

sunxi: enable LCD power on Pinebook

The Pinebook needs to enable the power rails that enable the display,
so that U-Boot can easily show something early on the screen without
needing to drive the PMIC.
Do this in ATF when the DT name indicates this is a Pinebook.

Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
  • Loading branch information
anarsoul authored and Andre-ARM committed Dec 24, 2017
1 parent cbb89f3 commit ae78724247a01560164d607ed66db111c74d8df0
Showing with 13 additions and 0 deletions.
  1. +13 −0 plat/sun50iw1p1/sunxi_power.c
@@ -266,6 +266,19 @@ static int pmic_setup(const char *dt_name)
sunxi_pmic_write(0x24, 0x2c);
}
}

/* Enable the LCD power planes to get the display up early. */
if (!strcmp(dt_name, "sun50i-a64-pinebook")) {
sunxi_pmic_write(0x16, 0x12); /* DLDO2 = VCC-MIPI = 2.5V */
ret = sunxi_pmic_read(0x12);
sunxi_pmic_write(0x12, ret | 0x10);

sunxi_pmic_write(0x1c, 0x0a); /* FLDO1 = HSIC = 1.2V */
ret = sunxi_pmic_read(0x13);
sunxi_pmic_write(0x13, ret | 0x4);

NOTICE("PMIC: enabled Pinebook display\n");
}

sunxi_pmic_write(0x15, 0x1a); /* DLDO1 = VCC3V3_HDMI voltage = 3.3V */

0 comments on commit ae78724

Please sign in to comment.
You can’t perform that action at this time.