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

Commit 5de036c8 authored by Tatenda Chipeperekwa's avatar Tatenda Chipeperekwa Committed by Meng Wang
Browse files

drivers: soc: qcom: enable USB in DisplayPort mode on FSA4480



Program the FSA4480 to enable USB in DisplayPort mode in order
to allow concurrency use cases with USB devices.

CRs-Fixed: 2377072
Change-Id: Ied8d090296dafc91fca17200fc216b1cfc70cbfd
Signed-off-by: default avatarTatenda Chipeperekwa <tatendac@codeaurora.org>
parent 55ea5fc9
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0-only
/* Copyright (c) 2018, The Linux Foundation. All rights reserved.
/* Copyright (c) 2018-2019, The Linux Foundation. All rights reserved.
 */

#include <linux/kernel.h>
@@ -242,10 +242,10 @@ int fsa4480_switch_event(struct device_node *node,
		fsa4480_usbc_update_settings(fsa_priv, switch_control, 0x9F);
		break;
	case FSA_USBC_ORIENTATION_CC1:
		fsa4480_usbc_update_settings(fsa_priv, 0x00, 0xE0);
		fsa4480_usbc_update_settings(fsa_priv, 0x18, 0xF8);
		return fsa4480_validate_display_port_settings(fsa_priv);
	case FSA_USBC_ORIENTATION_CC2:
		fsa4480_usbc_update_settings(fsa_priv, 0x60, 0xE0);
		fsa4480_usbc_update_settings(fsa_priv, 0x78, 0xF8);
		return fsa4480_validate_display_port_settings(fsa_priv);
	case FSA_USBC_DISPLAYPORT_DISCONNECTED:
		fsa4480_usbc_update_settings(fsa_priv, 0x18, 0x98);