drivers: usb/stm32: use dts information to populate clock settings
This patch populates "clocks" property in stm32 usb nodes for clock related usb configuration code of each dtsi files Signed-off-by: Francois Ramu <francois.ramu@st.com>
This commit is contained in:
parent
8e11970378
commit
474c99c9ef
27 changed files with 59 additions and 23 deletions
|
@ -218,6 +218,8 @@
|
|||
#define DT_USB_IRQ_PRI DT_ST_STM32_USB_40006800_IRQ_USB_PRIORITY
|
||||
#define DT_USB_NUM_BIDIR_ENDPOINTS DT_ST_STM32_USB_40006800_NUM_BIDIR_ENDPOINTS
|
||||
#define DT_USB_RAM_SIZE DT_ST_STM32_USB_40006800_RAM_SIZE
|
||||
#define DT_USB_CLOCK_BITS DT_ST_STM32_USB_40006800_CLOCK_BITS
|
||||
#define DT_USB_CLOCK_BUS DT_ST_STM32_USB_40006800_CLOCK_BUS
|
||||
#endif
|
||||
|
||||
#if defined(DT_ST_STM32_OTGFS_50000000_BASE_ADDRESS)
|
||||
|
@ -227,6 +229,8 @@
|
|||
#define DT_USB_NUM_BIDIR_ENDPOINTS DT_ST_STM32_OTGFS_50000000_NUM_BIDIR_ENDPOINTS
|
||||
#define DT_USB_RAM_SIZE DT_ST_STM32_OTGFS_50000000_RAM_SIZE
|
||||
#define DT_USB_MAXIMUM_SPEED DT_ST_STM32_OTGFS_50000000_MAXIMUM_SPEED
|
||||
#define DT_USB_CLOCK_BITS DT_ST_STM32_OTGFS_50000000_CLOCK_BITS
|
||||
#define DT_USB_CLOCK_BUS DT_ST_STM32_OTGFS_50000000_CLOCK_BUS
|
||||
#endif
|
||||
|
||||
#define DT_PWM_STM32_1_DEV_NAME DT_ST_STM32_PWM_40012C00_PWM_LABEL
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue