Files
MuditaOS/module-bsp/board/linux/lpm/LinuxLPM.h
Maciej Gibowicz 7394811560 [EGD-4809] Add LDO switching
To reduce the power consumption, we switch LDO
to the low power mode.
2021-09-09 09:34:59 +02:00

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