File tree 4 files changed +31
-10
lines changed
boards/xtensa/intel_s1000_crb
4 files changed +31
-10
lines changed Original file line number Diff line number Diff line change @@ -46,11 +46,6 @@ config CAVS_ISR_TBL_OFFSET
46
46
config DW_ISR_TBL_OFFSET
47
47
default 3RD_LVL_ISR_TBL_OFFSET
48
48
49
- config GPIO_DW_0_NAME
50
- default "GPIO_PORTA"
51
- config GPIO_DW_0_IRQ_PRI
52
- default 1
53
-
54
49
config I2C_0_DEFAULT_CFG
55
50
default 0x12
56
51
if DMA_CAVS
Original file line number Diff line number Diff line change 1
1
#include "skeleton.dtsi"
2
2
#include <dt-bindings/i2c/i2c.h>
3
+ #include <dt-bindings/gpio/gpio.h>
3
4
4
5
/ {
5
6
cpus {
84
85
interrupt-parent = <&cavs0>;
85
86
};
86
87
88
+ gpio0: gpio@80c00 {
89
+ compatible = "snps,designware-gpio";
90
+ reg = <0x00080c00 0x400>;
91
+ bits = <32>;
92
+ label = "GPIO";
93
+ interrupts = <4 1 0>;
94
+ interrupt-parent = <&dw_intc>;
95
+
96
+ gpio-controller;
97
+ #gpio-cells = <2>;
98
+ };
87
99
88
100
uart0: uart@80800 {
89
101
compatible = "ns16550";
Original file line number Diff line number Diff line change 58
58
#define DT_SPI_DW_IRQ_FLAGS DT_SNPS_DESIGNWARE_SPI_E000_IRQ_0_SENSE
59
59
60
60
#define DT_SPI_0_IRQ_PRI DT_SNPS_DESIGNWARE_SPI_E000_IRQ_0_PRIORITY
61
+
62
+ #define DT_GPIO_DW_0_BASE_ADDR \
63
+ DT_SNPS_DESIGNWARE_GPIO_80C00_BASE_ADDRESS
64
+ #define DT_GPIO_DW_0_BITS \
65
+ DT_SNPS_DESIGNWARE_GPIO_80C00_BITS
66
+ #define DT_GPIO_INTC_IRQ \
67
+ (DT_SNPS_DESIGNWARE_GPIO_80C00_IRQ_0 << INTR_CNTL_IRQ_NUM_SHIFT)
68
+ #define DT_GPIO_CAVS_IRQ \
69
+ (DT_SNPS_DESIGNWARE_INTC_81800_IRQ_0 << CAVS_IRQ_NUM_SHIFT)
70
+ #define DT_GPIO_XTENSA_IRQ \
71
+ (DT_INTEL_CAVS_INTC_78800_IRQ_0 << XTENSA_IRQ_NUM_SHIFT)
72
+ #define DT_GPIO_DW_0_IRQ \
73
+ (DT_GPIO_INTC_IRQ | DT_GPIO_CAVS_IRQ | DT_GPIO_XTENSA_IRQ)
74
+ #define CONFIG_GPIO_DW_0_IRQ_PRI \
75
+ DT_SNPS_DESIGNWARE_GPIO_80C00_IRQ_0_PRIORITY
76
+ #define DT_GPIO_DW_0_IRQ_FLAGS 0
77
+ #define CONFIG_GPIO_DW_0_NAME \
78
+ DT_SNPS_DESIGNWARE_GPIO_80C00_LABEL
79
+
61
80
/* End of SoC Level DTS fixup file */
Original file line number Diff line number Diff line change 36
36
#define DW_ICTL_NUM_IRQS 9
37
37
38
38
/* GPIO */
39
- #define DT_GPIO_DW_0_BASE_ADDR 0x00080C00
40
- #define DT_GPIO_DW_0_BITS 32
41
39
#define GPIO_DW_PORT_0_INT_MASK 0
42
- #define DT_GPIO_DW_0_IRQ_FLAGS 0
43
- #define DT_GPIO_DW_0_IRQ 0x00040706
44
- #define GPIO_DW_0_IRQ_ICTL_OFFSET INTR_CNTL_IRQ_NUM(DT_GPIO_DW_0_IRQ)
45
40
46
41
/* low power DMACs */
47
42
#define LP_GP_DMA_SIZE 0x00001000
You can’t perform that action at this time.
0 commit comments