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