| #ifndef _CHIP_VOLTAGE_INFO_H_ |
| #define _CHIP_VOLTAGE_INFO_H_ |
| |
| #include <io.h> |
| #include "util.h" |
| #include "debug.h" |
| |
| #include "board_config.h" |
| #include "voltage_info.h" |
| #include "platform_voltage_info.h" |
| |
| //#define CORE_VOLT_VALUE |
| |
| #ifndef DEFAULT_CPU_VOLTAGE |
| #define DEFAULT_CPU_VOLTAGE (900) |
| #endif |
| |
| #ifndef DEFAULT_CORE_VOLTAGE |
| #define DEFAULT_CORE_VOLTAGE (1200) |
| #endif |
| |
| #define VOUT_CPU_ID (0) |
| |
| //#define VOUT_CORE_ID (3) |
| |
| #ifndef get_vcpu_leakage_table |
| #define get_vcpu_leakage_table as370_get_vcpu_leakage_table |
| struct freq_leakage_table * as370_get_vcpu_leakage_table(); |
| #endif |
| |
| #ifndef get_vcore_leakage_table |
| #define get_vcore_leakage_table as370_get_vcore_leakage_table |
| struct freq_leakage_table * as370_get_vcore_leakage_table(); |
| #endif |
| |
| #ifndef get_default_cpu_voltage |
| #define get_default_cpu_voltage as370_get_default_cpu_voltage |
| unsigned int as370_get_default_cpu_voltage(); |
| #endif |
| |
| #ifndef get_default_core_voltage |
| #define get_default_core_voltage as370_get_default_core_voltage |
| unsigned int as370_get_default_core_voltage(); |
| #endif |
| |
| unsigned int get_leakage_info(); |
| unsigned int get_temp_id(); |
| unsigned int get_unique_id(int index); |
| unsigned int get_feature0(int index); |
| unsigned int get_feature2_swapped(int index); |
| unsigned int get_feature4_swapped(int index); |
| |
| unsigned int get_pvcomp_rev(); |
| int is_SPI_controller(); |
| void pv_pinmux_setting(); |
| |
| #endif |
| |