linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Some udbg questions
@ 2008-11-18  0:56 Timur Tabi
  2008-11-18  5:37 ` Benjamin Herrenschmidt
  0 siblings, 1 reply; 3+ messages in thread
From: Timur Tabi @ 2008-11-18  0:56 UTC (permalink / raw)
  To: linuxppc-dev

I'm adding udbg support to my console driver, and I've noticed that
there is not much consistency on how the various platforms implement
udbg support.  So I have a few questions:

1. What is the point of implementing udbg_getc?  What does the console
do with any characters it receives this early?
2. In my driver's udbg initialization function, should I be able to
parse the device tree to get parameters?
3. What about command-line parameters?
4. The LPAR and PMAC platforms call register_early_udbg_console (in
the udbg_init_debug_lpar and pmac_init_early functions, respectively),
but none of the other platforms do.  It appears that the other
platforms rely on setup_32.c and setup_64.c to call this function.
What's so special about LPAR and PMAC?
5. Some platforms (like mv64x60) use the ppc_md.init_early function to
initialize the early console.  Others update function
udbg_early_init() in udbg.c instead.  Why do some platforms do it one
way, and other platforms do it the other way?  Which way is preferred?

-- 
Timur Tabi
Linux kernel developer at Freescale

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-11-18  6:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-18  0:56 Some udbg questions Timur Tabi
2008-11-18  5:37 ` Benjamin Herrenschmidt
2008-11-18  6:41   ` Michael Ellerman

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).