FreeRTOS port on GAP8/RISC-V
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
pmu_internal.h File Reference

Data Structures

struct  pmu_data_s
 

Macros

#define PI_PMU_MAESTRO_EVENT_ICU_OK
 
#define PI_PMU_MAESTRO_EVENT_ICU_DELAYED
 
#define PI_PMU_MAESTRO_EVENT_MODE_CHANGED
 
#define PI_PMU_MAESTRO_EVENT_PICL_OK
 
#define PI_PMU_MAESTRO_EVENT_SCU_OK
 
#define PI_PMU_DCDC_DEFAULT_NV
 
#define PI_PMU_DCDC_DEFAULT_MV
 
#define PI_PMU_DCDC_DEFAULT_LV
 
#define PI_PMU_DCDC_DEFAULT_RET
 
#define PI_PMU_DCDC_RANGE
 
#define PI_PMU_DCDC_RANGE_MASK
 
#define PI_PMU_DCDC_LOW_DCDC_VALUE
 
#define PI_PMU_DCDC_LOW_MV_VALUE
 
#define PI_PMU_DCDC_STEP_MV
 

Enumerations

enum  pi_pmu_state_e
 

Functions

void __pi_pmu_init (void)
 
int __pi_pmu_voltage_set (pi_pmu_domain_e domain, uint32_t voltage)
 
int __pi_pmu_state_get (pi_pmu_domain_e domain)
 
int __pi_pmu_boot_state_get (pi_pmu_domain_e domain)
 
int __pi_pmu_sleep_mode_set (pi_pmu_domain_e domain, struct pi_pmu_sleep_conf_s *conf)
 
int __pi_pmu_sleep_mode_enable (pi_pmu_domain_e domain)
 

Macro Definition Documentation

#define PI_PMU_DCDC_DEFAULT_LV
#define PI_PMU_DCDC_DEFAULT_MV
#define PI_PMU_DCDC_DEFAULT_NV

Default RAR = 0x0509090d Regulator setting : V[4:0] = 0x05 + ((Vr - 800) / 50) Vr = ((V[4:0] - 0x05) * 50) + 800

#define PI_PMU_DCDC_DEFAULT_RET
#define PI_PMU_DCDC_LOW_DCDC_VALUE
#define PI_PMU_DCDC_LOW_MV_VALUE
#define PI_PMU_DCDC_RANGE
#define PI_PMU_DCDC_RANGE_MASK
#define PI_PMU_DCDC_STEP_MV
#define PI_PMU_MAESTRO_EVENT_ICU_DELAYED
#define PI_PMU_MAESTRO_EVENT_ICU_OK
#define PI_PMU_MAESTRO_EVENT_MODE_CHANGED
#define PI_PMU_MAESTRO_EVENT_PICL_OK
#define PI_PMU_MAESTRO_EVENT_SCU_OK

Enumeration Type Documentation

Enumerator
PI_PMU_STATE_HV 

High voltage : 1.1V - 1.3V.

PI_PMU_STATE_LV 

Low voltage : 0.9V - 1.1V.

PI_PMU_STATE_RET 

Sleep mode 0.8V.

Function Documentation

int __pi_pmu_boot_state_get ( pi_pmu_domain_e  domain)
int __pi_pmu_state_get ( pi_pmu_domain_e  domain)