Home | History | Annotate | Line # | Download | only in soc
      1      1.1  jmcneill /*	$NetBSD: rockchip,boot-mode.h,v 1.1.1.2 2017/11/30 19:40:51 jmcneill Exp $	*/
      2      1.1  jmcneill 
      3  1.1.1.2  jmcneill /* SPDX-License-Identifier: GPL-2.0 */
      4      1.1  jmcneill #ifndef __ROCKCHIP_BOOT_MODE_H
      5      1.1  jmcneill #define __ROCKCHIP_BOOT_MODE_H
      6      1.1  jmcneill 
      7      1.1  jmcneill /*high 24 bits is tag, low 8 bits is type*/
      8      1.1  jmcneill #define REBOOT_FLAG		0x5242C300
      9      1.1  jmcneill /* normal boot */
     10      1.1  jmcneill #define BOOT_NORMAL		(REBOOT_FLAG + 0)
     11      1.1  jmcneill /* enter bootloader rockusb mode */
     12      1.1  jmcneill #define BOOT_BL_DOWNLOAD	(REBOOT_FLAG + 1)
     13      1.1  jmcneill /* enter recovery */
     14      1.1  jmcneill #define BOOT_RECOVERY		(REBOOT_FLAG + 3)
     15      1.1  jmcneill  /* enter fastboot mode */
     16      1.1  jmcneill #define BOOT_FASTBOOT		(REBOOT_FLAG + 9)
     17      1.1  jmcneill 
     18      1.1  jmcneill #endif
     19