<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:v = 
"urn:schemas-microsoft-com:vml" xmlns:o = 
"urn:schemas-microsoft-com:office:office" xmlns:w = 
"urn:schemas-microsoft-com:office:word" xmlns:m = 
"http://schemas.microsoft.com/office/2004/12/omml"><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3562" name=GENERATOR>
<STYLE>@font-face {
        font-family: Batang;
}
@font-face {
        font-family: Batang;
}
@font-face {
        font-family: Calibri;
}
@font-face {
        font-family: @Batang;
}
@page Section1 {size: 8.5in 11.0in; margin: 1.0in 1.0in 1.0in 1.0in; }
P.MsoNormal {
        FONT-SIZE: 11pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Calibri","sans-serif"
}
LI.MsoNormal {
        FONT-SIZE: 11pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Calibri","sans-serif"
}
DIV.MsoNormal {
        FONT-SIZE: 11pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Calibri","sans-serif"
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline; mso-style-priority: 99
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline; mso-style-priority: 99
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline; mso-style-priority: 99
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline; mso-style-priority: 99
}
SPAN.EmailStyle17 {
        COLOR: windowtext; FONT-FAMILY: "Calibri","sans-serif"; mso-style-type: personal-compose
}
.MsoChpDefault {
        mso-style-type: export-only
}
DIV.Section1 {
        page: Section1
}
</STYLE>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]--></HEAD>
<BODY lang=EN-US vLink=purple link=blue>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=900410000-09092009>One I2C driver has been included in 0603 bsp, you can 
refer to it.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=900410000-09092009></SPAN></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=900410000-09092009>It has no&nbsp;specific driver for GPIO, but you can 
find some initializing&nbsp;code for GPIO in 
arch/powerpc/platforms/512x/mpc5125_ads.c. and 
mpc512x_pm_test.c.</SPAN></FONT></DIV><FONT face=Arial color=#0000ff 
size=2></FONT><BR>
<BLOCKQUOTE dir=ltr 
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
  <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
  <HR tabIndex=-1>
  <FONT face=Tahoma size=2><B>From:</B> 
  linuxppc-dev-bounces+hong-jun.chen=freescale.com@lists.ozlabs.org 
  [mailto:linuxppc-dev-bounces+hong-jun.chen=freescale.com@lists.ozlabs.org] 
  <B>On Behalf Of </B>Uma Kanta Patro<BR><B>Sent:</B> Tuesday, September 08, 
  2009 6:56 PM<BR><B>To:</B> linuxppc-dev@lists.ozlabs.org<BR><B>Subject:</B> 
  Queries regarding I2C and GPIO driver for Freescale MPC5121e in Linux2.6.24 of 
  BSP: MPC512xADS_20090603-ltib.iso<BR></FONT><BR></DIV>
  <DIV></DIV>
  <DIV class=Section1>
  <P class=MsoNormal>Hi all,<o:p></o:p></P>
  <P 
  class=MsoNormal>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  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.<o:p></o:p></P>
  <P class=MsoNormal>I am working on Freescale MPC5121e with the BSP 
  MPC512xADS_20090603-ltib.iso running in it on the ADS512101 Rev4.1 development 
  kit.<o:p></o:p></P>
  <P class=MsoNormal>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.<o:p></o:p></P>
  <P class=MsoNormal><o:p>&nbsp;</o:p></P>
  <P class=MsoNormal><o:p>&nbsp;</o:p></P>
  <P class=MsoNormal>-&gt; Currently I am going to develop an I2C client driver 
  for one slave microcontroller of our project.<o:p></o:p></P>
  <P class=MsoNormal>I have some knowledge in the I2C client driver 
  making(legacy style and new style).<o:p></o:p></P>
  <P class=MsoNormal><o:p>&nbsp;</o:p></P>
  <P class=MsoNormal>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).<o:p></o:p></P>
  <P class=MsoNormal>But while inserting my driver I am getting failure message 
  for the detection of my chip.<o:p></o:p></P>
  <P class=MsoNormal><o:p>&nbsp;</o:p></P>
  <P class=MsoNormal>So I would like to know what other formalities am I lagging 
  in my I2C chip driver.<o:p></o:p></P>
  <P class=MsoNormal><o:p>&nbsp;</o:p></P>
  <P class=MsoNormal>-&gt; 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.<o:p></o:p></P>
  <P class=MsoNormal>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.<o:p></o:p></P>
  <P class=MsoNormal><o:p>&nbsp;</o:p></P>
  <P class=MsoNormal>Thanks for patience in reading my queries.<o:p></o:p></P>
  <P class=MsoNormal>Any help is appreciable.<o:p></o:p></P>
  <P class=MsoNormal><o:p>&nbsp;</o:p></P>
  <P class=MsoNormal><SPAN style="FONT-SIZE: 12pt">Thanks &amp; 
  Regards,<o:p></o:p></SPAN></P>
  <P class=MsoNormal><SPAN style="FONT-SIZE: 12pt">Uma</SPAN><SPAN 
  style="FONT-SIZE: 12pt"><o:p></o:p></SPAN></P>
  <P class=MsoNormal><o:p>&nbsp;</o:p></P></DIV></BLOCKQUOTE></BODY></HTML>