Zubair Lutfullah Kakakhel | 9937f5f | 2015-10-26 11:30:56 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Xilfpga platform setup |
| 3 | * |
| 4 | * Copyright (C) 2015 Imagination Technologies |
| 5 | * Author: Zubair Lutfullah Kakakhel <Zubair.Kakakhel@imgtec.com> |
| 6 | * |
| 7 | * This program is free software; you can redistribute it and/or modify it |
| 8 | * under the terms and conditions of the GNU General Public License, |
| 9 | * version 2, as published by the Free Software Foundation. |
| 10 | */ |
| 11 | |
| 12 | #include <linux/of_fdt.h> |
Zubair Lutfullah Kakakhel | 9937f5f | 2015-10-26 11:30:56 +0000 | [diff] [blame] | 13 | |
| 14 | #include <asm/prom.h> |
| 15 | |
| 16 | #define XILFPGA_UART_BASE 0xb0401000 |
| 17 | |
| 18 | const char *get_system_type(void) |
| 19 | { |
| 20 | return "MIPSfpga"; |
| 21 | } |
| 22 | |
| 23 | void __init plat_mem_setup(void) |
| 24 | { |
| 25 | __dt_setup_arch(__dtb_start); |
| 26 | strlcpy(arcs_cmdline, boot_command_line, COMMAND_LINE_SIZE); |
| 27 | } |
| 28 | |
| 29 | void __init prom_init(void) |
| 30 | { |
| 31 | setup_8250_early_printk_port(XILFPGA_UART_BASE, 2, 50000); |
| 32 | } |
| 33 | |
| 34 | void __init prom_free_prom_memory(void) |
| 35 | { |
| 36 | } |
| 37 | |
| 38 | void __init device_tree_init(void) |
| 39 | { |
| 40 | if (!initial_boot_params) |
| 41 | return; |
| 42 | |
| 43 | unflatten_and_copy_device_tree(); |
| 44 | } |