cregit-Linux how code gets into the kernel

Release 4.7 arch/mips/xilfpga/init.c

/*
 * Xilfpga platform setup
 *
 * Copyright (C) 2015 Imagination Technologies
 * Author: Zubair Lutfullah Kakakhel <Zubair.Kakakhel@imgtec.com>
 *
 * This program is free software; you can redistribute it and/or modify it
 * under the terms and conditions of the GNU General Public License,
 * version 2, as published by the Free Software Foundation.
 */

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

#include <asm/prom.h>


#define XILFPGA_UART_BASE	0xb0401000


const char *get_system_type(void) { return "MIPSfpga"; }

Contributors

PersonTokensPropCommitsCommitProp
zubair lutfullahzubair lutfullah12100.00%1100.00%
Total12100.00%1100.00%


void __init plat_mem_setup(void) { __dt_setup_arch(__dtb_start); strlcpy(arcs_cmdline, boot_command_line, COMMAND_LINE_SIZE); }

Contributors

PersonTokensPropCommitsCommitProp
zubair lutfullahzubair lutfullah22100.00%1100.00%
Total22100.00%1100.00%


void __init prom_init(void) { setup_8250_early_printk_port(XILFPGA_UART_BASE, 2, 50000); }

Contributors

PersonTokensPropCommitsCommitProp
zubair lutfullahzubair lutfullah17100.00%1100.00%
Total17100.00%1100.00%


void __init prom_free_prom_memory(void) { }

Contributors

PersonTokensPropCommitsCommitProp
zubair lutfullahzubair lutfullah7100.00%1100.00%
Total7100.00%1100.00%


void __init device_tree_init(void) { if (!initial_boot_params) return; unflatten_and_copy_device_tree(); }

Contributors

PersonTokensPropCommitsCommitProp
zubair lutfullahzubair lutfullah17100.00%1100.00%
Total17100.00%1100.00%


static int __init plat_of_setup(void) { if (!of_have_populated_dt()) panic("Device tree not present"); if (of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL)) panic("Failed to populate DT"); return 0; }

Contributors

PersonTokensPropCommitsCommitProp
zubair lutfullahzubair lutfullah41100.00%1100.00%
Total41100.00%1100.00%

arch_initcall(plat_of_setup);

Overall Contributors

PersonTokensPropCommitsCommitProp
zubair lutfullahzubair lutfullah135100.00%1100.00%
Total135100.00%1100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
{% endraw %}