2019-05-20 10:19:02 +03:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
2011-01-27 07:09:02 +03:00
|
|
|
/*
|
|
|
|
* Hardware monitoring driver for PMBus devices
|
|
|
|
*
|
|
|
|
* Copyright (c) 2010, 2011 Ericsson AB.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _PMBUS_H_
|
|
|
|
#define _PMBUS_H_
|
|
|
|
|
|
|
|
/* flags */
|
|
|
|
|
|
|
|
/*
|
|
|
|
* PMBUS_SKIP_STATUS_CHECK
|
|
|
|
*
|
|
|
|
* During register detection, skip checking the status register for
|
|
|
|
* communication or command errors.
|
|
|
|
*
|
|
|
|
* Some PMBus chips respond with valid data when trying to read an unsupported
|
|
|
|
* register. For such chips, checking the status register is mandatory when
|
|
|
|
* trying to determine if a chip register exists or not.
|
|
|
|
* Other PMBus chips don't support the STATUS_CML register, or report
|
|
|
|
* communication errors for no explicable reason. For such chips, checking
|
|
|
|
* the status register must be disabled.
|
|
|
|
*/
|
|
|
|
#define PMBUS_SKIP_STATUS_CHECK (1 << 0)
|
|
|
|
|
|
|
|
struct pmbus_platform_data {
|
|
|
|
u32 flags; /* Device specific flags */
|
2014-10-15 22:55:09 +04:00
|
|
|
|
|
|
|
/* regulator support */
|
|
|
|
int num_regulators;
|
|
|
|
struct regulator_init_data *reg_init_data;
|
2011-01-27 07:09:02 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* _PMBUS_H_ */
|