Lines Matching +full:0 +full:x10001

28 	TSHUT_MODE_CRU = 0,
35 * 0: low active, 1: high active
38 TSHUT_LOW_ACTIVE = 0,
48 ADC_DECREMENT = 0,
73 * @tshut_mode: the hardware-controlled shutdown mode (0:CRU 1:GPIO)
74 * @tshut_polarity: the hardware-controlled active polarity (0:LOW 1:HIGH)
136 * @tshut_mode: the hardware-controlled shutdown mode (0:CRU 1:GPIO)
137 * @tshut_polarity: the hardware-controlled active polarity (0:LOW 1:HIGH)
164 #define TSADCV2_USER_CON 0x00
165 #define TSADCV2_AUTO_CON 0x04
166 #define TSADCV2_INT_EN 0x08
167 #define TSADCV2_INT_PD 0x0c
168 #define TSADCV3_AUTO_SRC_CON 0x0c
169 #define TSADCV3_HT_INT_EN 0x14
170 #define TSADCV3_HSHUT_GPIO_INT_EN 0x18
171 #define TSADCV3_HSHUT_CRU_INT_EN 0x1c
172 #define TSADCV3_INT_PD 0x24
173 #define TSADCV3_HSHUT_PD 0x28
174 #define TSADCV2_DATA(chn) (0x20 + (chn) * 0x04)
175 #define TSADCV2_COMP_INT(chn) (0x30 + (chn) * 0x04)
176 #define TSADCV2_COMP_SHUT(chn) (0x40 + (chn) * 0x04)
177 #define TSADCV3_DATA(chn) (0x2c + (chn) * 0x04)
178 #define TSADCV3_COMP_INT(chn) (0x6c + (chn) * 0x04)
179 #define TSADCV3_COMP_SHUT(chn) (0x10c + (chn) * 0x04)
180 #define TSADCV2_HIGHT_INT_DEBOUNCE 0x60
181 #define TSADCV2_HIGHT_TSHUT_DEBOUNCE 0x64
182 #define TSADCV3_HIGHT_INT_DEBOUNCE 0x14c
183 #define TSADCV3_HIGHT_TSHUT_DEBOUNCE 0x150
184 #define TSADCV2_AUTO_PERIOD 0x68
185 #define TSADCV2_AUTO_PERIOD_HT 0x6c
186 #define TSADCV3_AUTO_PERIOD 0x154
187 #define TSADCV3_AUTO_PERIOD_HT 0x158
189 #define TSADCV2_AUTO_EN BIT(0)
206 #define TSADCV4_INT_PD_CLEAR_MASK 0xffffffff
208 #define TSADCV2_DATA_MASK 0xfff
209 #define TSADCV3_DATA_MASK 0x3ff
210 #define TSADCV4_DATA_MASK 0x1ff
224 #define TSADCV2_USER_INTER_PD_SOC 0x340 /* 13 clocks */
225 #define TSADCV5_USER_INTER_PD_SOC 0xfc0 /* 97us, at least 90us */
227 #define GRF_SARADC_TESTBIT 0x0e644
228 #define GRF_TSADC_TESTBIT_L 0x0e648
229 #define GRF_TSADC_TESTBIT_H 0x0e64c
231 #define PX30_GRF_SOC_CON2 0x0408
233 #define RK3568_GRF_TSADC_CON 0x0600
234 #define RK3568_GRF_TSADC_ANA_REG0 (0x10001 << 0)
235 #define RK3568_GRF_TSADC_ANA_REG1 (0x10001 << 1)
236 #define RK3568_GRF_TSADC_ANA_REG2 (0x10001 << 2)
237 #define RK3568_GRF_TSADC_TSEN (0x10001 << 8)
239 #define RK3588_GRF0_TSADC_CON 0x0100
241 #define RK3588_GRF0_TSADC_TRM (0xff0077 << 0)
242 #define RK3588_GRF0_TSADC_SHUT_2CRU (0x30003 << 10)
243 #define RK3588_GRF0_TSADC_SHUT_2GPIO (0x70007 << 12)
245 #define GRF_SARADC_TESTBIT_ON (0x10001 << 2)
246 #define GRF_TSADC_TESTBIT_H_ON (0x10001 << 2)
247 #define GRF_TSADC_VCM_EN_L (0x10001 << 7)
248 #define GRF_TSADC_VCM_EN_H (0x10001 << 7)
250 #define GRF_CON_TSADC_CH_INV (0x10001 << 1)
268 {0, -40000},
277 {436, 0},
307 {0, -40000},
316 {629, 0},
355 {3728, 0},
381 {0, 125000},
385 {0, -40000},
394 {368, 0},
424 {0, -40000},
433 {122, 0},
463 {0, -40000},
472 {470, 0},
502 {0, -40000},
511 {1856, 0},
541 {0, -40000},
557 low = 0; in rk_tsadcv2_temp_to_code()
663 return 0; in rk_tsadcv2_code_to_temp()
670 * @tshut_polarity: the hardware-controlled active polarity (0:LOW 1:HIGH)
688 writel_relaxed(0U | TSADCV2_AUTO_TSHUT_POLARITY_HIGH, in rk_tsadcv2_initialize()
691 writel_relaxed(0U & ~TSADCV2_AUTO_TSHUT_POLARITY_HIGH, in rk_tsadcv2_initialize()
707 * @tshut_polarity: the hardware-controlled active polarity (0:LOW 1:HIGH)
762 writel_relaxed(0U | TSADCV2_AUTO_TSHUT_POLARITY_HIGH, in rk_tsadcv3_initialize()
765 writel_relaxed(0U & ~TSADCV2_AUTO_TSHUT_POLARITY_HIGH, in rk_tsadcv3_initialize()
789 writel_relaxed(0U | TSADCV2_AUTO_TSHUT_POLARITY_HIGH, in rk_tsadcv7_initialize()
792 writel_relaxed(0U & ~TSADCV2_AUTO_TSHUT_POLARITY_HIGH, in rk_tsadcv7_initialize()
948 return 0; in rk_tsadcv2_alarm_temp()
963 return 0; in rk_tsadcv2_alarm_temp()
980 return 0; in rk_tsadcv3_alarm_temp()
990 return 0; in rk_tsadcv3_alarm_temp()
1009 return 0; in rk_tsadcv2_tshut_temp()
1028 return 0; in rk_tsadcv3_tshut_temp()
1066 .chn_offset = 0,
1090 .chn_offset = 0,
1115 .chn_offset = 0,
1165 .chn_offset = 0,
1189 .chn_offset = 0,
1214 .chn_offset = 0,
1239 .chn_offset = 0,
1264 .chn_offset = 0,
1289 .chn_offset = 0,
1373 for (i = 0; i < thermal->chip->chn_num; i++) in rockchip_thermal_alarm_irq_thread()
1470 return 0; in rockchip_configure_from_dt()
1501 return 0; in rockchip_thermal_register_sensor()
1523 irq = platform_get_irq(pdev, 0); in rockchip_thermal_probe()
1524 if (irq < 0) in rockchip_thermal_probe()
1543 thermal->regs = devm_platform_get_and_ioremap_resource(pdev, 0, NULL); in rockchip_thermal_probe()
1572 for (i = 0; i < thermal->chip->chn_num; i++) { in rockchip_thermal_probe()
1591 for (i = 0; i < thermal->chip->chn_num; i++) { in rockchip_thermal_probe()
1602 return 0; in rockchip_thermal_probe()
1610 for (i = 0; i < thermal->chip->chn_num; i++) { in rockchip_thermal_remove()
1625 for (i = 0; i < thermal->chip->chn_num; i++) in rockchip_thermal_suspend()
1635 return 0; in rockchip_thermal_suspend()
1659 for (i = 0; i < thermal->chip->chn_num; i++) { in rockchip_thermal_resume()
1675 for (i = 0; i < thermal->chip->chn_num; i++) in rockchip_thermal_resume()
1680 return 0; in rockchip_thermal_resume()