changeset 207:c3d559809cdc

physical backlight on/off control on Luna
author Mychaela Falconia <falcon@freecalypso.org>
date Tue, 06 Apr 2021 02:31:47 +0000
parents dc9ce599f7e7
children 6fb17a32c5bd
files src/condat/com/src/driver/light.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/condat/com/src/driver/light.c	Tue Apr 06 01:38:29 2021 +0000
+++ b/src/condat/com/src/driver/light.c	Tue Apr 06 02:31:47 2021 +0000
@@ -221,6 +221,8 @@
     #ifdef CONFIG_TARGET_LUNA
 	/* turn on PWL */
 	*(volatile SYS_UWORD8 *)0xFFFE8000 = level;
+	/* turn on physical backlight */
+	AI_SetBit(9);
     #elif defined(CONFIG_TARGET_C139)
 	AI_SetBit(1);
     #endif
@@ -252,6 +254,8 @@
     #ifdef CONFIG_TARGET_LUNA
 	/* turn off PWL */
 	*(volatile SYS_UWORD8 *)0xFFFE8000 = 0;
+	/* turn off physical backlight */
+	AI_ResetBit(9);
     #elif defined(CONFIG_TARGET_C139)
 	AI_ResetBit(1);
     #endif