Lines Matching +full:0 +full:xe000

23 #define PVTCTLEN			0x0000
24 #define PVTCTLEN_EN BIT(0)
26 #define PVTCTLMODE 0x0004
27 #define PVTCTLMODE_MASK 0xf
28 #define PVTCTLMODE_TEMPMON 0x5
30 #define EMONREPEAT 0x0040
32 #define EMONREPEAT_PERIOD GENMASK(3, 0)
33 #define EMONREPEAT_PERIOD_1000000 0x9
39 #define PVTCTLSEL 0x0900
40 #define PVTCTLSEL_MASK GENMASK(2, 0)
41 #define PVTCTLSEL_MONITOR 0
43 #define SETALERT0 0x0910
44 #define SETALERT1 0x0914
45 #define SETALERT2 0x0918
46 #define SETALERT_TEMP_OVF (GENMASK(7, 0) << 16)
47 #define SETALERT_TEMP_OVF_VALUE(val) (((val) & GENMASK(7, 0)) << 16)
48 #define SETALERT_EN BIT(0)
50 #define PMALERTINTCTL 0x0920
53 #define PMALERTINTCTL_EN(ch) BIT(4 * (ch) + 0)
55 GENMASK(2, 0))
57 #define TMOD 0x0928
60 #define TMODCOEF 0x0e5c
63 #define TMODSETUP0_VAL(val) (((val) & GENMASK(13, 0)) << 16)
65 #define TMODSETUP1_VAL(val) ((val) & GENMASK(14, 0))
97 PVTCTLEN_EN, 0); in uniphier_tm_initialize_sensor()
119 TMODSETUP0_EN | TMODSETUP0_VAL(tmod_calib[0]) | in uniphier_tm_initialize_sensor()
136 return 0; in uniphier_tm_initialize_sensor()
155 u32 bits = 0; in uniphier_tm_enable_sensor()
157 for (i = 0; i < ALERT_CH_NUM; i++) in uniphier_tm_enable_sensor()
178 PMALERTINTCTL_MASK, 0); in uniphier_tm_disable_sensor()
182 PVTCTLEN_EN, 0); in uniphier_tm_disable_sensor()
201 return 0; in uniphier_tm_get_temp()
210 u32 mask = 0, bits = 0; in uniphier_tm_irq_clear()
213 for (i = 0; i < ALERT_CH_NUM; i++) { in uniphier_tm_irq_clear()
259 return 0; in uniphier_tm_trip_walk_cb()
264 struct trip_walk_data twd = { .crit_temp = INT_MAX, .index = 0 }; in uniphier_tm_probe()
280 irq = platform_get_irq(pdev, 0); in uniphier_tm_probe()
281 if (irq < 0) in uniphier_tm_probe()
303 0, "thermal", tdev); in uniphier_tm_probe()
309 tdev->tz_dev = devm_thermal_of_zone_register(dev, 0, tdev, in uniphier_tm_probe()
328 return 0; in uniphier_tm_probe()
340 .map_base = 0xe000,
341 .block_base = 0xe000,
342 .tmod_setup_addr = 0xe904,
346 .map_base = 0xe000,
347 .block_base = 0xe800,
348 .tmod_setup_addr = 0xe938,