mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-04-19 14:40:57 -04:00
36 lines
1.0 KiB
C++
36 lines
1.0 KiB
C++
// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
|
|
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
|
|
|
|
#ifndef PUREPHONE_LINUXLPM_H
|
|
#define PUREPHONE_LINUXLPM_H
|
|
|
|
#include "bsp/lpm/bsp_lpm.hpp"
|
|
|
|
namespace bsp
|
|
{
|
|
|
|
class LinuxLPM : public LowPowerMode
|
|
{
|
|
public:
|
|
int32_t PowerOff() override final;
|
|
int32_t Reboot(RebootType reason) override final;
|
|
void SetCpuFrequency(CpuFrequencyHz freq) final;
|
|
void SetHighestCoreVoltage() final;
|
|
[[nodiscard]] uint32_t GetCpuFrequency() const noexcept final;
|
|
void SwitchOscillatorSource(OscillatorSource source) final;
|
|
void SetBootSuccess() override;
|
|
|
|
void EnableDcdcPowerSaveMode() final;
|
|
void DisableDcdcPowerSaveMode() final;
|
|
|
|
void DisconnectInternalLoadResistor() final;
|
|
void ConnectInternalLoadResistor() final;
|
|
|
|
void SwitchToRegularModeLDO() final;
|
|
void SwitchToLowPowerModeLDO() final;
|
|
};
|
|
|
|
} // namespace bsp
|
|
|
|
#endif // PUREPHONE_LINUXLPM_H
|