Skip to content

Commit

Permalink
staging: fieldbus: anybus-s: support the Arcx anybus controller
Browse files Browse the repository at this point in the history
Add a driver for the Arcx anybus controller.

This device implements two Anybus-S hosts (buses),
and connects to the SoC via a parallel memory bus.
There is also a CAN power readout, unrelated to the Anybus,
modelled as a regulator.

Signed-off-by: Sven Van Asbroeck <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
Sven Van Asbroeck authored and gregkh committed Apr 17, 2019
1 parent 308ee87 commit 1761497
Show file tree
Hide file tree
Showing 4 changed files with 415 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/staging/fieldbus/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@

obj-$(CONFIG_FIELDBUS_DEV) += fieldbus_dev.o anybuss/
fieldbus_dev-y := dev_core.o

14 changes: 14 additions & 0 deletions drivers/staging/fieldbus/anybuss/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,17 @@ config HMS_ANYBUSS_BUS
You can attach a single Anybus-S compatible card to it, which
typically provides fieldbus and industrial ethernet
functionality.

if HMS_ANYBUSS_BUS

config ARCX_ANYBUS_CONTROLLER
tristate "Arcx Anybus-S Controller"
depends on OF && GPIOLIB && HAS_IOMEM && REGULATOR
help
Select this to get support for the Arcx Anybus controller.
It connects to the SoC via a parallel memory bus, and
embeds up to two Anybus-S buses (slots).
There is also a CAN power readout, unrelated to the Anybus,
modelled as a regulator.

endif
2 changes: 2 additions & 0 deletions drivers/staging/fieldbus/anybuss/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@

obj-$(CONFIG_HMS_ANYBUSS_BUS) += anybuss_core.o
anybuss_core-y += host.o

obj-$(CONFIG_ARCX_ANYBUS_CONTROLLER) += arcx-anybus.o
Loading

0 comments on commit 1761497

Please sign in to comment.