All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paul Gortmaker <paul.gortmaker@windriver.com>
To: Kumar Gala <galak@kernel.crashing.org>
Cc: linuxppc-dev@ozlabs.org, david@gibson.dropbear.id.au
Subject: Re: [PATCH 0/4] arch/powerpc support for SBC8560 board
Date: Thu, 20 Dec 2007 22:38:15 -0500	[thread overview]
Message-ID: <20071221033815.GA13921@windriver.com> (raw)
In-Reply-To: <AD8BE998-401D-4109-8DD0-F26760C0E980@kernel.crashing.org>

In message: Re: [PATCH 0/4] arch/powerpc support for SBC8560 board
on 20/12/2007 Kumar Gala wrote:

>> 3) Add device tree source for Wind River SBC8560 board
>>
>> This is probably the most interesting part of the group, given that the
>> board doesn't use the CPM2 to provide the serial console.  I've made a
>> duart dts entry that is kind of similar to what is done for the tsi108
>> on the mpc7448/hpc-ii board, and made sure that the serial had their
>> parent marked as "soc" (found out the hard way that UARTs were ignored
>> as possible consoles unless they were soc or tsi108 children...)
>>
>> b/arch/powerpc/boot/dts/sbc8560.dts |  203 
>> +++++++++++++++++++++++++++++++++++-
>
> we need to figure out to fix this so we don't need the parent marked as 
> 'soc'.

Here is my interpretation of what is happening here -- we come in via
find_legacy_serial_ports() to pick a console port.  It grabs "chosen"
to get np stdout, and then checks the parent of the 16550 compat ports
against the following, requiring at least one of them to match:

	parent->type == "soc" ? add_legacy_soc_port()

	parent->type == "isa" ? add_legacy_isa_port()

	parent->type == "tsi-bridge" ? add_legacy_soc_port()

	parent->type == "opb" ? add_legacy_soc_port()

No match means no serial console, it seems.  I figured that parent == "soc"
was the lesser lie to choose from, but I'm open to an alternate approach 
that is less apt to make David go "ewww" (an understandable reaction...).

>
> Out of interest how exactly are the duart's wired on the 8560.  Are they 
> off localbus?

The board has a bunch of stuff hanging off of CS5 -- an RTC, a 7 segment
display, an EEPROM, some BCSR-like registers, and of course the two
UARTs which are supposed to be 16C2550.  According to TFM, an EPM7128
PLD is responsible for mashing/sub-decoding this all onto/off of CS5.
CS3 and CS4 are the LB-SDRAM.

>
>> I'd quickly spun together a u-boot 1.2.0 for testing this -- since that 
>> was
>> the quickest route to getting a powerpc capable version.  I'll see what
>> can be done for getting a u-boot 1.3.1 patchset out so the 
>> local-mac-address
>> vs address thing in the dtb isn't an issue.
>
> Probably should add a boot wrapper to work with old non-device tree aware 
> u-boots.

Something to consider, sure -- but I figured working towards a more up
to date u-boot is something people would see more of a future for and
more of an interest in.

Paul.

  reply	other threads:[~2007-12-21  3:44 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-20 14:54 [PATCH 0/4] arch/powerpc support for SBC8560 board Paul Gortmaker
2007-12-20 14:54 ` [PATCH 1/4] sbc8560: add basic support for Wind River SBC8560 as powerpc Paul Gortmaker
2007-12-20 14:54   ` Paul Gortmaker
2007-12-20 23:14     ` Stephen Rothwell
2007-12-21 15:37       ` Paul Gortmaker
2007-12-20 23:49     ` Kumar Gala
2007-12-20 14:54   ` [PATCH 2/4] CPM2: Make support for the CPM2 optional on 8560 based boards Paul Gortmaker
2007-12-20 14:54     ` Paul Gortmaker
2007-12-20 14:54   ` [PATCH 3/4] sbc8560: Add device tree source for Wind River SBC8560 board Paul Gortmaker
2007-12-20 14:54     ` Paul Gortmaker
2007-12-20 23:54       ` Kumar Gala
2007-12-20 23:57     ` David Gibson
2007-12-21 17:40       ` Scott Wood
2007-12-20 14:54   ` [PATCH 4/4] sbc8560: Add default .config file for Wind River SBC8560 Paul Gortmaker
2007-12-20 14:54     ` Paul Gortmaker
2007-12-20 23:49 ` [PATCH 0/4] arch/powerpc support for SBC8560 board Kumar Gala
2007-12-21  0:00   ` Paul Gortmaker
2007-12-20 23:56 ` Kumar Gala
2007-12-21  3:38   ` Paul Gortmaker [this message]
2007-12-21  3:59     ` David Gibson
2007-12-21 17:31     ` 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=20071221033815.GA13921@windriver.com \
    --to=paul.gortmaker@windriver.com \
    --cc=david@gibson.dropbear.id.au \
    --cc=galak@kernel.crashing.org \
    --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 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.