feat: add APU-P1 support and enhance test coverage

- Introduced new task  in  for handling high-performance APU writes with access fault checks.
- Updated  to support an expanded resource count, including ownership and IRQ routing for the new APU resource.
- Enhanced  to validate IRQ expectations for the newly added APU resource.
- Created  for directed verification of APU-P1 APB4 register shell and integrated IRQ ownership topology.
- Added  to ensure synchronization between RTL and SDK register ABI.
- Modified  to parameterize tests for product modes, improving flexibility in testing.
- Updated  to reflect changes in APU memory mapping and ensure correct assertions.
- Enhanced  to validate the complete IRQ and resource allocations for the APU.
This commit is contained in:
maksyuki committed 2026-09-02 22:00:45 +08:00
1 parent eb47bdef4c
commit 52f619b9dc
41 files changed
+2385 -134

No files matched your search

+6
View File
@@ -6,6 +6,7 @@
#include <retrosoc/core/status.h>
#include <retrosoc/core/wait.h>
#include <retrosoc/hal/apu.h>
#include <retrosoc/hal/gpio.h>
#include <retrosoc/hal/clock.h>
#include <retrosoc/hal/extension.h>
@@ -864,6 +865,10 @@ static int test_resource_validation(void) {
return 0;
}
static int test_apu_validation(void) {
return (rs_apu_probe(NULL) == RS_EINVAL) ? 0 : 1;
}
static int test_jpeg_validation(void) {
static _Alignas(RS_JPEG_DESCRIPTOR_ALIGNMENT) rs_jpeg_descriptor_t ring[2];
rs_jpeg_descriptor_t descriptor;
@@ -1016,6 +1021,7 @@ int main(void) {
test_user_ip_validation(),
test_extension_validation(),
test_resource_validation(),
test_apu_validation(),
test_jpeg_validation(),
test_ps2_decoders(),
test_wav_parser(),