From 5f2043b538b38f26c8119a6a5c1b46532ce0c5cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E6=BB=A1?= Date: Thu, 18 Sep 2025 18:04:39 +0800 Subject: [PATCH] hi3095: add basic support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add hi3095 basic support. Signed-off-by: 小满 --- demos/hi3095/bsp/hi3095/cpu_config.h | 4 +++- demos/hi3095/bsp/mmu.c | 8 +++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/demos/hi3095/bsp/hi3095/cpu_config.h b/demos/hi3095/bsp/hi3095/cpu_config.h index 1e45fd46..d8526f07 100644 --- a/demos/hi3095/bsp/hi3095/cpu_config.h +++ b/demos/hi3095/bsp/hi3095/cpu_config.h @@ -20,9 +20,11 @@ #define MMU_RESERVED_ADDR 0x26000000ULL #define MMU_SPI_ADDR 0x187B0000ULL #define MMU_GMAC_HP_ADDR 0x1d200000ULL -#define MMU_GMAC_HOST_ADDR 0x1E810000ULL +#define MMU_GMAC_HOST_ADDR 0x1E800000ULL #define MMU_MDIO_ADDR 0x183F0000ULL #define MMU_HP_SUBSYS_ADDR 0x1C030000ULL +#define MMU_HOST_SUBSYS_ADDR 0x1E0E0000ULL + #define UART_BASE_ADDR MMU_UART_ADDR #if defined(GUEST_OS) diff --git a/demos/hi3095/bsp/mmu.c b/demos/hi3095/bsp/mmu.c index 8ff16600..85720174 100644 --- a/demos/hi3095/bsp/mmu.c +++ b/demos/hi3095/bsp/mmu.c @@ -132,7 +132,7 @@ static mmu_mmap_region_s g_mem_map_info[] = { .attrs = MMU_ATTR_DEVICE_NGNRNE | MMU_ACCESS_RWX, }, { .virt = MMU_GMAC_HOST_ADDR, - .phys = 0x1E810000, + .phys = MMU_GMAC_HOST_ADDR, .size = 0x40000, .max_level = 0x2, .attrs = MMU_ATTR_DEVICE_NGNRNE | MMU_ACCESS_RWX, @@ -148,6 +148,12 @@ static mmu_mmap_region_s g_mem_map_info[] = { .size = 0x10000, .max_level = 0x2, .attrs = MMU_ATTR_DEVICE_NGNRNE | MMU_ACCESS_RWX, + }, { + .virt = MMU_HOST_SUBSYS_ADD, + .phys = MMU_HOST_SUBSYS_ADD, + .size = 0x10000, + .max_level = 0x2, + .attrs = MMU_ATTR_DEVICE_NGNRNE | MMU_ACCESS_RWX, } }; -- Gitee