diff options
author | Edward O'Callaghan <funfunctor@folklore1984.net> | 2016-09-12 20:20:10 +1000 |
---|---|---|
committer | Edward O'Callaghan <funfunctor@folklore1984.net> | 2016-09-12 21:18:57 +1000 |
commit | 1e7bdc7b7c7ca3b419ff8a39c2c923308d93f434 (patch) | |
tree | b23a0d99820bc062daccd543985becbdeb1747c4 | |
parent | 70131eedfa838b55def7fc4fe18405df448fa57a (diff) |
smu.h: factor out smu_msg into its own header
Signed-off-by: Edward O'Callaghan <funfunctor@folklore1984.net>
-rw-r--r-- | firmware/smc_msg.h | 34 | ||||
-rw-r--r-- | firmware/smu.h | 32 |
2 files changed, 36 insertions, 30 deletions
diff --git a/firmware/smc_msg.h b/firmware/smc_msg.h new file mode 100644 index 0000000..413c9db --- /dev/null +++ b/firmware/smc_msg.h @@ -0,0 +1,34 @@ +#ifndef _SMC_MSG_H +#define _SMC_MSG_H + +#define SMC_MSG_HALT 1 +#define SMC_MSG_PHY_LN_OFF 2 +#define SMC_MSG_PHY_LN_ON 3 +#define SMC_MSG_DDI_PHY_OFF 4 +#define SMC_MSG_DDI_PHY_ON 5 +#define SMC_MSG_CASCADE_PLL_OFF 6 +#define SMC_MSG_CASCADE_PLL_ON 7 +#define SMC_MSG_PWR_OFF_x16 8 +#define SMC_MSG_CONFIG_LCLK_DPM 9 +#define SMC_MSG_FLUSH_DATA_CACHE 10 +#define SMC_MSG_FLUSH_INSTRUCTION_CACHE 11 +#define SMC_MSG_CONFIG_VPC_ACCUMULATOR 12 +#define SMC_MSG_CONFIG_BAPM 13 +#define SMC_MSG_CONFIG_TDC_LIMIT 14 +#define SMC_MSG_CONFIG_LPMx 15 +#define SMC_MSG_CONFIG_HTC_LIMIT 16 +#define SMC_MSG_CONFIG_THERMAL_CNTL 17 +#define SMC_MSG_CONFIG_VOLTAGE_CNTL 18 +#define SMC_MSG_CONFIG_TDP_CNTL 19 +#define SMC_MSG_EN_PM_CNTL 20 +#define SMC_MSG_DIS_PM_CNTL 21 +#define SMC_MSG_CONFIG_NBDPM 22 +#define SMC_MSG_CONFIG_LOADLINE 23 +#define SMC_MSG_ADJUST_LOADLINE 24 +#define SMC_MSG_RECONFIGURE 25 +#define SMC_MSG_PCIE_PLLSWITCH 27 +#define SMC_MSG_ENABLE_BAPM 32 +#define SMC_MSG_DISABLE_BAPM 33 +#define SMC_MSG_READ_ROM_HACK 99 + +#endif /* _SMC_MSG_H */ diff --git a/firmware/smu.h b/firmware/smu.h index eb6ef8a..30e8455 100644 --- a/firmware/smu.h +++ b/firmware/smu.h @@ -19,37 +19,9 @@ #include "types.h" #include "helpers.h" -#define SMU_POST(x) write32(0xe0003024, (x & 0xff)) +#include "smc_msg.h" -#define SMC_MSG_HALT 1 -#define SMC_MSG_PHY_LN_OFF 2 -#define SMC_MSG_PHY_LN_ON 3 -#define SMC_MSG_DDI_PHY_OFF 4 -#define SMC_MSG_DDI_PHY_ON 5 -#define SMC_MSG_CASCADE_PLL_OFF 6 -#define SMC_MSG_CASCADE_PLL_ON 7 -#define SMC_MSG_PWR_OFF_x16 8 -#define SMC_MSG_CONFIG_LCLK_DPM 9 -#define SMC_MSG_FLUSH_DATA_CACHE 10 -#define SMC_MSG_FLUSH_INSTRUCTION_CACHE 11 -#define SMC_MSG_CONFIG_VPC_ACCUMULATOR 12 -#define SMC_MSG_CONFIG_BAPM 13 -#define SMC_MSG_CONFIG_TDC_LIMIT 14 -#define SMC_MSG_CONFIG_LPMx 15 -#define SMC_MSG_CONFIG_HTC_LIMIT 16 -#define SMC_MSG_CONFIG_THERMAL_CNTL 17 -#define SMC_MSG_CONFIG_VOLTAGE_CNTL 18 -#define SMC_MSG_CONFIG_TDP_CNTL 19 -#define SMC_MSG_EN_PM_CNTL 20 -#define SMC_MSG_DIS_PM_CNTL 21 -#define SMC_MSG_CONFIG_NBDPM 22 -#define SMC_MSG_CONFIG_LOADLINE 23 -#define SMC_MSG_ADJUST_LOADLINE 24 -#define SMC_MSG_RECONFIGURE 25 -#define SMC_MSG_PCIE_PLLSWITCH 27 -#define SMC_MSG_ENABLE_BAPM 32 -#define SMC_MSG_DISABLE_BAPM 33 -#define SMC_MSG_READ_ROM_HACK 99 +#define SMU_POST(x) write32(0xe0003024, (x & 0xff)) #define MICO32_CPU_CLOCK_MHZ (25000000) #define MICO_SLEEP_MICROSEC (MICO32_CPU_CLOCK_MHZ/11000000) |