October 2017
Intermediate to advanced
586 pages
14h 8m
English
When a PMIC exposes a regulator to consumers, it has to impose some nominal limits for this regulator with the help of the struct regulation_constraints structure. It is a structure that gathers security limits of the regulator and defines boundaries the consumers cannot cross. It is a kind of a contract between the regulator driver and the consumer driver:
struct regulation_constraints { const char *name; /* voltage output range (inclusive) - for voltage control */ int min_uV; int max_uV; int uV_offset; /* current output range (inclusive) - for current control */ int min_uA; int max_uA; /* valid regulator operating modes for this machine */ unsigned int valid_modes_mask; /* valid operations for regulator on this machine ...Read now
Unlock full access