Home | History | Annotate | Line # | Download | only in power
      1  1.1  jmcneill /*	$NetBSD: summit,smb347-charger.h,v 1.1.1.1 2021/11/07 16:49:56 jmcneill Exp $	*/
      2  1.1  jmcneill 
      3  1.1  jmcneill /* SPDX-License-Identifier: (GPL-2.0-or-later or MIT) */
      4  1.1  jmcneill /*
      5  1.1  jmcneill  * Author: David Heidelberg <david (at) ixit.cz>
      6  1.1  jmcneill  */
      7  1.1  jmcneill 
      8  1.1  jmcneill #ifndef _DT_BINDINGS_SMB347_CHARGER_H
      9  1.1  jmcneill #define _DT_BINDINGS_SMB347_CHARGER_H
     10  1.1  jmcneill 
     11  1.1  jmcneill /* Charging compensation method */
     12  1.1  jmcneill #define SMB3XX_SOFT_TEMP_COMPENSATE_NONE	0
     13  1.1  jmcneill #define SMB3XX_SOFT_TEMP_COMPENSATE_CURRENT	1
     14  1.1  jmcneill #define SMB3XX_SOFT_TEMP_COMPENSATE_VOLTAGE	2
     15  1.1  jmcneill 
     16  1.1  jmcneill /* Charging enable control */
     17  1.1  jmcneill #define SMB3XX_CHG_ENABLE_SW			0
     18  1.1  jmcneill #define SMB3XX_CHG_ENABLE_PIN_ACTIVE_LOW	1
     19  1.1  jmcneill #define SMB3XX_CHG_ENABLE_PIN_ACTIVE_HIGH	2
     20  1.1  jmcneill 
     21  1.1  jmcneill /* Polarity of INOK signal */
     22  1.1  jmcneill #define SMB3XX_SYSOK_INOK_ACTIVE_LOW		0
     23  1.1  jmcneill #define SMB3XX_SYSOK_INOK_ACTIVE_HIGH		1
     24  1.1  jmcneill 
     25  1.1  jmcneill #endif
     26