drivers: fpga: simplify load mode selection of iCE40
Replace the enum for load modes for the iCE40 with a boolean flag, as there are only two options: - SPI: default, which should be used whenever possible - GPIO bitbang: workarorund, in case a low-end microcontroller is used Signed-off-by: Benedikt Schmidt <benedikt.schmidt@embedded-solutions.at>
This commit is contained in:
parent
834fa11e6b
commit
5aa835c66b
3 changed files with 10 additions and 30 deletions
|
@ -13,7 +13,7 @@ test_spi_fpga_ice40_gpio: ice40@0 {
|
|||
reg = <0>;
|
||||
spi-max-frequency = <1000000>;
|
||||
|
||||
load-mode = <0>;
|
||||
load-mode-bitbang;
|
||||
cdone-gpios = <&test_gpio 0 0>;
|
||||
creset-gpios = <&test_gpio 0 0>;
|
||||
config-delay-us = <3900>;
|
||||
|
@ -26,7 +26,6 @@ test_spi_fpga_ice40_spi: ice40@1 {
|
|||
reg = <1>;
|
||||
spi-max-frequency = <1000000>;
|
||||
|
||||
load-mode = <1>;
|
||||
cdone-gpios = <&test_gpio 0 0>;
|
||||
creset-gpios = <&test_gpio 0 0>;
|
||||
clk-gpios = <&test_gpio 0 0>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue