Skip to content

Commit 19b5a44

Browse files
Huqiang QinMarc Zyngier
authored andcommitted
irqchip: Add support for Amlogic-C3 SoCs
The Amlogic-C3 SoCs support 12 GPIO IRQ lines compared with previous serial chips and have something different, details are as below. IRQ Number: - 54 1 pins on bank TESTN - 53:40 14 pins on bank X - 39:33 7 pins on bank D - 32:27 6 pins on bank A - 26:22 5 pins on bank E - 21:15 7 pins on bank C - 14:0 15 pins on bank B Signed-off-by: Huqiang Qin <huqiang.qin@amlogic.com> Acked-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com> Signed-off-by: Marc Zyngier <maz@kernel.org> Link: https://lore.kernel.org/r/20230628091533.3884385-3-huqiang.qin@amlogic.com
1 parent 2b709c6 commit 19b5a44

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

drivers/irqchip/irq-meson-gpio.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,10 @@ static const struct meson_gpio_irq_params s4_params = {
150150
INIT_MESON_S4_COMMON_DATA(82)
151151
};
152152

153+
static const struct meson_gpio_irq_params c3_params = {
154+
INIT_MESON_S4_COMMON_DATA(55)
155+
};
156+
153157
static const struct of_device_id meson_irq_gpio_matches[] __maybe_unused = {
154158
{ .compatible = "amlogic,meson8-gpio-intc", .data = &meson8_params },
155159
{ .compatible = "amlogic,meson8b-gpio-intc", .data = &meson8b_params },
@@ -160,6 +164,7 @@ static const struct of_device_id meson_irq_gpio_matches[] __maybe_unused = {
160164
{ .compatible = "amlogic,meson-sm1-gpio-intc", .data = &sm1_params },
161165
{ .compatible = "amlogic,meson-a1-gpio-intc", .data = &a1_params },
162166
{ .compatible = "amlogic,meson-s4-gpio-intc", .data = &s4_params },
167+
{ .compatible = "amlogic,c3-gpio-intc", .data = &c3_params },
163168
{ }
164169
};
165170

0 commit comments

Comments
 (0)