ref: 29a6cbf7ee601665c7ca204385d96a6c2a3080d8
parent: c539d64d22a0fdef1bd044a6e28e02a6bcfd0adf
author: cinap_lenrek <[email protected]>
date: Sat Jul 9 10:13:07 EDT 2022
imx8: turn backlight off when blanking
--- a/sys/src/9/imx8/lcd.c
+++ b/sys/src/9/imx8/lcd.c
@@ -813,6 +813,12 @@
}
void
+blankscreen(int blank)
+{
+ gpioout(GPIO_PIN(1, 10), blank == 0);
+}
+
+void
lcdinit(void)
{
struct dsi_cfg dsi_cfg;
--- a/sys/src/9/imx8/screen.c
+++ b/sys/src/9/imx8/screen.c
@@ -178,11 +178,6 @@
return 0;
}
-void
-blankscreen(int)
-{
-}
-
static void
myscreenputs(char *s, int n)
{