linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* 2.6 system stuck with one line change in platform_init()
@ 2007-08-11  2:01 mike zheng
  2007-08-11  2:09 ` Michael.Kang
  0 siblings, 1 reply; 2+ messages in thread
From: mike zheng @ 2007-08-11  2:01 UTC (permalink / raw)
  To: linuxppc-embedded

[-- Attachment #1: Type: text/plain, Size: 867 bytes --]

Hi All,

In order to debug the 8548 CDS BSP of 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(). However the system just hanging
there with this line. If I comment out this
line"WRITE8_ADDR(M85xx_EIIADDR,0)", then linux kernel runs well.

Thanks in advance,

Mike Z

Here is the code of my mpc85xx_cds_common.c:

#define WRITE8_ADDR(address, value) \
    ((*((volatile u8 *)(address))) = (u8)(value))

#define M85xx_EII_ADDR 0xe0004500

void __init
platform_init(unsigned long r3, unsigned long r4, unsigned long r5,
                   unsigned long r6, unsigned long r7)
{
       /* parse_bootinfo must always be called first */
       parse_bootinfo(find_bootinfo());

      /* Now we try to access register of UART */
      WRITE8_ADDR(M85xx_EII_ADDR, 0);
....
}

[-- Attachment #2: Type: text/html, Size: 1470 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: 2.6 system stuck with one line change in platform_init()
  2007-08-11  2:01 2.6 system stuck with one line change in platform_init() mike zheng
@ 2007-08-11  2:09 ` Michael.Kang
  0 siblings, 0 replies; 2+ messages in thread
From: Michael.Kang @ 2007-08-11  2:09 UTC (permalink / raw)
  To: mike zheng; +Cc: linuxppc-embedded

On 8/11/07, mike zheng <mail4mz@gmail.com> wrote:
> Hi All,
>
> In order to debug the 8548 CDS BSP of 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(). However the system just hanging there
> with this line. If I comment out this
> line"WRITE8_ADDR(M85xx_EIIADDR,0)", then linux kernel runs
> well.
>
> Thanks in advance,
>
> Mike Z
>
> Here is the code of my mpc85xx_cds_common.c:
>
> #define WRITE8_ADDR(address, value) \
>     ((*((volatile u8 *)(address))) = (u8)(value))
>
> #define M85xx_EII_ADDR 0xe0004500
>
> void __init
> platform_init(unsigned long r3, unsigned long r4, unsigned long r5,
>                    unsigned long r6, unsigned long r7)
> {
>        /* parse_bootinfo must always be called first */
>        parse_bootinfo(find_bootinfo());
>
>       /* Now we try to access register of UART */
>       WRITE8_ADDR(M85xx_EII_ADDR, 0);
         where is M85xx_EII_ADDR declearation? If the address need to
be io_remap first?
> ....
> }
> _______________________________________________
> Linuxppc-embedded mailing list
> Linuxppc-embedded@ozlabs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-embedded
>


-- 
www.skyeye.org

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-08-11  2:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-11  2:01 2.6 system stuck with one line change in platform_init() mike zheng
2007-08-11  2:09 ` Michael.Kang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).