drivers: eth_enc28j60: Fix CS GPIO support
We now generate CS GPIO defines from the DTS that we can utilize. We needed to slightly update the #defines in the driver from: DT_MICROCHIP_ENC28J60_0_CS_GPIOS_{PIN,CONTROLLER} to DT_MICROCHIP_ENC28J60_0_CS_GPIO_{PIN,CONTROLLER} Fixes #12640 Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
372fb5da51
commit
668443bc74
1 changed files with 2 additions and 2 deletions
|
@ -776,8 +776,8 @@ static const struct eth_enc28j60_config eth_enc28j60_0_config = {
|
|||
.spi_freq = DT_MICROCHIP_ENC28J60_0_SPI_MAX_FREQUENCY,
|
||||
.spi_slave = DT_MICROCHIP_ENC28J60_0_BASE_ADDRESS,
|
||||
#ifdef CONFIG_ETH_ENC28J60_0_GPIO_SPI_CS
|
||||
.spi_cs_port = DT_MICROCHIP_ENC28J60_0_CS_GPIOS_CONTROLLER,
|
||||
.spi_cs_pin = DT_MICROCHIP_ENC28J60_0_CS_GPIOS_PIN,
|
||||
.spi_cs_port = DT_MICROCHIP_ENC28J60_0_CS_GPIO_CONTROLLER,
|
||||
.spi_cs_pin = DT_MICROCHIP_ENC28J60_0_CS_GPIO_PIN,
|
||||
#endif /* CONFIG_ETH_ENC28J60_0_GPIO_SPI_CS */
|
||||
.full_duplex = CONFIG_ETH_EN28J60_0_FULL_DUPLEX,
|
||||
.timeout = CONFIG_ETH_EN28J60_TIMEOUT,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue