FS#8420 - Cowon D2 initial work and drivers

Attached to Project: Rockbox
Opened by MichaelGiacomelli (saratoga) - Monday, 07 January 2008, 00:09 GMT
Last edited by Rob Purchase (shotofadds) - Monday, 14 January 2008, 23:05 GMT
Task Type Patches
Category Drivers
Status Closed
Assigned To No-one
Operating System Another
Severity Low
Priority Normal
Reported Version Daily build (which?)
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No


User "shotofadds" requested that someone upload this for him, evidently due to some problem using filespray. His description:

"Once applied, configure should list a new target (33: Cowon D2) and its bootloader build should generate a rockbox.iaudio file suitable for uploading with tcctool. This consists of a simple test program with basic LCD, button and I2C drivers. Happy hacking!"

Once he has registered and provided his full name, we can see about turning this FS entry to him, and then committing his patch.

(edit: fixed 'Cowon' typo in title)
   D2.patch (63.2 KiB)
This task depends upon

Closed by  Rob Purchase (shotofadds)
Monday, 14 January 2008, 23:05 GMT
Reason for closing:  Accepted
Additional comments about closing:  Included in r16090
Comment by Rob Purchase (shotofadds) - Monday, 07 January 2008, 16:06 GMT
The following changes should be added before committing this patch:

- fix the TCCBOOT code in crt0.s (it's not modified from LOGIKDAX yet).
- implement i2c_read_multiple()

..and once those are done:

- plagiarise one of the (h300/iaudio) pcf50606 drivers, and add setting of backlight power/intensity and reading of the touchscreen ADCs.

(the OpenMoko code might be a help here: ... actually no, it doesn't support touchscreen)
Comment by Rob Purchase (shotofadds) - Tuesday, 08 January 2008, 12:10 GMT
There is an intermittent problem with the I2C code in this patch which can cause a hang/crash before the LCD is initialised. My previous revision does not hang, so I'm trying to track down the difference. Dirty workaround: comment out the two calls to pcf50606_write_reg() in lcd-cowond2.c, then boot the OF and press reset before running tcctool (this way the I2C commands have already been sent by the OF so we don't need to...)
Comment by Rob Purchase (shotofadds) - Tuesday, 08 January 2008, 22:59 GMT
Oops, a typo at i2c-target.h:35 was causing the crash: "=" should be replaced with "|=".