soc: swr-mstr: Add support for platform specific port configuration
Different platforms have different configuration for soundwire ports. Add support to get the port configuration information from the machine driver. Change-Id: If2c006c4d4a43e2a8dc67c076f6d1c0f36eae16b Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
This commit is contained in:

committed by
Karthikeyan Mani

parent
d0dd6a6284
commit
3d1596e2c6
@@ -9,6 +9,7 @@
|
||||
#include <soc/swr-wcd.h>
|
||||
#include <linux/pm_qos.h>
|
||||
#include <soc/qcom/pm.h>
|
||||
#include <soc/swr-common.h>
|
||||
|
||||
#define SWR_ROW_48 0
|
||||
#define SWR_ROW_50 1
|
||||
@@ -61,18 +62,6 @@ struct usecase {
|
||||
u32 chrate;
|
||||
};
|
||||
|
||||
struct port_params {
|
||||
u8 si;
|
||||
u8 off1;
|
||||
u8 off2;
|
||||
u8 hstart;/* head start */
|
||||
u8 hstop; /* head stop */
|
||||
u8 wd_len;/* word length */
|
||||
u8 bp_mode; /* block pack mode */
|
||||
u8 bgp_ctrl;/* block group control */
|
||||
u8 lane_ctrl;/* lane to be used */
|
||||
};
|
||||
|
||||
struct swrm_mports {
|
||||
struct list_head port_req_list;
|
||||
bool port_en;
|
||||
@@ -163,6 +152,8 @@ struct swr_mstr_ctrl {
|
||||
wait_queue_head_t pm_wq;
|
||||
int wlock_holders;
|
||||
u32 intr_mask;
|
||||
struct port_params **port_param;
|
||||
u8 num_usecase;
|
||||
};
|
||||
|
||||
#endif /* _SWR_WCD_CTRL_H */
|
||||
|
Reference in New Issue
Block a user