Generic NVMEM reboot mode driver

modulename: nvmem-reboot-mode.ko


Linux Kernel Configuration
└─>Device Drivers
└─>Board level reset or power off
└─>Device Tree and Open Firmware support
└─>Generic NVMEM reboot mode driver
In linux kernel since version 5.1 (release Date: 2019-05-05)  
Say y here will enable reboot mode driver. This will
get reboot mode arguments and store it in a NVMEM cell,
then the bootloader can read it and take different
action according to the mode.

source code: