codecs: add wcd9360 driver support in wcd9xxx core
Add changes to support wcd9360 audio codec driver in wcd9xxx common files. Change-Id: I5b9f9d592b6843d7887eb3954d079776ddf15764 Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
This commit is contained in:

committed by
Gerrit - the friendly Code Review server

parent
9cbeb97832
commit
130934724f
@@ -1,4 +1,4 @@
|
||||
/* Copyright (c) 2016-2017, The Linux Foundation. All rights reserved.
|
||||
/* Copyright (c) 2016-2018, The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License version 2 and
|
||||
@@ -38,6 +38,16 @@
|
||||
|
||||
static enum wcd9xxx_intf_status wcd9xxx_intf = -1;
|
||||
|
||||
static struct mfd_cell pahu_devs[] = {
|
||||
{
|
||||
.name = "qcom-wcd-pinctrl",
|
||||
.of_compatible = "qcom,wcd-pinctrl",
|
||||
},
|
||||
{
|
||||
.name = "pahu_codec",
|
||||
},
|
||||
};
|
||||
|
||||
static struct mfd_cell tavil_devs[] = {
|
||||
{
|
||||
.name = "qcom-wcd-pinctrl",
|
||||
@@ -467,7 +477,8 @@ int wcd9xxx_page_write(struct wcd9xxx *wcd9xxx, unsigned short *reg)
|
||||
unsigned short c_reg, reg_addr;
|
||||
u8 pg_num, prev_pg_num;
|
||||
|
||||
if (wcd9xxx->type != WCD9335 && wcd9xxx->type != WCD934X)
|
||||
if (wcd9xxx->type != WCD9335 && wcd9xxx->type != WCD934X &&
|
||||
wcd9xxx->type != WCD9360)
|
||||
return ret;
|
||||
|
||||
c_reg = *reg;
|
||||
@@ -864,6 +875,10 @@ int wcd9xxx_get_codec_info(struct device *dev)
|
||||
}
|
||||
|
||||
switch (wcd9xxx->type) {
|
||||
case WCD9360:
|
||||
cinfo->dev = pahu_devs;
|
||||
cinfo->size = ARRAY_SIZE(pahu_devs);
|
||||
break;
|
||||
case WCD934X:
|
||||
cinfo->dev = tavil_devs;
|
||||
cinfo->size = ARRAY_SIZE(tavil_devs);
|
||||
|
Reference in New Issue
Block a user