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

Commit c2657225 authored by Protik Biswas's avatar Protik Biswas
Browse files

sdm429w: add bg-rsg driver changes



bg-rsb driver is taken from msm-4.9 'commit
<94afce5b> ("soc: qcom: bg-rsb: enable/disable
events through gpio")'.
bg-rsb driver maintains RSB state machine.
bgrsb-rpmsg is registered as a rpmsg driver
when remote processor opens RSB_CTRL channel
it sends callback to rsb driver.

Change-Id: I58e341ce81f33df38e900f822325be6f37cef8e6
Signed-off-by: default avatarProtik Biswas <protbisw@codeaurora.org>
parent 1157d339
Loading
Loading
Loading
Loading
+19 −0
Original line number Diff line number Diff line
Qualcomm technologies, Inc. bg-rsb

BG-RSB : bg-rsb is used to communicate with Blackghost over
Glink to configure the RSB events. bg-rsb enable/disable
LDO11 and LDO15 before making any communication to BG
regarding RSB. It also provides an input device, which is
used to send the RSB/Button events to input framework.

Required properties:
- compatible : should be "qcom,bg-rsb"
- vdd-ldo1-supply : for powering main supply
- vdd-ldo2-supply : for powering sensor

Example:
	qcom,bg-rsb {
		compatible = "qcom,bg-rsb";
		vdd-ldo1-supply = <&pm660_l11>;
		vdd-ldo2-supply = <&pm660_l15>;
	};
+9 −0
Original line number Diff line number Diff line
@@ -1031,6 +1031,15 @@ config MSM_BAM_DMUX
                communication between G-Link/bg_com_dev and BG processor over SPI.
                This handle the interrupts raised by BG and notify the G-link with
                interrupt event and event data.

config MSM_BGRSB
	bool "Provide support for rsb events on Blackghost chipset"
	help
	  BGRSB communicates to BG over rpmsg driver for RSB configuration and
	  enable/disable on device power state change. It enables/disables
	  the regulator specific to RSB. Sends the side band events generated
	  by BG to input framework.

config MSM_PIL_SSR_BG
	tristate "MSM Subsystem Blackghost(BG) Support"
	depends on MSM_PIL && MSM_SUBSYSTEM_RESTART
+1 −0
Original line number Diff line number Diff line
@@ -71,6 +71,7 @@ obj-$(CONFIG_QCOM_SMCINVOKE) += smcinvoke.o
obj-$(CONFIG_SDX_EXT_IPC) += sdx_ext_ipc.o
obj-$(CONFIG_MSM_PIL_SSR_BG) += subsys-pil-bg.o
obj-$(CONFIG_QTI_NOTIFY_SIDEBAND) += sideband_notify.o
obj-$(CONFIG_MSM_BGRSB) += bg_rsb.o

ifdef CONFIG_MSM_SUBSYSTEM_RESTART
       obj-y += subsystem_notif.o
+891 −0

File added.

Preview size limit exceeded, changes collapsed.

+62 −10

File changed.

Preview size limit exceeded, changes collapsed.