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

Commit de5eeaf6 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: pp2s: FSM9900 PP2S driver"

parents 5020a24f dd92af60
Loading
Loading
Loading
Loading
+45 −0
Original line number Diff line number Diff line
QTI Femtocell Pulse Per 2 Second (PP2S)

PP2S is a hardware generated pulse that occurs every two seconds and
is used for synchronizing certain system behaviors as they relate to
time.

The PP2S notification driver will be used by applications for two
reasons:

  1) So that they can be informed when PP2S interrupts occur, and

  2) So that the wall clock time registers can be accessed/manipulated
     from within the driver and from user space.

Two device tree nodes have been added.

The first is for the PP2S interrupt. It is made up of the following
required properties:

- compatible: "qcom,pp2s"
- interrupts: The interrupt number
- interrupt-names: the interrupt name

Example:

    qcom,pp2s {
        compatible = "qcom,pp2s";
        interrupts = <0 219 0>;
        interrupt-names = "pp2s_irq";
    };

The second is for mapping the wall clock regisers into usable
memory. It is made up of the required following:

- compatible: "qcom,wallclock"
- reg-names: The names given to the two memory bank locations
- reg: The base address and length for each bank

Example:

    qcom,wallclock@fd4aa000 {
        compatible = "qcom,wallclock";
        reg-names = "wallclock_time_bank", "wallclock_cntrl_bank";
        reg = <0xfd4aa000 0x20>, <0xfd4a9000 0x40>;
    };
+8 −0
Original line number Diff line number Diff line
@@ -1153,4 +1153,12 @@ config KRAIT_REGULATOR
	 line from the PMIC. This supply line is powered by multiple
	 regulators running in ganged mode inside the PMIC. Enable
	 this option to support such configurations.

config MSM_PP2S_FEMTO
	bool "FSM99XX PP2S Interrupt Notification"
	depends on ARCH_FSM9900
	help
	  Support for being notified relative to a PP2S pulse
	  Select Y if you want this notification to manifest.
	  If unsure, select N.
endif
+1 −0
Original line number Diff line number Diff line
@@ -34,6 +34,7 @@ obj-$(CONFIG_ARCH_MSM8974) += board-8974.o board-8974-gpiomux.o
obj-$(CONFIG_ARCH_MSM8974) += clock-rpm-8974.o clock-gcc-8974.o clock-mmss-8974.o clock-lpass-8974.o clock-mdss-8974.o
obj-$(CONFIG_KRAIT_REGULATOR) += krait-regulator.o  krait-regulator-pmic.o
obj-$(CONFIG_ARCH_MDM9630) += board-9630.o board-9630-gpiomux.o
obj-$(CONFIG_MSM_PP2S_FEMTO) += pp2s.o
obj-$(CONFIG_ARCH_MSMSAMARIUM) += board-samarium.o board-samarium-gpiomux.o
obj-$(CONFIG_ARCH_MSMSAMARIUM) += clock-samarium.o clock-mdss-8974.o
obj-$(CONFIG_ARCH_MPQ8092) += board-8092.o board-8092-gpiomux.o
+874 −0

File added.

Preview size limit exceeded, changes collapsed.