| Paul Burton | 571b7e6 | 2017-06-02 12:29:51 -0700 | [diff] [blame^] | 1 | /* |
| 2 | * Copyright (C) 2016 Imagination Technologies |
| 3 | * Author: Paul Burton <paul.burton@imgtec.com> |
| 4 | * |
| 5 | * This program is free software; you can redistribute it and/or modify it |
| 6 | * under the terms of the GNU General Public License as published by the |
| 7 | * Free Software Foundation; either version 2 of the License, or (at your |
| 8 | * option) any later version. |
| 9 | */ |
| 10 | |
| 11 | #ifndef __MIPS_ASM_YAMON_DT_H__ |
| 12 | #define __MIPS_ASM_YAMON_DT_H__ |
| 13 | |
| 14 | /** |
| 15 | * yamon_dt_append_cmdline() - Append YAMON-provided command line to /chosen |
| 16 | * @fdt: the FDT blob |
| 17 | * |
| 18 | * Write the YAMON-provided command line to the bootargs property of the |
| 19 | * /chosen node in @fdt. |
| 20 | * |
| 21 | * Return: 0 on success, else -errno |
| 22 | */ |
| 23 | extern __init int yamon_dt_append_cmdline(void *fdt); |
| 24 | |
| 25 | /** |
| 26 | * yamon_dt_append_memory() - Append YAMON-provided memory info to /memory |
| 27 | * @fdt: the FDT blob |
| 28 | * |
| 29 | * Generate a /memory node in @fdt based upon memory size information provided |
| 30 | * by YAMON in its environment. |
| 31 | * |
| 32 | * Return: 0 on success, else -errno |
| 33 | */ |
| 34 | extern __init int yamon_dt_append_memory(void *fdt); |
| 35 | |
| 36 | /** |
| 37 | * yamon_dt_serial_config() - Append YAMON-provided serial config to /chosen |
| 38 | * @fdt: the FDT blob |
| 39 | * |
| 40 | * Generate a stdout-path property in the /chosen node of @fdt, based upon |
| 41 | * information provided in the YAMON environment about the UART configuration |
| 42 | * of the system. |
| 43 | * |
| 44 | * Return: 0 on success, else -errno |
| 45 | */ |
| 46 | extern __init int yamon_dt_serial_config(void *fdt); |
| 47 | |
| 48 | #endif /* __MIPS_ASM_YAMON_DT_H__ */ |