* Continued serial headaches
@ 2007-10-30 17:42 Alan Bennett
2007-10-30 18:02 ` Scott Wood
0 siblings, 1 reply; 2+ messages in thread
From: Alan Bennett @ 2007-10-30 17:42 UTC (permalink / raw)
To: Scott Wood, linuxppc-dev
[-- Attachment #1: Type: text/plain, Size: 2085 bytes --]
Well, now that I've got IRQs requestable, I'm back to battling SCC1 / SCC4
initialization,
I've verified the iop structures, and things look set-up correctly.
/* SCC1 */
{2, 14, CPM_PIN_INPUT | CPM_PIN_PRIMARY},
{2, 15, CPM_PIN_INPUT | CPM_PIN_PRIMARY},
{3, 29, CPM_PIN_OUTPUT | CPM_PIN_PRIMARY},
{3, 30, CPM_PIN_OUTPUT | CPM_PIN_SECONDARY},
{3, 31, CPM_PIN_INPUT | CPM_PIN_PRIMARY},
/* SCC4 */
{3, 21, CPM_PIN_OUTPUT | CPM_PIN_PRIMARY},
{3, 22, CPM_PIN_INPUT | CPM_PIN_PRIMARY},
I've also verified that upon first use (echo "test" > /dev/ttyCPM[12] the
brgs are configured)
SCC1
cpm_uart_startup:417
CPM uart[1]:startup on IRQ: 40 - request returned 0
cpm_uart_startup:432 CPM uart[1] is scc
CPM uart[1]:set_termios
cpm_setbrg [cpm2_common.c:106] e00119f0:00010140
CPM uart[1]:shutdown
SCC4
cpm_uart_startup:417
CPM uart[2]:startup on IRQ: 43 - request returned 0
cpm_uart_startup:432 CPM uart[2] is scc
CPM uart[2]:set_termios
cpm_setbrg [cpm2_common.c:106] e00119fc:00010140
CPM uart[2]:shutdown
CPM uart[2]:initbd
However, SCC1 continues to get locked.
Am I missing something in the PRAM areas?
SMC1 (ttyCPM0...)
e0008000 : 00c000e0 30300020 00000000 eefe3e7a
e0008010 : 00c07331 11b6b05f 30440000 07f4d082
e0008020 : 00e00003 746562ec d98ceffd 0dec67e3
e0008030 : df7b2db5 5f0bf2dc 00205ce8 00010000
e0008040 : 00000000 0000fc9d 00000000 d08a0000
e0008050 : 80008000 80008000 80008000 80008000
SCC1
e0008000 : 00c000e0 30300020 00000000 eefe3e7a
e0008010 : 00c07331 11b6b05f 30440000 07f4d082
e0008020 : 00e00003 746562ec d98ceffd 0dec67e3
e0008030 : df7b2db5 5f0bf2dc 00205ce8 00010000
e0008040 : 00000000 0000fc9d 00000000 d08a0000
e0008050 : 80008000 80008000 80008000 80008000
SCC4
e0008300 : 01000120 30300020 30401000 07f4e001
e0008310 : 0100001f 993fb24d 30004000 07f4e0a2
e0008320 : 01300000 0d0a8379 fedddfdc 94a967eb
e0008330 : 5d2b06bd 4708b3ce 0020001f 00010000
e0008340 : 00000000 00002804 00000000 e8a60000
e0008350 : 80008000 80008000 80008000 80008000
-Alan
[-- Attachment #2: Type: text/html, Size: 2611 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Continued serial headaches
2007-10-30 17:42 Continued serial headaches Alan Bennett
@ 2007-10-30 18:02 ` Scott Wood
0 siblings, 0 replies; 2+ messages in thread
From: Scott Wood @ 2007-10-30 18:02 UTC (permalink / raw)
To: Alan Bennett; +Cc: linuxppc-dev
Alan Bennett wrote:
> Am I missing something in the PRAM areas?
> SMC1 (ttyCPM0...)
> e0008000 : 00c000e0 30300020 00000000 eefe3e7a
> e0008010 : 00c07331 11b6b05f 30440000 07f4d082
> e0008020 : 00e00003 746562ec d98ceffd 0dec67e3
> e0008030 : df7b2db5 5f0bf2dc 00205ce8 00010000
> e0008040 : 00000000 0000fc9d 00000000 d08a0000
> e0008050 : 80008000 80008000 80008000 80008000
> SCC1
> e0008000 : 00c000e0 30300020 00000000 eefe3e7a
> e0008010 : 00c07331 11b6b05f 30440000 07f4d082
> e0008020 : 00e00003 746562ec d98ceffd 0dec67e3
> e0008030 : df7b2db5 5f0bf2dc 00205ce8 00010000
> e0008040 : 00000000 0000fc9d 00000000 d08a0000
> e0008050 : 80008000 80008000 80008000 80008000
I'm fairly sure you don't want SMC1 and SCC1 to have the same PRAM areas...
Assuming that was just a typo, I don't know what could be wrong. You'll
just have to debug it. :-)
-Scott
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-10-30 18:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-30 17:42 Continued serial headaches Alan Bennett
2007-10-30 18:02 ` Scott Wood
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).