![]() |
|
|||
0001 /* SPDX-License-Identifier: GPL-2.0-or-later */ 0002 /* 0003 * Copyright (C) 2016 Imagination Technologies 0004 * Author: Paul Burton <paul.burton@mips.com> 0005 */ 0006 0007 #ifndef __MIPS_ASM_YAMON_DT_H__ 0008 #define __MIPS_ASM_YAMON_DT_H__ 0009 0010 #include <linux/types.h> 0011 0012 /** 0013 * struct yamon_mem_region - Represents a contiguous range of physical RAM. 0014 * @start: Start physical address. 0015 * @size: Maximum size of region. 0016 * @discard: Length of additional memory to discard after the region. 0017 */ 0018 struct yamon_mem_region { 0019 phys_addr_t start; 0020 phys_addr_t size; 0021 phys_addr_t discard; 0022 }; 0023 0024 /** 0025 * yamon_dt_append_cmdline() - Append YAMON-provided command line to /chosen 0026 * @fdt: the FDT blob 0027 * 0028 * Write the YAMON-provided command line to the bootargs property of the 0029 * /chosen node in @fdt. 0030 * 0031 * Return: 0 on success, else -errno 0032 */ 0033 extern __init int yamon_dt_append_cmdline(void *fdt); 0034 0035 /** 0036 * yamon_dt_append_memory() - Append YAMON-provided memory info to /memory 0037 * @fdt: the FDT blob 0038 * @regions: zero size terminated array of physical memory regions 0039 * 0040 * Generate a /memory node in @fdt based upon memory size information provided 0041 * by YAMON in its environment and the @regions array. 0042 * 0043 * Return: 0 on success, else -errno 0044 */ 0045 extern __init int yamon_dt_append_memory(void *fdt, 0046 const struct yamon_mem_region *regions); 0047 0048 /** 0049 * yamon_dt_serial_config() - Append YAMON-provided serial config to /chosen 0050 * @fdt: the FDT blob 0051 * 0052 * Generate a stdout-path property in the /chosen node of @fdt, based upon 0053 * information provided in the YAMON environment about the UART configuration 0054 * of the system. 0055 * 0056 * Return: 0 on success, else -errno 0057 */ 0058 extern __init int yamon_dt_serial_config(void *fdt); 0059 0060 #endif /* __MIPS_ASM_YAMON_DT_H__ */
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |