MPC5200 - Problem with PSC mode

Zeitler, Nathan nzeitler at osii.com
Tue Jan 31 09:34:27 EST 2006


Allann,

Hmm, yes.  In addition, these lines looks suspect:

> val32 = in_be32(&gpio->port_config);
> val32 &= ~0x700;
> val32 |= 0x600;
> out_be32(&gpio->port_config, val32);

I don't have the register's header file in front of me, but I'm
pretty sure this refers to MBAR+0xb00.  If that's the case, 
you seem to be configuring the port to be in CODEC mode 
and not UART mode.  Try this instead:

val32 = in_be32(&gpio->port_config);
val32 &= ~0xf00;
val32 |= 0x400;
out_be32(&gpio->port_config, val32);

You may want to refer to the MPC5200 manual.  Page 15-43
has a nice sequence you can go through to configure a port
to be a UART.

Open Systems International, Inc. 
Nathan Zeitler
Hardware Engineer
3600 Holly Lane North, Suite 40
Minneapolis, MN 55447-1286
Phone: 763 551 0559
Fax: 763 551 0750
E-mail: nzeitler at osii.com



More information about the Linuxppc-embedded mailing list