diff options
Diffstat (limited to 'bsp')
-rw-r--r-- | bsp/coreip-e31-arty/mee.h | 11 | ||||
-rw-r--r-- | bsp/coreip-e31/mee.h | 11 | ||||
-rw-r--r-- | bsp/coreip-s51-arty/mee.h | 11 | ||||
-rw-r--r-- | bsp/coreip-s51/mee.h | 11 |
4 files changed, 44 insertions, 0 deletions
diff --git a/bsp/coreip-e31-arty/mee.h b/bsp/coreip-e31-arty/mee.h index 87d8b7a..80c7822 100644 --- a/bsp/coreip-e31-arty/mee.h +++ b/bsp/coreip-e31-arty/mee.h @@ -27,6 +27,7 @@ #include <mee/drivers/fixed-clock.h> #include <mee/drivers/sifive,gpio0.h> #include <mee/drivers/sifive,uart0.h> +#include <mee/pmp.h> #include <mee/drivers/sifive,local-external-interrupts0.h> #include <mee/drivers/sifive,global-external-interrupts0.h> #include <mee/drivers/sifive,gpio-leds.h> @@ -69,6 +70,9 @@ struct __mee_driver_sifive_gpio0 __mee_dt_gpio_20002000; asm (".weak __mee_dt_serial_20000000"); struct __mee_driver_sifive_uart0 __mee_dt_serial_20000000; +asm (".weak __mee_dt_pmp_0"); +struct mee_pmp __mee_dt_pmp_0; + /* From led@0red */ asm (".weak __mee_dt_led_0red"); struct __mee_driver_sifive_gpio_led __mee_dt_led_0red; @@ -401,6 +405,13 @@ struct __mee_driver_sifive_gpio_switch __mee_dt_switch_3 = { .label = "SW3", }; +/* From pmp@0 */ +struct mee_pmp __mee_dt_pmp_0 = { + .num_regions = 8UL, +}; + +#define __MEE_DT_PMP_HANDLE (&__mee_dt_pmp_0) + /* From teststatus@4000 */ struct __mee_driver_sifive_test0 __mee_dt_teststatus_4000 = { .vtable = &__mee_driver_vtable_sifive_test0, diff --git a/bsp/coreip-e31/mee.h b/bsp/coreip-e31/mee.h index a520854..068af63 100644 --- a/bsp/coreip-e31/mee.h +++ b/bsp/coreip-e31/mee.h @@ -18,6 +18,7 @@ #include <mee/drivers/riscv,cpu.h> #include <mee/drivers/riscv,clint0.h> #include <mee/drivers/riscv,plic0.h> +#include <mee/pmp.h> #include <mee/drivers/sifive,local-external-interrupts0.h> #include <mee/drivers/sifive,global-external-interrupts0.h> #include <mee/drivers/sifive,test0.h> @@ -45,6 +46,9 @@ struct __mee_driver_sifive_local_external_interrupts0 __mee_dt_local_external_in asm (".weak __mee_dt_global_external_interrupts"); struct __mee_driver_sifive_global_external_interrupts0 __mee_dt_global_external_interrupts; +asm (".weak __mee_dt_pmp_0"); +struct mee_pmp __mee_dt_pmp_0; + /* From teststatus@4000 */ asm (".weak __mee_dt_teststatus_4000"); struct __mee_driver_sifive_test0 __mee_dt_teststatus_4000; @@ -286,6 +290,13 @@ struct __mee_driver_sifive_global_external_interrupts0 __mee_dt_global_external_ #define __MEE_DT_GLOBAL_EXTERNAL_INTERRUPTS_HANDLE (&__mee_dt_global_external_interrupts.irc) +/* From pmp@0 */ +struct mee_pmp __mee_dt_pmp_0 = { + .num_regions = 8UL, +}; + +#define __MEE_DT_PMP_HANDLE (&__mee_dt_pmp_0) + /* From teststatus@4000 */ struct __mee_driver_sifive_test0 __mee_dt_teststatus_4000 = { .vtable = &__mee_driver_vtable_sifive_test0, diff --git a/bsp/coreip-s51-arty/mee.h b/bsp/coreip-s51-arty/mee.h index 0e9cc9c..d8a3ebb 100644 --- a/bsp/coreip-s51-arty/mee.h +++ b/bsp/coreip-s51-arty/mee.h @@ -27,6 +27,7 @@ #include <mee/drivers/fixed-clock.h> #include <mee/drivers/sifive,gpio0.h> #include <mee/drivers/sifive,uart0.h> +#include <mee/pmp.h> #include <mee/drivers/sifive,local-external-interrupts0.h> #include <mee/drivers/sifive,global-external-interrupts0.h> #include <mee/drivers/sifive,gpio-leds.h> @@ -69,6 +70,9 @@ struct __mee_driver_sifive_gpio0 __mee_dt_gpio_20002000; asm (".weak __mee_dt_serial_20000000"); struct __mee_driver_sifive_uart0 __mee_dt_serial_20000000; +asm (".weak __mee_dt_pmp_0"); +struct mee_pmp __mee_dt_pmp_0; + /* From led@0red */ asm (".weak __mee_dt_led_0red"); struct __mee_driver_sifive_gpio_led __mee_dt_led_0red; @@ -401,6 +405,13 @@ struct __mee_driver_sifive_gpio_switch __mee_dt_switch_3 = { .label = "SW3", }; +/* From pmp@0 */ +struct mee_pmp __mee_dt_pmp_0 = { + .num_regions = 8UL, +}; + +#define __MEE_DT_PMP_HANDLE (&__mee_dt_pmp_0) + /* From teststatus@4000 */ struct __mee_driver_sifive_test0 __mee_dt_teststatus_4000 = { .vtable = &__mee_driver_vtable_sifive_test0, diff --git a/bsp/coreip-s51/mee.h b/bsp/coreip-s51/mee.h index e73d681..a6d3add 100644 --- a/bsp/coreip-s51/mee.h +++ b/bsp/coreip-s51/mee.h @@ -18,6 +18,7 @@ #include <mee/drivers/riscv,cpu.h> #include <mee/drivers/riscv,clint0.h> #include <mee/drivers/riscv,plic0.h> +#include <mee/pmp.h> #include <mee/drivers/sifive,local-external-interrupts0.h> #include <mee/drivers/sifive,global-external-interrupts0.h> #include <mee/drivers/sifive,test0.h> @@ -45,6 +46,9 @@ struct __mee_driver_sifive_local_external_interrupts0 __mee_dt_local_external_in asm (".weak __mee_dt_global_external_interrupts"); struct __mee_driver_sifive_global_external_interrupts0 __mee_dt_global_external_interrupts; +asm (".weak __mee_dt_pmp_0"); +struct mee_pmp __mee_dt_pmp_0; + /* From teststatus@4000 */ asm (".weak __mee_dt_teststatus_4000"); struct __mee_driver_sifive_test0 __mee_dt_teststatus_4000; @@ -414,6 +418,13 @@ struct __mee_driver_sifive_global_external_interrupts0 __mee_dt_global_external_ #define __MEE_DT_GLOBAL_EXTERNAL_INTERRUPTS_HANDLE (&__mee_dt_global_external_interrupts.irc) +/* From pmp@0 */ +struct mee_pmp __mee_dt_pmp_0 = { + .num_regions = 8UL, +}; + +#define __MEE_DT_PMP_HANDLE (&__mee_dt_pmp_0) + /* From teststatus@4000 */ struct __mee_driver_sifive_test0 __mee_dt_teststatus_4000 = { .vtable = &__mee_driver_vtable_sifive_test0, |