This is MISO, which the LCD driver doesn't use. Leave it alone so we
can use it for other stuff.
Signed-off-by: Keith Packard <keithp@keithp.com>
#if SPI_1_PA5_PA6_PA7
case AO_SPI_1_PA5_PA6_PA7:
stm_spi_output_disable(&stm_gpioa, 5, SPI_1_MODE_OUTPUT);
#if SPI_1_PA5_PA6_PA7
case AO_SPI_1_PA5_PA6_PA7:
stm_spi_output_disable(&stm_gpioa, 5, SPI_1_MODE_OUTPUT);
+#ifndef SPI_1_PA6_DISABLE
stm_spi_input_disable(&stm_gpioa, 6);
stm_spi_input_disable(&stm_gpioa, 6);
stm_spi_output_disable(&stm_gpioa, 7, SPI_1_MODE_OUTPUT);
break;
#endif
stm_spi_output_disable(&stm_gpioa, 7, SPI_1_MODE_OUTPUT);
break;
#endif
STM_AFIO_MAPR_SPI1_REMAP_PA4_PA5_PA6_PA7,
STM_AFIO_MAPR_SPI1_REMAP_MASK);
stm_spi_output_enable(&stm_gpioa, 5, SPI_1_MODE_OUTPUT);
STM_AFIO_MAPR_SPI1_REMAP_PA4_PA5_PA6_PA7,
STM_AFIO_MAPR_SPI1_REMAP_MASK);
stm_spi_output_enable(&stm_gpioa, 5, SPI_1_MODE_OUTPUT);
+#ifndef SPI_1_PA6_DISABLE
stm_spi_input_enable(&stm_gpioa, 6);
stm_spi_input_enable(&stm_gpioa, 6);
stm_spi_output_enable(&stm_gpioa, 7, SPI_1_MODE_OUTPUT);
break;
#endif
stm_spi_output_enable(&stm_gpioa, 7, SPI_1_MODE_OUTPUT);
break;
#endif