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

Commit 32addd2e authored by Tatenda Chipeperekwa's avatar Tatenda Chipeperekwa
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 bb8d2ec5
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
/* Copyright (c) 2018, The Linux Foundation. All rights reserved.
/* Copyright (c) 2018-2019, 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
@@ -250,10 +250,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);