~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/linux/mfd/max77650.h

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* SPDX-License-Identifier: GPL-2.0 */
  2 /*
  3  * Copyright (C) 2018 BayLibre SAS
  4  * Author: Bartosz Golaszewski <bgolaszewski@baylibre.com>
  5  *
  6  * Common definitions for MAXIM 77650/77651 charger/power-supply.
  7  */
  8 
  9 #ifndef MAX77650_H
 10 #define MAX77650_H
 11 
 12 #include <linux/bits.h>
 13 
 14 #define MAX77650_REG_INT_GLBL           0x00
 15 #define MAX77650_REG_INT_CHG            0x01
 16 #define MAX77650_REG_STAT_CHG_A         0x02
 17 #define MAX77650_REG_STAT_CHG_B         0x03
 18 #define MAX77650_REG_ERCFLAG            0x04
 19 #define MAX77650_REG_STAT_GLBL          0x05
 20 #define MAX77650_REG_INTM_GLBL          0x06
 21 #define MAX77650_REG_INTM_CHG           0x07
 22 #define MAX77650_REG_CNFG_GLBL          0x10
 23 #define MAX77650_REG_CID                0x11
 24 #define MAX77650_REG_CNFG_GPIO          0x12
 25 #define MAX77650_REG_CNFG_CHG_A         0x18
 26 #define MAX77650_REG_CNFG_CHG_B         0x19
 27 #define MAX77650_REG_CNFG_CHG_C         0x1a
 28 #define MAX77650_REG_CNFG_CHG_D         0x1b
 29 #define MAX77650_REG_CNFG_CHG_E         0x1c
 30 #define MAX77650_REG_CNFG_CHG_F         0x1d
 31 #define MAX77650_REG_CNFG_CHG_G         0x1e
 32 #define MAX77650_REG_CNFG_CHG_H         0x1f
 33 #define MAX77650_REG_CNFG_CHG_I         0x20
 34 #define MAX77650_REG_CNFG_SBB_TOP       0x28
 35 #define MAX77650_REG_CNFG_SBB0_A        0x29
 36 #define MAX77650_REG_CNFG_SBB0_B        0x2a
 37 #define MAX77650_REG_CNFG_SBB1_A        0x2b
 38 #define MAX77650_REG_CNFG_SBB1_B        0x2c
 39 #define MAX77650_REG_CNFG_SBB2_A        0x2d
 40 #define MAX77650_REG_CNFG_SBB2_B        0x2e
 41 #define MAX77650_REG_CNFG_LDO_A         0x38
 42 #define MAX77650_REG_CNFG_LDO_B         0x39
 43 #define MAX77650_REG_CNFG_LED0_A        0x40
 44 #define MAX77650_REG_CNFG_LED1_A        0x41
 45 #define MAX77650_REG_CNFG_LED2_A        0x42
 46 #define MAX77650_REG_CNFG_LED0_B        0x43
 47 #define MAX77650_REG_CNFG_LED1_B        0x44
 48 #define MAX77650_REG_CNFG_LED2_B        0x45
 49 #define MAX77650_REG_CNFG_LED_TOP       0x46
 50 
 51 #define MAX77650_CID_MASK               GENMASK(3, 0)
 52 #define MAX77650_CID_BITS(_reg)         (_reg & MAX77650_CID_MASK)
 53 
 54 #define MAX77650_CID_77650A             0x03
 55 #define MAX77650_CID_77650C             0x0a
 56 #define MAX77650_CID_77651A             0x06
 57 #define MAX77650_CID_77651B             0x08
 58 
 59 #endif /* MAX77650_H */
 60 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php