Lines Matching full:config1
1799 static const char *lm90_detect_max1617(struct i2c_client *client, int config1) in lm90_detect_max1617() argument
1807 if (config1 & 0x3f) in lm90_detect_max1617()
1859 (config1 | 0xff00)) in lm90_detect_max1617()
1870 int config1, int convrate) in lm90_detect_national() argument
1879 if ((config1 & 0x2a) || (config2 & 0xf8) || convrate > 0x09) in lm90_detect_national()
1904 static const char *lm90_detect_on(struct i2c_client *client, int chip_id, int config1, in lm90_detect_on() argument
1912 if ((address == 0x4c || address == 0x4d) && !(config1 & 0x1b) && in lm90_detect_on()
1923 int chip_id, int config1, int convrate) in lm90_detect_analog() argument
1975 !(status & 0x03) && !(config1 & 0x3f) && !(convrate & 0xf8)) in lm90_detect_analog()
1981 (config1 & 0x0b) == 0x08 && convrate <= 0x0a) in lm90_detect_analog()
2000 !(status & 0x03) && !(config1 & 0x3f) && !(convrate & 0xf8)) in lm90_detect_analog()
2006 !(status & 0x03) && !(config1 & 0x3f) && !(convrate & 0xf8)) in lm90_detect_analog()
2011 !(status & 0x03) && !(config1 & 0x3f) && !(convrate & 0xf8)) in lm90_detect_analog()
2016 (address == 0x4c || address == 0x4d) && !(config1 & 0x3f) && in lm90_detect_analog()
2022 (address == 0x4c || address == 0x4d) && !(config1 & 0x1b) && in lm90_detect_analog()
2028 (address == 0x4c || address == 0x4d) && !(config1 & 0x1b) && in lm90_detect_analog()
2034 (address == 0x4c || address == 0x4d) && !(config1 & 0x1b) && in lm90_detect_analog()
2040 (address == 0x4c || address == 0x4d) && !(config1 & 0x1b) && in lm90_detect_analog()
2046 common_address && !(config1 & 0x1b) && convrate <= 0x0a) in lm90_detect_analog()
2051 (address == 0x4b || address == 0x4c) && !(config1 & 0x10) && in lm90_detect_analog()
2059 address == 0x4c && !(config1 & 0x10) && !(config2 & 0x7f) && in lm90_detect_analog()
2069 !(config1 & 0x10) && !(config2 & 0x7f) && convrate <= 0x0a) in lm90_detect_analog()
2080 int chip_id, int config1, int convrate) in lm90_detect_maxim() argument
2110 * register, reading it returns 0x01. Bit 4 of the config1 in lm90_detect_maxim()
2119 if (!(config1 & 0x10) && !(status2 & 0x01) && emerg == emerg2 && in lm90_detect_maxim()
2124 * revision of the chip. The lowest bit of the config1 register in lm90_detect_maxim()
2126 * second to last bit of config1 (software reset). Register in lm90_detect_maxim()
2131 else if (!(config1 & 0x03) && convrate <= 0x07 && in lm90_detect_maxim()
2146 else if (!(config1 & 0x03f) && convrate <= 0x07 && in lm90_detect_maxim()
2153 * The lowest 3 bits of the config1 register are unused and in lm90_detect_maxim()
2156 if (common_address && !(config1 & 0x07) && convrate <= 0x07) in lm90_detect_maxim()
2162 * The lowest 3 bits of the config1 register are unused and in lm90_detect_maxim()
2169 if (common_address && !(config1 & 0x07) && convrate <= 0x07) in lm90_detect_maxim()
2182 * For MAX6657, MAX6658 and MAX6659, the config1 register lacks in lm90_detect_maxim()
2191 if (address >= 0x48 && address <= 0x4f && config1 == convrate && in lm90_detect_maxim()
2192 !(config1 & 0x0f)) { in lm90_detect_maxim()
2224 (config1 & 0x1f) == 0x0d && convrate <= 0x09) { in lm90_detect_maxim()
2234 * revision of the chip. The lowest 6 bits of the config1 in lm90_detect_maxim()
2246 if (!(config1 & 0x3f) && convrate <= 0x07) { in lm90_detect_maxim()
2282 int config1, int convrate) in lm90_detect_nuvoton() argument
2291 if (address == 0x4c && !(config1 & 0x2a) && !(config2 & 0xf8)) { in lm90_detect_nuvoton()
2304 int chip_id, int config1, int convrate) in lm90_detect_nxp() argument
2316 !(config1 & 0x2a) && !(config2 & 0xfe) && convrate <= 0x09) in lm90_detect_nxp()
2320 if (common_address && !(config1 & 0x3f) && convrate <= 0x07) in lm90_detect_nxp()
2330 int config1, int convrate) in lm90_detect_gmt() argument
2355 !(config1 & 0x3f) && convrate <= 0x08) { in lm90_detect_gmt()
2372 int chip_id, int config1, int convrate) in lm90_detect_ti49() argument
2374 if (common_address && chip_id == 0x00 && !(config1 & 0x3f) && !(convrate & 0xf8)) { in lm90_detect_ti49()
2384 int config1, int convrate) in lm90_detect_ti() argument
2389 if (chip_id == 0x00 && !(config1 & 0x1b) && convrate <= 0x09) { in lm90_detect_ti()
2415 int man_id, chip_id, config1, convrate, lhigh; in lm90_detect() local
2435 config1 = i2c_smbus_read_byte_data(client, LM90_REG_CONFIG1); in lm90_detect()
2437 if (man_id < 0 || chip_id < 0 || config1 < 0 || convrate < 0 || lhigh < 0) in lm90_detect()
2441 if (lhigh == man_id && lhigh == chip_id && lhigh == config1 && lhigh == convrate) in lm90_detect()
2460 if (common_address && !convrate && !(config1 & 0x7f)) in lm90_detect()
2464 name = lm90_detect_national(client, chip_id, config1, convrate); in lm90_detect()
2467 name = lm90_detect_on(client, chip_id, config1, convrate); in lm90_detect()
2470 if (common_address && !(config1 & 0x3f) && !(convrate & 0xf8)) in lm90_detect()
2474 name = lm90_detect_analog(client, common_address, chip_id, config1, in lm90_detect()
2478 name = lm90_detect_gmt(client, chip_id, config1, convrate); in lm90_detect()
2481 name = lm90_detect_ti49(client, common_address, chip_id, config1, convrate); in lm90_detect()
2485 config1, convrate); in lm90_detect()
2488 if (common_address && !(config1 & 0x3f) && !(convrate & 0xf8)) in lm90_detect()
2492 name = lm90_detect_ti(client, chip_id, config1, convrate); in lm90_detect()
2495 name = lm90_detect_nuvoton(client, chip_id, config1, convrate); in lm90_detect()
2498 name = lm90_detect_nxp(client, common_address, chip_id, config1, convrate); in lm90_detect()
2502 name = lm90_detect_max1617(client, config1); in lm90_detect()