From: Laurent Pinchart <laurentp@cse-semaphore.com>
To: linuxppc-dev@ozlabs.org
Subject: Trouble with SCC UART ports when moving from ppc to powerpc
Date: Fri, 7 Mar 2008 15:20:55 +0100 [thread overview]
Message-ID: <200803071521.00383.laurentp@cse-semaphore.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1952 bytes --]
Hi everybody,
I'm trying to move from ARCH=ppc to ARCH=powerpc on an MPC8272 based board.
I updated my bootloader (U-Boot) to get FDT support, wrote a device tree and
compiled a powerpc kernel with CONFIG_PPC_CPM_NEW_BINDING set. No problem so
far (well, no problem I haven't been able to solve).
I then tried to get the serial console on SCC1 to work. The serial port was
silent, and the kernel hanged in cpm_uart_console_write while waiting for the
CPM to clear the ready bit in tx buffer descriptors.
After checking the SCC1 configuration registers, parameter RAM and buffer
descriptors, I found out that something was overwriting the buffer
descriptors were stored in the DPRAM at offset 0.
Right after initializing the rx buffer descriptors, dumping the rx bds dpram
with the BDI2000 gave me
90000088 003518e0 90000008 00351900
90000000 00351911 b5400000 2dace564
while I was expecting
90000088 003518e0 90000008 00351900
90000000 00351920 b0000000 00351940
Some data was clearly being overwritten by something.
The CPM dual port ram was defined in the device tree as follows (copied from
the MPC8272ADS board device tree).
muram@0 {
#address-cells = <1>;
#size-cells = <1>;
ranges = <0 0 10000>;
data@0 {
compatible = "fsl,cpm-muram-data";
reg = <0 2000 9800 800>;
};
};
Changing the reg property to
reg = <80 1f80 9800 800>;
fixed my problem.
Does anyone have any clue regarding what could write to the dpram ? I thought
about some CPM peripheral set up by the boot loader, but my board
initialization code calls cpm2_reset() long before initializing SCC1.
Best regards,
--
Laurent Pinchart
CSE Semaphore Belgium
Chaussée de Bruxelles, 732A
B-1410 Waterloo
Belgium
T +32 (2) 387 42 59
F +32 (2) 387 42 75
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
next reply other threads:[~2008-03-07 14:21 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-07 14:20 Laurent Pinchart [this message]
2008-03-07 15:00 ` Trouble with SCC UART ports when moving from ppc to powerpc Timur Tabi
2008-03-07 16:21 ` Scott Wood
2008-03-10 12:17 ` Laurent Pinchart
2008-03-17 15:33 ` Scott Wood
2008-03-20 13:39 ` Laurent Pinchart
2008-03-20 15:08 ` Scott Wood
2008-03-20 15:18 ` Laurent Pinchart
2008-03-20 16:24 ` Scott Wood
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200803071521.00383.laurentp@cse-semaphore.com \
--to=laurentp@cse-semaphore.com \
--cc=linuxppc-dev@ozlabs.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).