Skip to content

Commit 0a6923f

Browse files
author
James Hogan
committed
metag: tz1090: select and instantiate irq-imgpdc
Select IMGPDC_IRQ from SOC_TZ1090 to enable the PDC interrupt controller driver once it is merged, and instantiate it from tz1090.dtsi. Signed-off-by: James Hogan <james.hogan@imgtec.com> Acked-by: Grant Likely <grant.likely@linaro.org> Cc: Thomas Gleixner <tglx@linutronix.de>
1 parent 3b2f64d commit 0a6923f

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

arch/metag/Kconfig.soc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ config META21_FPGA
1616

1717
config SOC_TZ1090
1818
bool "Toumaz Xenif TZ1090 SoC (Comet)"
19+
select IMGPDC_IRQ
1920
select METAG_LNKGET_AROUND_CACHE
2021
select METAG_META21
2122
select METAG_SMP_WRITE_REORDERING

arch/metag/boot/dts/tz1090.dtsi

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88

99
#include "skeleton.dtsi"
1010

11+
#include <dt-bindings/interrupt-controller/irq.h>
12+
1113
/ {
1214
compatible = "toumaz,tz1090", "img,meta";
1315

@@ -26,6 +28,22 @@
2628
#size-cells = <1>;
2729
ranges;
2830

31+
pdc: pdc@0x02006000 {
32+
interrupt-controller;
33+
#interrupt-cells = <2>;
34+
35+
reg = <0x02006000 0x1000>;
36+
compatible = "img,pdc-intc";
37+
38+
num-perips = <3>;
39+
num-syswakes = <3>;
40+
41+
interrupts = <18 IRQ_TYPE_LEVEL_HIGH>, /* Syswakes */
42+
<30 IRQ_TYPE_LEVEL_HIGH>, /* Perip 0 (RTC) */
43+
<29 IRQ_TYPE_LEVEL_HIGH>, /* Perip 1 (IR) */
44+
<31 IRQ_TYPE_LEVEL_HIGH>; /* Perip 2 (WDT) */
45+
};
46+
2947
pinctrl: pinctrl@02005800 {
3048
#gpio-range-cells = <3>;
3149
compatible = "img,tz1090-pinctrl";

0 commit comments

Comments
 (0)