esp32s2: drivers: interrupt_controller: add interrupt allocation support

through the reuse of current esp32 interrupt allocator.

Signed-off-by: Glauber Maroto Ferreira <glauber.ferreira@espressif.com>
This commit is contained in:
Glauber Maroto Ferreira 2021-08-13 15:29:03 -03:00 committed by Anas Nashif
commit 2c031caed0
7 changed files with 127 additions and 1 deletions

View file

@ -4,6 +4,7 @@
* SPDX-License-Identifier: Apache-2.0
*/
#include <mem.h>
#include <dt-bindings/interrupt-controller/esp32s2-xtensa-intmux.h>
/ {
#address-cells = <1>;
@ -31,6 +32,15 @@
reg = <0x3ffb0000 0x50000>;
};
intc: interrupt-controller@3f4c2000 {
#interrupt-cells = <1>;
compatible = "espressif,esp32-intc";
interrupt-controller;
reg = <0x3f4c2000 0x114>;
label = "INTC_0";
status = "okay";
};
uart0: uart@3f400000 {
compatible = "espressif,esp32s2-uart";
reg = <0x3f400000 0x400>;