cregit-Linux how code gets into the kernel

Release 4.14 arch/mips/ralink/prom.c

Directory: arch/mips/ralink
/*
 *  This program is free software; you can redistribute it and/or modify it
 *  under the terms of the GNU General Public License version 2 as published
 *  by the Free Software Foundation.
 *
 *  Copyright (C) 2009 Gabor Juhos <juhosg@openwrt.org>
 *  Copyright (C) 2010 Joonas Lahtinen <joonas.lahtinen@gmail.com>
 *  Copyright (C) 2013 John Crispin <john@phrozen.org>
 */

#include <linux/string.h>
#include <linux/of_fdt.h>
#include <linux/of_platform.h>

#include <asm/bootinfo.h>
#include <asm/addrspace.h>

#include <asm/mach-ralink/ralink_regs.h>

#include "common.h"


struct ralink_soc_info soc_info;

struct rt2880_pmx_group *rt2880_pinmux_data = NULL;


enum ralink_soc_type ralink_soc;

EXPORT_SYMBOL_GPL(ralink_soc);


const char *get_system_type(void) { return soc_info.sys_type; }

Contributors

PersonTokensPropCommitsCommitProp
John Crispin14100.00%1100.00%
Total14100.00%1100.00%


static __init void prom_init_cmdline(void) { int argc; char **argv; int i; pr_debug("prom: fw_arg0=%08x fw_arg1=%08x fw_arg2=%08x fw_arg3=%08x\n", (unsigned int)fw_arg0, (unsigned int)fw_arg1, (unsigned int)fw_arg2, (unsigned int)fw_arg3); argc = fw_arg0; argv = (char **) KSEG1ADDR(fw_arg1); if (!argv) { pr_debug("argv=%p is invalid, skipping\n", argv); return; } for (i = 0; i < argc; i++) { char *p = (char *) KSEG1ADDR(argv[i]); if (CPHYSADDR(p) && *p) { pr_debug("argv[%d]: %s\n", i, p); strlcat(arcs_cmdline, " ", sizeof(arcs_cmdline)); strlcat(arcs_cmdline, p, sizeof(arcs_cmdline)); } } }

Contributors

PersonTokensPropCommitsCommitProp
John Crispin156100.00%2100.00%
Total156100.00%2100.00%


void __init prom_init(void) { prom_soc_init(&soc_info); pr_info("SoC Type: %s\n", get_system_type()); prom_init_cmdline(); }

Contributors

PersonTokensPropCommitsCommitProp
John Crispin25100.00%2100.00%
Total25100.00%2100.00%


void __init prom_free_prom_memory(void) { }

Contributors

PersonTokensPropCommitsCommitProp
John Crispin7100.00%1100.00%
Total7100.00%1100.00%


Overall Contributors

PersonTokensPropCommitsCommitProp
John Crispin244100.00%5100.00%
Total244100.00%5100.00%
Directory: arch/mips/ralink
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.