linux-mips
[Top] [All Lists]

[PATCH 13/33] MIPS: lantiq: Cleanup firmware support for the lantiq plat

To: linux-mips@linux-mips.org
Subject: [PATCH 13/33] MIPS: lantiq: Cleanup firmware support for the lantiq platform.
From: "Steven J. Hill" <sjhill@mips.com>
Date: Mon, 25 Jun 2012 23:41:28 -0500
Cc: "Steven J. Hill" <sjhill@mips.com>, ralf@linux-mips.org
In-reply-to: <1340685708-14408-1-git-send-email-sjhill@mips.com>
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: <1340685708-14408-1-git-send-email-sjhill@mips.com>
Sender: linux-mips-bounce@linux-mips.org
From: "Steven J. Hill" <sjhill@mips.com>

Signed-off-by: Steven J. Hill <sjhill@mips.com>
---
 arch/mips/lantiq/prom.c |   22 ++--------------------
 1 file changed, 2 insertions(+), 20 deletions(-)

diff --git a/arch/mips/lantiq/prom.c b/arch/mips/lantiq/prom.c
index d185e84..aa9da9e 100644
--- a/arch/mips/lantiq/prom.c
+++ b/arch/mips/lantiq/prom.c
@@ -9,9 +9,9 @@
 #include <linux/export.h>
 #include <linux/clk.h>
 #include <linux/of_platform.h>
-#include <asm/bootinfo.h>
 #include <asm/time.h>
 
+#include <asm/fw/fw.h>
 #include <lantiq.h>
 
 #include "prom.h"
@@ -36,24 +36,6 @@ void prom_free_prom_memory(void)
 {
 }
 
-static void __init prom_init_cmdline(void)
-{
-       int argc = fw_arg0;
-       char **argv = (char **) KSEG1ADDR(fw_arg1);
-       int i;
-
-       arcs_cmdline[0] = '\0';
-
-       for (i = 0; i < argc; i++) {
-               char *p = (char *) KSEG1ADDR(argv[i]);
-
-               if (CPHYSADDR(p) && *p) {
-                       strlcat(arcs_cmdline, p, sizeof(arcs_cmdline));
-                       strlcat(arcs_cmdline, " ", sizeof(arcs_cmdline));
-               }
-       }
-}
-
 void __init plat_mem_setup(void)
 {
        ioport_resource.start = IOPORT_RESOURCE_START;
@@ -78,7 +60,7 @@ void __init prom_init(void)
                soc_info.name, soc_info.rev_type);
        soc_info.sys_type[LTQ_SYS_TYPE_LEN - 1] = '\0';
        pr_info("SoC: %s\n", soc_info.sys_type);
-       prom_init_cmdline();
+       fw_init_cmdline();
 
 #if defined(CONFIG_MIPS_MT_SMP)
        if (register_vsmp_smp_ops())
-- 
1.7.10.3


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