Hello Leo:<br> Follow your advises, i look the source code and find that you are right. In the source code, There are 2 functions can do some work for the serial port initralization. The code is followed.<br>1. static int __devinit serial8250_probe(struct platform_device *dev)<br>2. static void __init serial8250_isa_init_ports(void)<br><br>In my system i use the function 2 and this function should use the structer old_serial_port. <br>In fact the function 1 can initralize the serial port too. But i don't known how to call this function. <br><br>For the more, i have find some source code in of_serial.c which is in the \drivers\serial directory. In this file, the function <br>static int __devinit of_platform_serial_probe(struct of_device *ofdev,<br> const struct of_device_id *id)<br>call the serial8250_register_port function to initralized the
serial port.<br><br>This issues makes me puzzlled, Could you help me to analyzed it? and what kind of the function i should used to initralize my serial port.<br><br><br><br>thanks <br>best wishs<br><br><b><i>Li Yang <LeoLi@freescale.com></i></b> дµÀ£º<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"> > -----Original Message-----<br>> From: linuxppc-dev-bounces+leoli=freescale.com@ozlabs.org <br>> [mailto:linuxppc-dev-bounces+leoli=freescale.com@ozlabs.org] <br>> On Behalf Of Ðñ ÂÞ<br>> Sent: Thursday, April 17, 2008 3:32 PM<br>> To: Linu PPC Mail list<br>> Cc: Wood Scott<br>> Subject: A question about the 8250/16550 Driver<br>> <br>> Hello:<br>> I have founded that the serial can't be initialized as <br>> the bootting process. My platform is MPC8313 and my kernel <br>> version is linux-2.6.23.9. I look though the source code and <br>> find that the MPC8313
driver is compatible with 8250/16550. <br>> The driver is in the \drivers\serial\8250.c<br>> <br>> In the function serial8250_isa_init_ports we should use the <br>> structer old_serial_port but i can't find the definition for <br>> this struct. I can only find the following senrense in the <br>> head of this file <br><br>If you look into the function carefully enough, you can find that old_serial_port is optional and can be empty. It seems to be some leftover to provide backward compatibility when the port structure changed.<br><br>- Leo<br></blockquote><br><p> 
<hr size=1><a href="http://cn.mail.yahoo.com/"> ÑÅ»¢ÓÊÏ䣬ÄúµÄÖÕÉúÓÊÏ䣡</a>