2012-10-05 18:17:05 +00:00
|
|
|
/* Copyright (c) 2012, The Linux Foundation. All rights reserved.
|
|
|
|
*
|
|
|
|
* Redistribution and use in source and binary forms, with or without
|
|
|
|
* modification, are permitted provided that the following conditions are
|
|
|
|
* met:
|
|
|
|
* * Redistributions of source code must retain the above copyright
|
|
|
|
* notice, this list of conditions and the following disclaimer.
|
|
|
|
* * Redistributions in binary form must reproduce the above
|
|
|
|
* copyright notice, this list of conditions and the following
|
|
|
|
* disclaimer in the documentation and/or other materials provided
|
|
|
|
* with the distribution.
|
|
|
|
* * Neither the name of The Linux Foundation nor the names of its
|
|
|
|
* contributors may be used to endorse or promote products derived
|
|
|
|
* from this software without specific prior written permission.
|
|
|
|
*
|
|
|
|
* THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
|
|
|
|
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
|
|
|
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
|
|
|
|
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
|
|
|
|
* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
|
|
|
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
|
|
|
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
|
|
|
|
* BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
|
|
|
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
|
|
|
|
* OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
|
|
|
|
* IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#define FAILED -1
|
|
|
|
#define SUCCESS 0
|
|
|
|
#define INDEFINITE_DURATION 0
|
|
|
|
|
|
|
|
enum PWR_CLSP_TYPE {
|
|
|
|
ALL_CPUS_PWR_CLPS_DIS = 0x100,
|
|
|
|
};
|
|
|
|
|
|
|
|
enum CPU0_MIN_FREQ_LVL {
|
|
|
|
CPU0_MIN_FREQ_NONTURBO_MAX = 0x20A,
|
|
|
|
CPU0_MIN_FREQ_TURBO = 0x20F,
|
|
|
|
};
|
|
|
|
|
|
|
|
enum CPU1_MIN_FREQ_LVL {
|
|
|
|
CPU1_MIN_FREQ_NONTURBO_MAX = 0x30A,
|
|
|
|
CPU1_MIN_FREQ_TURBO = 0x30F,
|
|
|
|
};
|
|
|
|
|
|
|
|
enum CPU2_MIN_FREQ_LVL {
|
|
|
|
CPU2_MIN_FREQ_NONTURBO_MAX = 0x40A,
|
|
|
|
CPU2_MIN_FREQ_TURBO = 0x40F,
|
|
|
|
};
|
|
|
|
|
|
|
|
enum CPU3_MIN_FREQ_LVL {
|
|
|
|
CPU3_MIN_FREQ_NONTURBO_MAX = 0x50A,
|
|
|
|
CPU3_MIN_FREQ_TURBO = 0x50F,
|
|
|
|
};
|
|
|
|
|
|
|
|
enum CPUS_ONLINE_LVL {
|
|
|
|
CPUS_ONLINE_2 = 0x702,
|
|
|
|
CPUS_ONLINE_3 = 0x703,
|
|
|
|
CPUS_ONLINE_4 = 0x704,
|
|
|
|
CPUS_ONLINE_MAX = 0x704
|
|
|
|
};
|
|
|
|
|
|
|
|
enum ALL_CPUS_FREQBOOST_LVL {
|
|
|
|
ALL_CPUS_FREQ_NONTURBO_MAX = 0x90A,
|
|
|
|
ALL_CPUS_FREQ_TURBO = 0x90F,
|
|
|
|
};
|
|
|
|
|
|
|
|
enum SAMPLING_RATE_LVL {
|
|
|
|
MS_500 = 0xBCD,
|
|
|
|
MS_50 = 0xBFA,
|
|
|
|
MS_20 = 0xBFD,
|
|
|
|
};
|
|
|
|
|
2012-10-02 16:59:01 +00:00
|
|
|
enum ONDEMAND_IO_BUSY_LVL {
|
|
|
|
IO_BUSY_OFF = 0xC00,
|
|
|
|
IO_BUSY_ON = 0xC01,
|
|
|
|
};
|
|
|
|
|
|
|
|
enum ONDEMAND_SAMPLING_DOWN_FACTOR_LVL {
|
|
|
|
SAMPLING_DOWN_FACTOR_1 = 0xD01,
|
|
|
|
SAMPLING_DOWN_FACTOR_4 = 0xD04,
|
|
|
|
};
|
|
|
|
|
|
|
|
enum INTERACTIVE_TIMER_RATE_LVL {
|
|
|
|
TR_MS_500 = 0xECD,
|
|
|
|
TR_MS_30 = 0xEFC,
|
|
|
|
TR_MS_20 = 0xEFD,
|
|
|
|
};
|
|
|
|
|
|
|
|
enum INTERACTIVE_HISPEED_FREQ_LVL {
|
|
|
|
HS_FREQ_1026 = 0xF0A,
|
|
|
|
};
|
|
|
|
|
|
|
|
enum INTERACTIVE_HISPEED_LOAD_LVL {
|
|
|
|
HISPEED_LOAD_90 = 0x105A,
|
|
|
|
};
|
|
|
|
|
2012-10-05 18:17:05 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|