blob: e6668a869913a118f1bfa1fa94ba55bc92368535 [file] [log] [blame]
Thomas Gleixnerec8f24b2019-05-19 13:07:45 +01001# SPDX-License-Identifier: GPL-2.0-only
Jeremy Kerr0508ad12017-02-01 10:53:41 -06002#
3# FSI subsystem
4#
5
Vincent Legollbaa8b942017-12-03 12:09:26 +01006menuconfig FSI
Jeremy Kerr0508ad12017-02-01 10:53:41 -06007 tristate "FSI support"
Jeremy Kerrf6a2f8e2018-02-12 15:45:45 +10308 depends on OF
Jeremy Kerr2b545cd2017-06-06 16:08:42 -05009 select CRC4
Masahiro Yamadaa7f7f622020-06-14 01:50:22 +090010 help
Jeremy Kerr0508ad12017-02-01 10:53:41 -060011 FSI - the FRU Support Interface - is a simple bus for low-level
12 access to POWER-based hardware.
Christopher Bosticac0385d2017-06-06 16:08:54 -050013
14if FSI
15
Benjamin Herrenschmidt0ab5fe52018-06-20 15:22:52 +100016config FSI_NEW_DEV_NODE
17 bool "Create '/dev/fsi' directory for char devices"
18 default n
Masahiro Yamadaa7f7f622020-06-14 01:50:22 +090019 help
Benjamin Herrenschmidt0ab5fe52018-06-20 15:22:52 +100020 This option causes char devices created for FSI devices to be
21 located under a common /dev/fsi/ directory. Set to N unless your
22 userspace has been updated to handle the new location.
23
24 Additionally, it also causes the char device names to be offset
25 by one so that chip 0 will have /dev/scom1 and chip1 /dev/scom2
26 to match old userspace expectations.
27
28 New userspace will use udev rules to generate predictable access
29 symlinks in /dev/fsi/by-path when this option is enabled.
30
Christopher Bosticac0385d2017-06-06 16:08:54 -050031config FSI_MASTER_GPIO
32 tristate "GPIO-based FSI master"
33 depends on GPIOLIB
34 select CRC4
Masahiro Yamadaa7f7f622020-06-14 01:50:22 +090035 help
Christopher Bosticac0385d2017-06-06 16:08:54 -050036 This option enables a FSI master driver using GPIO lines.
37
Christopher Bostic7f9e8f72017-06-06 16:08:57 -050038config FSI_MASTER_HUB
39 tristate "FSI hub master"
Masahiro Yamadaa7f7f622020-06-14 01:50:22 +090040 help
Christopher Bostic7f9e8f72017-06-06 16:08:57 -050041 This option enables a FSI hub master driver. Hub is a type of FSI
42 master that is connected to the upstream master via a slave. Hubs
43 allow chaining of FSI links to an arbitrary depth. This allows for
44 a high target device fanout.
45
Benjamin Herrenschmidt6a794a22018-06-12 09:55:04 +100046config FSI_MASTER_AST_CF
47 tristate "FSI master based on Aspeed ColdFire coprocessor"
48 depends on GPIOLIB
49 depends on GPIO_ASPEED
Arnd Bergmann64999fa2018-08-14 00:37:18 +020050 select GENERIC_ALLOCATOR
Masahiro Yamadaa7f7f622020-06-14 01:50:22 +090051 help
Benjamin Herrenschmidt6a794a22018-06-12 09:55:04 +100052 This option enables a FSI master using the AST2400 and AST2500 GPIO
53 lines driven by the internal ColdFire coprocessor. This requires
54 the corresponding machine specific ColdFire firmware to be available.
55
Joel Stanley606397d2019-11-08 15:49:43 +103056config FSI_MASTER_ASPEED
57 tristate "FSI ASPEED master"
Brendan Higginsea3d1472020-01-31 14:18:32 +103058 depends on HAS_IOMEM
Joel Stanley606397d2019-11-08 15:49:43 +103059 help
60 This option enables a FSI master that is present behind an OPB bridge
61 in the AST2600.
62
63 Enable it for your BMC kernel in an OpenPower or IBM Power system.
64
Christopher Bostic680ca6d2017-06-06 16:08:56 -050065config FSI_SCOM
66 tristate "SCOM FSI client device driver"
Masahiro Yamadaa7f7f622020-06-14 01:50:22 +090067 help
Christopher Bostic680ca6d2017-06-06 16:08:56 -050068 This option enables an FSI based SCOM device driver.
69
Benjamin Herrenschmidt9f4a8a22018-05-17 15:58:00 +100070config FSI_SBEFIFO
71 tristate "SBEFIFO FSI client device driver"
Guenter Roeck32f7f892018-07-03 06:43:49 -070072 depends on OF_ADDRESS
Masahiro Yamadaa7f7f622020-06-14 01:50:22 +090073 help
Benjamin Herrenschmidt9f4a8a22018-05-17 15:58:00 +100074 This option enables an FSI based SBEFIFO device driver. The SBEFIFO is
75 a pipe-like FSI device for communicating with the self boot engine
76 (SBE) on POWER processors.
77
Eddie James7ed98dd2018-11-08 15:05:21 -060078config FSI_OCC
79 tristate "OCC SBEFIFO client device driver"
80 depends on FSI_SBEFIFO
Masahiro Yamadaa7f7f622020-06-14 01:50:22 +090081 help
Eddie James7ed98dd2018-11-08 15:05:21 -060082 This option enables an SBEFIFO based On-Chip Controller (OCC) device
83 driver. The OCC is a device embedded on a POWER processor that collects
84 and aggregates sensor data from the processor and system. The OCC can
85 provide the raw sensor data as well as perform thermal and power
86 management on the system.
87
Christopher Bosticac0385d2017-06-06 16:08:54 -050088endif