| 4efae6ab | 04-Jul-2025 |
Prasad Kummari <prasad.kummari@amd.com> |
feat(versal2): add hooks for mmap and early setup
Add early setup hooks through custom_early_setup() and provide a mechanism to support custom memory mapping, including the extension of the memory m
feat(versal2): add hooks for mmap and early setup
Add early setup hooks through custom_early_setup() and provide a mechanism to support custom memory mapping, including the extension of the memory map via custom_mmap_add(). This change may also require alignment of the MAX_XLAT_TABLE and MAX_XLAT_TABLES macros. These can be defined within the custom_pkg.mk makefile as follows:
MAX_MMAP_REGIONS := XY $(eval $(call add_define,MAX_MMAP_REGIONS)) MAX_XLAT_TABLES := XZ $(eval $(call add_define,MAX_XLAT_TABLES))
If PLATFORM_STACK_SIZE is not already defined, a default value should be used. This allows for configurability of the stack size across different interfaces, such as custom packages. The custom_early_setup() function enables early low-level operations to bring the system into a correct state. Support for a custom SiP service is also added. A basic implementation of custom_smc_handler() is provided by the platform, while the actual definition is expected to be supplied by the custom package. This feature is designed for use by external libraries, such as those that require status checking. This code introduces a generic framework for integrating custom logic via the $(CUSTOM_PKG_PATH)/custom_pkg.mk makefile, including optional support for custom SMC functionality, which is determined by the custom package.
Change-Id: I40281acf2dc48be43471b8642e2ab1a93b1cf8f6 Signed-off-by: Prasad Kummari <prasad.kummari@amd.com>
show more ...
|
| af22b19d | 07-Apr-2025 |
Ben Levinsky <ben.levinsky@amd.com> |
feat(versal2): add bufferless IPI Support
Versal Gen 2 SOC has same IPI mapping as Versal NET SOC.
Ports the bufferless Versal NET IPI mapping to Versal Gen 2.
Change-Id: I1dc11c8473c390a517fdd3a9
feat(versal2): add bufferless IPI Support
Versal Gen 2 SOC has same IPI mapping as Versal NET SOC.
Ports the bufferless Versal NET IPI mapping to Versal Gen 2.
Change-Id: I1dc11c8473c390a517fdd3a9e4fc35dc5563792b Signed-off-by: Ben Levinsky <ben.levinsky@amd.com> Signed-off-by: Akshay Belsare <akshay.belsare@amd.com>
show more ...
|