Lines Matching +full:npcm750 +full:- +full:i2c
8 // http://www.apache.org/licenses/LICENSE-2.0
65 i2c, enumerator
82 {"aspeed,ast2400-pwm-tacho", FanTypes::aspeed},
83 {"aspeed,ast2500-pwm-tacho", FanTypes::aspeed},
84 {"aspeed,ast2600-pwm-tach", FanTypes::aspeed},
85 {"nuvoton,npcm750-pwm-fan", FanTypes::nuvoton},
86 {"nuvoton,npcm845-pwm-fan", FanTypes::nuvoton},
87 {"hpe,gxp-fan-ctrl", FanTypes::hpe}
96 return FanTypes::i2c; in getFanType()
106 return FanTypes::i2c; in getFanType()
119 return compatibleIterator->second; in getFanType()
123 return FanTypes::i2c; in getFanType()
143 /* Search PWM since pwm-fan had separated in findPwmfanPath()
146 std::string pwnfanDevName("pwm-fan"); in findPwmfanPath()
191 /* try search form pwm-fanX directory */ in findPwmPath()
229 conn->async_method_call( in createRedundancySensor()
256 sensor->name); in createRedundancySensor()
260 std::get<uint64_t>(findCount->second), sensorList, in createRedundancySensor()
316 size_t index = std::stoul(indexStr) - 1; in createSensors()
336 auto findIndex = baseConfiguration->second.find("Index"); in createSensors()
337 if (findIndex == baseConfiguration->second.end()) in createSensors()
339 std::cerr << baseConfiguration->first << " missing index\n"; in createSensors()
343 VariantToUnsignedIntVisitor(), findIndex->second); in createSensors()
356 if (fanType == FanTypes::i2c) in createSensors()
368 auto findBus = baseConfiguration->second.find("Bus"); in createSensors()
370 baseConfiguration->second.find("Address"); in createSensors()
371 if (findBus == baseConfiguration->second.end() || in createSensors()
372 findAddress == baseConfiguration->second.end()) in createSensors()
374 std::cerr << baseConfiguration->first in createSensors()
379 VariantToUnsignedIntVisitor(), findBus->second); in createSensors()
381 VariantToUnsignedIntVisitor(), findAddress->second); in createSensors()
397 auto findSensorName = baseConfiguration->second.find("Name"); in createSensors()
399 if (findSensorName == baseConfiguration->second.end()) in createSensors()
406 std::get<std::string>(findSensorName->second); in createSensors()
413 for (auto it = sensorsChanged->begin(); in createSensors()
414 it != sensorsChanged->end(); it++) in createSensors()
416 if (it->ends_with(findSensor->second->name)) in createSensors()
418 sensorsChanged->erase(it); in createSensors()
419 findSensor->second = nullptr; in createSensors()
437 sensorData->find(cfgIntf + std::string(".Presence")); in createSensors()
442 if (presenceConfig != sensorData->end()) in createSensors()
444 auto findPolarity = presenceConfig->second.find("Polarity"); in createSensors()
445 auto findPinName = presenceConfig->second.find("PinName"); in createSensors()
447 if (findPinName == presenceConfig->second.end() || in createSensors()
448 findPolarity == presenceConfig->second.end()) in createSensors()
455 std::get<std::string>(findPolarity->second) == "Low"; in createSensors()
457 std::get_if<std::string>(&findPinName->second); in createSensors()
464 auto p = findPresenceGpio->second.lock(); in createSensors()
473 presenceConfig->second.find("MonitorType"); in createSensors()
475 if (findMonitorType != presenceConfig->second.end()) in createSensors()
478 findMonitorType->second); in createSensors()
531 PowerState powerState = getPowerState(baseConfiguration->second); in createSensors()
539 sensorData->find(cfgIntf + std::string(".Connector")); in createSensors()
547 if (connector != sensorData->end()) in createSensors()
549 auto findPwm = connector->second.find("Pwm"); in createSensors()
550 if (findPwm != connector->second.end()) in createSensors()
553 findPwm->second); in createSensors()
568 auto findOverride = connector->second.find("PwmName"); in createSensors()
569 if (findOverride != connector->second.end()) in createSensors()
572 findOverride->second); in createSensors()
580 auto findMutable = connector->second.find("Mutable"); in createSensors()
581 if (findMutable != connector->second.end()) in createSensors()
584 std::get_if<bool>(&(findMutable->second)); in createSensors()
597 auto findLED = connector->second.find("LED"); in createSensors()
598 if (findLED != connector->second.end()) in createSensors()
601 std::get_if<std::string>(&(findLED->second)); in createSensors()
625 tachSensor->setupRead(); in createSensors()
638 getter->getConfiguration( in createSensors()
652 systemBus->request_name("xyz.openbmc_project.FanSensor"); in main()
675 sensorsChanged->insert(message.get_path()); in main()