Skip to content

Commit

Permalink
drivers: fpga: configure CDONE for ICE40 as input
Browse files Browse the repository at this point in the history
Configure the GPIO CDONE of the ICE40 as GPIO_INPUT.
Fixes #78934.

Signed-off-by: Benedikt Schmidt <[email protected]>
  • Loading branch information
benediktibk authored and mmahadevan108 committed Sep 28, 2024
1 parent 8742d9f commit f54a97c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/fpga/fpga_ice40.c
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ static int fpga_ice40_init(const struct device *dev)
return ret;
}

ret = gpio_pin_configure_dt(&config->cdone, 0);
ret = gpio_pin_configure_dt(&config->cdone, GPIO_INPUT);
if (ret < 0) {
LOG_ERR("Failed to initialize CDONE: %d", ret);
return ret;
Expand Down

0 comments on commit f54a97c

Please sign in to comment.