Lines Matching +full:0 +full:x7c00
34 #define LTC2978_MFR_VOUT_PEAK 0xdd
35 #define LTC2978_MFR_VIN_PEAK 0xde
36 #define LTC2978_MFR_TEMPERATURE_PEAK 0xdf
37 #define LTC2978_MFR_SPECIAL_ID 0xe7 /* Undocumented on LTC3882 */
38 #define LTC2978_MFR_COMMON 0xef
41 #define LTC2978_MFR_VOUT_MIN 0xfb
42 #define LTC2978_MFR_VIN_MIN 0xfc
43 #define LTC2978_MFR_TEMPERATURE_MIN 0xfd
46 #define LTC2974_MFR_IOUT_PEAK 0xd7
47 #define LTC2974_MFR_IOUT_MIN 0xd8
50 #define LTC3880_MFR_IOUT_PEAK 0xd7
51 #define LTC3880_MFR_CLEAR_PEAKS 0xe3
52 #define LTC3880_MFR_TEMPERATURE2_PEAK 0xf4
55 #define LTC3883_MFR_IIN_PEAK 0xe1
58 #define LTC2975_MFR_IIN_PEAK 0xc4
59 #define LTC2975_MFR_IIN_MIN 0xc5
60 #define LTC2975_MFR_PIN_PEAK 0xc6
61 #define LTC2975_MFR_PIN_MIN 0xc7
63 #define LTC2978_ID_MASK 0xfff0
65 #define LTC2972_ID 0x0310
66 #define LTC2974_ID 0x0210
67 #define LTC2975_ID 0x0220
68 #define LTC2977_ID 0x0130
69 #define LTC2978_ID_REV1 0x0110 /* Early revision */
70 #define LTC2978_ID_REV2 0x0120
71 #define LTC2979_ID_A 0x8060
72 #define LTC2979_ID_B 0x8070
73 #define LTC2980_ID_A 0x8030 /* A/B for two die IDs */
74 #define LTC2980_ID_B 0x8040
75 #define LTC3880_ID 0x4020
76 #define LTC3882_ID 0x4200
77 #define LTC3882_ID_D1 0x4240 /* Dash 1 */
78 #define LTC3883_ID 0x4300
79 #define LTC3884_ID 0x4C00
80 #define LTC3886_ID 0x4600
81 #define LTC3887_ID 0x4700
82 #define LTC3889_ID 0x4900
83 #define LTC7132_ID 0x4CE0
84 #define LTC7841_ID 0x40D0
85 #define LTC7880_ID 0x49E0
86 #define LTM2987_ID_A 0x8010 /* A/B for two die IDs */
87 #define LTM2987_ID_B 0x8020
88 #define LTM4664_ID 0x4120
89 #define LTM4675_ID 0x47a0
90 #define LTM4676_ID_REV1 0x4400
91 #define LTM4676_ID_REV2 0x4480
92 #define LTM4676A_ID 0x47e0
93 #define LTM4677_ID_REV1 0x47B0
94 #define LTM4677_ID_REV2 0x47D0
95 #define LTM4678_ID_REV1 0x4100
96 #define LTM4678_ID_REV2 0x4110
97 #define LTM4680_ID 0x4140
98 #define LTM4686_ID 0x4770
99 #define LTM4700_ID 0x4130
134 #define FEAT_CLEAR_PEAKS BIT(0)
149 return 0; in ltc_wait_ready()
160 status = pmbus_read_byte_data(client, 0, LTC2978_MFR_COMMON); in ltc_wait_ready()
166 if (status < 0) in ltc_wait_ready()
170 return 0; in ltc_wait_ready()
184 if (ret < 0) in ltc_read_word_data()
187 return pmbus_read_word_data(client, page, 0xff, reg); in ltc_read_word_data()
195 if (ret < 0) in ltc_read_byte_data()
206 if (ret < 0) in ltc_write_byte_data()
217 if (ret < 0) in ltc_write_byte()
233 return (e < 0 ? m >> -e : m << e); in lin11_to_val()
241 ret = ltc_read_word_data(client, page, 0xff, reg); in ltc_get_max()
242 if (ret >= 0) { in ltc_get_max()
255 ret = ltc_read_word_data(client, page, 0xff, reg); in ltc_get_min()
256 if (ret >= 0) { in ltc_get_min()
277 ret = ltc_read_word_data(client, page, 0xff, in ltc2978_read_word_data_common()
279 if (ret >= 0) { in ltc2978_read_word_data_common()
297 ret = 0; in ltc2978_read_word_data_common()
301 if (ret < 0) in ltc2978_read_word_data_common()
324 if (ret >= 0) { in ltc2978_read_word_data()
373 ret = 0; in ltc2974_read_word_data()
408 ret = 0; in ltc2975_read_word_data()
441 ret = 0; in ltc3880_read_word_data()
463 ret = 0; in ltc3883_read_word_data()
478 ret = ltc_write_byte(client, 0, LTC3880_MFR_CLEAR_PEAKS); in ltc2978_clear_peaks()
494 data->iin_max = 0x7c00; in ltc2978_write_word_data()
495 data->iin_min = 0x7bff; in ltc2978_write_word_data()
496 ret = ltc2978_clear_peaks(data, client, 0); in ltc2978_write_word_data()
499 data->pin_max = 0x7c00; in ltc2978_write_word_data()
500 data->pin_min = 0x7bff; in ltc2978_write_word_data()
501 ret = ltc2978_clear_peaks(data, client, 0); in ltc2978_write_word_data()
504 data->iout_max[page] = 0x7c00; in ltc2978_write_word_data()
505 data->iout_min[page] = 0xfbff; in ltc2978_write_word_data()
509 data->temp2_max = 0x7c00; in ltc2978_write_word_data()
513 data->vout_min[page] = 0xffff; in ltc2978_write_word_data()
514 data->vout_max[page] = 0; in ltc2978_write_word_data()
518 data->vin_min = 0x7bff; in ltc2978_write_word_data()
519 data->vin_max = 0x7c00; in ltc2978_write_word_data()
523 data->temp_min[page] = 0x7bff; in ltc2978_write_word_data()
524 data->temp_max[page] = 0x7c00; in ltc2978_write_word_data()
529 if (ret < 0) in ltc2978_write_word_data()
569 #define LTC2978_ADC_RES 0xFFFF
576 PMBUS_REGULATOR_STEP("vout", 0, LTC2978_N_VOLTAGES, LTC2978_UV_STEP, 0),
577 PMBUS_REGULATOR_STEP("vout", 1, LTC2978_N_VOLTAGES, LTC2978_UV_STEP, 0),
578 PMBUS_REGULATOR_STEP("vout", 2, LTC2978_N_VOLTAGES, LTC2978_UV_STEP, 0),
579 PMBUS_REGULATOR_STEP("vout", 3, LTC2978_N_VOLTAGES, LTC2978_UV_STEP, 0),
580 PMBUS_REGULATOR_STEP("vout", 4, LTC2978_N_VOLTAGES, LTC2978_UV_STEP, 0),
581 PMBUS_REGULATOR_STEP("vout", 5, LTC2978_N_VOLTAGES, LTC2978_UV_STEP, 0),
582 PMBUS_REGULATOR_STEP("vout", 6, LTC2978_N_VOLTAGES, LTC2978_UV_STEP, 0),
583 PMBUS_REGULATOR_STEP("vout", 7, LTC2978_N_VOLTAGES, LTC2978_UV_STEP, 0),
587 PMBUS_REGULATOR("vout", 0),
603 if (chip_id < 0) { in ltc2978_get_id()
613 if (ret < 0) in ltc2978_get_id()
619 if (ret < 0) in ltc2978_get_id()
621 for (id = <c2978_id[0]; strlen(id->name); id++) { in ltc2978_get_id()
684 dev_err(&client->dev, "Unsupported chip ID 0x%x\n", chip_id); in ltc2978_get_id()
705 if (chip_id < 0) in ltc2978_probe()
724 data->vin_min = 0x7bff; in ltc2978_probe()
725 data->vin_max = 0x7c00; in ltc2978_probe()
726 for (i = 0; i < ARRAY_SIZE(data->vout_min); i++) in ltc2978_probe()
727 data->vout_min[i] = 0xffff; in ltc2978_probe()
728 for (i = 0; i < ARRAY_SIZE(data->iout_min); i++) in ltc2978_probe()
729 data->iout_min[i] = 0xfbff; in ltc2978_probe()
730 for (i = 0; i < ARRAY_SIZE(data->iout_max); i++) in ltc2978_probe()
731 data->iout_max[i] = 0x7c00; in ltc2978_probe()
732 for (i = 0; i < ARRAY_SIZE(data->temp_min); i++) in ltc2978_probe()
733 data->temp_min[i] = 0x7bff; in ltc2978_probe()
734 for (i = 0; i < ARRAY_SIZE(data->temp_max); i++) in ltc2978_probe()
735 data->temp_max[i] = 0x7c00; in ltc2978_probe()
736 data->temp2_max = 0x7c00; in ltc2978_probe()
742 info->func[0] = PMBUS_HAVE_IIN | PMBUS_HAVE_PIN in ltc2978_probe()
745 for (i = 0; i < info->pages; i++) { in ltc2978_probe()
755 info->func[0] = PMBUS_HAVE_VIN | PMBUS_HAVE_STATUS_INPUT in ltc2978_probe()
757 for (i = 0; i < info->pages; i++) { in ltc2978_probe()
767 info->func[0] = PMBUS_HAVE_IIN | PMBUS_HAVE_PIN in ltc2978_probe()
770 for (i = 0; i < info->pages; i++) { in ltc2978_probe()
785 info->func[0] = PMBUS_HAVE_VIN | PMBUS_HAVE_STATUS_INPUT in ltc2978_probe()
802 info->func[0] = PMBUS_HAVE_VIN | PMBUS_HAVE_IIN in ltc2978_probe()
817 info->func[0] = PMBUS_HAVE_VIN in ltc2978_probe()
832 info->func[0] = PMBUS_HAVE_VIN | PMBUS_HAVE_IIN in ltc2978_probe()
851 info->func[0] = PMBUS_HAVE_VIN | PMBUS_HAVE_IIN in ltc2978_probe()
866 info->func[0] = PMBUS_HAVE_VIN | PMBUS_HAVE_IIN in ltc2978_probe()