X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=src%2Ftarget%2Ffirmware%2Fcalypso%2Fbacklight.c;h=a18dcb914053c26cf577b0b1708dfbf541e00589;hb=71d21be87410f90e7f2129c02cb42e6c159d7aee;hp=e2ff29ccb356c75b0977f71dbe9fc531a9d99055;hpb=298b361b133a54f3b7c39d168e5028e69e736113;p=osmocom-bb.git diff --git a/src/target/firmware/calypso/backlight.c b/src/target/firmware/calypso/backlight.c index e2ff29c..a18dcb9 100644 --- a/src/target/firmware/calypso/backlight.c +++ b/src/target/firmware/calypso/backlight.c @@ -31,7 +31,7 @@ enum pwl_reg { PWL_LEVEL = 0, - PWL_CTRL = 2, + PWL_CTRL = 1, }; #define ASCONF_PWL_ENA (1 << 4) @@ -43,6 +43,7 @@ void bl_mode_pwl(int on) reg = readw(ASIC_CONF_REG); if (on) { + /* Enable pwl */ writeb(0x01, PWL_REG(PWL_CTRL)); /* Switch pin from LT to PWL */ reg |= ASCONF_PWL_ENA; @@ -51,6 +52,7 @@ void bl_mode_pwl(int on) /* Switch pin from PWL to LT */ reg |= ~ASCONF_PWL_ENA; writew(reg, ASIC_CONF_REG); + /* Disable pwl */ writeb(0x00, PWL_REG(PWL_CTRL)); } }