From: Pantelis Antoniou <panto@intracom.gr>
To: Tom Rini <trini@kernel.crashing.org>
Cc: Linuxppc-embedded@ozlabs.org
Subject: Re: CPM2 uart early console
Date: Wed, 27 Oct 2004 09:02:19 +0300 [thread overview]
Message-ID: <417F39EB.5010907@intracom.gr> (raw)
In-Reply-To: <20041026143514.GQ25154@smtp.west.cox.net>
Tom Rini wrote:
>On Fri, Oct 22, 2004 at 05:01:54PM -0500, Rune Torgersen wrote:
>
>>>From: Tom Rini [mailto:trini@kernel.crashing.org]
>>>On Thu, Oct 21, 2004 at 04:57:56PM -0500, Rune Torgersen wrote:
>>>
>>>>BTW..
>>>>What are the device node numbers for ttyCPM[0..5] ?
>>>>
>>>204 42...45 (devices.txt in linuxppc-2.5, Pantelis ever
>>>figure out what to do about the device # conflict with the
>>>i.MX driver so we can push that small bit upstream ?)
>>>
>>Aparently not that simple.... I looked in the source, and it depends if
>>an 8250 stype serial port is defined or not...
>>
>>#ifndef CONFIG_SERIAL_8250
>>#define SERIAL_CPM_MAJOR TTY_MAJOR
>>#define SERIAL_CPM_MINOR 64
>>#else
>>#define SERIAL_CPM_MAJOR 204
>>#define SERIAL_CPM_MINOR 42
>>#endif
>>
>>Urgh...
>>
>
>That doesn't make sense. Pantelis?
>
>
Well, it sure doesn't.
We should really try to find a generic solution to this
problem, i.e. that SoC like processors almost always have a number of serial
ports, and every single one ends up being of a different major/minor number.
IMHO the best solution would be to allocate a single major number, and
then map to the minors in order, the possible serial ports.
We could do this easily for PPC at first, and try to pursuade the other
embedded people to convert. The old device names can always be supported
via simple symbolic links.
For example let's take the 8xx family.
It is possible to have a maximum of 6 on chip serial ports; SCC1-4 + SMC1-2.
The devices could be
crw------- 1 root root 0, 64 Mar 24 2004 ttyC0 # SCC1
crw------- 1 root root 1, 64 Mar 24 2004 ttyC1 # SCC2
crw------- 1 root root 2, 64 Mar 24 2004 ttyC2 # SCC3
crw------- 1 root root 3, 64 Mar 24 2004 ttyC3 # SCC4
crw------- 1 root root 4, 64 Mar 24 2004 ttyC4 # SMC1
crw------- 1 root root 5, 64 Mar 24 2004 ttyC5 # SMC2
The compatibility link for a single SMC1 console.
lrwxrwxrwx 1 root root 5 Oct 25 16:56 ttyS0 -> ttyC4
In a similar manner we could do the same to 82xx, and every other
SoC in existance.
So what do you think?
Regards
Pantelis
next prev parent reply other threads:[~2004-10-27 6:02 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-22 22:01 CPM2 uart early console Rune Torgersen
2004-10-26 14:35 ` Tom Rini
2004-10-27 6:02 ` Pantelis Antoniou [this message]
2004-10-27 16:39 ` Tom Rini
-- strict thread matches above, loose matches on Subject: below --
2004-10-21 21:57 Rune Torgersen
2004-10-22 20:10 ` Tom Rini
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=417F39EB.5010907@intracom.gr \
--to=panto@intracom.gr \
--cc=Linuxppc-embedded@ozlabs.org \
--cc=trini@kernel.crashing.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.