Lines Matching +full:gpio +full:- +full:reset
4 #include <phosphor-logging/log.hpp>
17 constexpr auto cfamResetPath = "/sys/class/fsi-master/fsi0/device/cfam_reset";
22 * @brief Reset the CFAM using the appropriate GPIO
27 // First look if system supports kernel sysfs based cfam reset in cfamReset()
28 // If it does then write a 1 and let the kernel handle the reset in cfamReset()
33 log<level::DEBUG>("system does not support kernel cfam reset, default " in cfamReset()
38 // Write a 1 to have kernel toggle the reset in cfamReset()
41 log<level::DEBUG>("cfam reset via sysfs complete"); in cfamReset()
45 // No kernel support so toggle gpio from userspace in cfamReset()
46 const std::string cfamReset = {"cfam-reset"}; in cfamReset()
50 log<level::ERR>("failed to find cfam-reset line"); in cfamReset()
54 // Configure this app to own the gpio while doing the reset in cfamReset()
60 // Put chips into reset in cfamReset()
63 // Sleep one second to ensure reset processed in cfamReset()
67 // Take chips out of reset in cfamReset()