162306a36Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0-only
262306a36Sopenharmony_ciconfig P54_COMMON
362306a36Sopenharmony_ci	tristate "Softmac Prism54 support"
462306a36Sopenharmony_ci	depends on MAC80211
562306a36Sopenharmony_ci	select FW_LOADER
662306a36Sopenharmony_ci	select CRC_CCITT
762306a36Sopenharmony_ci	help
862306a36Sopenharmony_ci	  This is common code for isl38xx/stlc45xx based modules.
962306a36Sopenharmony_ci	  This module does nothing by itself - the USB/PCI/SPI front-ends
1062306a36Sopenharmony_ci	  also need to be enabled in order to support any devices.
1162306a36Sopenharmony_ci
1262306a36Sopenharmony_ci	  These devices require softmac firmware which can be found at
1362306a36Sopenharmony_ci	  <http://wireless.wiki.kernel.org/en/users/Drivers/p54>
1462306a36Sopenharmony_ci
1562306a36Sopenharmony_ci	  If you choose to build a module, it'll be called p54common.
1662306a36Sopenharmony_ci
1762306a36Sopenharmony_ciconfig P54_USB
1862306a36Sopenharmony_ci	tristate "Prism54 USB support"
1962306a36Sopenharmony_ci	depends on P54_COMMON && USB
2062306a36Sopenharmony_ci	select CRC32
2162306a36Sopenharmony_ci	help
2262306a36Sopenharmony_ci	  This driver is for USB isl38xx based wireless cards.
2362306a36Sopenharmony_ci
2462306a36Sopenharmony_ci	  These devices require softmac firmware which can be found at
2562306a36Sopenharmony_ci	  <http://wireless.wiki.kernel.org/en/users/Drivers/p54>
2662306a36Sopenharmony_ci
2762306a36Sopenharmony_ci	  If you choose to build a module, it'll be called p54usb.
2862306a36Sopenharmony_ci
2962306a36Sopenharmony_ciconfig P54_PCI
3062306a36Sopenharmony_ci	tristate "Prism54 PCI support"
3162306a36Sopenharmony_ci	depends on P54_COMMON && PCI
3262306a36Sopenharmony_ci	help
3362306a36Sopenharmony_ci	  This driver is for PCI isl38xx based wireless cards.
3462306a36Sopenharmony_ci	  This driver supports most devices that are supported by the
3562306a36Sopenharmony_ci	  fullmac prism54 driver plus many devices which are not
3662306a36Sopenharmony_ci	  supported by the fullmac driver/firmware.
3762306a36Sopenharmony_ci
3862306a36Sopenharmony_ci	  This driver requires softmac firmware which can be found at
3962306a36Sopenharmony_ci	  <http://wireless.wiki.kernel.org/en/users/Drivers/p54>
4062306a36Sopenharmony_ci
4162306a36Sopenharmony_ci	  If you choose to build a module, it'll be called p54pci.
4262306a36Sopenharmony_ci
4362306a36Sopenharmony_ciconfig P54_SPI
4462306a36Sopenharmony_ci	tristate "Prism54 SPI (stlc45xx) support"
4562306a36Sopenharmony_ci	depends on P54_COMMON && SPI_MASTER
4662306a36Sopenharmony_ci	help
4762306a36Sopenharmony_ci	  This driver is for stlc4550 or stlc4560 based wireless chips
4862306a36Sopenharmony_ci	  such as Nokia's N800/N810 Portable Internet Tablet.
4962306a36Sopenharmony_ci
5062306a36Sopenharmony_ci	  If you choose to build a module, it'll be called p54spi.
5162306a36Sopenharmony_ci
5262306a36Sopenharmony_ciconfig P54_SPI_DEFAULT_EEPROM
5362306a36Sopenharmony_ci	bool "Include fallback EEPROM blob"
5462306a36Sopenharmony_ci	depends on P54_SPI
5562306a36Sopenharmony_ci	default n
5662306a36Sopenharmony_ci	help
5762306a36Sopenharmony_ci	 Unlike the PCI or USB devices, the SPI variants don't have
5862306a36Sopenharmony_ci	 a dedicated EEPROM chip to store all device specific values
5962306a36Sopenharmony_ci	 for calibration, country and interface settings.
6062306a36Sopenharmony_ci
6162306a36Sopenharmony_ci	 The driver will try to load the image "3826.eeprom", if the
6262306a36Sopenharmony_ci	 file is put at the right place. (usually /lib/firmware.)
6362306a36Sopenharmony_ci
6462306a36Sopenharmony_ci	 Only if this request fails, this option will provide a
6562306a36Sopenharmony_ci	 backup set of generic values to get the device working.
6662306a36Sopenharmony_ci
6762306a36Sopenharmony_ci	 Enabling this option adds about 4k to p54spi.
6862306a36Sopenharmony_ci
6962306a36Sopenharmony_ciconfig P54_LEDS
7062306a36Sopenharmony_ci	bool
7162306a36Sopenharmony_ci	depends on P54_COMMON && MAC80211_LEDS && (LEDS_CLASS = y || LEDS_CLASS = P54_COMMON)
7262306a36Sopenharmony_ci	default y
73