Skip to content

Commit

Permalink
arch: stm32f4/f7/l4: Add usb maximum speed defines to dts fixup
Browse files Browse the repository at this point in the history
Add CONFIG_USB_MAXIMUM_SPEED defines to dts fixup files.

Signed-off-by: Yannis Damigos <giannis.damigos@gmail.com>
  • Loading branch information
ydamigos authored and galak committed Oct 9, 2018
1 parent a2e7477 commit 1c4f22e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions soc/arm/st_stm32/stm32f4/dts_fixup.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@
#define CONFIG_USB_IRQ_PRI ST_STM32_OTGFS_50000000_IRQ_OTGFS_PRIORITY
#define CONFIG_USB_NUM_BIDIR_ENDPOINTS ST_STM32_OTGFS_50000000_NUM_BIDIR_ENDPOINTS
#define CONFIG_USB_RAM_SIZE ST_STM32_OTGFS_50000000_RAM_SIZE
#define CONFIG_USB_MAXIMUM_SPEED ST_STM32_OTGFS_50000000_MAXIMUM_SPEED
#endif /* ST_STM32_OTGFS_50000000_BASE_ADDRESS */

#ifdef ST_STM32_OTGHS_40040000_BASE_ADDRESS
Expand All @@ -97,6 +98,7 @@
#define CONFIG_USB_IRQ_PRI ST_STM32_OTGHS_40040000_IRQ_OTGHS_PRIORITY
#define CONFIG_USB_NUM_BIDIR_ENDPOINTS ST_STM32_OTGHS_40040000_NUM_BIDIR_ENDPOINTS
#define CONFIG_USB_RAM_SIZE ST_STM32_OTGHS_40040000_RAM_SIZE
#define CONFIG_USB_MAXIMUM_SPEED ST_STM32_OTGHS_40040000_MAXIMUM_SPEED
#endif /* ST_STM32_OTGHS_40040000_BASE_ADDRESS */

#define CONFIG_PWM_STM32_1_DEV_NAME ST_STM32_PWM_40010000_PWM_LABEL
Expand Down
2 changes: 2 additions & 0 deletions soc/arm/st_stm32/stm32f7/dts_fixup.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@
#define CONFIG_USB_IRQ_PRI ST_STM32_OTGFS_50000000_IRQ_OTGFS_PRIORITY
#define CONFIG_USB_NUM_BIDIR_ENDPOINTS ST_STM32_OTGFS_50000000_NUM_BIDIR_ENDPOINTS
#define CONFIG_USB_RAM_SIZE ST_STM32_OTGFS_50000000_RAM_SIZE
#define CONFIG_USB_MAXIMUM_SPEED ST_STM32_OTGFS_50000000_MAXIMUM_SPEED
#endif /* ST_STM32_OTGFS_50000000_BASE_ADDRESS */

#ifdef ST_STM32_OTGHS_40040000_BASE_ADDRESS
Expand All @@ -88,6 +89,7 @@
#define CONFIG_USB_IRQ_PRI ST_STM32_OTGHS_40040000_IRQ_OTGHS_PRIORITY
#define CONFIG_USB_NUM_BIDIR_ENDPOINTS ST_STM32_OTGHS_40040000_NUM_BIDIR_ENDPOINTS
#define CONFIG_USB_RAM_SIZE ST_STM32_OTGHS_40040000_RAM_SIZE
#define CONFIG_USB_MAXIMUM_SPEED ST_STM32_OTGHS_40040000_MAXIMUM_SPEED
#endif /* ST_STM32_OTGHS_40040000_BASE_ADDRESS */

#define CONFIG_PWM_STM32_1_DEV_NAME ST_STM32_PWM_40010000_PWM_LABEL
Expand Down
1 change: 1 addition & 0 deletions soc/arm/st_stm32/stm32l4/dts_fixup.h
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@
#define CONFIG_USB_IRQ_PRI ST_STM32_OTGFS_50000000_IRQ_OTGFS_PRIORITY
#define CONFIG_USB_NUM_BIDIR_ENDPOINTS ST_STM32_OTGFS_50000000_NUM_BIDIR_ENDPOINTS
#define CONFIG_USB_RAM_SIZE ST_STM32_OTGFS_50000000_RAM_SIZE
#define CONFIG_USB_MAXIMUM_SPEED ST_STM32_OTGFS_50000000_MAXIMUM_SPEED
#endif

#define CONFIG_PWM_STM32_1_DEV_NAME ST_STM32_PWM_40012C00_PWM_LABEL
Expand Down

0 comments on commit 1c4f22e

Please sign in to comment.