Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef __ASM_ARCH_RESET_H
0003 #define __ASM_ARCH_RESET_H
0004 
0005 #define RESET_STATUS_HARDWARE   (1 << 0)    /* Hardware Reset */
0006 #define RESET_STATUS_WATCHDOG   (1 << 1)    /* Watchdog Reset */
0007 #define RESET_STATUS_LOWPOWER   (1 << 2)    /* Low Power/Sleep Exit */
0008 #define RESET_STATUS_GPIO   (1 << 3)    /* GPIO Reset */
0009 #define RESET_STATUS_ALL    (0xf)
0010 
0011 extern void clear_reset_status(unsigned int mask);
0012 extern void pxa_register_wdt(unsigned int reset_status);
0013 
0014 /**
0015  * init_gpio_reset() - register GPIO as reset generator
0016  * @gpio: gpio nr
0017  * @output: set gpio as output instead of input during normal work
0018  * @level: output level
0019  */
0020 extern int init_gpio_reset(int gpio, int output, int level);
0021 
0022 #endif /* __ASM_ARCH_RESET_H */