1/* s5m8763.h 2 * 3 * Copyright (c) 2011 Samsung Electronics Co., Ltd 4 * http://www.samsung.com 5 * 6 * This program is free software; you can redistribute it and/or modify it 7 * under the terms of the GNU General Public License as published by the 8 * Free Software Foundation; either version 2 of the License, or (at your 9 * option) any later version. 10 * 11 */ 12 13#ifndef __LINUX_MFD_S5M8763_H 14#define __LINUX_MFD_S5M8763_H 15 16/* S5M8763 registers */ 17enum s5m8763_reg { 18 S5M8763_REG_IRQ1, 19 S5M8763_REG_IRQ2, 20 S5M8763_REG_IRQ3, 21 S5M8763_REG_IRQ4, 22 S5M8763_REG_IRQM1, 23 S5M8763_REG_IRQM2, 24 S5M8763_REG_IRQM3, 25 S5M8763_REG_IRQM4, 26 S5M8763_REG_STATUS1, 27 S5M8763_REG_STATUS2, 28 S5M8763_REG_STATUSM1, 29 S5M8763_REG_STATUSM2, 30 S5M8763_REG_CHGR1, 31 S5M8763_REG_CHGR2, 32 S5M8763_REG_LDO_ACTIVE_DISCHARGE1, 33 S5M8763_REG_LDO_ACTIVE_DISCHARGE2, 34 S5M8763_REG_BUCK_ACTIVE_DISCHARGE3, 35 S5M8763_REG_ONOFF1, 36 S5M8763_REG_ONOFF2, 37 S5M8763_REG_ONOFF3, 38 S5M8763_REG_ONOFF4, 39 S5M8763_REG_BUCK1_VOLTAGE1, 40 S5M8763_REG_BUCK1_VOLTAGE2, 41 S5M8763_REG_BUCK1_VOLTAGE3, 42 S5M8763_REG_BUCK1_VOLTAGE4, 43 S5M8763_REG_BUCK2_VOLTAGE1, 44 S5M8763_REG_BUCK2_VOLTAGE2, 45 S5M8763_REG_BUCK3, 46 S5M8763_REG_BUCK4, 47 S5M8763_REG_LDO1_LDO2, 48 S5M8763_REG_LDO3, 49 S5M8763_REG_LDO4, 50 S5M8763_REG_LDO5, 51 S5M8763_REG_LDO6, 52 S5M8763_REG_LDO7, 53 S5M8763_REG_LDO7_LDO8, 54 S5M8763_REG_LDO9_LDO10, 55 S5M8763_REG_LDO11, 56 S5M8763_REG_LDO12, 57 S5M8763_REG_LDO13, 58 S5M8763_REG_LDO14, 59 S5M8763_REG_LDO15, 60 S5M8763_REG_LDO16, 61 S5M8763_REG_BKCHR, 62 S5M8763_REG_LBCNFG1, 63 S5M8763_REG_LBCNFG2, 64}; 65 66/* S5M8763 regulator ids */ 67enum s5m8763_regulators { 68 S5M8763_LDO1, 69 S5M8763_LDO2, 70 S5M8763_LDO3, 71 S5M8763_LDO4, 72 S5M8763_LDO5, 73 S5M8763_LDO6, 74 S5M8763_LDO7, 75 S5M8763_LDO8, 76 S5M8763_LDO9, 77 S5M8763_LDO10, 78 S5M8763_LDO11, 79 S5M8763_LDO12, 80 S5M8763_LDO13, 81 S5M8763_LDO14, 82 S5M8763_LDO15, 83 S5M8763_LDO16, 84 S5M8763_BUCK1, 85 S5M8763_BUCK2, 86 S5M8763_BUCK3, 87 S5M8763_BUCK4, 88 S5M8763_AP_EN32KHZ, 89 S5M8763_CP_EN32KHZ, 90 S5M8763_ENCHGVI, 91 S5M8763_ESAFEUSB1, 92 S5M8763_ESAFEUSB2, 93}; 94 95#define S5M8763_ENRAMP (1 << 4) 96#endif /* __LINUX_MFD_S5M8763_H */ 97