arch: arm: cortex_m: Rework DT_NUM_IRQ_PRIO_BITS

To remove the need to have DT_NUM_IRQ_PRIO_BITS defined in every
dts_fixup.h we can just handle the few variant cases in irq.h.  This
allows us to remove DT_NUM_MPU_REGIONS from all the dts_fixup.h files.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
Kumar Gala 2020-04-15 11:27:43 -05:00 committed by Ioannis Glaropoulos
commit 5648df39ac
7 changed files with 38 additions and 9 deletions

View file

@ -280,6 +280,6 @@ typedef enum IRQn {
*/
#define __MPU_PRESENT 1
#define __NVIC_PRIO_BITS DT_NUM_IRQ_PRIO_BITS
#define __NVIC_PRIO_BITS NUM_IRQ_PRIO_BITS
#endif