20 #ifndef __POWER_API_H__
21 #define __POWER_API_H__
27 #define PWRROMD_PRESENT
30 void (*
set_pll)(
unsigned int cmd[],
unsigned int resp[]);
31 void (*
set_power)(
unsigned int cmd[],
unsigned int resp[]);
35 #ifdef USBROMD_PRESENT
42 #ifdef PWRROMD_PRESENT
45 const unsigned p_pwrd;
54 #define CPU_FREQ_EQU 0 //main PLL freq must be equal to the specified
55 #define CPU_FREQ_LTE 1 //main PLL freq must be less than or equal the specified
56 #define CPU_FREQ_GTE 2 //main PLL freq must be greater than or equal the specified
57 #define CPU_FREQ_CLOSE 3 //main PLL freq must be as close as possible the specified
59 #define PLL_CMD_CUCCESS 0 //PLL setup successfully found
60 #define PLL_INVALID_FREQ 1 //specified freq out of range (either input or output)
61 #define PLL_INVALID_MODE 2 //invalid mode (see above for valid) specified
62 #define PLL_FREQ_NOT_FOUND 3 //specified freq not found under specified conditions
63 #define PLL_NOT_LOCKED 4 //PLL not locked => no changes to the PLL setup
66 #define PARAM_DEFAULT 0 //default power settings (voltage regulator, flash interface)
67 #define PARAM_CPU_PERFORMANCE 1 //setup for maximum CPU performance (higher current, more computation)
68 #define PARAM_EFFICIENCY 2 //balanced setting (power vs CPU performance)
69 #define PARAM_LOW_CURRENT 3 //lowest active current, lowest CPU performance
71 #define PARAM_CMD_CUCCESS 0 //power setting successfully found
72 #define PARAM_INVALID_FREQ 1 //specified freq out of range (=0 or > 50 MHz)
73 #define PARAM_INVALID_MODE 2 //specified mode not valid (see above for valid)
75 #define MAX_CLOCK_KHZ_PARAM 72000
Definition: power_api.h:34
const unsigned p_dev2
Definition: power_api.h:48
const unsigned p_dev1
Definition: power_api.h:47
const PWRD * pPWRD
Definition: power_api.h:43
const unsigned p_dev4
Definition: power_api.h:50
void(* set_power)(unsigned int cmd[], unsigned int resp[])
Definition: power_api.h:31
Definition: power_api.h:29
const unsigned p_cand
Definition: power_api.h:41
void(* set_pll)(unsigned int cmd[], unsigned int resp[])
Definition: power_api.h:30
const unsigned p_clib
Definition: power_api.h:40
const unsigned p_dev3
Definition: power_api.h:49
const unsigned p_usbd
Definition: power_api.h:38