Queries regarding I2C and GPIO driver for Freescale MPC5121e in Linux 2.6.24 of BSP: MPC512xADS_20090603-ltib.iso
Uma Kanta Patro
upatro at implantaire.com
Tue Sep 8 20:55:30 EST 2009
Hi all,
I am a newbie to the powerpc linux kernel, but I have worked
on some drivers in arm architecture. I am finding powerpc architecture to be
fully different than that.
I am working on Freescale MPC5121e with the BSP MPC512xADS_20090603-ltib.iso
running in it on the ADS512101 Rev4.1 development kit.
Can anyone help me in finding some documentation for understanding and
working on the powerpc kernel. Any links to the powerpc forums will also be
appreciable.
-> Currently I am going to develop an I2C client driver for one slave
microcontroller of our project.
I have some knowledge in the I2C client driver making(legacy style and new
style).
I made a basic I2C client driver to probe for the chip address and for
testing I gave it the chip address 0x68(I2C chip address of the M4T162 RTC,
present on the board).
But while inserting my driver I am getting failure message for the detection
of my chip.
So I would like to know what other formalities am I lagging in my I2C chip
driver.
-> Also I am in a need for the GPIO driver for my controller ot get
interrupt on ht estate change. When I searched in the kernel code I could
not find any procedure to do that, also I could not find out the procedure
to access either any GPIO pin macros or any register to remap with
ioremap(). So please guide me in finding the proper way to do the GPIO
accessing and interrupt registration.
Will the ioremap() work on powerpc arch? If yes where can I find the memory
mapping(register definitions) to use for my GPIO driver making.
Thanks for patience in reading my queries.
Any help is appreciable.
Thanks & Regards,
Uma
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20090908/54c1e958/attachment.htm>
More information about the Linuxppc-dev
mailing list