Commit 1eec5821 authored by Thierry Reding's avatar Thierry Reding Committed by Jason Cooper

irqchip: tegra: Add Tegra210 support

Tegra210 uses the same legacy interrupt controller as older generations
but it adds a sixth instance.
Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
Link: https://lkml.kernel.org/r/1427106379-14037-1-git-send-email-thierry.reding@gmail.comSigned-off-by: default avatarJason Cooper <jason@lakedaemon.net>
parent 1a703bff
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
#define ICTLR_COP_IER_CLR 0x38 #define ICTLR_COP_IER_CLR 0x38
#define ICTLR_COP_IEP_CLASS 0x3c #define ICTLR_COP_IEP_CLASS 0x3c
#define TEGRA_MAX_NUM_ICTLRS 5 #define TEGRA_MAX_NUM_ICTLRS 6
static unsigned int num_ictlrs; static unsigned int num_ictlrs;
...@@ -64,7 +64,12 @@ static const struct tegra_ictlr_soc tegra30_ictlr_soc = { ...@@ -64,7 +64,12 @@ static const struct tegra_ictlr_soc tegra30_ictlr_soc = {
.num_ictlrs = 5, .num_ictlrs = 5,
}; };
static const struct tegra_ictlr_soc tegra210_ictlr_soc = {
.num_ictlrs = 6,
};
static const struct of_device_id ictlr_matches[] = { static const struct of_device_id ictlr_matches[] = {
{ .compatible = "nvidia,tegra210-ictlr", .data = &tegra210_ictlr_soc },
{ .compatible = "nvidia,tegra30-ictlr", .data = &tegra30_ictlr_soc }, { .compatible = "nvidia,tegra30-ictlr", .data = &tegra30_ictlr_soc },
{ .compatible = "nvidia,tegra20-ictlr", .data = &tegra20_ictlr_soc }, { .compatible = "nvidia,tegra20-ictlr", .data = &tegra20_ictlr_soc },
{ } { }
...@@ -369,3 +374,4 @@ static int __init tegra_ictlr_init(struct device_node *node, ...@@ -369,3 +374,4 @@ static int __init tegra_ictlr_init(struct device_node *node,
IRQCHIP_DECLARE(tegra20_ictlr, "nvidia,tegra20-ictlr", tegra_ictlr_init); IRQCHIP_DECLARE(tegra20_ictlr, "nvidia,tegra20-ictlr", tegra_ictlr_init);
IRQCHIP_DECLARE(tegra30_ictlr, "nvidia,tegra30-ictlr", tegra_ictlr_init); IRQCHIP_DECLARE(tegra30_ictlr, "nvidia,tegra30-ictlr", tegra_ictlr_init);
IRQCHIP_DECLARE(tegra210_ictlr, "nvidia,tegra210-ictlr", tegra_ictlr_init);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment