Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions doc/releases/release-notes-4.1.rst
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,12 @@ Drivers and Sensors

* Flash

* FPGA

* Extracted from :dtcompatible:`lattice,ice40-fpga` the compatible and driver for
:dtcompatible:`lattice,ice40-fpga-bitbang`. This replaces the original ``load_mode`` property from
the binding, which selected either the SPI or GPIO bitbang load mode.

* GNSS

* GPIO
Expand Down
4 changes: 3 additions & 1 deletion drivers/fpga/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ zephyr_library_sources_ifdef(CONFIG_FPGA_SHELL fpga_shell.c)

zephyr_library_sources_ifdef(CONFIG_ALTERA_AGILEX_BRIDGE_FPGA fpga_altera_agilex_bridge.c)
zephyr_library_sources_ifdef(CONFIG_EOS_S3_FPGA fpga_eos_s3.c)
zephyr_library_sources_ifdef(CONFIG_ICE40_FPGA fpga_ice40.c)
zephyr_library_sources_ifdef(CONFIG_ICE40_FPGA fpga_ice40_common.c)
zephyr_library_sources_ifdef(CONFIG_ICE40_FPGA_SPI fpga_ice40_spi.c)
zephyr_library_sources_ifdef(CONFIG_ICE40_FPGA_BITBANG fpga_ice40_bitbang.c)
zephyr_library_sources_ifdef(CONFIG_MPFS_FPGA fpga_mpfs.c)
zephyr_library_sources_ifdef(CONFIG_ZYNQMP_FPGA fpga_zynqmp.c)
zephyr_library_sources_ifdef(CONFIG_SLG471X5_FPGA fpga_slg471x5.c)
27 changes: 24 additions & 3 deletions drivers/fpga/Kconfig.ice40
Original file line number Diff line number Diff line change
@@ -1,10 +1,31 @@
# Copyright (c) 2022 Meta
# SPDX-License-Identifier: Apache-2.0

config ICE40_FPGA
bool "Lattice iCE40 fpga driver [EXPERIMENTAL]"
select EXPERIMENTAL
menuconfig ICE40_FPGA
bool "Lattice iCE40 fpga driver"
default y
depends on (DT_HAS_LATTICE_ICE40_FPGA_ENABLED || \
DT_HAS_LATTICE_ICE40_FPGA_BITBANG_ENABLED)
imply CRC
depends on SPI
help
Enable support for the Lattice iCE40 fpga driver.

if ICE40_FPGA

config ICE40_FPGA_SPI
bool "Lattice iCE40 fpga SPI driver"
default y
depends on DT_HAS_LATTICE_ICE40_FPGA_ENABLED
help
Enable support for the Lattice iCE40 fpga SPI driver.

config ICE40_FPGA_BITBANG
bool "Lattice iCE40 fpga driver GPIO bitbang"
default y
select EXPERIMENTAL
depends on DT_HAS_LATTICE_ICE40_FPGA_BITBANG_ENABLED
help
Enable support for the Lattice iCE40 fpga GPIO bitbang driver.

endif # ICE40_FPGA
Loading
Loading