From a4adc5e1bdf7b29a9386b7104b11be27ef08677d Mon Sep 17 00:00:00 2001 From: calamari Date: Sat, 24 Sep 2022 19:49:29 -0700 Subject: [PATCH] Support fx-9860G Slim backlight --- src/t6k11/t6k11.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/t6k11/t6k11.c b/src/t6k11/t6k11.c index 89fbc82..e4e2773 100644 --- a/src/t6k11/t6k11.c +++ b/src/t6k11/t6k11.c @@ -168,8 +168,16 @@ void t6k11_backlight(int setting) TODO: Document the PFC to remove these addresses */ if(isSH3()) { - port = (void *)0xa400012c; - mask = 0x80; + if (gint[HWCALC] == HWCALC_FX9860G_SLIM) + { + port = (void *)0xa4000126; + mask = 0x20; + } + else + { + port = (void *)0xa400012c; + mask = 0x80; + } } else {