Skip to content
Permalink
Browse files

soc: stm32f4: add another pinmap for spi1

Add SPI1's pinmap on PB3, PB4 and PB5

Signed-off-by: Jun Li <jun.r.li@intel.com>
  • Loading branch information...
jli157 authored and galak committed Apr 9, 2019
1 parent 42b92e2 commit 33d32fb6e7fc6d822107c10cb7a168df6e039a5b
Showing with 8 additions and 0 deletions.
  1. +8 −0 drivers/pinmux/stm32/pinmux_stm32f4.h
@@ -130,13 +130,19 @@
#define STM32F4_PINMUX_FUNC_PB1_ETH \
(STM32_PINMUX_ALT_FUNC_11 | STM32_PUSHPULL_NOPULL | \
STM32_OSPEEDR_VERY_HIGH_SPEED)
#define STM32F4_PINMUX_FUNC_PB3_SPI1_SCK \
(STM32_PINMUX_ALT_FUNC_5 | STM32_PUSHPULL_NOPULL | \
STM32_OSPEEDR_VERY_HIGH_SPEED)


#define STM32F4_PINMUX_FUNC_PB4_PWM3_CH1 \
(STM32_PINMUX_ALT_FUNC_2 | STM32_PUSHPULL_NOPULL)
#define STM32F4_PINMUX_FUNC_PB4_UART7_TX \
(STM32_PINMUX_ALT_FUNC_8 | STM32_PUSHPULL_PULLUP)
#define STM32F4_PINMUX_FUNC_PB4_I2C3_SDA \
(STM32_PINMUX_ALT_FUNC_9 | STM32_OPENDRAIN_PULLUP)
#define STM32F4_PINMUX_FUNC_PB4_SPI1_MISO \
(STM32_PINMUX_ALT_FUNC_5 | STM32_PUSHPULL_NOPULL)

#define STM32F4_PINMUX_FUNC_PB5_I2S3_SD \
(STM32_PINMUX_ALT_FUNC_6 | STM32_PUSHPULL_NOPULL)
@@ -145,6 +151,8 @@
#define STM32F4_PINMUX_FUNC_PB5_ETH \
(STM32_PINMUX_ALT_FUNC_11 | STM32_PUSHPULL_NOPULL | \
STM32_OSPEEDR_VERY_HIGH_SPEED)
#define STM32F4_PINMUX_FUNC_PB5_SPI1_MOSI \
(STM32_PINMUX_ALT_FUNC_5 | STM32_PUSHPULL_NOPULL)

#define STM32F4_PINMUX_FUNC_PB6_PWM4_CH1 \
(STM32_PINMUX_ALT_FUNC_2 | STM32_PUSHPULL_NOPULL)

0 comments on commit 33d32fb

Please sign in to comment.
You can’t perform that action at this time.