oleavr-rgl-a500-mini-linux-.../drivers/soc/allwinner/pm/standby/standby_debug.h
Ole André Vadla Ravnås 169c65d57e Initial commit
2022-05-07 01:01:45 +02:00

36 lines
1.1 KiB
C

/*
* Copyright (c) 2007-2017 Allwinnertech Co., Ltd.
*
* This software is licensed under the terms of the GNU General Public
* License version 2, as published by the Free Software Foundation, and
* may be copied, distributed, and modified under those terms.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
*/
#ifndef __STANDBY_DEBUG_
#define __STANDBY_DEBUG_
#define STANDBY_START (0x00)
#define RESUME0_START (0x20)
#define RESUME1_START (0x40)
#define SHUTDOWN_FLOW (0x10)
#define OTA_FLOW (0x30)
void mem_status_init_nommu(void);
void mem_status_clear(void);
void mem_status_exit(void);
void save_irq_status(volatile __u32 val);
void save_mem_status(volatile __u32 val);
void save_super_flags(volatile __u32 val);
void save_super_addr(volatile __u32 val);
__u32 get_mem_status(void);
void parse_status_code(__u32 code, __u32 index);
void show_mem_status(void);
#endif /* __STANDBY_DEBUG_ */