# SPDX-License-Identifier: GPL-2.0

config NVMEM_LAYOUTS
	bool
	depends on OF

if NVMEM_LAYOUTS

menu "Layout Types"

config NVMEM_LAYOUT_ADTRAN
	tristate "Adtran mfginfo layout support"
	select GENERIC_NET_UTILS
	help
	  Say Y here if you want to support the layout used by Adtran for
	  mfginfo.

	  If unsure, say N.

config NVMEM_LAYOUT_SL28_VPD
	tristate "Kontron sl28 VPD layout support"
	select CRC8
	help
	  Say Y here if you want to support the VPD layout of the Kontron
	  SMARC-sAL28 boards.

	  If unsure, say N.

config NVMEM_LAYOUT_ONIE_TLV
	tristate "ONIE tlv support"
	select CRC32
	help
	  Say Y here if you want to support the Open Compute Project ONIE
	  Type-Length-Value standard table.

	  If unsure, say N.

config NVMEM_LAYOUT_U_BOOT_ENV
	tristate "U-Boot environment variables layout"
	select CRC32
	select GENERIC_NET_UTILS
	help
	  U-Boot stores its setup as environment variables. This driver adds
	  support for verifying & exporting such data. It also exposes variables
	  as NVMEM cells so they can be referenced by other drivers.

	  If unsure, say N.

config NVMEM_LAYOUT_ASCII_ENV
	tristate "ASCII environment variables layout"
	help
	  It's very common for devices to store simple text file format in
	  partition for environment varibles. The most common pattern is variable
	  name, a delimiter and variable value all separated by a new line
	  character (\n).
	  This driver adds support for exporting such data and expose NVMEM cells
	  so they can be referenced by other drivers. This driver also supports
	  parsing mac-base NVMEM cells to parse ASCII or HEX mac address.

	  If unsure, say N.

endmenu

endif
