public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: hanumant <hanumant07@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] serial : Device tree support for multiple serial devices.
Date: Mon, 23 Jan 2012 13:01:24 -0800	[thread overview]
Message-ID: <4F1DCAA4.5060602@gmail.com> (raw)

Hi

	The board that I am working on has multiple serial ports.
I am trying to use device trees to configure board resource of these 
ports as well as the serial framework. So the driver doesnot know 
apriori the number of uart ports on the board. But querries the device 
tree for it.I am facing the following issues.

1) Ports are memory mapped and each port has its own register space.
As such the serial framework apis dont provide for passing a port id at 
the time of the call. So how do i access the correct register space for 
the corresponding port?. Or should i define for my own set of apis to be 
called by clients, allowing me to access specific ports corresponding 
address space, and use the serial framework api's only for the default 
serial console?

2) the default serial console, also gets configured based on information 
obtained from the device tree, at run time. If i keep a global 
representation of the default serial console with its base address etc, 
it will still have to be reinitialized after relocation. The 
default_serial_console() gives me an opportunity to reinitialize the 
global structure. Is that the way to go?

Thanks
Hanumant

             reply	other threads:[~2012-01-23 21:01 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-23 21:01 hanumant [this message]
2012-01-30 18:35 ` [U-Boot] serial : Device tree support for multiple serial devices Simon Glass
2012-01-30 23:18   ` hanumant
2012-02-21  6:41     ` Simon Glass

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=4F1DCAA4.5060602@gmail.com \
    --to=hanumant07@gmail.com \
    --cc=u-boot@lists.denx.de \
    /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