27 lines
480 B
C++
27 lines
480 B
C++
#ifndef _OMAP35X_PRCM_HH_
|
|
#define _OMAP35x_PRCM_HH_
|
|
|
|
#include <memory>
|
|
|
|
class OMAP35x_prcm_impl;
|
|
|
|
class OMAP35x_prcm {
|
|
public:
|
|
OMAP35x_prcm(uintptr_t cm_base, uintptr_t pm_base);
|
|
~OMAP35x_prcm();
|
|
|
|
// Enable clock&power for all used peripherals
|
|
void enable_peripherals();
|
|
|
|
void clear_wake_per(int n);
|
|
void clear_wake_core(int n);
|
|
|
|
void set_cpu_opp(int opp);
|
|
void set_core_opp(int opp, int config);
|
|
|
|
private:
|
|
std::unique_ptr<OMAP35x_prcm_impl> impl_;
|
|
};
|
|
|
|
#endif
|