Daniel Hsu | f6470b5 | 2025-02-26 15:03:47 +0800 | [diff] [blame] | 1 | #include "cpld/cpld_interface.hpp" |
| 2 | |
| 3 | namespace phosphor::software::cpld |
| 4 | { |
| 5 | |
| 6 | class LatticeCPLD : public CPLDInterface |
| 7 | { |
| 8 | public: |
| 9 | LatticeCPLD(sdbusplus::async::context& ctx, const std::string& chipname, |
| 10 | uint16_t bus, uint8_t address) : |
| 11 | CPLDInterface(ctx, chipname, bus, address) |
| 12 | {} |
| 13 | |
| 14 | sdbusplus::async::task<bool> updateFirmware( |
| 15 | bool force, const uint8_t* image, size_t imageSize, |
| 16 | std::function<bool(int)> progress) final; |
| 17 | |
| 18 | sdbusplus::async::task<bool> getVersion(std::string& version) final; |
| 19 | }; |
| 20 | |
| 21 | } // namespace phosphor::software::cpld |