Some t21x bootloaders like cboot read PMC_SCRATCH37 to check if a reboot was due to a kernel panic. Support this functionality with a panic notifier. Original implementation relied on single bit 24 but a specific magic was chosen in later improvement to prevent false positive from random data in scratch register during reboot. Based on: - https://gitlab.com/nvidia/nv-tegra/linux-4.9/-/commit/31b412a5fc80ed0fe33f3ad4e7cc779ce66446a2 - https://github.com/CTCaer/switch-l4t-kernel-4.9/commit/b74fee3edf8053b0b954643d3bd065596cee8aca Co-developed-by: Nat Pettipaw <npettipaw@nvidia.com> Co-developed-by: CTCaer <ctcaer@gmail.com>