Rockbox

This is the bug/patch tracker for Rockbox. Click here for more information.

Quick links: Bugs · Patches · Rockbox frontpage

Tasklist

FS#8420 - Cowon D2 initial work and drivers

Attached to Project: Rockbox
Opened by MichaelGiacomelli (saratoga) - Monday, 07 January 2008, 01:09 GMT+1
Last edited by Rob Purchase (shotofadds) - Tuesday, 15 January 2008, 00:05 GMT+1
Task Type Patches
Category Drivers
Status Closed
Assigned To No-one
Player type Another
Severity Low
Priority Normal
Reported Version current build
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Private No

Details

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)
Tuesday, 15 January 2008, 00:05 GMT+1
Reason for closing:  Accepted
Additional comments about closing:  Included in r16090
Comment by Rob Purchase (shotofadds) - Monday, 07 January 2008, 17:06 GMT+1
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: http://svn.openmoko.org/trunk/src/target/kernel/patches/gta01-pcf50606.patch ... actually no, it doesn't support touchscreen)
Comment by Rob Purchase (shotofadds) - Tuesday, 08 January 2008, 13:10 GMT+1
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, 23:59 GMT+1
Oops, a typo at i2c-target.h:35 was causing the crash: "=" should be replaced with "|=".

Loading...