![]() U32 val /* configure pinmux to SPI extra Slave Select */ Val = bcm_gpio_readl (GPIO_CTL_LO_REG ) īcm_gpio_writel (val, GPIO_CTL_LO_REG ) /* BCM6328 */ #define SEL_SPI2 8 #define PINMUX_SEL_SPI2_MASK (3 << SEL_SPI2) #define PINMUX_SEL_SPI2 (2 << SEL_SPI2) Val |= (GPIO_MODE_6368_SPI_SSN2 | GPIO_MODE_6368_SPI_SSN3 | GPIO_MODE_6368_SPI_SSN4 | GPIO_MODE_6368_SPI_SSN5 ) īcm_gpio_writel (val, GPIO_MODE_REG ) /* Enable SPI Slave Select as Output Pins */ /* GPIO 28 is SS2, GPIO 29 is SS3, GPIO 30 is SS4, GPIO 31 is SS5*/ ![]() Val = bcm_gpio_readl (GPIO_CTL_HI_REG ) īcm_gpio_writel (val, GPIO_CTL_HI_REG ) /* BCM6368 */ U32 val /* Enable Overlay for SPI SS Pins */īcm_gpio_writel (val, GPIO_MODE_REG ) /* Enable SPI Slave Select as Output Pins */ /* GPIO 32 is SS2, GPIO 33 is SS3 */ U32 val /* Enable Extra SPI CS */ /* GPIO 29 is SS1, GPIO 30 is SS2, GPIO 31 is SS2 */īcm_gpio_writel (val, GPIO_MODE_REG ) /* BCM6358 */ ![]() Snippet code example for enabling these extra slave-selects at GPIOs:
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |