unplugged-kernel/drivers/misc/mediatek/thermal/mt6779/inc/tscpu_lvts_config.h

112 lines
4.8 KiB
C

/* SPDX-License-Identifier: GPL-2.0 */
/*
* Copyright (c) 2019 MediaTek Inc.
*/
#ifndef __TSCPU_LVTS_SETTINGS_H__
#define __TSCPU_LVTS_SETTINGS_H__
/*=============================================================
* Chip related
*=============================================================
*/
/* chip dependent */
/* TODO: change to new reg addr. */
#define LVTS_ADDRESS_INDEX_1 112 /* 0x01B0 */
#define LVTS_ADDRESS_INDEX_2 118 /* 0x01C8 */
#define LVTS_ADDRESS_INDEX_3 168 /* 0x095C */
#define LVTS_ADDRESS_INDEX_4 119 /* 0x01CC */
#define LVTS_ADDRESS_INDEX_5 169 /* 0x0960 */
#define LVTS_ADDRESS_INDEX_6 160 /* 0x093C */
#define LVTS_ADDRESS_INDEX_7 170 /* 0x0964 */
#define LVTS_ADDRESS_INDEX_8 161 /* 0x0940 */
#define LVTS_ADDRESS_INDEX_9 171 /* 0x0968 */
#define LVTS_ADDRESS_INDEX_10 162 /* 0x0944 */
#define LVTS_ADDRESS_INDEX_11 172 /* 0x096C */
#define LVTS_ADDRESS_INDEX_12 163 /* 0x0948 */
#define LVTS_ADDRESS_INDEX_13 164 /* 0x094C */
#define LVTS_ADDRESS_INDEX_14 165 /* 0x0950 */
#define LVTS_ADDRESS_INDEX_15 166 /* 0x0954 */
#define LVTS_ADDRESS_INDEX_16 167 /* 0x0958 */
/**************************************************************************** */
/* LVTS related registers. */
/**************************************************************************** */
#define LVTSMONCTL0_0 (THERM_CTRL_BASE_2 + 0x000)
#define LVTSMONCTL1_0 (THERM_CTRL_BASE_2 + 0x004)
#define LVTSMONCTL2_0 (THERM_CTRL_BASE_2 + 0x008)
#define LVTSMONINT_0 (THERM_CTRL_BASE_2 + 0x00C)
#define LVTSMONINTSTS_0 (THERM_CTRL_BASE_2 + 0x010)
#define LVTSMONIDET0_0 (THERM_CTRL_BASE_2 + 0x014)
#define LVTSMONIDET1_0 (THERM_CTRL_BASE_2 + 0x018)
#define LVTSMONIDET2_0 (THERM_CTRL_BASE_2 + 0x01C)
#define LVTSMONIDET3_0 (THERM_CTRL_BASE_2 + 0x020)
#define LVTSH2NTHRE_0 (THERM_CTRL_BASE_2 + 0x024)
#define LVTSHTHRE_0 (THERM_CTRL_BASE_2 + 0x028)
#define LVTSCTHRE_0 (THERM_CTRL_BASE_2 + 0x02C)
#define LVTSOFFSETH_0 (THERM_CTRL_BASE_2 + 0x030)
#define LVTSOFFSETL_0 (THERM_CTRL_BASE_2 + 0x034)
#define LVTSMSRCTL0_0 (THERM_CTRL_BASE_2 + 0x038)
#define LVTSMSRCTL1_0 (THERM_CTRL_BASE_2 + 0x03C)
#define LVTSTSSEL_0 (THERM_CTRL_BASE_2 + 0x040)
#define LVTSDEVICETO_0 (THERM_CTRL_BASE_2 + 0x044)
#define LVTSCALSCALE_0 (THERM_CTRL_BASE_2 + 0x048)
#define LVTS_ID_0 (THERM_CTRL_BASE_2 + 0x04C)
#define LVTS_CONFIG_0 (THERM_CTRL_BASE_2 + 0x050)
#define LVTSEDATA00_0 (THERM_CTRL_BASE_2 + 0x054)
#define LVTSEDATA01_0 (THERM_CTRL_BASE_2 + 0x058)
#define LVTSEDATA02_0 (THERM_CTRL_BASE_2 + 0x05C)
#define LVTSEDATA03_0 (THERM_CTRL_BASE_2 + 0x060)
#define LVTSMSR0_0 (THERM_CTRL_BASE_2 + 0x090)
#define LVTSMSR1_0 (THERM_CTRL_BASE_2 + 0x094)
#define LVTSMSR2_0 (THERM_CTRL_BASE_2 + 0x098)
#define LVTSMSR3_0 (THERM_CTRL_BASE_2 + 0x09C)
#define LVTSIMMD0_0 (THERM_CTRL_BASE_2 + 0x0A0)
#define LVTSIMMD1_0 (THERM_CTRL_BASE_2 + 0x0A4)
#define LVTSIMMD2_0 (THERM_CTRL_BASE_2 + 0x0A8)
#define LVTSIMMD3_0 (THERM_CTRL_BASE_2 + 0x0AC)
#define LVTSRDATA0_0 (THERM_CTRL_BASE_2 + 0x0B0)
#define LVTSRDATA1_0 (THERM_CTRL_BASE_2 + 0x0B4)
#define LVTSRDATA2_0 (THERM_CTRL_BASE_2 + 0x0B8)
#define LVTSRDATA3_0 (THERM_CTRL_BASE_2 + 0x0BC)
#define LVTSPROTCTL_0 (THERM_CTRL_BASE_2 + 0x0C0)
#define LVTSPROTTA_0 (THERM_CTRL_BASE_2 + 0x0C4)
#define LVTSPROTTB_0 (THERM_CTRL_BASE_2 + 0x0C8)
#define LVTSPROTTC_0 (THERM_CTRL_BASE_2 + 0x0CC)
#define LVTSCLKEN_0 (THERM_CTRL_BASE_2 + 0x0E4)
#define LVTSDBGSEL_0 (THERM_CTRL_BASE_2 + 0x0E8)
#define LVTSDBGSIG_0 (THERM_CTRL_BASE_2 + 0x0EC)
#define LVTSSPARE0_0 (THERM_CTRL_BASE_2 + 0x0F0)
#define LVTSSPARE1_0 (THERM_CTRL_BASE_2 + 0x0F4)
#define LVTSSPARE2_0 (THERM_CTRL_BASE_2 + 0x0F8)
#define LVTSSPARE3_0 (THERM_CTRL_BASE_2 + 0x0FC)
#define THERMINTST (THERM_CTRL_BASE_2 + 0xF04)
#if 0
#define LVTSEDATA04_0 (THERM_CTRL_BASE_2 + 0x064)
#define LVTSEDATA10_0 (THERM_CTRL_BASE_2 + 0x068)
#define LVTSEDATA11_0 (THERM_CTRL_BASE_2 + 0x06C)
#define LVTSEDATA12_0 (THERM_CTRL_BASE_2 + 0x070)
#define LVTSEDATA13_0 (THERM_CTRL_BASE_2 + 0x074)
#define LVTSEDATA14_0 (THERM_CTRL_BASE_2 + 0x078)
#define LVTSEDATA20_0 (THERM_CTRL_BASE_2 + 0x07C)
#define LVTSEDATA21_0 (THERM_CTRL_BASE_2 + 0x080)
#define LVTSEDATA22_0 (THERM_CTRL_BASE_2 + 0x084)
#define LVTSEDATA23_0 (THERM_CTRL_BASE_2 + 0x088)
#define LVTSEDATA24_0 (THERM_CTRL_BASE_2 + 0x08C)
#define LVTSEDATA30_0 (THERM_CTRL_BASE_2 + 0x0D0)
#define LVTSEDATA31_0 (THERM_CTRL_BASE_2 + 0x0D4)
#define LVTSEDATA32_0 (THERM_CTRL_BASE_2 + 0x0D8)
#define LVTSEDATA33_0 (THERM_CTRL_BASE_2 + 0x0DC)
#define LVTSEDATA34_0 (THERM_CTRL_BASE_2 + 0x0E0)
#define LVTS0VRCTL (THERM_CTRL_BASE_2 + 0xF40)
#define LVTS0VREF0 (THERM_CTRL_BASE_2 + 0xF44)
#define LVTS0VREF1 (THERM_CTRL_BASE_2 + 0xF48)
#define LVTS0VREF2 (THERM_CTRL_BASE_2 + 0xF4C)
#define LVTS0VRDBG (THERM_CTRL_BASE_2 + 0xF50)
#define LVTSAHBTO_0 (THERM_CTRL_BASE_2 + 0x044)
#define LVTSAHBPOLL_0 (THERM_CTRL_BASE_2 + 0x040)
#endif
#endif /* __TSCPU_LVTS_SETTINGS_H__ */