Lines Matching refs:config1
1835 static const char *lm90_detect_max1617(struct i2c_client *client, int config1)
1843 if (config1 & 0x3f)
1895 (config1 | 0xff00))
1906 int config1, int convrate)
1915 if ((config1 & 0x2a) || (config2 & 0xf8) || convrate > 0x09)
1940 static const char *lm90_detect_on(struct i2c_client *client, int chip_id, int config1,
1948 if ((address == 0x4c || address == 0x4d) && !(config1 & 0x1b) &&
1959 int chip_id, int config1, int convrate)
2011 !(status & 0x03) && !(config1 & 0x3f) && !(convrate & 0xf8))
2017 (config1 & 0x0b) == 0x08 && convrate <= 0x0a)
2036 !(status & 0x03) && !(config1 & 0x3f) && !(convrate & 0xf8))
2042 !(status & 0x03) && !(config1 & 0x3f) && !(convrate & 0xf8))
2047 !(status & 0x03) && !(config1 & 0x3f) && !(convrate & 0xf8))
2052 (address == 0x4c || address == 0x4d) && !(config1 & 0x3f) &&
2058 (address == 0x4c || address == 0x4d) && !(config1 & 0x1b) &&
2064 (address == 0x4c || address == 0x4d) && !(config1 & 0x1b) &&
2070 (address == 0x4c || address == 0x4d) && !(config1 & 0x1b) &&
2076 (address == 0x4c || address == 0x4d) && !(config1 & 0x1b) &&
2082 common_address && !(config1 & 0x1b) && convrate <= 0x0a)
2087 (address == 0x4b || address == 0x4c) && !(config1 & 0x10) &&
2095 address == 0x4c && !(config1 & 0x10) && !(config2 & 0x7f) &&
2105 !(config1 & 0x10) && !(config2 & 0x7f) && convrate <= 0x0a)
2116 int chip_id, int config1, int convrate)
2146 * register, reading it returns 0x01. Bit 4 of the config1
2155 if (!(config1 & 0x10) && !(status2 & 0x01) && emerg == emerg2 &&
2160 * revision of the chip. The lowest bit of the config1 register
2162 * second to last bit of config1 (software reset). Register
2167 else if (!(config1 & 0x03) && convrate <= 0x07 &&
2182 else if (!(config1 & 0x03f) && convrate <= 0x07 &&
2189 * The lowest 3 bits of the config1 register are unused and
2192 if (common_address && !(config1 & 0x07) && convrate <= 0x07)
2198 * The lowest 3 bits of the config1 register are unused and
2205 if (common_address && !(config1 & 0x07) && convrate <= 0x07)
2218 * For MAX6657, MAX6658 and MAX6659, the config1 register lacks
2227 if (address >= 0x48 && address <= 0x4f && config1 == convrate &&
2228 !(config1 & 0x0f)) {
2260 (config1 & 0x1f) == 0x0d && convrate <= 0x09) {
2270 * revision of the chip. The lowest 6 bits of the config1
2282 if (!(config1 & 0x3f) && convrate <= 0x07) {
2318 int config1, int convrate)
2327 if (address == 0x4c && !(config1 & 0x2a) && !(config2 & 0xf8)) {
2340 int chip_id, int config1, int convrate)
2352 !(config1 & 0x2a) && !(config2 & 0xfe) && convrate <= 0x09)
2356 if (common_address && !(config1 & 0x3f) && convrate <= 0x07)
2366 int config1, int convrate)
2391 !(config1 & 0x3f) && convrate <= 0x08) {
2408 int chip_id, int config1, int convrate)
2410 if (common_address && chip_id == 0x00 && !(config1 & 0x3f) && !(convrate & 0xf8)) {
2420 int config1, int convrate)
2425 if (chip_id == 0x00 && !(config1 & 0x1b) && convrate <= 0x09) {
2451 int man_id, chip_id, config1, convrate, lhigh;
2471 config1 = i2c_smbus_read_byte_data(client, LM90_REG_CONFIG1);
2473 if (man_id < 0 || chip_id < 0 || config1 < 0 || convrate < 0 || lhigh < 0)
2477 if (lhigh == man_id && lhigh == chip_id && lhigh == config1 && lhigh == convrate)
2496 if (common_address && !convrate && !(config1 & 0x7f))
2500 name = lm90_detect_national(client, chip_id, config1, convrate);
2503 name = lm90_detect_on(client, chip_id, config1, convrate);
2506 if (common_address && !(config1 & 0x3f) && !(convrate & 0xf8))
2510 name = lm90_detect_analog(client, common_address, chip_id, config1,
2514 name = lm90_detect_gmt(client, chip_id, config1, convrate);
2517 name = lm90_detect_ti49(client, common_address, chip_id, config1, convrate);
2521 config1, convrate);
2524 if (common_address && !(config1 & 0x3f) && !(convrate & 0xf8))
2528 name = lm90_detect_ti(client, chip_id, config1, convrate);
2531 name = lm90_detect_nuvoton(client, chip_id, config1, convrate);
2534 name = lm90_detect_nxp(client, common_address, chip_id, config1, convrate);
2538 name = lm90_detect_max1617(client, config1);