same70: Add SPI1, SPI2 support
Add SPI1/2 pinmap, dts.fixup for atmel sam series soc Signed-off-by: qianfan Zhao <qianfanguijin@163.com>
This commit is contained in:
parent
5a07a1215d
commit
3974978ea3
3 changed files with 27 additions and 0 deletions
|
@ -135,4 +135,14 @@
|
|||
|
||||
#define PINS_TWIHS2 {PIN_TWIHS2_TWCK, PIN_TWIHS2_TWD}
|
||||
|
||||
/* Serial Peripheral Interface (SPI) */
|
||||
|
||||
#define PINS_SPI0_MASK \
|
||||
(PIO_PD20B_SPI0_MISO | PIO_PD21B_SPI0_MOSI | PIO_PD22B_SPI0_SPCK)
|
||||
#define PINS_SPI0 {PINS_SPI0_MASK, PIOD, ID_PIOD, SOC_GPIO_FUNC_B}
|
||||
|
||||
#define PINS_SPI1_MASK \
|
||||
(PIO_PC26C_SPI1_MISO | PIO_PC27C_SPI1_MOSI | PIO_PC24C_SPI1_SPCK)
|
||||
#define PINS_SPI1 {PINS_SPI1_MASK, PIOC, ID_PIOC, SOC_GPIO_FUNC_C}
|
||||
|
||||
#endif /* _ATMEL_SAM_SOC_PINMAP_H_ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue