dev builds
themes manual
device status forums
mailing lists
IRC bugs
dev guide

Rockbox mail archive

Subject: X5 lcd

X5 lcd

From: RaeNye <>
Date: Tue, 25 Apr 2006 02:05:48 +0200


During the disassembly of the X5 preloader I'm been going over the low-level
stuff, and I saw two interesting points:

1. LCD init in lcd-x5.c is somewhat different; see the corrected routine at
the end
(I'll make a real diff of it once my linux reestablishes awareness of grub
on its boot sector)

2. Backlight brightness is modified by setting the backlight PWM:

pcf50606_write(0x35, 0xFF-(level<<1)); // level = 0..10, cowon uses level=5

So we can support backlight brightness on X5 (prolly in H3x0 too).

Slowly but surely,


/* LCD init
 * These settings are taken from the original X5 firmware
void lcd_init_device(void)

    /* LCD Reset */
    and_l(~0x00000010, &GPIO1_OUT);
    or_l(0x00000010, &GPIO1_ENABLE);
    or_l(0x00000010, &GPIO1_FUNCTION);
    or_l(0x00000010, &GPIO1_OUT);


    lcd_write_reg(0, 0x0001);
    lcd_write_reg(0x0d, 0x0401);
    lcd_write_reg(0x0e, 0x321e);
    lcd_write_reg(0x01, 0x0313); // was: 0x0113
    lcd_write_reg(0x02, 0x0700);
    lcd_write_reg(0x05, 0x9018); // was: 0x9038
    lcd_write_reg(0x06, 0x0000);
    lcd_write_reg(0x0b, 0x4000);
    lcd_write_reg(0x36,0x0000); // was: 0x0407
    lcd_write_reg(0x0f,0x0000); // was: 0x0002
    lcd_write_reg(0x17,0x0000); // was: 0x9f00


    lcd_write_reg(0x0e,0x281e + (5<<9)); // was: 0x3318

Received on 2006-04-25

Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy