xref: /openbmc/linux/drivers/base/Kconfig (revision 2b2af54a)
11da177e4SLinus Torvaldsmenu "Generic Driver Options"
21da177e4SLinus Torvalds
36a8d8abbSKay Sieversconfig UEVENT_HELPER_PATH
46a8d8abbSKay Sievers	string "path to uevent helper"
56a8d8abbSKay Sievers	depends on HOTPLUG
66a8d8abbSKay Sievers	default "/sbin/hotplug"
76a8d8abbSKay Sievers	help
86a8d8abbSKay Sievers	  Path to uevent helper program forked by the kernel for
96a8d8abbSKay Sievers	  every uevent.
106a8d8abbSKay Sievers
11*2b2af54aSKay Sieversconfig DEVTMPFS
12*2b2af54aSKay Sievers	bool "Create a kernel maintained /dev tmpfs (EXPERIMENTAL)"
13*2b2af54aSKay Sievers	depends on HOTPLUG && SHMEM && TMPFS
14*2b2af54aSKay Sievers	help
15*2b2af54aSKay Sievers	  This creates a tmpfs filesystem, and mounts it at bootup
16*2b2af54aSKay Sievers	  and mounts it at /dev. The kernel driver core creates device
17*2b2af54aSKay Sievers	  nodes for all registered devices in that filesystem. All device
18*2b2af54aSKay Sievers	  nodes are owned by root and have the default mode of 0600.
19*2b2af54aSKay Sievers	  Userspace can add and delete the nodes as needed. This is
20*2b2af54aSKay Sievers	  intended to simplify bootup, and make it possible to delay
21*2b2af54aSKay Sievers	  the initial coldplug at bootup done by udev in userspace.
22*2b2af54aSKay Sievers	  It should also provide a simpler way for rescue systems
23*2b2af54aSKay Sievers	  to bring up a kernel with dynamic major/minor numbers.
24*2b2af54aSKay Sievers	  Meaningful symlinks, permissions and device ownership must
25*2b2af54aSKay Sievers	  still be handled by userspace.
26*2b2af54aSKay Sievers	  If unsure, say N here.
27*2b2af54aSKay Sievers
28*2b2af54aSKay Sieversconfig DEVTMPFS_MOUNT
29*2b2af54aSKay Sievers	bool "Automount devtmpfs at /dev"
30*2b2af54aSKay Sievers	depends on DEVTMPFS
31*2b2af54aSKay Sievers	help
32*2b2af54aSKay Sievers	  This will mount devtmpfs at /dev if the kernel mounts the root
33*2b2af54aSKay Sievers	  filesystem. It will not affect initramfs based mounting.
34*2b2af54aSKay Sievers	  If unsure, say N here.
35*2b2af54aSKay Sievers
361da177e4SLinus Torvaldsconfig STANDALONE
371da177e4SLinus Torvalds	bool "Select only drivers that don't need compile-time external firmware" if EXPERIMENTAL
381da177e4SLinus Torvalds	default y
391da177e4SLinus Torvalds	help
401da177e4SLinus Torvalds	  Select this option if you don't have magic firmware for drivers that
411da177e4SLinus Torvalds	  need it.
421da177e4SLinus Torvalds
431da177e4SLinus Torvalds	  If unsure, say Y.
441da177e4SLinus Torvalds
451da177e4SLinus Torvaldsconfig PREVENT_FIRMWARE_BUILD
461da177e4SLinus Torvalds	bool "Prevent firmware from being built"
471da177e4SLinus Torvalds	default y
481da177e4SLinus Torvalds	help
491da177e4SLinus Torvalds	  Say yes to avoid building firmware. Firmware is usually shipped
501da177e4SLinus Torvalds	  with the driver, and only when updating the firmware a rebuild
511da177e4SLinus Torvalds	  should be made.
521da177e4SLinus Torvalds	  If unsure say Y here.
531da177e4SLinus Torvalds
541da177e4SLinus Torvaldsconfig FW_LOADER
55d9b19199SAdrian Bunk	tristate "Userspace firmware loading support" if EMBEDDED
56135c294fSAndrew Morton	depends on HOTPLUG
57d9b19199SAdrian Bunk	default y
581da177e4SLinus Torvalds	---help---
591da177e4SLinus Torvalds	  This option is provided for the case where no in-kernel-tree modules
60312c004dSKay Sievers	  require userspace firmware loading support, but a module built outside
611da177e4SLinus Torvalds	  the kernel tree does.
621da177e4SLinus Torvalds
63d172e7f5SDavid Woodhouseconfig FIRMWARE_IN_KERNEL
64d172e7f5SDavid Woodhouse	bool "Include in-kernel firmware blobs in kernel binary"
65d172e7f5SDavid Woodhouse	depends on FW_LOADER
66d172e7f5SDavid Woodhouse	default y
67d172e7f5SDavid Woodhouse	help
68d172e7f5SDavid Woodhouse	  The kernel source tree includes a number of firmware 'blobs'
69d172e7f5SDavid Woodhouse	  which are used by various drivers. The recommended way to
70d172e7f5SDavid Woodhouse	  use these is to run "make firmware_install" and to copy the
71d172e7f5SDavid Woodhouse	  resulting binary files created in usr/lib/firmware directory
72d172e7f5SDavid Woodhouse	  of the kernel tree to the /lib/firmware on your system so
73d172e7f5SDavid Woodhouse	  that they can be loaded by userspace helpers on request.
74d172e7f5SDavid Woodhouse
75d172e7f5SDavid Woodhouse	  Enabling this option will build each required firmware blob
76d172e7f5SDavid Woodhouse	  into the kernel directly, where request_firmware() will find
77d172e7f5SDavid Woodhouse	  them without having to call out to userspace. This may be
78d172e7f5SDavid Woodhouse	  useful if your root file system requires a device which uses
79d172e7f5SDavid Woodhouse	  such firmware, and do not wish to use an initrd.
80d172e7f5SDavid Woodhouse
81d172e7f5SDavid Woodhouse	  This single option controls the inclusion of firmware for
8211f1fbcfSNick Andrew	  every driver which uses request_firmware() and ships its
83d172e7f5SDavid Woodhouse	  firmware in the kernel source tree, to avoid a proliferation
84d172e7f5SDavid Woodhouse	  of 'Include firmware for xxx device' options.
85d172e7f5SDavid Woodhouse
86d172e7f5SDavid Woodhouse	  Say 'N' and let firmware be loaded from userspace.
87d172e7f5SDavid Woodhouse
884d2acfbfSDavid Woodhouseconfig EXTRA_FIRMWARE
894d2acfbfSDavid Woodhouse	string "External firmware blobs to build into the kernel binary"
904d2acfbfSDavid Woodhouse	depends on FW_LOADER
914d2acfbfSDavid Woodhouse	help
924d2acfbfSDavid Woodhouse	  This option allows firmware to be built into the kernel, for the
934d2acfbfSDavid Woodhouse	  cases where the user either cannot or doesn't want to provide it from
944d2acfbfSDavid Woodhouse	  userspace at runtime (for example, when the firmware in question is
954d2acfbfSDavid Woodhouse	  required for accessing the boot device, and the user doesn't want to
964d2acfbfSDavid Woodhouse	  use an initrd).
974d2acfbfSDavid Woodhouse
984d2acfbfSDavid Woodhouse	  This option is a string, and takes the (space-separated) names of the
994d2acfbfSDavid Woodhouse	  firmware files -- the same names which appear in MODULE_FIRMWARE()
1004d2acfbfSDavid Woodhouse	  and request_firmware() in the source. These files should exist under
1014d2acfbfSDavid Woodhouse	  the directory specified by the EXTRA_FIRMWARE_DIR option, which is
1024d2acfbfSDavid Woodhouse	  by default the firmware/ subdirectory of the kernel source tree.
1034d2acfbfSDavid Woodhouse
1044d2acfbfSDavid Woodhouse	  So, for example, you might set CONFIG_EXTRA_FIRMWARE="usb8388.bin",
1054d2acfbfSDavid Woodhouse	  copy the usb8388.bin file into the firmware/ directory, and build the
1064d2acfbfSDavid Woodhouse	  kernel. Then any request_firmware("usb8388.bin") will be
1074d2acfbfSDavid Woodhouse	  satisfied internally without needing to call out to userspace.
1084d2acfbfSDavid Woodhouse
1094d2acfbfSDavid Woodhouse	  WARNING: If you include additional firmware files into your binary
1104d2acfbfSDavid Woodhouse	  kernel image which are not available under the terms of the GPL,
1114d2acfbfSDavid Woodhouse	  then it may be a violation of the GPL to distribute the resulting
1124d2acfbfSDavid Woodhouse	  image -- since it combines both GPL and non-GPL work. You should
1134d2acfbfSDavid Woodhouse	  consult a lawyer of your own before distributing such an image.
1144d2acfbfSDavid Woodhouse
1154d2acfbfSDavid Woodhouseconfig EXTRA_FIRMWARE_DIR
1164d2acfbfSDavid Woodhouse	string "Firmware blobs root directory"
1174d2acfbfSDavid Woodhouse	depends on EXTRA_FIRMWARE != ""
1184d2acfbfSDavid Woodhouse	default "firmware"
1194d2acfbfSDavid Woodhouse	help
1204d2acfbfSDavid Woodhouse	  This option controls the directory in which the kernel build system
1214d2acfbfSDavid Woodhouse	  looks for the firmware files listed in the EXTRA_FIRMWARE option.
1224d2acfbfSDavid Woodhouse	  The default is the firmware/ directory in the kernel source tree,
1234d2acfbfSDavid Woodhouse	  but by changing this option you can point it elsewhere, such as
1244d2acfbfSDavid Woodhouse	  the /lib/firmware/ directory or another separate directory
1254d2acfbfSDavid Woodhouse	  containing firmware files.
1264d2acfbfSDavid Woodhouse
1271da177e4SLinus Torvaldsconfig DEBUG_DRIVER
1281da177e4SLinus Torvalds	bool "Driver Core verbose debug messages"
1291da177e4SLinus Torvalds	depends on DEBUG_KERNEL
1301da177e4SLinus Torvalds	help
1311da177e4SLinus Torvalds	  Say Y here if you want the Driver core to produce a bunch of
1321da177e4SLinus Torvalds	  debug messages to the system log. Select this if you are having a
1331da177e4SLinus Torvalds	  problem with the driver core and want to see more of what is
1341da177e4SLinus Torvalds	  going on.
1351da177e4SLinus Torvalds
1361da177e4SLinus Torvalds	  If you are unsure about this, say N here.
1371da177e4SLinus Torvalds
1389ac7849eSTejun Heoconfig DEBUG_DEVRES
1399ac7849eSTejun Heo	bool "Managed device resources verbose debug messages"
1409ac7849eSTejun Heo	depends on DEBUG_KERNEL
1419ac7849eSTejun Heo	help
1429ac7849eSTejun Heo	  This option enables kernel parameter devres.log. If set to
1439ac7849eSTejun Heo	  non-zero, devres debug messages are printed. Select this if
1449ac7849eSTejun Heo	  you are having a problem with devres or want to debug
1459ac7849eSTejun Heo	  resource management for a managed device. devres.log can be
1469ac7849eSTejun Heo	  switched on and off from sysfs node.
1479ac7849eSTejun Heo
1489ac7849eSTejun Heo	  If you are unsure about this, Say N here.
1499ac7849eSTejun Heo
1504039483fSMichael Holzheuconfig SYS_HYPERVISOR
1514039483fSMichael Holzheu	bool
1524039483fSMichael Holzheu	default n
153eba6cd67SRandy Dunlap
154eba6cd67SRandy Dunlapendmenu
155