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

Commit c6cc2490 authored by Utkarsh Saxena's avatar Utkarsh Saxena
Browse files

msm: ipa: Enable 2x fast clock



External gcc clock is operating in 2x,
IPA clock to be in sync up with gcc clock,
enable 2x fast clock in IPA.

Change-Id: I47dc00452c7a52c967838ee0c4db6eaf754e5ae6
Acked-by: default avatarMohammed Javid <mjavid@qti.qualcomm.com>
Signed-off-by: default avatarUtkarsh Saxena <usaxena@codeaurora.org>
parent 2e830e63
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -884,8 +884,8 @@ int ipa_init_hw(void)
	ipa_write_reg(ipa_ctx->mmio, IPA_COMP_SW_RESET_OFST, 1);
	ipa_write_reg(ipa_ctx->mmio, IPA_COMP_SW_RESET_OFST, 0);

	/* enable IPA */
	ipa_write_reg(ipa_ctx->mmio, IPA_COMP_CFG_OFST, 1);
	/* enable IPA Bit:0, enable 2x fast clock Bit:4 */
	ipa_write_reg(ipa_ctx->mmio, IPA_COMP_CFG_OFST, 0x11);

	/* Read IPA version and make sure we have access to the registers */
	ipa_version = ipa_read_reg(ipa_ctx->mmio, IPA_VERSION_OFST);