@@ -22,6 +22,7 @@ struct telem_endpoint;
22
22
23
23
#define PMC_BASE_ADDR_DEFAULT 0xFE000000
24
24
#define MAX_NUM_PMC 3
25
+ #define S0IX_BLK_SIZE 4
25
26
26
27
/* Sunrise Point Power Management Controller PCI Device ID */
27
28
#define SPT_PMC_PCI_DEVICE_ID 0x9d21
@@ -288,6 +289,7 @@ extern const char *pmc_lpm_modes[];
288
289
struct pmc_bit_map {
289
290
const char * name ;
290
291
u32 bit_mask ;
292
+ u8 blk ;
291
293
};
292
294
293
295
/**
@@ -298,6 +300,7 @@ struct pmc_bit_map {
298
300
* @pll_sts: Maps name of PLL to corresponding bit status
299
301
* @slps0_dbg_maps: Array of SLP_S0_DBG* registers containing debug info
300
302
* @ltr_show_sts: Maps PCH IP Names to their MMIO register offsets
303
+ * @s0ix_blocker_maps: Maps name of IP block to S0ix blocker counter
301
304
* @slp_s0_offset: PWRMBASE offset to read SLP_S0 residency
302
305
* @ltr_ignore_offset: PWRMBASE offset to read/write LTR ignore bit
303
306
* @regmap_length: Length of memory to map from PWRMBASE address to access
@@ -307,6 +310,7 @@ struct pmc_bit_map {
307
310
* @pm_cfg_offset: PWRMBASE offset to PM_CFG register
308
311
* @pm_read_disable_bit: Bit index to read PMC_READ_DISABLE
309
312
* @slps0_dbg_offset: PWRMBASE offset to SLP_S0_DEBUG_REG*
313
+ * @s0ix_blocker_offset PWRMBASE offset to S0ix blocker counter
310
314
*
311
315
* Each PCH has unique set of register offsets and bit indexes. This structure
312
316
* captures them to have a common implementation.
@@ -319,6 +323,7 @@ struct pmc_reg_map {
319
323
const struct pmc_bit_map * ltr_show_sts ;
320
324
const struct pmc_bit_map * msr_sts ;
321
325
const struct pmc_bit_map * * lpm_sts ;
326
+ const struct pmc_bit_map * * s0ix_blocker_maps ;
322
327
const u32 slp_s0_offset ;
323
328
const int slp_s0_res_counter_step ;
324
329
const u32 ltr_ignore_offset ;
@@ -330,6 +335,7 @@ struct pmc_reg_map {
330
335
const u32 slps0_dbg_offset ;
331
336
const u32 ltr_ignore_max ;
332
337
const u32 pm_vric1_offset ;
338
+ const u32 s0ix_blocker_offset ;
333
339
/* Low Power Mode registers */
334
340
const int lpm_num_maps ;
335
341
const int lpm_num_modes ;
0 commit comments