zephyr/soc/espressif/common/include/hw_init.h
Marek Matej 9e49bbf179 soc: espressif: esp32s3: Add files to support AMP
Update to support APP_CPU flash access.

- fix the map_rom_segment so it can be used in other context
- add IROM and DROM region size in Kconfig
- update the memory.h by using dts records
- fix the appcpu ld file to support flash

Signed-off-by: Marek Matej <marek.matej@espressif.com>
2025-02-12 20:25:48 +01:00

24 lines
777 B
C

/*
* SPDX-FileCopyrightText: 2024 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef _SOC_ESPRESSIF_COMMON_HW_INIT_H_
#define _SOC_ESPRESSIF_COMMON_HW_INIT_H_
struct rom_segments {
unsigned int irom_map_addr; /* Mapped address (VMA) for IROM region */
unsigned int irom_flash_offset; /* Flash offset (LMA) for IROM region */
unsigned int irom_size; /* Size of IROM region */
unsigned int drom_map_addr; /* Mapped address (VMA) for DROM region */
unsigned int drom_flash_offset; /* Flash offset (LMA) for DROM region */
unsigned int drom_size; /* Size of DROM region */
};
void map_rom_segments(int core, struct rom_segments *map);
int hardware_init(void);
#endif /* _SOC_ESPRESSIF_COMMON_HW_INIT_H_ */