Queries regarding I2C and GPIO driver for Freescale MPC5121e in Linux2.6.24 of BSP: MPC512xADS_20090603-ltib.iso

Chen Hongjun-R66092 hong-jun.chen at freescale.com
Wed Sep 9 10:08:55 EST 2009


One I2C driver has been included in 0603 bsp, you can refer to it.
 
It has no specific driver for GPIO, but you can find some initializing
code for GPIO in arch/powerpc/platforms/512x/mpc5125_ads.c. and
mpc512x_pm_test.c.



________________________________

	From:
linuxppc-dev-bounces+hong-jun.chen=freescale.com at lists.ozlabs.org
[mailto:linuxppc-dev-bounces+hong-jun.chen=freescale.com at lists.ozlabs.or
g] On Behalf Of Uma Kanta Patro
	Sent: Tuesday, September 08, 2009 6:56 PM
	To: linuxppc-dev at lists.ozlabs.org
	Subject: Queries regarding I2C and GPIO driver for Freescale
MPC5121e in Linux2.6.24 of BSP: MPC512xADS_20090603-ltib.iso
	
	

	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/20090909/c625151c/attachment.htm>


More information about the Linuxppc-dev mailing list