linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* mpc823 SCC3 flow control bug
@ 2005-12-08  9:04 debora liu
  0 siblings, 0 replies; only message in thread
From: debora liu @ 2005-12-08  9:04 UTC (permalink / raw)
  To: denx; +Cc: Linuxppc-embedded

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

Hello denx:

I found one bug when SCC3 as UART, my cpu is mpc823.
cts/cd config as:
	CTS PC5
	CD  PC4

your ELDK-3.1.1 linux-2.4.25 uart.c set pcpar,pcso, pcdir:
	immap->im_ioport.iop_pcpar &= ~iobits;
	immap->im_ioport.iop_pcso |=  iobits;
	immap->im_ioport.iop_pcdir &= ~iobits;
but MPC823UM tell me CD3 and CTS3 is bit6 and bit7 on PCSO register, so I modify:
	fix_pcso = iobits;
	#if defined(CONFIG_UART_CTS_CONTROL_SCC3)
  		fix_pcso &=~(1 << (15 - CONFIG_CTS3_PIN));
		fix_pcso |= 0x0100;
	#endif
	#if defined(CONFIG_UART_CD_CONTROL_SCC3)
 		fix_pcso &=~(1 << (15 - CONFIG_CD3_PIN));
		fix_pcso |= 0x0200;
	#endif

	immap->im_ioport.iop_pcpar &= ~iobits;
	immap->im_ioport.iop_pcso |=  fix_pcso;
	immap->im_ioport.iop_pcdir &= ~iobits;

My board have success communication to moderm with SCC3 hard flow control.

        debora liu
        deboraliu@tom.com
          2005-12-08

[-- Attachment #2: fox.gif --]
[-- Type: image/gif, Size: 9519 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-12-08 10:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-08  9:04 mpc823 SCC3 flow control bug debora liu

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).