mirror of
https://github.com/torvalds/linux.git
synced 2026-11-27 00:43:12 +00:00
After patch "of/platform: Add common method to populate default bus", it is possible for arch code to remove unnecessary callers of of_platform_populate with default match table. Cc: Ralf Baechle <[email protected]> Cc: Alban Bedel <[email protected]> Cc: Paul Burton <[email protected]> Cc: James Hogan <[email protected]> Cc: Joshua Henderson <[email protected]> Cc: Zubair Lutfullah Kakakhel <[email protected]> Signed-off-by: Kefeng Wang <[email protected]> Signed-off-by: Rob Herring <[email protected]>
45 lines
885 B
C
45 lines
885 B
C
/*
|
|
* Xilfpga platform setup
|
|
*
|
|
* Copyright (C) 2015 Imagination Technologies
|
|
* Author: Zubair Lutfullah Kakakhel <[email protected]>
|
|
*
|
|
* 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 <asm/prom.h>
|
|
|
|
#define XILFPGA_UART_BASE 0xb0401000
|
|
|
|
const char *get_system_type(void)
|
|
{
|
|
return "MIPSfpga";
|
|
}
|
|
|
|
void __init plat_mem_setup(void)
|
|
{
|
|
__dt_setup_arch(__dtb_start);
|
|
strlcpy(arcs_cmdline, boot_command_line, COMMAND_LINE_SIZE);
|
|
}
|
|
|
|
void __init prom_init(void)
|
|
{
|
|
setup_8250_early_printk_port(XILFPGA_UART_BASE, 2, 50000);
|
|
}
|
|
|
|
void __init prom_free_prom_memory(void)
|
|
{
|
|
}
|
|
|
|
void __init device_tree_init(void)
|
|
{
|
|
if (!initial_boot_params)
|
|
return;
|
|
|
|
unflatten_and_copy_device_tree();
|
|
}
|