Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 807f6ba3 authored by Mayank Rana's avatar Mayank Rana
Browse files

usb: qmp: phy: Update SIGDET_LVL value for 8996 v2 and v3/v4 variants



Different signal detect threshold value is required to use with USB QMP
PHY for 8996 v2 and 8996 v3/v4 platforms. Hence set QSERDES_RX_SIGDET_LVL
register value as 0x18 using default table, and move 0x1B value with
misc_config to use as override for 8996 v2.

CRs-Fixed: 910111
Change-Id: Ic3e7118f9040972a8097e563b4945d6ee7b990d3
Signed-off-by: default avatarMayank Rana <mrana@codeaurora.org>
parent b96363ad
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -252,7 +252,7 @@ static const struct qmp_reg_val qmp_settings_rev2[] = {
	{0x508, 0x77}, /* QSERDES_RX_RX_EQ_OFFSET_ADAPTOR_CNTRL1 */
	{0x50C, 0x80}, /* QSERDES_RX_RX_OFFSET_ADAPTOR_CNTRL2 */
	{0x514, 0x03}, /* QSERDES_RX_SIGDET_CNTRL */
	{0x518, 0x1B}, /* QSERDES_RX_SIGDET_LVL */
	{0x518, 0x18}, /* QSERDES_RX_SIGDET_LVL */
	{0x51C, 0x16}, /* QSERDES_RX_SIGDET_DEGLITCH_CNTRL */

	/* TX settings */
@@ -280,6 +280,9 @@ static const struct qmp_reg_val qmp_settings_rev2[] = {
static const struct qmp_reg_val qmp_settings_rev2_misc[] = {
	{0x178, 0x01}, /* QSERDES_COM_HSCLK_SEL */

	/* Rx settings */
	{0x518, 0x1B}, /* QSERDES_RX_SIGDET_LVL */

	/* Res_code settings */
	{0xC4, 0x15}, /* USB3PHY_QSERDES_COM_RESCODE_DIV_NUM */
	{0x1B8, 0x1F}, /* QSERDES_COM_CMN_MISC2 */