1*46f3d6a1SCédric Le Goater /* 2*46f3d6a1SCédric Le Goater * Common defines and structures for PMBus devices 3*46f3d6a1SCédric Le Goater * 4*46f3d6a1SCédric Le Goater * Extracted from Linux drivers/hwmon/pmbus/pmbus.h 5*46f3d6a1SCédric Le Goater * 6*46f3d6a1SCédric Le Goater * Copyright (c) 2010, 2011 Ericsson AB. 7*46f3d6a1SCédric Le Goater * Copyright (c) 2012 Guenter Roeck 8*46f3d6a1SCédric Le Goater * 9*46f3d6a1SCédric Le Goater * This code is licensed under the GPL version 2 or later. See the 10*46f3d6a1SCédric Le Goater * COPYING file in the top-level directory. 11*46f3d6a1SCédric Le Goater */ 12*46f3d6a1SCédric Le Goater 13*46f3d6a1SCédric Le Goater #ifndef PMBUS_REGS_H 14*46f3d6a1SCédric Le Goater #define PMBUS_REGS_H 15*46f3d6a1SCédric Le Goater 16*46f3d6a1SCédric Le Goater /* 17*46f3d6a1SCédric Le Goater * Registers 18*46f3d6a1SCédric Le Goater */ 19*46f3d6a1SCédric Le Goater enum PmbusRegs { 20*46f3d6a1SCédric Le Goater PMBUS_PAGE = 0x00, 21*46f3d6a1SCédric Le Goater PMBUS_OPERATION = 0x01, 22*46f3d6a1SCédric Le Goater PMBUS_ON_OFF_CONFIG = 0x02, 23*46f3d6a1SCédric Le Goater PMBUS_CLEAR_FAULTS = 0x03, 24*46f3d6a1SCédric Le Goater PMBUS_PHASE = 0x04, 25*46f3d6a1SCédric Le Goater 26*46f3d6a1SCédric Le Goater PMBUS_CAPABILITY = 0x19, 27*46f3d6a1SCédric Le Goater PMBUS_QUERY = 0x1A, 28*46f3d6a1SCédric Le Goater 29*46f3d6a1SCédric Le Goater PMBUS_VOUT_MODE = 0x20, 30*46f3d6a1SCédric Le Goater PMBUS_VOUT_COMMAND = 0x21, 31*46f3d6a1SCédric Le Goater PMBUS_VOUT_TRIM = 0x22, 32*46f3d6a1SCédric Le Goater PMBUS_VOUT_CAL_OFFSET = 0x23, 33*46f3d6a1SCédric Le Goater PMBUS_VOUT_MAX = 0x24, 34*46f3d6a1SCédric Le Goater PMBUS_VOUT_MARGIN_HIGH = 0x25, 35*46f3d6a1SCédric Le Goater PMBUS_VOUT_MARGIN_LOW = 0x26, 36*46f3d6a1SCédric Le Goater PMBUS_VOUT_TRANSITION_RATE = 0x27, 37*46f3d6a1SCédric Le Goater PMBUS_VOUT_DROOP = 0x28, 38*46f3d6a1SCédric Le Goater PMBUS_VOUT_SCALE_LOOP = 0x29, 39*46f3d6a1SCédric Le Goater PMBUS_VOUT_SCALE_MONITOR = 0x2A, 40*46f3d6a1SCédric Le Goater 41*46f3d6a1SCédric Le Goater PMBUS_COEFFICIENTS = 0x30, 42*46f3d6a1SCédric Le Goater PMBUS_POUT_MAX = 0x31, 43*46f3d6a1SCédric Le Goater 44*46f3d6a1SCédric Le Goater PMBUS_FAN_CONFIG_12 = 0x3A, 45*46f3d6a1SCédric Le Goater PMBUS_FAN_COMMAND_1 = 0x3B, 46*46f3d6a1SCédric Le Goater PMBUS_FAN_COMMAND_2 = 0x3C, 47*46f3d6a1SCédric Le Goater PMBUS_FAN_CONFIG_34 = 0x3D, 48*46f3d6a1SCédric Le Goater PMBUS_FAN_COMMAND_3 = 0x3E, 49*46f3d6a1SCédric Le Goater PMBUS_FAN_COMMAND_4 = 0x3F, 50*46f3d6a1SCédric Le Goater 51*46f3d6a1SCédric Le Goater PMBUS_VOUT_OV_FAULT_LIMIT = 0x40, 52*46f3d6a1SCédric Le Goater PMBUS_VOUT_OV_FAULT_RESPONSE = 0x41, 53*46f3d6a1SCédric Le Goater PMBUS_VOUT_OV_WARN_LIMIT = 0x42, 54*46f3d6a1SCédric Le Goater PMBUS_VOUT_UV_WARN_LIMIT = 0x43, 55*46f3d6a1SCédric Le Goater PMBUS_VOUT_UV_FAULT_LIMIT = 0x44, 56*46f3d6a1SCédric Le Goater PMBUS_VOUT_UV_FAULT_RESPONSE = 0x45, 57*46f3d6a1SCédric Le Goater PMBUS_IOUT_OC_FAULT_LIMIT = 0x46, 58*46f3d6a1SCédric Le Goater PMBUS_IOUT_OC_FAULT_RESPONSE = 0x47, 59*46f3d6a1SCédric Le Goater PMBUS_IOUT_OC_LV_FAULT_LIMIT = 0x48, 60*46f3d6a1SCédric Le Goater PMBUS_IOUT_OC_LV_FAULT_RESPONSE = 0x49, 61*46f3d6a1SCédric Le Goater PMBUS_IOUT_OC_WARN_LIMIT = 0x4A, 62*46f3d6a1SCédric Le Goater PMBUS_IOUT_UC_FAULT_LIMIT = 0x4B, 63*46f3d6a1SCédric Le Goater PMBUS_IOUT_UC_FAULT_RESPONSE = 0x4C, 64*46f3d6a1SCédric Le Goater 65*46f3d6a1SCédric Le Goater PMBUS_OT_FAULT_LIMIT = 0x4F, 66*46f3d6a1SCédric Le Goater PMBUS_OT_FAULT_RESPONSE = 0x50, 67*46f3d6a1SCédric Le Goater PMBUS_OT_WARN_LIMIT = 0x51, 68*46f3d6a1SCédric Le Goater PMBUS_UT_WARN_LIMIT = 0x52, 69*46f3d6a1SCédric Le Goater PMBUS_UT_FAULT_LIMIT = 0x53, 70*46f3d6a1SCédric Le Goater PMBUS_UT_FAULT_RESPONSE = 0x54, 71*46f3d6a1SCédric Le Goater PMBUS_VIN_OV_FAULT_LIMIT = 0x55, 72*46f3d6a1SCédric Le Goater PMBUS_VIN_OV_FAULT_RESPONSE = 0x56, 73*46f3d6a1SCédric Le Goater PMBUS_VIN_OV_WARN_LIMIT = 0x57, 74*46f3d6a1SCédric Le Goater PMBUS_VIN_UV_WARN_LIMIT = 0x58, 75*46f3d6a1SCédric Le Goater PMBUS_VIN_UV_FAULT_LIMIT = 0x59, 76*46f3d6a1SCédric Le Goater 77*46f3d6a1SCédric Le Goater PMBUS_IIN_OC_FAULT_LIMIT = 0x5B, 78*46f3d6a1SCédric Le Goater PMBUS_IIN_OC_WARN_LIMIT = 0x5D, 79*46f3d6a1SCédric Le Goater 80*46f3d6a1SCédric Le Goater PMBUS_POUT_OP_FAULT_LIMIT = 0x68, 81*46f3d6a1SCédric Le Goater PMBUS_POUT_OP_WARN_LIMIT = 0x6A, 82*46f3d6a1SCédric Le Goater PMBUS_PIN_OP_WARN_LIMIT = 0x6B, 83*46f3d6a1SCédric Le Goater 84*46f3d6a1SCédric Le Goater PMBUS_STATUS_BYTE = 0x78, 85*46f3d6a1SCédric Le Goater PMBUS_STATUS_WORD = 0x79, 86*46f3d6a1SCédric Le Goater PMBUS_STATUS_VOUT = 0x7A, 87*46f3d6a1SCédric Le Goater PMBUS_STATUS_IOUT = 0x7B, 88*46f3d6a1SCédric Le Goater PMBUS_STATUS_INPUT = 0x7C, 89*46f3d6a1SCédric Le Goater PMBUS_STATUS_TEMPERATURE = 0x7D, 90*46f3d6a1SCédric Le Goater PMBUS_STATUS_CML = 0x7E, 91*46f3d6a1SCédric Le Goater PMBUS_STATUS_OTHER = 0x7F, 92*46f3d6a1SCédric Le Goater PMBUS_STATUS_MFR_SPECIFIC = 0x80, 93*46f3d6a1SCédric Le Goater PMBUS_STATUS_FAN_12 = 0x81, 94*46f3d6a1SCédric Le Goater PMBUS_STATUS_FAN_34 = 0x82, 95*46f3d6a1SCédric Le Goater 96*46f3d6a1SCédric Le Goater PMBUS_READ_VIN = 0x88, 97*46f3d6a1SCédric Le Goater PMBUS_READ_IIN = 0x89, 98*46f3d6a1SCédric Le Goater PMBUS_READ_VCAP = 0x8A, 99*46f3d6a1SCédric Le Goater PMBUS_READ_VOUT = 0x8B, 100*46f3d6a1SCédric Le Goater PMBUS_READ_IOUT = 0x8C, 101*46f3d6a1SCédric Le Goater PMBUS_READ_TEMPERATURE_1 = 0x8D, 102*46f3d6a1SCédric Le Goater PMBUS_READ_TEMPERATURE_2 = 0x8E, 103*46f3d6a1SCédric Le Goater PMBUS_READ_TEMPERATURE_3 = 0x8F, 104*46f3d6a1SCédric Le Goater PMBUS_READ_FAN_SPEED_1 = 0x90, 105*46f3d6a1SCédric Le Goater PMBUS_READ_FAN_SPEED_2 = 0x91, 106*46f3d6a1SCédric Le Goater PMBUS_READ_FAN_SPEED_3 = 0x92, 107*46f3d6a1SCédric Le Goater PMBUS_READ_FAN_SPEED_4 = 0x93, 108*46f3d6a1SCédric Le Goater PMBUS_READ_DUTY_CYCLE = 0x94, 109*46f3d6a1SCédric Le Goater PMBUS_READ_FREQUENCY = 0x95, 110*46f3d6a1SCédric Le Goater PMBUS_READ_POUT = 0x96, 111*46f3d6a1SCédric Le Goater PMBUS_READ_PIN = 0x97, 112*46f3d6a1SCédric Le Goater 113*46f3d6a1SCédric Le Goater PMBUS_REVISION = 0x98, 114*46f3d6a1SCédric Le Goater PMBUS_MFR_ID = 0x99, 115*46f3d6a1SCédric Le Goater PMBUS_MFR_MODEL = 0x9A, 116*46f3d6a1SCédric Le Goater PMBUS_MFR_REVISION = 0x9B, 117*46f3d6a1SCédric Le Goater PMBUS_MFR_LOCATION = 0x9C, 118*46f3d6a1SCédric Le Goater PMBUS_MFR_DATE = 0x9D, 119*46f3d6a1SCédric Le Goater PMBUS_MFR_SERIAL = 0x9E, 120*46f3d6a1SCédric Le Goater }; 121*46f3d6a1SCédric Le Goater 122*46f3d6a1SCédric Le Goater #endif 123