diff options
Diffstat (limited to 'firmware/target/coldfire/iaudio/x5/pcf50606-x5.c')
-rw-r--r-- | firmware/target/coldfire/iaudio/x5/pcf50606-x5.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/firmware/target/coldfire/iaudio/x5/pcf50606-x5.c b/firmware/target/coldfire/iaudio/x5/pcf50606-x5.c index da13f1d65e..158e0fbbab 100644 --- a/firmware/target/coldfire/iaudio/x5/pcf50606-x5.c +++ b/firmware/target/coldfire/iaudio/x5/pcf50606-x5.c | |||
@@ -169,6 +169,12 @@ void pcf50606_init(void) | |||
169 | pcf50606_write(0x39, 0x00); /* GPOOD0 = green led OFF */ | 169 | pcf50606_write(0x39, 0x00); /* GPOOD0 = green led OFF */ |
170 | pcf50606_write(0x3a, 0x00); /* GPOOD1 = red led OFF */ | 170 | pcf50606_write(0x3a, 0x00); /* GPOOD1 = red led OFF */ |
171 | 171 | ||
172 | pcf50606_write(0x35, 0xf1); /* Backlight PWM = 7kHz 8/16 */ | 172 | /* D305A datasheet says PWM clock frequency should be 400Hz - 2000Hz so |
173 | pcf50606_write(0x38, 0x30); /* Backlight ON */ | 173 | * I changed it from 7kHz to 512Hz. The lower frequency looks the same. |
174 | * GPO1 is also inverted so that display brightness increases with PWM | ||
175 | * setting which also lets the X5 share the H300's | ||
176 | * set_backlight_brightness code. | ||
177 | */ | ||
178 | pcf50606_write(0x35, 0x11); /* Backlight PWM = 512Hz, 8/16, Active */ | ||
179 | pcf50606_write(0x38, 0xb0); /* Backlight ON, GPO1INV=1, GPO1ACT=011 */ | ||
174 | } | 180 | } |