From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from rv-out-0910.google.com (rv-out-0910.google.com [209.85.198.184]) by ozlabs.org (Postfix) with ESMTP id 1DA80DDE1F for ; Sat, 11 Aug 2007 11:43:43 +1000 (EST) Received: by rv-out-0910.google.com with SMTP id k20so788678rvb for ; Fri, 10 Aug 2007 18:43:41 -0700 (PDT) Message-ID: <5c9cd53b0708101843q1b39bccfv10e98eccaa834c91@mail.gmail.com> Date: Fri, 10 Aug 2007 21:43:41 -0400 From: "mike zheng" To: linuxppc-dev@ozlabs.org. Subject: Early UART setup on 2.6 kernel for mpc85xx MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_1474_28324591.1186796621840" List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , ------=_Part_1474_28324591.1186796621840 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi All, In order to debug the kernel 2.6, I want setup serial port with UART on mpc85xx as early as possible. I add the register access code at the beginning of platform_init(). For example, I try to write THR register(0xe0004500). However the system just hanging there with this line. If I comment out this line, everything works fine. Here is the code my mpc85xx_cds_common.c: void __init platform_init(unsigned long r3, unsigned long r4, unsigned long r5, unsigned long r6, unsigned long r7) { .... } ------=_Part_1474_28324591.1186796621840 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
Hi All,
 
In order to debug the kernel 2.6, I want setup serial port with UART on mpc85xx as early as possible. I add the register access code at the beginning of  platform_init(). For example, I try to write THR register(0xe0004500). However the system just hanging there with this line. If I comment out this line, everything works fine.
 
Here is the code my mpc85xx_cds_common.c:
 
void __init
platform_init(unsigned long r3, unsigned long r4, unsigned long r5,
                   unsigned long r6, unsigned long r7)
{
 
....
 
 
 
------=_Part_1474_28324591.1186796621840--