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

Commit ffddff46 authored by Alok Chauhan's avatar Alok Chauhan Committed by Gerrit - the friendly Code Review server
Browse files

i3c: master-qcom-geni: Configure i3c mode register



configure i3c mode gpio register to set pad mode
for scl and sda lines.

Change-Id: Ie0ad19def756fc4407cbbc580a997aa9ab984eac
Signed-off-by: default avatarAlok Chauhan <alokc@codeaurora.org>
parent 53a31eab
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -18,6 +18,7 @@
#include <linux/qcom-geni-se.h>
#include <linux/pinctrl/consumer.h>
#include <linux/ipc_logging.h>
#include <linux/pinctrl/qcom-pinctrl.h>

#define SE_I3C_SCL_HIGH			0x268
#define SE_I3C_TX_TRANS_LEN		0x26C
@@ -1299,6 +1300,7 @@ static int geni_i3c_runtime_suspend(struct device *dev)

	disable_irq(gi3c->irq);
	se_geni_resources_off(&gi3c->se.i3c_rsc);
	msm_qup_write(0, 0x0);
	return 0;
}

@@ -1313,6 +1315,8 @@ static int geni_i3c_runtime_resume(struct device *dev)

	enable_irq(gi3c->irq);

	/* Enable TLMM I3C MODE registers */
	msm_qup_write(0, 0x24);
	return 0;
}
#else