as3722.h revision 262569
1262569Simp/* 2262569Simp * This header provides macros for ams AS3722 device bindings. 3262569Simp * 4262569Simp * Copyright (c) 2013, NVIDIA Corporation. 5262569Simp * 6262569Simp * Author: Laxman Dewangan <ldewangan@nvidia.com> 7262569Simp * 8262569Simp */ 9262569Simp 10262569Simp#ifndef __DT_BINDINGS_AS3722_H__ 11262569Simp#define __DT_BINDINGS_AS3722_H__ 12262569Simp 13262569Simp/* External control pins */ 14262569Simp#define AS3722_EXT_CONTROL_PIN_ENABLE1 1 15262569Simp#define AS3722_EXT_CONTROL_PIN_ENABLE2 2 16262569Simp#define AS3722_EXT_CONTROL_PIN_ENABLE2 3 17262569Simp 18262569Simp/* Interrupt numbers for AS3722 */ 19262569Simp#define AS3722_IRQ_LID 0 20262569Simp#define AS3722_IRQ_ACOK 1 21262569Simp#define AS3722_IRQ_ENABLE1 2 22262569Simp#define AS3722_IRQ_OCCUR_ALARM_SD0 3 23262569Simp#define AS3722_IRQ_ONKEY_LONG_PRESS 4 24262569Simp#define AS3722_IRQ_ONKEY 5 25262569Simp#define AS3722_IRQ_OVTMP 6 26262569Simp#define AS3722_IRQ_LOWBAT 7 27262569Simp#define AS3722_IRQ_SD0_LV 8 28262569Simp#define AS3722_IRQ_SD1_LV 9 29262569Simp#define AS3722_IRQ_SD2_LV 10 30262569Simp#define AS3722_IRQ_PWM1_OV_PROT 11 31262569Simp#define AS3722_IRQ_PWM2_OV_PROT 12 32262569Simp#define AS3722_IRQ_ENABLE2 13 33262569Simp#define AS3722_IRQ_SD6_LV 14 34262569Simp#define AS3722_IRQ_RTC_REP 15 35262569Simp#define AS3722_IRQ_RTC_ALARM 16 36262569Simp#define AS3722_IRQ_GPIO1 17 37262569Simp#define AS3722_IRQ_GPIO2 18 38262569Simp#define AS3722_IRQ_GPIO3 19 39262569Simp#define AS3722_IRQ_GPIO4 20 40262569Simp#define AS3722_IRQ_GPIO5 21 41262569Simp#define AS3722_IRQ_WATCHDOG 22 42262569Simp#define AS3722_IRQ_ENABLE3 23 43262569Simp#define AS3722_IRQ_TEMP_SD0_SHUTDOWN 24 44262569Simp#define AS3722_IRQ_TEMP_SD1_SHUTDOWN 25 45262569Simp#define AS3722_IRQ_TEMP_SD2_SHUTDOWN 26 46262569Simp#define AS3722_IRQ_TEMP_SD0_ALARM 27 47262569Simp#define AS3722_IRQ_TEMP_SD1_ALARM 28 48262569Simp#define AS3722_IRQ_TEMP_SD6_ALARM 29 49262569Simp#define AS3722_IRQ_OCCUR_ALARM_SD6 30 50262569Simp#define AS3722_IRQ_ADC 31 51262569Simp 52262569Simp#endif /* __DT_BINDINGS_AS3722_H__ */ 53