linux-mips
[Top] [All Lists]

Re: [PATCH 01/10] MIPS: lantiq: add initial support for Lantiq SoCs

To: John Crispin <blogic@openwrt.org>
Subject: Re: [PATCH 01/10] MIPS: lantiq: add initial support for Lantiq SoCs
From: Geert Uytterhoeven <geert@linux-m68k.org>
Date: Wed, 5 Jan 2011 21:25:53 +0100
Cc: Ralf Baechle <ralf@linux-mips.org>, Ralph Hempel <ralph.hempel@lantiq.com>, linux-mips@linux-mips.org
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type:content-transfer-encoding; bh=rgCoHn9ottJC/apHZj75UFerThepRKdkm3GJLTmn60U=; b=LJKn+pUGpF2venGhjKITJBTlCkNwbbFqAhEzt2EGcFRNuyVcVg6khbWuI91Dmgp/9m KysY2d/67W4s3lFye2uvDIw8OGCGOUxZnjlpCEC2+su0a6zB3g56ZGRY6+iYGioAV7lA Gy0SeKJF2nHxkNEhXra1QtLqGo4fA6oE9RCcQ=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=aphJcwVEMMkQXosih1Dvnye8tgNN+a6J7HJfEfLnH+b0yW/R7SI7Ws9wrwo8xoGsL1 YlyS6mGwkNLo8AsafMM7y2vmpaDfOt3Aozw041KxFxxgkVhz3iUOripFPQJoze8kM2aF Kqubea1HGE9P+T0aISfmwnDKSKL85edupansE=
In-reply-to: <1294257379-417-2-git-send-email-blogic@openwrt.org>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <1294257379-417-1-git-send-email-blogic@openwrt.org> <1294257379-417-2-git-send-email-blogic@openwrt.org>
Sender: linux-mips-bounce@linux-mips.org
On Wed, Jan 5, 2011 at 20:56, John Crispin <blogic@openwrt.org> wrote:
> --- /dev/null
> +++ b/arch/mips/lantiq/prom.c
> @@ -0,0 +1,84 @@

> +static void __init
> +prom_init_cmdline(void)
> +{
> +       int argc = fw_arg0;
> +       char **argv = (char **) KSEG1ADDR(fw_arg1);
> +       int i;
> +       arcs_cmdline[0] = '\0';
> +       if (argc)
> +               for (i = 1; i < argc; i++) {
> +                       strlcat(arcs_cmdline, (char *)KSEG1ADDR(argv[i]),
> +                               COMMAND_LINE_SIZE);
> +                       if (i + 1 != argc)
> +                               strlcat(arcs_cmdline, " ", COMMAND_LINE_SIZE);
> +               }
> +       if (!*arcs_cmdline)
> +               strcpy(&(arcs_cmdline[0]),
> +                       "console=ttyS1,115200 rootfstype=squashfs,jffs2");
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                        CONFIG_CMDLINE???

> +}

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds
<Prev in Thread] Current Thread [Next in Thread>