MyMPx.org

MyMPx.org (http://mympx.org/forum/)
-   General Discussion (http://mympx.org/forum/general-discussion/)
-   -   Hooray!!! Rockchip SDK! (http://mympx.org/forum/general-discussion/43348-hooray-rockchip-sdk.html)

flasher86 10th Sep 2009 6:14 am

I'll make photos and post them later.

But how the data is transfered between the other chip? Does it uses the whole variable GPIO_PDATx or just one bit of this var depending on the pin used? Or do you config which pins they are by setting GPIO_PCONx??

NemesiS2009 10th Sep 2009 7:35 am

No, it dont use whole variable GPIO_PDATx bits, keyboard chip uses some of them. And yes I config which pins they are by setting GPIO_PCONx, thats why I need to know how do they connects to the CPU. Your keyboard chip uses I2C bus to comunicate with CPU about it you can read here

flasher86 10th Sep 2009 7:40 am

Ok, I will post pictures, but what if I tell you the values of the GPIO_PCONx from working original firmware? I can read them out using RKP platform. I did that with GPIO_PCON0 and put that value to the SDK source and now finally POWER button responses.

Maybe you can figure out which pins are used by this value?

Even if not, maybe this will help you somehow:
GPIO_PCON0 = 22822
GPIO_PDAT0 = 202 - 252 (its the value to set the level of backlight of the keyboard, dont confuse it with lcd backlight also its the value of POWER button)
GPIO_PCON1 = 9229
GPIO_PDAT1 = 151 (and sometimes 22 but rarely)
GPIO_PCON2A = 66
GPIO_PCON2B = 3003
GPIO_PDAT2 = 61116 and 53035 changing between every 1 ms (sometimes there is some else value 61199 and some that I didnt put down on paper)

Values PCON0, PCON1, PCON2A and PCON2B are steady, they do not change, while others seem to be changing all the time.
btw, all the values are decimals, not hex.

NemesiS2009 10th Sep 2009 7:58 am

the power button responses because it connects straight to the GPIO_PCON0 pin, you can tell me the value of it that I could include it in sources, but with I2C interfase is not that simple.

flasher86 10th Sep 2009 8:23 am

ok, I will make a photos then

NemesiS2009 10th Sep 2009 8:39 am

if these values are corect, then it seems that your original firmware keyboard driver uses interrupts to drive the keyboard chip, it whill take time to figure out how to work with CPU interrupts first.

flasher86 10th Sep 2009 8:58 am

PHP Code:

unsigned int   imask_tmp;

read_creg(%imaskimask_tmp); //Disable Interrupt
bitclear_creg(%imask15); 

 
write_creg(%imaskimask_tmp); //Enable Interrupt 

is this what you're looking for?

NemesiS2009 10th Sep 2009 9:13 am

1 Attachment(s)
No, it is part of 1 of 4 interrupts configuration, if 1 of these interupts are enabled and used by hardware interrupt request, then CPU goes to that interrupt function and executes it, and I need to figure out how to write this function. Rockchip is like a computer CPU, like Pentium 1 at least :D

By the way, if you dont know how to use the DEC values, or asign them with the rockchip CPU datasheet file, I made a simple explanation in attachment, it whill be intresting for everyone.

knob 10th Sep 2009 1:54 pm

Gulp! all I can say is I'm glad I don't have a touch screen Rockchip. I just hope you don't break your player! :-)

flasher86 10th Sep 2009 2:34 pm

Hmmm, thanks Nemesis. I know how to manipulate with hex dec and bin, but actually I didn't know it reacts with hardware. I am a high-level programmer, its hard for me to understand low-level operations and their relations to the electronics and such. I hope I will get into this, because such knowledge is useful as hell!

I regret I bought a player with touchpad, but at that time it was the best player on the market. It was the only one which supported AVI instead of AMV and MTV. So I thought touchpad will be great too, but its not, its even tiresome. Touchpad often gets crazy in extreme temperatures. Winter outside, or Summer exposed to sun and touchpad barely works.

I made some photos. As you can see I don't have full physical access to it. On the first one I figured out (I hope I was precise and did not make a mistake, though i might be wrong by one pin to the left or right) to which pins it is connected.

don't know why, but something with links is broken (it linked to thumbs only), here they are again:
http://img245.imageshack.us/img245/6664/connections.png
http://img16.imageshack.us/img16/2096/dsc00345v.jpg
http://img6.imageshack.us/img6/73/dsc00346kw.jpg
http://img14.imageshack.us/img14/7256/dsc00354lt.jpg

http://img245.imageshack.us/img245/6...ections.th.png
http://img16.imageshack.us/img16/2096/dsc00345v.th.jpg
http://img6.imageshack.us/img6/73/dsc00346kw.th.jpg
http://img14.imageshack.us/img14/7256/dsc00354lt.th.jpg


All times are GMT -7. The time now is 8:38 pm.

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.6.0 RC 2