Rockbox Development > New Ports

Cowon D2

<< < (153/194) > >>

GMelchett:
Ah, a build date. That fooled me.  Setting time in rockbox seems to work fine. It was there after a power-off-on cycle. When starting the original firmware, the date was in april 2014. The weird thing then was when I set the time+date back to the correct date+time with the original firmware, both rockbox and the firmware started to report the same date+time, the correct one.

I've updated my touchscreen patch in the tracker. I didn't update the touchscreen calibration code to calculate the hw parameters as well. Maybe it isn't needed.


Edit: After playing around with the unknown touchscreen chip, my guess is that it is an: TI TSC2003.
(http://focus.ti.com/docs/prod/folders/print/tsc2003.html)

shotofadds:

--- Quote from: GMelchett on October 13, 2009, 08:50:05 AM ---Ah, a build date. That fooled me.  Setting time in rockbox seems to work fine. It was there after a power-off-on cycle. When starting the original firmware, the date was in april 2014. The weird thing then was when I set the time+date back to the correct date+time with the original firmware, both rockbox and the firmware started to report the same date+time, the correct one.
--- End quote ---
It's very strange, but that's what the PCF50606 version does too. I don't understand it, especially since the Cowon firmware seems to access the RTC registers in exactly the same way we do. Needs some further investigation. >:(


--- Quote ---Edit: After playing around with the unknown touchscreen chip, my guess is that it is an: TI TSC2003.
(http://focus.ti.com/docs/prod/folders/print/tsc2003.html)

--- End quote ---

Well spotted. I've had a look at some similar TI devices and no others seem to match except the more recent TSC2007 (which includes a built in median/windowed average filter) - this might be more likely since you reported very little jitter in the results.

http://focus.ti.com/lit/ds/symlink/tsc2007.pdf

GMelchett:

Yes, indeed strange regarding the date+time.

I though I should try to figure out if any IRQ is connected to the touchscreen device.
Which IRQs are known? Any IRQs that are shared? Which are currently in use by drivers?
I've looked that the list in system-tcc780x.c, some I can guess what they are used for
some are not as clear.
@shotofadds: If you have a time, an IRQ list on the wiki would be welcome! Thanks!

shotofadds:
Have a look at the TCC7801 datasheet (there was a link floating around here a while ago, if you can't find it I'll send you one if it still works). That'll tell you if an IRQ can be fired from C26. If not don't worry about it as the current implementation is fine.

As for current IRQ usage, I think we only care about TIMER0 (tick), DAI_TX (I2S) and EXT3 (PCF50606) at the moment, although that list is off the top of my head, so I could be wrong. Most are only listed for completeness, with a default "unhandled" handler.

I think we should be responding to the PCF50635 interrupts (it should be on EXT3 like the PCF50606), especially since it will give us an easy way to detect USB/charger insertion.

We're currently using C26 for that (since it worked on older hardware...) but clearly that isn't going to work if the GPIO is now used for the touchscreen.  Could you go into the Debug > HW info screen and see if any GPIOs change when you insert the AC adapter or USB cable?

GMelchett:

There is a small flaw in last nights touchscreen patch. Since the "last_btn = btn" ended up inside if(tsc200x_is_pressed()) {} the latest button will be repeated on and on until you press somewhere else and that new button gets repeated on and on. IE the line must be outside the if.

I would really appreciate if you could mail me the tcc7801 datasheet. The link on the forum is dead, or rather Telechips now require a password for the files, and the datasheet is nowhere else to be found.

Thanks for the IRQ information. So there is no IRQ for key press/release. Also, finding out which IRQ that is connected to TSC2007 should be of interested. Although pulling works fine.

I tried many times to see if any GPIO pin changed in the "Hardware info" screen, but none did
when I inserted/removed the USB cable.




Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version