Hello Pavel, Thank you for answer.
But this is all for user space applications. I need to make the GPIO's available through kernel module. Also, I cannot figure out the pins numbering for T1040. In one of the links, there is an equation for that (other cpu):
with XX being the number of the desired pin. To obtain the correct number you have to calculate it from the pin name (like PH18)[1]:
(position of letter in alphabet - 1) * 32 + pin number
I would appreciate your further support.