| To: | linux-mips@linux-mips.org, ralf@linux-mips.org |
|---|---|
| Subject: | [PATCH 08/35] MIPS: Cobalt: Cleanup firmware support for the Cobalt platform. |
| From: | "Steven J. Hill" <sjhill@mips.com> |
| Date: | Tue, 5 Jun 2012 16:19:12 -0500 |
| Cc: | "Steven J. Hill" <sjhill@mips.com> |
| In-reply-to: | <1338931179-9611-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: | <1338931179-9611-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/cobalt/setup.c | 18 +++---------------
1 file changed, 3 insertions(+), 15 deletions(-)
diff --git a/arch/mips/cobalt/setup.c b/arch/mips/cobalt/setup.c
index ec3b2c4..3fdd449 100644
--- a/arch/mips/cobalt/setup.c
+++ b/arch/mips/cobalt/setup.c
@@ -15,9 +15,9 @@
#include <linux/ioport.h>
#include <linux/pm.h>
-#include <asm/bootinfo.h>
#include <asm/reboot.h>
#include <asm/gt64120.h>
+#include <asm/fw/fw.h>
#include <cobalt.h>
@@ -97,21 +97,9 @@ void __init plat_mem_setup(void)
void __init prom_init(void)
{
- unsigned long memsz;
- int argc, i;
- char **argv;
+ fw_init_cmdline();
- memsz = fw_arg0 & 0x7fff0000;
- argc = fw_arg0 & 0x0000ffff;
- argv = (char **)fw_arg1;
-
- for (i = 1; i < argc; i++) {
- strlcat(arcs_cmdline, argv[i], COMMAND_LINE_SIZE);
- if (i < (argc - 1))
- strlcat(arcs_cmdline, " ", COMMAND_LINE_SIZE);
- }
-
- add_memory_region(0x0, memsz, BOOT_MEM_RAM);
+ add_memory_region(0x0, (fw_arg0 & 0x7fff0000), BOOT_MEM_RAM);
}
void __init prom_free_prom_memory(void)
--
1.7.10.3
|
| Previous by Date: | [PATCH 07/35] MIPS: ath79: Cleanup files effected by firmware changes., Steven J. Hill |
|---|---|
| Next by Date: | [PATCH 09/35] MIPS: Cobalt: Cleanup files effected by firmware changes., Steven J. Hill |
| Previous by Thread: | Re: [PATCH 07/35] MIPS: ath79: Cleanup files effected by firmware changes., Sergei Shtylyov |
| Next by Thread: | [PATCH 09/35] MIPS: Cobalt: Cleanup files effected by firmware changes., Steven J. Hill |
| Indexes: | [Date] [Thread] [Top] [All Lists] |