menu "Amlogic commands"

config AML_RPMB
	depends on OPTEE
	depends on MMC
	bool "support RPMB set in bootargs"
	default y
	help
	  Support RPMB set in bootargs.

config AML_STORAGE
	bool "aml storage support"
	help
	  storage cmd support

config AML_STORE_WRAPPER
	depends on AML_STORAGE
	bool "wrapper for store"
	default y
	help
	  based on AML_STORAGE
	  read/write don't care bad blocks

config AML_IMG_READ
	depends on AML_STORAGE
	bool "image read"
	default y
	help
	  based on AML_STORAGE
	  read image without specify size

config AML_DEFENV
	bool "aml defenv_without"
	default y
	help
	  support reserv env from c array

config AML_UPDATE_ENV
	bool "aml update env part"
	depends on CMD_EXPORTENV && CMD_IMPORTENV && CMD_SAVEENV && !ENV_IS_NOWHERE
	default y
	help
	  support only update specified env list to flash
	  unlike saveenv, which overwrite env part with env buffer

config BOOTLOADER_CONTROL_BLOCK
	bool "bootloader control block support"
	default n
	help
	  used for recovery and the bootloader to talk to each other

config CMD_BCB
	bool "bcd cmd"
	depends on !AML_PRODUCT_MODE
	help
	  Say Y here if you want to change bcb cmds
	  by serial cmds.

config CMD_BOOTCTOL_AVB
	bool "avb cmd"
	default n
	help
	  support avb related cmds

config CMD_CAR_PARAMS
	bool "used to read car camera params"
	default n
	help
	  support read car camera params

config CMD_RSVMEM
	bool "rsvmem cmd"
	default y
	help
	  support rsvmem cmd

config CMD_DMCRW
	bool "dmcrw cmd"
	default y
	help
		support dmc read write cmd

config CMD_DDR_D2PLL
	bool "d2pll cmd"
	default n
	help
	  support d2pll cmd

config CMD_DDR_TEST
	bool "ddr test cmd"
	default y
	help
	  support ddr_test cmd

config CMD_OS_IDENT
	bool "os_ident"
	default y
	help
	  Ident OS type

config AML_ROBUST
	bool "envs for robust upgrade"
	depends on AML_STORAGE
	default y
	help
		"envs for robust upgrade like defendkey"

config CMD_AUTOSCR
	bool "legacy autoscr cmd"
	default y
	depends on CMD_SOURCE
	help
	  Run script in memory

config CMD_RMA
	bool "support rma command"
	depends on OPTEE
	default n
	help
	  Support rma cmd

config CMD_BMP
	bool "support bmp command"
	default n
	help
	  Support bmp cmd

config CMD_CLKMSR
	bool "clkmsr - Show clock measurement for different clock index"
	default n
	help
	  Show clock measurement for different clock index
	  use for debug

config CMD_CLKTEST
	bool "clktest - Test all supported clocks"
	default n
	help
	  Test all supported clocks

config CMD_DSP_START
	bool "support uboot bootup dsp"
	default n
	help
	  Support uboot bootup dsp

config CMD_DSP_REMAP
	bool "support uboot dsp remap"
	default n
	help
	  Support uboot dsp remap

config CMD_MEMTAG
	bool "memtag cmd"
	default n
	help
	  support memtag cmd

config MEASUREMENT_BOOT_TIME
	bool "profile time cmd"
	default n
	help
	  support print profile time command,
	  It will display in detail the time nodes of the bootloader phase.

config CMD_DSP_START
	bool "support uboot bootup dsp"
	default n
	help
	  Support uboot bootup dsp

config CMD_DSP_REMAP
	bool "support uboot dsp remap"
	default n
	help
	  Support uboot dsp remap

#prduct mode start---->
config NO_FASTBOOT_FLASHING
	depends on FASTBOOT
	bool "support fastboot lock/unlock"
	default n

config DISABLE_AML_SERIAL
	bool "disable debug serial tx/rx"
	depends on MESON_SERIAL
	select DISABLE_CONSOLE
	default n

config USB_TOOL_ENTRY
	string "support usb burn tool in run update"
	default "echo productmode" if AML_PRODUCT_MODE
	default "adnl 2500" if !AML_PRODUCT_MODE

config KNL_LOG_LEVEL
	int "restrict kernel log level"
	default 1 if AML_PRODUCT_MODE
	default 7 if !AML_PRODUCT_MODE

config AML_DISABLE_DEV_CMDS
	bool "disable unsafe developing commands"
	default n
	help
	"Disable un-safe developing commands for product mode"

config CMD_PMU
	bool "enable pmu test"
	default n
	help
	"enable pmu test"

config CMD_AML_MODEL
	bool "enable amlogic model management"
	default n
	help
	"enable amlogic model management, new version for panel ini parse"

config NOVERBOSE_BUILD
	bool "no verbose log build"
	default n

config AML_PRODUCT_MODE
	bool "amlogic product/security mode"
	default n
	imply NO_FASTBOOT_FLASHING
	imply DISABLE_AML_SERIAL
	imply AML_DISABLE_DEV_CMDS
	select NOVERBOSE_BUILD
	select SILENT_CONSOLE
	help
		recommend enable when product is ready for producing

config CMD_EFUSE
	bool "support efuse command"
	default y
	help
	  support efuse command

config CMD_SARADC
	bool "saradc"
	help
	  SARADC support.

config CMD_IR
        bool "ir"
        help
          Support IR in polling mode.

config CMD_JTAG
	bool "support amlogic jtag command"
	depends on MISC
	depends on !AML_DISABLE_DEV_CMDS
	help
	 CMD_JTAG support.

config PARTITION_ENCRYPTION
	bool "support partition encryption"
	depends on AML_MKL
	default n
	help
	  support partition encryption

config PARTITION_ENCRYPTION_LOCAL
	bool "support partition local encryption"
	depends on PARTITION_ENCRYPTION && AES && MD5
	default n
	help
	  support partition local encryption

#prduct mode end<----

config CMD_SECINFO
	bool "enable secinfo cmd"
	default n
	help
	Enable secinfo cmd
	Pass secinfo through bootargs.

config AML_OTA_ERASE_DDR_PARAMETER
	bool "erase ddr parameter to update ddr freq when ota"
	default n

endmenu
