diff options
Diffstat (limited to 'include/linux/hsi_driver_if.h')
-rw-r--r-- | include/linux/hsi_driver_if.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/include/linux/hsi_driver_if.h b/include/linux/hsi_driver_if.h index 547b30e..d46d783 100644 --- a/include/linux/hsi_driver_if.h +++ b/include/linux/hsi_driver_if.h @@ -29,7 +29,7 @@ /* The number of ports handled by the driver (MAX:2). Reducing this value * optimizes the driver memory footprint. */ -#define HSI_MAX_PORTS 1 +#define HSI_MAX_PORTS 2 /* bit-field definition for allowed controller IDs and channels */ #define ANY_HSI_CONTROLLER -1 @@ -91,24 +91,27 @@ struct hsr_ctx { u32 channels; }; -struct port_ctx { +struct hsi_port_ctx { + int port_number; /* Range [1, 2] */ u32 sys_mpu_enable[2]; struct hst_ctx hst; struct hsr_ctx hsr; + const char *cawake_padconf_name; + int cawake_padconf_hsi_mode; }; /** - * struct ctrl_ctx - hsi controller regs context + * struct hsi_ctrl_ctx - hsi controller regs context * @sysconfig: keeps HSI_SYSCONFIG reg state * @gdd_gcr: keeps DMA_GCR reg state * @dll: keeps HSR_DLL state * @pctx: array of port context */ -struct ctrl_ctx { +struct hsi_ctrl_ctx { u32 sysconfig; u32 gdd_gcr; u32 dll; - struct port_ctx *pctx; + struct hsi_port_ctx *pctx; }; /* END DPS */ |