diff mbox

[v5,13/14] ARM: dts: Add PMU support in HiP04

Message ID 1399473888-12947-14-git-send-email-haojian.zhuang@linaro.org (mailing list archive)
State New, archived
Headers show

Commit Message

Haojian Zhuang May 7, 2014, 2:44 p.m. UTC
From: Kefeng Wang <kefeng.wang@linaro.org>

ARM Performance Monitor Units are available on the HiP04.
So add the support in the dtsi.

Simply tested with perf.

Signed-off-by: Kefeng Wang <kefeng.wang@linaro.org>
Signed-off-by: Haojian Zhuang <haojian.zhuang@linaro.org>
---
 arch/arm/boot/dts/hip04.dtsi | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

Comments

Olof Johansson May 7, 2014, 4:53 p.m. UTC | #1
On Wed, May 07, 2014 at 10:44:47PM +0800, Haojian Zhuang wrote:
> From: Kefeng Wang <kefeng.wang@linaro.org>
> 
> ARM Performance Monitor Units are available on the HiP04.
> So add the support in the dtsi.
> 
> Simply tested with perf.
> 
> Signed-off-by: Kefeng Wang <kefeng.wang@linaro.org>
> Signed-off-by: Haojian Zhuang <haojian.zhuang@linaro.org>

This should be squashed into the original dts introduction patch, no need
to add these separately.


-Olof
Haojian Zhuang May 9, 2014, 6:36 a.m. UTC | #2
On 8 May 2014 00:53, Olof Johansson <olof@lixom.net> wrote:
> On Wed, May 07, 2014 at 10:44:47PM +0800, Haojian Zhuang wrote:
>> From: Kefeng Wang <kefeng.wang@linaro.org>
>>
>> ARM Performance Monitor Units are available on the HiP04.
>> So add the support in the dtsi.
>>
>> Simply tested with perf.
>>
>> Signed-off-by: Kefeng Wang <kefeng.wang@linaro.org>
>> Signed-off-by: Haojian Zhuang <haojian.zhuang@linaro.org>
>
> This should be squashed into the original dts introduction patch, no need
> to add these separately.
>
>
> -Olof

OK.

Regards
Haojian
diff mbox

Patch

diff --git a/arch/arm/boot/dts/hip04.dtsi b/arch/arm/boot/dts/hip04.dtsi
index 55a39ed..eee69e5 100644
--- a/arch/arm/boot/dts/hip04.dtsi
+++ b/arch/arm/boot/dts/hip04.dtsi
@@ -227,6 +227,26 @@ 
 			clock-names = "apb_pclk";
 		};
 
+		arm-pmu {
+			compatible = "arm,cortex-a15-pmu";
+			interrupts = <0 64 4>,
+				     <0 65 4>,
+				     <0 66 4>,
+				     <0 67 4>,
+				     <0 68 4>,
+				     <0 69 4>,
+				     <0 70 4>,
+				     <0 71 4>,
+				     <0 72 4>,
+				     <0 73 4>,
+				     <0 74 4>,
+				     <0 75 4>,
+				     <0 76 4>,
+				     <0 77 4>,
+				     <0 78 4>,
+				     <0 79 4>;
+		};
+
 		uart0: uart@4007000 {
 			compatible = "snps,dw-apb-uart";
 			reg = <0x4007000 0x1000>;