From e7f76b4eb58c6230ce1ffd143f1c8a5a507bdbe9 Mon Sep 17 00:00:00 2001 From: Reza Arbab Date: Wed, 17 Jul 2019 15:44:20 -0500 Subject: hw/phys-map: Add pvr argument to phys_map_init() When new chip types are added, phys_map_init() will need to know which memory map it should use. Instead of directly checking PVR, make it an argument to the function, so that 'make hw-check' can test all the maps. Signed-off-by: Reza Arbab Acked-by: Michael Neuling Reviewed-by: Andrew Donnellan Acked-by: Stewart Smith Signed-off-by: Oliver O'Halloran --- include/phys-map.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/phys-map.h b/include/phys-map.h index 6fd8cf5..4e694f6 100644 --- a/include/phys-map.h +++ b/include/phys-map.h @@ -46,7 +46,7 @@ enum phys_map_type { extern void phys_map_get(uint64_t gcid, enum phys_map_type type, int index, uint64_t *addr, uint64_t *size); -extern void phys_map_init(void); +extern void phys_map_init(unsigned long pvr); #endif /* __PHYS_MAP_H */ -- cgit v1.1