I am using MPC8308erdb board and right now I want to have futher information about the GPIO in the CPU. What I want to do, is to access (write and read) the GPIO registers, to enable interruption... But I am confused when I look at the source code of the BSP and I guess you will help me.
My question is How is the GPIO handled by the drivers in the kernel? where is the GPIO driver defined? in which file? I ask these questions because I am a bit confuse. I see in the source code that we have ../drivers/gpio/gpiolib.c and we also have ../arch/powerpc/sysdev/mpc8xxx.c... And the question is which one must be used to handle the GPIO on MPC8308erdb board.
And can you explain me how to manage the GPIO? What I have to do, to change in the source code? Which driver do I have to use?
Thank you in advance.