From 9df731a176aab8e03b984b681b1bea01ccff6644 Mon Sep 17 00:00:00 2001 From: hc <hc@nodka.com> Date: Mon, 06 Nov 2023 07:23:06 +0000 Subject: [PATCH] rk3568 rt uboot init --- u-boot/include/dm/fdtaddr.h | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/u-boot/include/dm/fdtaddr.h b/u-boot/include/dm/fdtaddr.h index c46f0e9..9265677 100644 --- a/u-boot/include/dm/fdtaddr.h +++ b/u-boot/include/dm/fdtaddr.h @@ -35,6 +35,18 @@ void *devfdt_get_addr_ptr(struct udevice *dev); /** + * devfdt_remap_addr_index() - Return indexed pointer to the memory-mapped + * I/O address of the reg property of a device + * @index: the 'reg' property can hold a list of <addr, size> pairs + * and @index is used to select which one is required + * + * @dev: Pointer to a device + * + * Return: Pointer to addr, or NULL if there is no such property + */ +void *devfdt_remap_addr_index(struct udevice *dev, int index); + +/** * devfdt_map_physmem() - Read device address from reg property of the * device node and map the address into CPU address * space. -- Gitblit v1.6.2