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 BOOTLOADER_SHOW_ERRCODE
	bool "bootloader show error code support"
	default n
	help
	  used for show error code when bootup failed
	  errcode will display in the upper left corner of the screen

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 AML_PROVISION_UBOOT
	bool "support provision root keys"
	depends on CMD_EFUSE
	default n
	help
		"support provision root keys in uboot for factory"

config AML_PROVISION_UBOOT_NUM
	int "which boot parititon will be used to store keys"
	depends on AML_PROVISION_UBOOT
	default 2
	help
		To select which boot partition to store keys, 1--BOOT0;2--BOOT1

config AML_PROVISION_UBOOT_OFFSET
	int "offset(in 512 bytes) in boot partition to store keys"
	depends on AML_PROVISION_UBOOT
	default 300
	help
		Keys will be stored starting with offset Capacity - (offset + 8)*512 (in byte)
		offset range is between 5 and 504
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_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 ENABLE_CC_CONFIG
	bool "check usb power status"
	default n
	help
	 support get usb power status

#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 1200" 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_KEYPAD
	bool "support keypad command"
	help
	  Support keypad cmd.

config CMD_WATCHKEY
	bool "support watchkey command"
	select AMLOGIC_WATCHKEY
	help
	  Support watchkey cmd.

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

config INLINE_ENCRYPTION
	bool "support inline encryption"
	depends on AML_MKL
	depends on AML_CRYPTO
	default n
	help
	  This option enables hardware-accelerated inline encryption for storage devices
	  compatible with Amlogic SoCs. It offloads encryption/decryption operations to
	  dedicated hardware engines, reducing CPU overhead and improving I/O throughput.

	  Enabling this is recommended for devices with hardware crypto engines (e.g., AES-NI).
	  If unsure, say N.

config CMD_SCMI_SHMEM_ADDR
        bool "support update address of shmem for SCMI"
        help
          When the address of shmem in DTB is inconsistent with BL31,
          support updating the address of shmem in DTB.

config CMD_MUITI_REMOTE_KEYPAD
	bool "config multi remote and keypad"
	depends on CMD_AML_MODEL || CMD_INI
	default y if CMD_AML_MODEL || CMD_INI
	help
	  we can config multi remote and keypad by model_sum.ini

#prduct mode end<----

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

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

endmenu
