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
|
@ -290,6 +290,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 /* DT_ST_STM32_OTGFS_50000000_BASE_ADDRESS */
|
||||
|
||||
#ifdef DT_ST_STM32_OTGHS_40040000_BASE_ADDRESS
|
||||
|
@ -299,6 +301,8 @@
|
|||
#define DT_USB_NUM_BIDIR_ENDPOINTS DT_ST_STM32_OTGHS_40040000_NUM_BIDIR_ENDPOINTS
|
||||
#define DT_USB_RAM_SIZE DT_ST_STM32_OTGHS_40040000_RAM_SIZE
|
||||
#define DT_USB_MAXIMUM_SPEED DT_ST_STM32_OTGHS_40040000_MAXIMUM_SPEED
|
||||
#define DT_USB_CLOCK_BITS DT_ST_STM32_OTGHS_40040000_CLOCK_BITS
|
||||
#define DT_USB_CLOCK_BUS DT_ST_STM32_OTGHS_40040000_CLOCK_BUS
|
||||
#endif /* DT_ST_STM32_OTGHS_40040000_BASE_ADDRESS */
|
||||
|
||||
#define DT_PWM_STM32_1_DEV_NAME DT_ST_STM32_PWM_40010000_PWM_LABEL
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue