Lines Matching full:config1
1842 static const char *lm90_detect_max1617(struct i2c_client *client, int config1) in lm90_detect_max1617() argument
1850 if (config1 & 0x3f) in lm90_detect_max1617()
1902 (config1 | 0xff00)) in lm90_detect_max1617()
1913 int config1, int convrate) in lm90_detect_national() argument
1922 if ((config1 & 0x2a) || (config2 & 0xf8) || convrate > 0x09) in lm90_detect_national()
1947 static const char *lm90_detect_on(struct i2c_client *client, int chip_id, int config1, in lm90_detect_on() argument
1955 if ((address == 0x4c || address == 0x4d) && !(config1 & 0x1b) && in lm90_detect_on()
1966 int chip_id, int config1, int convrate) in lm90_detect_analog() argument
2018 !(status & 0x03) && !(config1 & 0x3f) && !(convrate & 0xf8)) in lm90_detect_analog()
2024 (config1 & 0x0b) == 0x08 && convrate <= 0x0a) in lm90_detect_analog()
2043 !(status & 0x03) && !(config1 & 0x3f) && !(convrate & 0xf8)) in lm90_detect_analog()
2049 !(status & 0x03) && !(config1 & 0x3f) && !(convrate & 0xf8)) in lm90_detect_analog()
2054 !(status & 0x03) && !(config1 & 0x3f) && !(convrate & 0xf8)) in lm90_detect_analog()
2059 (address == 0x4c || address == 0x4d) && !(config1 & 0x3f) && in lm90_detect_analog()
2065 (address == 0x4c || address == 0x4d) && !(config1 & 0x1b) && in lm90_detect_analog()
2071 (address == 0x4c || address == 0x4d) && !(config1 & 0x1b) && in lm90_detect_analog()
2077 (address == 0x4c || address == 0x4d) && !(config1 & 0x1b) && in lm90_detect_analog()
2083 (address == 0x4c || address == 0x4d) && !(config1 & 0x1b) && in lm90_detect_analog()
2089 common_address && !(config1 & 0x1b) && convrate <= 0x0a) in lm90_detect_analog()
2094 (address == 0x4b || address == 0x4c) && !(config1 & 0x10) && in lm90_detect_analog()
2102 address == 0x4c && !(config1 & 0x10) && !(config2 & 0x7f) && in lm90_detect_analog()
2112 !(config1 & 0x10) && !(config2 & 0x7f) && convrate <= 0x0a) in lm90_detect_analog()
2123 int chip_id, int config1, int convrate) in lm90_detect_maxim() argument
2153 * register, reading it returns 0x01. Bit 4 of the config1 in lm90_detect_maxim()
2162 if (!(config1 & 0x10) && !(status2 & 0x01) && emerg == emerg2 && in lm90_detect_maxim()
2167 * revision of the chip. The lowest bit of the config1 register in lm90_detect_maxim()
2169 * second to last bit of config1 (software reset). Register in lm90_detect_maxim()
2174 else if (!(config1 & 0x03) && convrate <= 0x07 && in lm90_detect_maxim()
2189 else if (!(config1 & 0x03f) && convrate <= 0x07 && in lm90_detect_maxim()
2196 * The lowest 3 bits of the config1 register are unused and in lm90_detect_maxim()
2199 if (common_address && !(config1 & 0x07) && convrate <= 0x07) in lm90_detect_maxim()
2205 * The lowest 3 bits of the config1 register are unused and in lm90_detect_maxim()
2212 if (common_address && !(config1 & 0x07) && convrate <= 0x07) in lm90_detect_maxim()
2225 * For MAX6657, MAX6658 and MAX6659, the config1 register lacks in lm90_detect_maxim()
2234 if (address >= 0x48 && address <= 0x4f && config1 == convrate && in lm90_detect_maxim()
2235 !(config1 & 0x0f)) { in lm90_detect_maxim()
2267 (config1 & 0x1f) == 0x0d && convrate <= 0x09) { in lm90_detect_maxim()
2277 * revision of the chip. The lowest 6 bits of the config1 in lm90_detect_maxim()
2289 if (!(config1 & 0x3f) && convrate <= 0x07) { in lm90_detect_maxim()
2325 int config1, int convrate) in lm90_detect_nuvoton() argument
2334 if (address == 0x4c && !(config1 & 0x2a) && !(config2 & 0xf8)) { in lm90_detect_nuvoton()
2347 int config1, int convrate) in lm90_detect_nuvoton_50() argument
2362 if (address == 0x48 && !(config1 & 0x3e) && !(config2 & 0xfe)) in lm90_detect_nuvoton_50()
2366 if ((address == 0x48 || address == 0x49) && !(config1 & 0x3e) && in lm90_detect_nuvoton_50()
2369 else if (address == 0x4c && !(config1 & 0x38) && !(config2 & 0xf8)) in lm90_detect_nuvoton_50()
2379 int chip_id, int config1, int convrate) in lm90_detect_nxp() argument
2391 !(config1 & 0x2a) && !(config2 & 0xfe) && convrate <= 0x09) in lm90_detect_nxp()
2395 if (common_address && !(config1 & 0x3f) && convrate <= 0x07) in lm90_detect_nxp()
2405 int config1, int convrate) in lm90_detect_gmt() argument
2430 !(config1 & 0x3f) && convrate <= 0x08) { in lm90_detect_gmt()
2447 int chip_id, int config1, int convrate) in lm90_detect_ti49() argument
2449 if (common_address && chip_id == 0x00 && !(config1 & 0x3f) && !(convrate & 0xf8)) { in lm90_detect_ti49()
2459 int config1, int convrate) in lm90_detect_ti() argument
2464 if (chip_id == 0x00 && !(config1 & 0x1b) && convrate <= 0x09) { in lm90_detect_ti()
2490 int man_id, chip_id, config1, convrate, lhigh; in lm90_detect() local
2510 config1 = i2c_smbus_read_byte_data(client, LM90_REG_CONFIG1); in lm90_detect()
2512 if (man_id < 0 || chip_id < 0 || config1 < 0 || convrate < 0 || lhigh < 0) in lm90_detect()
2516 if (lhigh == man_id && lhigh == chip_id && lhigh == config1 && lhigh == convrate) in lm90_detect()
2535 if (common_address && !convrate && !(config1 & 0x7f)) in lm90_detect()
2539 name = lm90_detect_national(client, chip_id, config1, convrate); in lm90_detect()
2542 name = lm90_detect_on(client, chip_id, config1, convrate); in lm90_detect()
2545 if (common_address && !(config1 & 0x3f) && !(convrate & 0xf8)) in lm90_detect()
2549 name = lm90_detect_analog(client, common_address, chip_id, config1, in lm90_detect()
2553 name = lm90_detect_gmt(client, chip_id, config1, convrate); in lm90_detect()
2556 name = lm90_detect_ti49(client, common_address, chip_id, config1, convrate); in lm90_detect()
2560 config1, convrate); in lm90_detect()
2563 name = lm90_detect_nuvoton_50(client, chip_id, config1, convrate); in lm90_detect()
2566 if (common_address && !(config1 & 0x3f) && !(convrate & 0xf8)) in lm90_detect()
2570 name = lm90_detect_ti(client, chip_id, config1, convrate); in lm90_detect()
2573 name = lm90_detect_nuvoton(client, chip_id, config1, convrate); in lm90_detect()
2576 name = lm90_detect_nxp(client, common_address, chip_id, config1, convrate); in lm90_detect()
2580 name = lm90_detect_max1617(client, config1); in lm90_detect()