arch: stm32l432: add support for USB controller
The STM32L432 SoC has a standard non-OTG USB controller. Add an entry for it in stm32l432.dtsi and add the corresponding DTS fixup entries. The controller is kept disabled and should be enabled at the board level. Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
This commit is contained in:
parent
dc01b99068
commit
509e6964cc
2 changed files with 23 additions and 0 deletions
|
@ -74,6 +74,14 @@
|
|||
#define FLASH_DEV_BASE_ADDRESS ST_STM32L4_FLASH_CONTROLLER_40022000_BASE_ADDRESS
|
||||
#define FLASH_DEV_NAME ST_STM32L4_FLASH_CONTROLLER_40022000_LABEL
|
||||
|
||||
#if defined(ST_STM32_USB_40006800_BASE_ADDRESS)
|
||||
#define CONFIG_USB_BASE_ADDRESS ST_STM32_USB_40006800_BASE_ADDRESS
|
||||
#define CONFIG_USB_IRQ ST_STM32_USB_40006800_IRQ_USB
|
||||
#define CONFIG_USB_IRQ_PRI ST_STM32_USB_40006800_IRQ_USB_PRIORITY
|
||||
#define CONFIG_USB_NUM_BIDIR_ENDPOINTS ST_STM32_USB_40006800_NUM_BIDIR_ENDPOINTS
|
||||
#define CONFIG_USB_RAM_SIZE ST_STM32_USB_40006800_RAM_SIZE
|
||||
#endif
|
||||
|
||||
#if defined(ST_STM32_OTGFS_50000000_BASE_ADDRESS)
|
||||
#define CONFIG_USB_BASE_ADDRESS ST_STM32_OTGFS_50000000_BASE_ADDRESS
|
||||
#define CONFIG_USB_IRQ ST_STM32_OTGFS_50000000_IRQ_OTGFS
|
||||
|
|
|
@ -5,3 +5,18 @@
|
|||
*/
|
||||
|
||||
#include <st/stm32l4.dtsi>
|
||||
|
||||
/ {
|
||||
soc {
|
||||
usb: usb@40006800 {
|
||||
compatible = "st,stm32-usb";
|
||||
reg = <0x40006800 0x40000>;
|
||||
interrupts = <67 0>;
|
||||
interrupt-names = "usb";
|
||||
num-bidir-endpoints = <8>;
|
||||
ram-size = <1024>;
|
||||
status = "disabled";
|
||||
label = "USB";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue