From: Albert Herranz <albert_herranz@yahoo.es>
To: Richard Holden <aciddeath@gmail.com>
Cc: linuxppc-dev@lists.ozlabs.org
Subject: Re: [RFC PATCH v3 3/3] powerpc: gamecube/wii: early debugging using usbgecko
Date: Tue, 01 Dec 2009 06:23:00 +0100 [thread overview]
Message-ID: <4B14A834.4070907@yahoo.es> (raw)
In-Reply-To: <4B147086.6070602@gmail.com>
Richard Holden wrote:
> Albert Herranz wrote:
>> Add support for using the USB Gecko adapter as an early debugging
>> console on the Nintendo GameCube and Wii video game consoles.
>> The USB Gecko is a 3rd party memory card interface adapter that provides
>> a EXI (External Interface) to USB serial converter.
>>
>> Signed-off-by: Albert Herranz <albert_herranz@yahoo.es>
>> ---
>> arch/powerpc/Kconfig.debug | 8 +++
>> arch/powerpc/include/asm/udbg.h | 1 +
>> arch/powerpc/kernel/head_32.S | 21 +++++++
>> arch/powerpc/kernel/udbg.c | 2 +
>> arch/powerpc/platforms/embedded6xx/usbgecko_udbg.c | 59 ++++++++++++++++++++
>> arch/powerpc/platforms/embedded6xx/usbgecko_udbg.h | 2 +
>> 6 files changed, 93 insertions(+), 0 deletions(-)
>>
>> diff --git a/arch/powerpc/Kconfig.debug b/arch/powerpc/Kconfig.debug
>> index 3b10051..11e385b 100644
>> --- a/arch/powerpc/Kconfig.debug
>> +++ b/arch/powerpc/Kconfig.debug
>> @@ -254,6 +254,14 @@ config PPC_EARLY_DEBUG_CPM
>> using a CPM-based serial port. This assumes that the bootwrapper
>> has run, and set up the CPM in a particular way.
>>
>> +config PPC_EARLY_DEBUG_USBGECKO
>> + bool "Early debugging through the USB Gecko adapter"
>> + depends on GAMECUBE_COMMON
>> + select USBGECKO_UDBG
>> + help
>> + Select this to enable early debugging for Nintendo GameCube/Wii
>> + consoles via an external USB Gecko adapter.
>> +
>> endchoice
>>
>> config PPC_EARLY_DEBUG_44x_PHYSLOW
>
> Small nit, my preference would be for this to be in the patch 1 where it
> is first referenced.
>
The first patch is generic, and uses PPC_EARLY_DEBUG.
This is the first patch where PPC_EARLY_DEBUG_USBGECKO is referenced.
>> diff --git a/arch/powerpc/platforms/embedded6xx/usbgecko_udbg.c b/arch/powerpc/platforms/embedded6xx/usbgecko_udbg.c
>> index ba4c7cc..3f125b6 100644
>> --- a/arch/powerpc/platforms/embedded6xx/usbgecko_udbg.c
>> +++ b/arch/powerpc/platforms/embedded6xx/usbgecko_udbg.c
>> @@ -17,6 +17,7 @@
>> #include <asm/io.h>
>> #include <asm/prom.h>
>> #include <asm/udbg.h>
>> +#include <asm/fixmap.h>
>>
>> #include "usbgecko_udbg.h"
>>
>> @@ -270,3 +271,61 @@ done:
>> of_node_put(np);
>> return;
>> }
>> +
>> +#ifdef CONFIG_PPC_EARLY_DEBUG_USBGECKO
>> +
>> +static void __init ug_early_remap(void)
>
> you may want to rename the ug_ prefix, it took me a while looking back
> and forth through the patch to convince myself it wasn't a typo.
>
What's wrong with ug_ ? (ug = (u)sb(g)ecko)
> -Richard Holden
>
Thanks,
Albert
next prev parent reply other threads:[~2009-12-01 5:23 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-30 23:09 [RFC PATCH v3 0/3] rework of usbgecko-based early debug Albert Herranz
2009-11-30 23:09 ` [RFC PATCH v3 1/3] powerpc: udbg: add early remap hook Albert Herranz
2009-11-30 23:09 ` [RFC PATCH v3 2/3] powerpc: udbg: add fixmap entry for early debug Albert Herranz
2009-12-01 10:51 ` Benjamin Herrenschmidt
2009-11-30 23:09 ` [RFC PATCH v3 3/3] powerpc: gamecube/wii: early debugging using usbgecko Albert Herranz
2009-12-01 1:25 ` Richard Holden
2009-12-01 5:23 ` Albert Herranz [this message]
2009-12-01 5:40 ` Michael Ellerman
2009-12-01 5:45 ` Albert Herranz
2009-12-01 7:43 ` Richard Holden
2009-12-03 4:06 ` Segher Boessenkool
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=4B14A834.4070907@yahoo.es \
--to=albert_herranz@yahoo.es \
--cc=aciddeath@gmail.com \
--cc=linuxppc-dev@lists.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).