ipm: Add support for stm31mp1 Soc

Add the mailbox support for stm32mp15 SoC relied on IPCC peripheral.

Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@st.com>
This commit is contained in:
Arnaud Pouliquen 2019-06-18 17:49:57 +02:00 committed by Carles Cufí
commit d9add0a65a
3 changed files with 22 additions and 0 deletions

View file

@ -209,6 +209,17 @@
status = "disabled"; status = "disabled";
label = "UART_8"; label = "UART_8";
}; };
mailbox: mailbox@4c001000 {
compatible = "st,stm32-ipcc-mailbox";
reg = <0x4c001000 0x400>;
clocks = <&rcc STM32_CLOCK_BUS_AHB3 0x00001000>;
interrupts = <103 0>, <104 0>;
interrupt-names = "rxo", "txf";
status = "disabled";
label = "MAILBOX_0";
};
}; };
}; };

View file

@ -40,4 +40,11 @@ config GPIO_STM32_PORTK
endif # GPIO_STM32 endif # GPIO_STM32
if IPM
config IPM_STM32_IPCC
default y
endif # IPM
endif # SOC_SERIES_STM32MP1X endif # SOC_SERIES_STM32MP1X

View file

@ -46,6 +46,10 @@
#include <stm32mp1xx_ll_usart.h> #include <stm32mp1xx_ll_usart.h>
#endif #endif
#ifdef CONFIG_IPM_STM32_IPCC
#include <stm32mp1xx_ll_ipcc.h>
#endif
#endif /* !_ASMLANGUAGE */ #endif /* !_ASMLANGUAGE */
#endif /* _STM32MP1SOC_H_ */ #endif /* _STM32MP1SOC_H_ */