lilzz
Posts: 411
Joined: Sat Nov 30, 2013 5:27 pm

Does Pi use gpio driver?

Thu Nov 13, 2014 6:46 pm

https://github.com/raspberrypi/linux/tr ... ivers/gpio


I don't see any gpio specifically for the pi?

ShiftPlusOne
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 6229
Joined: Fri Jul 29, 2011 5:36 pm
Location: The unfashionable end of the western spiral arm of the Galaxy

Re: Does Pi use gpio driver?

Thu Nov 13, 2014 6:51 pm


lilzz
Posts: 411
Joined: Sat Nov 30, 2013 5:27 pm

Re: Does Pi use gpio driver?

Thu Nov 13, 2014 6:54 pm

thanks, if that bcm2708_gpio.c is not available, can I use the generic gpiolib instead under the drivers/gpio folder?
this is a general question because I see a lot of chipsets outside of broad com do not provide a specific gpio file.

ShiftPlusOne
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 6229
Joined: Fri Jul 29, 2011 5:36 pm
Location: The unfashionable end of the western spiral arm of the Galaxy

Re: Does Pi use gpio driver?

Thu Nov 13, 2014 6:57 pm

As with the other thread, please provide context. Are you trying to get support for a pi-like knock-off sbc?

lilzz
Posts: 411
Joined: Sat Nov 30, 2013 5:27 pm

Re: Does Pi use gpio driver?

Thu Nov 13, 2014 7:16 pm

ShiftPlusOne wrote:As with the other thread, please provide context. Are you trying to get support for a pi-like knock-off sbc?
just for learning process as I look at other stuffs and I do comparison. I don't have any other system on hand besides the Pi.

ShiftPlusOne
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 6229
Joined: Fri Jul 29, 2011 5:36 pm
Location: The unfashionable end of the western spiral arm of the Galaxy

Re: Does Pi use gpio driver?

Thu Nov 13, 2014 7:26 pm

That makes sense. I suggest you read the information at the top of the generic gpio driver. It's just there for people who write their own GPIO hardware and perhaps as a reference. How many platforms actually use it, I don't know. I suspect many platforms don't have a specific gpio driver simply because they don't need one as all they use is PCI and such and whatever gpio is present has a dedicated purpose, so there's no need to change anything.

Return to “C/C++”