October 2017
Intermediate to advanced
586 pages
14h 8m
English
This method consists of filling an array of constraints, either from within the driver, or in the board file, and using it as part of the platform data. The following is the sample based on the device from a case study, the ISL6271A from Intersil:
static struct regulator_init_data isl_init_data[] = { [0] = { .constraints = { .name = "Core Buck", .min_uV = 850000, .max_uV = 1600000, .valid_modes_mask = REGULATOR_MODE_NORMAL | REGULATOR_MODE_STANDBY, .valid_ops_mask = REGULATOR_CHANGE_MODE | REGULATOR_CHANGE_STATUS, }, }, [1] = { .constraints = { .name = "LDO1", .min_uV = 1100000, .max_uV = 1100000, .always_on = true, .valid_modes_mask = REGULATOR_MODE_NORMAL | REGULATOR_MODE_STANDBY, .valid_ops_mask = REGULATOR_CHANGE_MODE ...Read now
Unlock full access