<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<style>
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:Arial;
        color:windowtext;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><font size=2 face="Times New Roman"><span style='font-size:
10.0pt'>Hello folks,<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face="Times New Roman"><span style='font-size:
10.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2
face="Times New Roman"><span style='font-size:10.0pt'>In a current work
project, I have inherited a compactPCI board that has an mpc7447/7448 powerpc
processor as well as a Marvell system controller, model mv64462 (stripped down
mv64460). The board has a somewhat working Gentoo Linux port running on it from
long ago and a company far far away (kernel version 2.6.9 built using
arch/ppc). To prepare for an upcoming deployment, I would like to bring the OS up-to-date
on this board with a newer kernel (targeting 2.6.24).<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2
face="Times New Roman"><span style='font-size:10.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2
face="Times New Roman"><span style='font-size:10.0pt'>The 2.6.9 kernel that was
previously developed for the board uses the todc.h library to enable real time
clock functionality on the board’s mc146818 device. The todc library
appears to have been removed during the arch/ppc to arch/powerpc migration and
replaced with a more generic RTC mechanism.(??) I can also see that there is an
include/asm-powerpc/mc146818rtc.h file for this device included with the 2.6.24
kernel.<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2
face="Times New Roman"><span style='font-size:10.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2
face="Times New Roman"><span style='font-size:10.0pt'>Can anyone give me some
tips on what was intended with the removal of the todc library? What direction
should I take to port my platform file code from todc to the new
mechanism? Is this work already done for me in the kernel source? What
work am I expected to do to add support for this device in my kernel code? I’m
specifically interested in what needs to be included in my .dts file to enable
this device.<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2
face="Times New Roman"><span style='font-size:10.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face="Times New Roman"><span style='font-size:
10.0pt'>Thanks for any guidance and advice, regards,<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face="Times New Roman"><span style='font-size:
10.0pt'>Stephen<o:p></o:p></span></font></p>
</div>
</body>
</html>