1 // SPDX-License-Identifier: GPL-2.0-or-later
5 * Copyright 2008 NXP Semiconductors
6 * Chris Steel <chris.steel@nxp.com>
7 * Daniel Laird <daniel.j.laird@nxp.com>
9 * Based on software written by:
10 * Nikita Youshchenko <yoush@debian.org>, based on PNX8550 code.
12 #include <linux/init.h>
13 #include <asm/bootinfo.h>
14 #include <linux/string.h>
16 void __init
prom_init_cmdline(void)
19 char **argv
= (char **)fw_arg1
;
20 char *c
= &(arcs_cmdline
[0]);
23 for (i
= 1; i
< argc
; i
++) {
32 char __init
*prom_getenv(char *envname
)
34 extern char **prom_envp
;
35 char **env
= prom_envp
;
41 if (strncmp(envname
, *env
, i
) == 0 && *(*env
+i
) == '=')
49 void __init
prom_free_prom_memory(void)