Skip to content

add LibIIO drivers to 5.15.70 LTS kernel #17

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: socfpga-5.15.70-lts
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
add configs for libiio drivers
  • Loading branch information
user committed Jul 16, 2024
commit 72f4d13f82b34a0d630a57d1d40a73698c53fcb0
7 changes: 7 additions & 0 deletions arch/arm/configs/socfpga_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -175,3 +175,10 @@ CONFIG_DETECT_HUNG_TASK=y
# CONFIG_SCHED_DEBUG is not set
CONFIG_FUNCTION_TRACER=y
CONFIG_DEBUG_USER=y
CONFIG_MATHWORKS_IP_CORE=y
CONFIG_MATHWORKS_GENERIC_OF=y
CONFIG_MWIPCORE=y
CONFIG_MWIPCORE_DMA_STREAMING=y
CONFIG_MWIPCORE_IIO_STREAMING=y
CONFIG_MWIPCORE_IIO_MM=y
CONFIG_MWIPCORE_IIO_SHAREDMEM=y
110 changes: 110 additions & 0 deletions drivers/misc/mathworks/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
#
# mwgeneric driver configuration
#

menu "MathWorks IP Drivers"



config MATHWORKS_IP_CORE
tristate "MathWorks IP Drivers"
depends on (OF) || PCI
default m
help
Say Y here if you want to add support for the MathWorks IP
drivers

If unsure, say N.

To compile this driver as a module, choose M here:
the module will be called mathworks_ip_common

if MATHWORKS_IP_CORE

config MWIPCORE
tristate "Mathwork IP Core Driver"
depends on OF
default m
help
Say Y here if you want to add support for the MathWorks IP
core driver

If unsure, say N.

To compile this driver as a module, choose M here:
the module will be called mwipcore
if MWIPCORE

config MWIPCORE_DMA_STREAMING
tristate "MathWorks DMA Streaming Driver"
depends on DMADEVICES
default m
help
Enable support for MathWorks raw DMA-based implementation
of streaming DMA

If unsure, say N.

To compile this driver as a module, choose M here:
the module will be called mwipcore_dma_streaming

config MWIPCORE_IIO_STREAMING
tristate "MathWorks IIO Streaming Driver"
depends on DMADEVICES
depends on IIO
select IIO_BUFFER
select IIO_BUFFER_DMAENGINE
default m
help
Enable support for MathWorks IIO-based implementation of
streaming DMA

To compile this driver as a module, choose M here:
the module will be called mwipcore_iio_streaming

config MWIPCORE_IIO_MM
tristate "MathWorks IIO Memory Mapped Driver"
depends on DMADEVICES
depends on IIO
select IIO_BUFFER
select IIO_BUFFER_DMAENGINE
default m
help
Enable support for MathWorks IIO-based implementation of
memory mapped IO and DMA

To compile this driver as a module, choose M here:
the module will be called mwipcore_iio_mm

config MWIPCORE_IIO_SHAREDMEM
tristate "MathWorks IIO Shared Memory Driver"
depends on DMADEVICES
depends on IIO
select IIO_BUFFER
select IIO_BUFFER_DMAENGINE
default m
help
Enable support for MathWorks IIO-based implementation of
shared, random-access memory region

To compile this driver as a module, choose M here:
the module will be called mwipcore_iio_sharedregion

endif #if MWIPCORE

config MATHWORKS_GENERIC_OF
tristate "MathWorks Generic OF Driver"
depends on OF_ADDRESS && OF_IRQ
default m
help
Say Y here if you want to add support for the MathWorks
Generic OF driver

If unsure, say N.

To compile this driver as a module, choose M here:
the module will be called mathworks_generic_of

endif #if MWGENERIC
endmenu