1 /* 2 * Copyright 2025 NXP 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 /* 8 * This is for the memory I/O region 9 * of the shared memory between HiFi4 DSP and A35 system 10 */ 11 static const struct phys_page_info physmap[] = { 12 { 13 .addr = 0x1bef0000, 14 .remote_addr = 0x8fef0000, 15 .size = 0x10000000 16 } 17 }; 18 19 static const struct phys_pages vendor_phys_map = { 20 .no_pages = 1, 21 .map = physmap 22 }; 23 24 /* 25 * Return table of base physical addresses for the I/O region 26 * that starts with the specified physical base address (phys) 27 */ get_phys_map(metal_phys_addr_t phys)28static inline const struct phys_pages *get_phys_map(metal_phys_addr_t phys) 29 { 30 if (phys == physmap[0].addr) { 31 return &vendor_phys_map; 32 } 33 return NULL; 34 } 35