use the current value, and only for APQ8084 we use the new value.
Suggested-by: Bjorn Andersson
Signed-off-by: Georgi Djakov
---
drivers/pinctrl/qcom/pinctrl-apq8064.c |2 ++
drivers/pinctrl/qcom/pinctrl-apq8084.c |2 ++
drivers/pinctrl/qcom/pinctrl-ipq8064.c |2 ++
drivers/pinctrl
Define a new binding for the Qualcomm TLMM (Top-Level Mode Mux) based pin
controller inside the APQ8084.
Acked-by: Bjorn Andersson
Signed-off-by: Georgi Djakov
---
.../bindings/pinctrl/qcom,apq8084-pinctrl.txt | 179
1 file changed, 179 insertions(+)
create mode
This patchset adds pinctrl support for the Qualcomm APQ8084 platform.
Reviewed-by: Andy Gross
Signed-off-by: Georgi Djakov
---
drivers/pinctrl/qcom/Kconfig |8 +
drivers/pinctrl/qcom/Makefile |1 +
drivers/pinctrl/qcom/pinctrl-apq8084.c | 1243
This patch adds the TLMM node for the APQ8084 platform.
Reviewed-by: Bjorn Andersson
Signed-off-by: Georgi Djakov
---
arch/arm/boot/dts/qcom-apq8084.dtsi | 10 ++
1 file changed, 10 insertions(+)
diff --git a/arch/arm/boot/dts/qcom-apq8084.dtsi
b/arch/arm/boot/dts/qcom-apq8084.dtsi
Enable support for the two SD host controllers on the APQ8084 platform
by adding the required nodes to the DT files.
On the IFC6540 board, the first controller is connected to the onboard
eMMC and the second is connected to a micro-SD card slot.
Signed-off-by: Georgi Djakov
---
arch/arm/boot
Add initial device tree for the IFC6540 Snapdragon 805 pico-itx
single-board computer.
Signed-off-by: Georgi Djakov
---
arch/arm/boot/dts/Makefile |1 +
arch/arm/boot/dts/qcom-apq8084-ifc6540.dts |6 ++
2 files changed, 7 insertions(+)
create mode 100644 arch/arm
:
- This time add linux-arm-msm list to the CC.
- Include a third patch for enabling the eMMC.
Georgi Djakov (3):
ARM: dts: qcom: Add initial IFC6540 board device tree
ARM: dts: qcom: Enable serial port on IFC6540 boards
ARM: dts: qcom: Add SDHC nodes for APQ8084 platform
arch/arm/boot/dts
Enable the serial port on the IFC6540 boards.
Signed-off-by: Georgi Djakov
---
arch/arm/boot/dts/qcom-apq8084-ifc6540.dts |6 ++
1 file changed, 6 insertions(+)
diff --git a/arch/arm/boot/dts/qcom-apq8084-ifc6540.dts
b/arch/arm/boot/dts/qcom-apq8084-ifc6540.dts
index 4603e91..e41cb8a
o be an array of bytes instead of 32-bit words
> so we can use memcmp() without needing to byte-swap every word
> depending on the endianess of the CPU.
>
> Cc: Asutosh Das
> Cc: Venkat Gopalakrishnan
> Cc: Georgi Djakov
> Fixes: 415b5a75da43 "mmc: sdhci-msm: Add platform_e
On 10/10/2014 08:14 PM, Bjorn Andersson wrote:
> On Tue, Sep 2, 2014 at 8:40 AM, Georgi Djakov wrote:
>> Enable support for the two SD host controllers on the APQ8084 platform
>> by adding the required nodes to the DT files.
>> On the IFC6540 board, the first controlle
On 10/02/2014 09:11 PM, Stephen Boyd wrote:
> On 09/30/14 10:20, Georgi Djakov wrote:
>> This patch expands the regmap support to allow registration of clock
>> dividers. It just prepares for the introduction of a clkdiv driver,
>> that will be in a separate patch.
>>
Add a driver for the A53 subsystem PLL, so that we can provide higher
frequency clocks for use by the system.
Signed-off-by: Georgi Djakov
---
Documentation/devicetree/bindings/clock/qcom,a53cc | 25 +++
drivers/clk/qcom/Kconfig |8 +
drivers/clk/qcom/Makefile
to the PLL with the new rate once they're done.
Add a hook that drivers can implement allowing them to return a
'safe parent' and 'safe frequency' that they can switch their
parent to while the upstream source is reprogrammed to support
this.
Signed-off-by: Stephen
current clk-next.
Georgi Djakov (4):
clk: qcom: Enable gpll0_vote rate propagation on MSM8916
clk: qcom: Add support for regmap mux-div clocks
clk: qcom: Add A53 clock driver
arm64: dts: qcom: msm8916: Add A53 DT node
Stephen Boyd (1):
clk: Add safe switch hook
Documentation/devicetree
Add support for hardware that support switching both parent clocks and the
divider at the same time. This avoids generating intermediate frequencies
from either the old parent clock and new divider or new parent clock and
old divider combinations.
Signed-off-by: Georgi Djakov
---
drivers/clk
Currently we are missing the SET_RATE_PARENT flag on gpll0_vote and
as a result of that, when it has a child with SET_RATE_PARENT flag,
the rate of the child is not propagated up to the gpll0. Fix that
by adding the SET_RATE_PARENT flag to gpll0_vote.
Signed-off-by: Georgi Djakov
---
drivers
Add nodes for the A53 clocks and apcs, so that the driver
can probe and register the clocks.
Signed-off-by: Georgi Djakov
---
arch/arm64/boot/dts/qcom/msm8916.dtsi | 12
1 file changed, 12 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/msm8916.dtsi
b/arch/arm64/boot/dts
emory for sending requests to the RPM processor.
The second patch adds the support of RPM clocks on the MSM8916
platform.
[1] https://lkml.org/lkml/2015/6/26/577
Georgi Djakov (2):
clk: qcom: Add support for RPM Clocks
clk: qcom: Add MSM8916 RPM clock driver
.../devicetree/bindings/clock/qcom,
via shared memory
and accepts clock requests, aggregates the requests and turns
the clocks on/off or scales them on demand.
This work is based on the codeaurora.org driver:
https://www.codeaurora.org/cgit/quic/la/kernel/msm-3.10/tree/drivers/clk/qcom/clock-rpm.c
Signed-off-by: Georgi Djakov
Add support for clocks that are controlled by the RPM processor
on Qualcomm msm8916 based platforms.
Signed-off-by: Georgi Djakov
---
.../devicetree/bindings/clock/qcom,rpmcc.txt | 20 +++
drivers/clk/qcom/Makefile |1 +
drivers/clk/qcom/gcc-msm8916.c
Hi Srini,
On 07/09/2015 03:27 PM, Srinivas Kandagatla wrote:
>
> On 09/07/15 13:18, Georgi Djakov wrote:
>> This patch adds initial support for clocks controlled by the RPM
>> (Resource Power Manager) processor found on some Qualcomm SoCs.
>>
>> The RPM is a
Fix the enable bit of the pseudorandom number generator clock.
Reported-by: Stanimir Varbanov
Fixes: 3966fab8b6ab "clk: qcom: Add MSM8916 Global Clock Controller support"
Signed-off-by: Georgi Djakov
---
drivers/clk/qcom/gcc-msm8916.c |2 +-
1 file changed, 1 insertion(+),
On 24.07.15 20:25, Stephen Boyd wrote:
> On 07/24/2015 09:58 AM, Georgi Djakov wrote:
>> Currently we are missing the SET_RATE_PARENT flag on gpll0_vote and
>> as a result of that, when it has a child with SET_RATE_PARENT flag,
>> the rate of the child is not propagated up t
Add support for the msm8916 audio clocks. This includes core bus,
low-power audio and codec clocks. They are required for audio playback.
Signed-off-by: Georgi Djakov
---
drivers/clk/qcom/gcc-msm8916.c | 388 ++
include/dt-bindings/clock/qcom,gcc-msm8916.h
.
* Rebased on clk-next.
Changes since v1
* Added a set of ops for read-only RCGs and RCGs with shared branches.
Georgi Djakov (4):
clk: qcom: Add MSM8916 iommu clocks
clk: qcom: Add support for RCGs with shared branches
clk: qcom: Add MSM8916 gpu clocks
clk: qcom: Add MSM8916 audio clocks
Add support for the msm8916 BIMC (Bus Integrated Memory Controller)
clocks that are needed for GPU.
Signed-off-by: Georgi Djakov
---
drivers/clk/qcom/gcc-msm8916.c | 61 ++
include/dt-bindings/clock/qcom,gcc-msm8916.h |3 ++
2 files changed, 64
, the mux is set to the safe source;
Signed-off-by: Georgi Djakov
---
drivers/clk/qcom/clk-rcg.h |4 ++-
drivers/clk/qcom/clk-rcg2.c | 77 +++
2 files changed, 80 insertions(+), 1 deletion(-)
diff --git a/drivers/clk/qcom/clk-rcg.h b/drivers/clk
Add support for the msm8916 TCU (Translation Control Unit) clocks that
are needed for IOMMU.
Signed-off-by: Georgi Djakov
---
drivers/clk/qcom/gcc-msm8916.c | 48 ++
include/dt-bindings/clock/qcom,gcc-msm8916.h |3 ++
2 files changed, 51 insertions
, use fixed clocks registration until we have some support
to deal with the this issue. Removing the generic rpmcc compatible is
enough to switch back to fixed factor XO clock.
Signed-off-by: Georgi Djakov
---
arch/arm64/boot/dts/qcom/msm8916.dtsi |2 +-
1 file changed, 1 insertion(+), 1
/cgit/quic/la/kernel/msm-3.10/tree/drivers/clk/qcom/clock-rpm.c
Signed-off-by: Georgi Djakov
---
.../devicetree/bindings/clock/qcom,rpmcc.txt | 36 ++
drivers/clk/qcom/Kconfig | 16 +
drivers/clk/qcom/Makefile |1 +
drivers/clk/qcom
This adds initial support for clocks controlled by the Resource
Power Manager (RPM) processor on some Qualcomm SoCs, which use
the qcom_rpm driver to communicate with RPM.
Such platforms are apq8064 and msm8960.
Signed-off-by: Georgi Djakov
---
.../devicetree/bindings/clock/qcom,rpmcc.txt
clk-smd-rpm, also build it only
when it is needed - suggested by Srini and Bjorn.
* More detailed binding example.
* Minor changes.
Georgi Djakov (3):
clk: qcom: Add support for SMD-RPM Clocks
clk: qcom: Add support for RPM Clocks
arm64: dts: qcom: msm8916: Use fixed factor xo clock
On 3.12.15 г. 16:02, Georgi Djakov wrote:
> This adds initial support for clocks controlled by the Resource
> Power Manager (RPM) processor on some Qualcomm SoCs, which use
> the qcom_smd_rpm driver to communicate with RPM.
> Such platforms are msm8916, apq8084 and msm8974.
>
shared memory
and accepts clock requests, aggregates the requests and turns
the clocks on/off or scales them on demand.
This driver is based on the codeaurora.org driver:
https://www.codeaurora.org/cgit/quic/la/kernel/msm-3.10/tree/drivers/clk/qcom/clock-rpm.c
Signed-off-by: Georgi Djakov
Add the RPM Clock Controller DT node and include the necessary header
file for clocks.
Signed-off-by: Georgi Djakov
---
arch/arm64/boot/dts/qcom/msm8916.dtsi |6 ++
1 file changed, 6 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/msm8916.dtsi
b/arch/arm64/boot/dts/qcom/msm8916
Move the xo and sleep clocks to device-tree, instead of hard-coding
them in the driver. This allows us to insert the RPM clocks (if they
are enabled) in between the on-board oscillators and the actual clock.
Signed-off-by: Georgi Djakov
---
drivers/clk/qcom/gcc-msm8916.c | 16
Add support for clocks that are controlled by the RPM processor
on Qualcomm msm8916 based platforms.
Signed-off-by: Georgi Djakov
---
.../devicetree/bindings/clock/qcom,rpmcc.txt | 35
drivers/clk/qcom/Kconfig |8 +
drivers/clk/qcom/Makefile
.
* More detailed binding example.
* Minor changes.
Georgi Djakov (5):
clk: qcom: msm8916: Move xo and sleep clocks into DT
arm64: dts: qcom: msm8916: Add fixed rate on-board oscillator
clk: qcom: Add support for RPM Clocks
clk: qcom: Add RPM clock controller driver
arm64: dts: qcom
Currently the rates of the xo and sleep clocks are hard-coded in the
GCC driver, but this is a board layout description that actually should
be in the DT. Moving them into DT also allows us to insert the RPM
controlled clocks between the DT and GCC clocks.
Signed-off-by: Georgi Djakov
---
arch
- suggested by Srini and Bjorn.
* More detailed binding example.
* Minor changes.
Georgi Djakov (6):
clk: qcom: Add support for SMD-RPM Clocks
arm64: dts: qcom: msm8916: Add fixed rate on-board oscillators
arm64: dts: qcom: msm8916: Add RPMCC DT node
clk: qcom: Add support for RPM Clocks
arm: dts
Currently the rates of the xo and sleep clocks are hard-coded in the
GCC driver, but this is a board layout description that actually should
be in the DT. Moving them into DT also allows us to insert the RPM
controlled clocks between the DT and GCC clocks.
Signed-off-by: Georgi Djakov
---
arch
Add the RPM Clock Controller DT node.
Signed-off-by: Georgi Djakov
---
arch/arm/boot/dts/qcom-apq8064.dtsi |5 +
1 file changed, 5 insertions(+)
diff --git a/arch/arm/boot/dts/qcom-apq8064.dtsi
b/arch/arm/boot/dts/qcom-apq8064.dtsi
index eb929f2693b2..0860fff6e4a7 100644
--- a/arch
This adds initial support for clocks controlled by the Resource
Power Manager (RPM) processor on some Qualcomm SoCs, which use
the qcom_rpm driver to communicate with RPM.
Such platforms are apq8064 and msm8960.
Signed-off-by: Georgi Djakov
---
.../devicetree/bindings/clock/qcom,rpmcc.txt
Currently the rates of the xo and sleep clocks are hard-coded in the
GCC driver, but this is a board layout description that actually should
be in the DT. Moving them into DT also allows us to insert the RPM
controlled clocks between the DT and GCC clocks.
Signed-off-by: Georgi Djakov
---
arch
Add the RPM Clock Controller DT node and include the necessary header
file for clocks.
Signed-off-by: Georgi Djakov
---
arch/arm64/boot/dts/qcom/msm8916.dtsi |6 ++
1 file changed, 6 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/msm8916.dtsi
b/arch/arm64/boot/dts/qcom/msm8916
/cgit/quic/la/kernel/msm-3.10/tree/drivers/clk/qcom/clock-rpm.c
Signed-off-by: Georgi Djakov
---
.../devicetree/bindings/clock/qcom,rpmcc.txt | 36 ++
drivers/clk/qcom/Kconfig | 11 +
drivers/clk/qcom/Makefile |1 +
drivers/clk/qcom
/lkml/2015/6/12/193)
* Drop SR2 PLL patch, as it is already applied.
* Add gpll0_vote rate propagation patch.
* Update/rebase patches to the current clk-next.
Georgi Djakov (3):
clk: qcom: Add A53 PLL support
clk: qcom: Add regmap mux-div clocks support
clk: qcom: Add A53 clock driver
CPU frequency scaling on platforms like
MSM8916.
Signed-off-by: Georgi Djakov
---
.../devicetree/bindings/clock/qcom,a53cc.txt | 23 +++
drivers/clk/qcom/Kconfig |8 +
drivers/clk/qcom/Makefile |1 +
drivers/clk/qcom/a53cc.c
Add support for hardware that can switch both parent clocks and divider
at the same time. This avoids generating intermediate frequencies from
either the old parent clock and new divider or new parent clock and
old divider combinations.
Signed-off-by: Georgi Djakov
---
drivers/clk/qcom/Makefile
Add support for the PLL, which generates the higher range of CPU
frequencies on MSM8916 platforms.
Signed-off-by: Georgi Djakov
---
.../devicetree/bindings/clock/qcom,a53-pll.txt | 18
drivers/clk/qcom/Kconfig |9 ++
drivers/clk/qcom/Makefile
-rpm, also build it only
when it is needed - suggested by Srini and Bjorn.
* More detailed binding example.
* Minor changes.
Georgi Djakov (2):
clk: qcom: Add support for SMD-RPM Clocks
clk: qcom: Add support for RPM Clocks
.../devicetree/bindings/clock/qcom,rpmcc.txt | 37
This adds initial support for clocks controlled by the Resource
Power Manager (RPM) processor on some Qualcomm SoCs, which use
the qcom_rpm driver to communicate with RPM.
Such platforms are apq8064 and msm8960.
Signed-off-by: Georgi Djakov
---
.../devicetree/bindings/clock/qcom,rpmcc.txt
/cgit/quic/la/kernel/msm-3.10/tree/drivers/clk/qcom/clock-rpm.c
Signed-off-by: Georgi Djakov
---
.../devicetree/bindings/clock/qcom,rpmcc.txt | 36 ++
drivers/clk/qcom/Kconfig | 16 +
drivers/clk/qcom/Makefile |1 +
drivers/clk/qcom
Hi Srini,
Thanks for the patch.
On 12/12/2015 05:39 PM, Srinivas Kandagatla wrote:
> This clock is required for loading the qdsp firmware.
>
> Signed-off-by: Srinivas Kandagatla
> ---
> drivers/clk/qcom/gcc-msm8916.c | 18 ++
> include/dt-bindings/clock/qcom,gcc-ms
On 09/10/2015 01:52 AM, Stephen Boyd wrote:
> On 08/12, Georgi Djakov wrote:
>> From: Stephen Boyd
>>
>> Sometimes clocks can't accept their parent source turning off
>> while the source is reprogrammed to a different rate. Most
>> notably CPU clocks require
On 09/10/2015 01:46 AM, Stephen Boyd wrote:
> On 08/13, Georgi Djakov wrote:
[..]
>> diff --git a/drivers/clk/qcom/clk-rcg2.c b/drivers/clk/qcom/clk-rcg2.c
>> index 9aec1761fd29..681faf2dcdc5 100644
>> --- a/drivers/clk/qcom/clk-rcg2.c
>> +++ b/drivers/clk/qcom/clk
On 10/28/2015 03:06 AM, Stephen Boyd wrote:
> On 10/27, Stephen Boyd wrote:
>> +
>> +int qcom_cc_register_board_clk(struct device *dev, const char *path,
>> + const char *name, unsigned long rate)
>> +{
>> +return _qcom_cc_register_board_clk(dev, path, name, rate,
>> +
On 07/14/2015 01:27 AM, Bjorn Andersson wrote:
> On Tue 07 Jul 06:45 PDT 2015, Georgi Djakov wrote:
>
>> Hi Bjorn,
>> Thank you for this patchset! Some nits and a question below.
>>
>
> Thank you!
>
>> On 06/27/2015 12:50 AM, bj...@kryo.se wrote:
>>&
The SAW (Subsystem Power Manager and Adaptive Voltage Scaling Wrapper)
is part of the SPM subsystem. It is a hardware block in the Qualcomm
chipsets that regulates the power to the CPU cores on platform such as
apq8064, msm8974, apq8084 and others.
Signed-off-by: Georgi Djakov
---
Changes since
Hi Lina,
Thanks for reviewing.
On 02/10/2016 12:21 AM, Lina Iyer wrote:
> On Tue, Feb 09 2016 at 06:13 -0700, Georgi Djakov wrote:
[..]
>> +#defineSPM_REG_STS_10x10
>> +#defineSPM_REG_VCTL0x14
>> +#defineSPM_REG_PMIC_DATA_0
On 02/24/2016 09:15 PM, Stephen Boyd wrote:
> On 02/24, Srinivas Kandagatla wrote:
>>
>>
>> On 23/02/16 16:13, Georgi Djakov wrote:
>>> +/* msm8916 */
>>> +#define RPM_XO_CLK_SRC 0
>>> +#define RPM_XO_A_CLK_SR
/cgit/quic/la/kernel/msm-3.10/tree/drivers/clk/qcom/clock-rpm.c
Signed-off-by: Georgi Djakov
---
.../devicetree/bindings/clock/qcom,rpmcc.txt | 36 ++
drivers/clk/qcom/Kconfig | 16 +
drivers/clk/qcom/Makefile |1 +
drivers/clk/qcom
This adds initial support for clocks controlled by the Resource
Power Manager (RPM) processor on some Qualcomm SoCs, which use
the qcom_rpm driver to communicate with RPM.
Such platforms are apq8064 and msm8960.
Signed-off-by: Georgi Djakov
---
.../devicetree/bindings/clock/qcom,rpmcc.txt
order to support other SMD RPM
based platforms.
Changes since v1 (https://lkml.org/lkml/2015/7/9/257):
* Changed the driver name to clk-smd-rpm, also build it only
when it is needed - suggested by Srini and Bjorn.
* More detailed binding example.
* Minor changes.
Georgi Djakov (2):
clk: qcom
serial console as the RPM clocks are not registered yet..
Signed-off-by: Georgi Djakov
---
arch/arm64/boot/dts/qcom/msm8916.dtsi | 19 ++-
1 file changed, 10 insertions(+), 9 deletions(-)
diff --git a/arch/arm64/boot/dts/qcom/msm8916.dtsi
b/arch/arm64/boot/dts/qcom/msm8916.dtsi
On 23.02.16 г. 19:29, Srinivas Kandagatla wrote:
>
>
> On 23/02/16 17:21, Georgi Djakov wrote:
>> When the SMEM is probed it defers as it depends on the hardware lock, which
>> is not available yet. But the SMD bus and RPM regulators and clocks depend
>> on SMEM and
On 23.02.16 г. 21:28, Srinivas Kandagatla wrote:
>
>
> On 23/02/16 18:47, Georgi Djakov wrote:
>> On 23.02.16 г. 19:29, Srinivas Kandagatla wrote:
>>>
>>>
>>> On 23/02/16 17:21, Georgi Djakov wrote:
>>>> When the SMEM is probed it defers
On 02/23/2016 09:03 PM, Andy Gross wrote:
> On Tue, Feb 23, 2016 at 08:47:56PM +0200, Georgi Djakov wrote:
>> On 23.02.16 г. 19:29, Srinivas Kandagatla wrote:
>>>
>>>
>>> On 23/02/16 17:21, Georgi Djakov wrote:
>>>> When the SMEM is probed it
On 10/11/2014 03:16 AM, Stephen Boyd wrote:
> On 10/10, Georgi Djakov wrote:
>> There is a duplication in a clock name for apq8084 platform that causes
>> the following warning: "RBCPR_CLK_SRC" redefined
>>
>> Resolve this by adding a MMSS_ prefix to this clock
There are currently more than 16 partitions on the eMMC of all recent
Qualcomm devices. Increase the number of minors per block device to
detect all available partitions.
Signed-off-by: Georgi Djakov
---
arch/arm/configs/qcom_defconfig |2 +-
1 file changed, 1 insertion(+), 1 deletion
Enable MMC support for Qualcomm msm8974, apq8074 and apq8084 platforms.
Also increase the number of minors per block device in order to detect
all the 25 eMMC partitions.
Signed-off-by: Georgi Djakov
---
arch/arm/configs/multi_v7_defconfig |3 ++-
1 file changed, 2 insertions(+), 1 deletion
ultimedia Clock Controller (MMCC)
support")
Signed-off-by: Georgi Djakov
---
drivers/clk/qcom/mmcc-apq8084.c |2 +-
include/dt-bindings/clock/qcom,mmcc-apq8084.h |2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/clk/qcom/mmcc-apq8084.c b/drivers/clk
Enable the clocks for the Qualcomm APQ8084 platforms to allow
booting with multi_v7_defconfig.
Signed-off-by: Georgi Djakov
---
arch/arm/configs/multi_v7_defconfig |2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/arm/configs/multi_v7_defconfig
b/arch/arm/configs/multi_v7_defconfig
On 05/13/2015 10:36 AM, Stephen Boyd wrote:
> On 05/12, Georgi Djakov wrote:
>> Add support for the msm8916 TCU clocks that are needed for IOMMU.
>>
>> Signed-off-by: Georgi Djakov
>> ---
>
> Applied to clk-next
>
Hi Stephen,
Just got a report that this patc
Add support for the msm8916 bimc clocks that are needed for GPU.
Signed-off-by: Georgi Djakov
---
drivers/clk/qcom/gcc-msm8916.c | 58 ++
include/dt-bindings/clock/qcom,gcc-msm8916.h |3 ++
2 files changed, 61 insertions(+)
diff --git a/drivers/clk
Add support for the msm8916 audio clocks. This includes core bus,
low-power audio and codec clocks. They are required for audio playback.
Signed-off-by: Georgi Djakov
---
drivers/clk/qcom/gcc-msm8916.c | 388 ++
include/dt-bindings/clock/qcom,gcc-msm8916.h
Add support for the msm8916 TCU clocks that are needed for IOMMU.
Signed-off-by: Georgi Djakov
---
drivers/clk/qcom/gcc-msm8916.c | 78 ++
include/dt-bindings/clock/qcom,gcc-msm8916.h |4 ++
2 files changed, 82 insertions(+)
diff --git a/drivers/clk
On 02/24/2015 06:49 AM, Archit Taneja wrote:
> Hi,
[..]
>> +
>> +static struct freq_tbl ftbl_gcc_mdss_pclk[] = {
>> +{ .src = P_DSI0_PHYPLL_DSI },
>> +{ }
>> +};
>> +
>> +static struct clk_rcg2 pclk0_clk_src = {
>> +.cmd_rcgr = 0x4d084,
>
> This should be 0x4d000. Same reason as above.
On 02/24/2015 12:46 AM, Stephen Boyd wrote:
> On 02/06/15 10:58, Georgi Djakov wrote:
>> [...]
[..]
>> +
>> +/* Vote for GPLL0 to turn on */
>> +regmap_read(regmap, 0x45000, &val);
>> +val |= BIT(0);
>> +regmap_write(regmap, 0x45000, val
This patch adds support for the global clock controller found on the MSM8916
based devices. It allows the various device drivers to probe and control
their clocks and resets.
Signed-off-by: Georgi Djakov
---
Changes since v1:
* Addressed comments from Stephen Boyd and Archit Taneja
* Fixed
Hi Stephen,
Thanks for looking into this.
On 03/05/2015 09:58 PM, Stephen Boyd wrote:
> On 02/25, Georgi Djakov wrote:
>> diff --git a/drivers/clk/qcom/gcc-msm8916.c b/drivers/clk/qcom/gcc-msm8916.c
>> new file mode 100644
>> index ..810c38004520
>> --- /de
Some versions of this controller do not advertise their 3.0v and
8bit bus-width support capabilities. It is required to explicitly
set these capabilities for the specific controller versions.
Signed-off-by: Georgi Djakov
---
Changes since v2:
* Use the generic sdhci bitfield defines, as the
Define a parent_map struct to describe the relations between
PLL source index and register configuration value.
Add a qcom_find_src_index() function for finding the index of
a clock matching the specific PLL configuration
Signed-off-by: Georgi Djakov
---
drivers/clk/qcom/clk-rcg.h | 11
Signed-off-by: Georgi Djakov
---
drivers/clk/qcom/gcc-apq8084.c | 70 ---
drivers/clk/qcom/mmcc-apq8084.c | 178 +--
2 files changed, 134 insertions(+), 114 deletions(-)
diff --git a/drivers/clk/qcom/gcc-apq8084.c b/drivers/clk/qcom/gcc
Signed-off-by: Georgi Djakov
---
drivers/clk/qcom/gcc-msm8660.c | 24 ++--
1 file changed, 14 insertions(+), 10 deletions(-)
diff --git a/drivers/clk/qcom/gcc-msm8660.c b/drivers/clk/qcom/gcc-msm8660.c
index f366e68f7316..e9fc9389f977 100644
--- a/drivers/clk/qcom/gcc
Signed-off-by: Georgi Djakov
---
drivers/clk/qcom/gcc-ipq806x.c | 51 +++-
drivers/clk/qcom/lcc-ipq806x.c | 13 ++
2 files changed, 37 insertions(+), 27 deletions(-)
diff --git a/drivers/clk/qcom/gcc-ipq806x.c b/drivers/clk/qcom/gcc-ipq806x.c
Signed-off-by: Georgi Djakov
---
drivers/clk/qcom/gcc-msm8974.c | 33 +
drivers/clk/qcom/mmcc-msm8974.c | 142 +--
2 files changed, 95 insertions(+), 80 deletions(-)
diff --git a/drivers/clk/qcom/gcc-msm8974.c b/drivers/clk/qcom/gcc-msm8974.c
Switch RCG functions to use of the newly introduced
parent_map struct.
Signed-off-by: Georgi Djakov
---
drivers/clk/qcom/clk-rcg.c | 13 -
drivers/clk/qcom/clk-rcg.h |4 ++--
drivers/clk/qcom/clk-rcg2.c | 11 +++
3 files changed, 17 insertions(+), 11 deletions
Currently configure_bank() returns void. Add some error
checking on the regmap calls and propagate if there is
any error.
Signed-off-by: Georgi Djakov
---
drivers/clk/qcom/clk-rcg.c | 62 +---
1 file changed, 41 insertions(+), 21 deletions(-)
diff
This patchset introduces the parent_map index tables, which solve the
issue discussed here [1].
While doing this, fix also some of the code around (patches 1 and 2)
[1] https://lkml.org/lkml/2015/3/5/682
Patchset based on clk-next.
Georgi Djakov (9):
clk: qcom: Fix clk_get_parent function
Signed-off-by: Georgi Djakov
---
drivers/clk/qcom/gcc-msm8960.c | 35 +++---
drivers/clk/qcom/lcc-msm8960.c | 13 ++
drivers/clk/qcom/mmcc-msm8960.c | 53 +--
3 files changed, 57 insertions(+), 44 deletions(-)
diff --git a
According to the common clock framework API, the clk_get_parent() function
should return u8. Currently we are returning negative values on error. Fix
this and use the default parent in case of an error.
Signed-off-by: Georgi Djakov
---
drivers/clk/qcom/clk-rcg.c | 26
Add clocks/resets defines for the global clock controller
found on Qualcomm MSM8916 SoCs.
Signed-off-by: Georgi Djakov
---
.../devicetree/bindings/clock/qcom,gcc.txt |1 +
include/dt-bindings/clock/qcom,gcc-msm8916.h | 156
include/dt-bindings/reset/qcom
Boyd, reworked driver to use
index tables for clock parents.
* Split into two patches - DT binding and driver.
Changes since v1:
* Addressed comments from Stephen Boyd and Archit Taneja
* Fixed some incorrect offsets, parents etc.
* Driver is tested on MSM8916-MTP device.
Georgi Djakov (2
This patch adds support for the global clock controller found on the MSM8916
based devices. It allows the various device drivers to probe and control
their clocks and resets.
Signed-off-by: Georgi Djakov
---
drivers/clk/qcom/Kconfig |8 +
drivers/clk/qcom/Makefile |1
bisectable.
Georgi Djakov (3):
clk: qcom: Fix clk_get_parent function return value
clk: qcom: Do some error handling in configure_bank()
clk: qcom: Introduce parent_map tables
drivers/clk/qcom/clk-rcg.c | 99 +++---
drivers/clk/qcom/clk-rcg.h | 15 +++-
drivers/clk
for finding the index of a clock
matching the specific PLL configuration.
- Update the {set,get}_parent RCG functions use the newly introduced
parent_map struct.
- Convert all existing drivers to the new parent_map tables.
Signed-off-by: Georgi Djakov
---
drivers/clk/qcom/clk-rcg.c | 13
According to the common clock framework API, the clk_get_parent() function
should return u8. Currently we are returning negative values on error. Fix
this and use the default parent in case of an error.
Signed-off-by: Georgi Djakov
---
drivers/clk/qcom/clk-rcg.c | 26
Currently configure_bank() returns void. Add some error
checking on the regmap calls and propagate if there is
any error.
Signed-off-by: Georgi Djakov
---
drivers/clk/qcom/clk-rcg.c | 62 +---
1 file changed, 41 insertions(+), 21 deletions(-)
diff
This is preliminary and not fully tested patch which adds
support for the global clock controller found on the MSM8916
based devices. It allows the various device drivers to probe
and control their clocks and resets.
Signed-off-by: Georgi Djakov
---
.../devicetree/bindings/clock/qcom,gcc.txt
401 - 500 of 906 matches
Mail list logo