summaryrefslogtreecommitdiffstats
path: root/occ_bus.cpp
blob: 27be21b54ae501cf739420498465c8f1d7bd36c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include "occ_device.hpp"
#include "occ_bus.hpp"

namespace open_power
{
namespace occ
{

fs::path Bus::bindPath = fs::path(OCC_BUS_PATH) / "bind";
fs::path Bus::unBindPath = fs::path(OCC_BUS_PATH) / "unbind";

void Bus::reset() const
{
#ifndef I2C_OCC
    Device::write(unBindPath, config);
    Device::write(bindPath, config);
#endif
}

} // namespace occ
} // namespace open_power
OpenPOWER on IntegriCloud