Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - GPIO Crownbay: (5 Items)
   
GPIO Crownbay  
Hi,

Has anybody used the GPIO in Crownbay Intel Topcliff?

Thanks
Regards
Re: GPIO Crownbay  
Hi again !

I'm trying to develop a simple driver for managing GPIO in Intel Topcliff. I can attach PCI GPIO subsystem, and it 
suppose that now I can map mem address...so I can read and write. The first approach is to read the input. I have put a 
pin to ground, so it's suppose I should read FFE, but I always read 0xFFF. It's like there was someting wrong in the 
memory mapping or so. 
Once I attach I have this information
---
Aperture 1: Base 0xd0157000 Length 64 bytes Type MEM
---
So I mmap_device_memory to a volatile uint32_t pointer. At this point If I do: 

data = *((volatile uint32_t*)((uintptr_t)memMap+GPIO_PORT_INPUT));

I should get 0xffe, but got 0xfff

Did I miss something? 
The port mode it's in input mode, irq disabled..

Thanks for your help !
Re: GPIO Crownbay  
Hi Iván, did you ever get the GPIO working?
Re: GPIO Crownbay  
Hi,

Yes, I don't have the source code with me but I could use INPUT and OUTPUT. If you are interested I can take a look at 
the code to tell you how I did it

Best Regards !
Re: GPIO Crownbay  
Hi Ivan,

We are using the Kontron COMe mTT10 which has the EG20T topcliff PCH (not sure what board you were using) and uses the 
EG20T GPIO to provide 4 off GPI and 4 off GPO which, to add confusion, share pins with an SD card interface.  Anything 
you have to help would be appreciated, known working code for the EG20T GPIO gets me one step closer to working GPIO on 
the COMe mTT10 ...

Thanks!