linux-mips
[Top] [All Lists]

Re: [RFC 05/11] MIPS: ralink: adds prom and cmdline code

To: John Crispin <blogic@openwrt.org>
Subject: Re: [RFC 05/11] MIPS: ralink: adds prom and cmdline code
From: Gabor Juhos <juhosg@openwrt.org>
Date: Thu, 24 Jan 2013 12:52:43 +0100
Cc: Ralf Baechle <ralf@linux-mips.org>, linux-mips@linux-mips.org
In-reply-to: <1358942755-25371-6-git-send-email-blogic@openwrt.org>
List-archive: <http://www.linux-mips.org/archives/linux-mips/>
List-help: <mailto:ecartis@linux-mips.org?Subject=help>
List-id: linux-mips <linux-mips.eddie.linux-mips.org>
List-owner: <mailto:ralf@linux-mips.org>
List-post: <mailto:linux-mips@linux-mips.org>
List-software: Ecartis version 1.0.0
List-subscribe: <mailto:ecartis@linux-mips.org?subject=subscribe%20linux-mips>
List-unsubscribe: <mailto:ecartis@linux-mips.org?subject=unsubscribe%20linux-mips>
References: <1358942755-25371-1-git-send-email-blogic@openwrt.org> <1358942755-25371-6-git-send-email-blogic@openwrt.org>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130107 Thunderbird/17.0.2
Hi John,

> Add minimal code to handle commandlines.
> 
> Signed-off-by: John Crispin <blogic@openwrt.org>
> ---
>  arch/mips/ralink/prom.c |   69 
> +++++++++++++++++++++++++++++++++++++++++++++++
>  1 file changed, 69 insertions(+)
>  create mode 100644 arch/mips/ralink/prom.c
> 
> diff --git a/arch/mips/ralink/prom.c b/arch/mips/ralink/prom.c
> new file mode 100644
> index 0000000..49238d3

<...>

> +void __init prom_init(void)
> +{
> +     int argc;
> +     char **argv;
> +
> +     prom_soc_init(&soc_info);
> +
> +     pr_info("CPU Type: %s\n", get_system_type());

Strictly speaking, this prints the SoC type, so the prefix should be changed.
The CPU revision and its type is already printed by the generic MIPS code.

-Gabor

<Prev in Thread] Current Thread [Next in Thread>