Re: [PATCH v3 07/12] ARM: EXYNOS: add interrupt definitions for EXYNOS5250

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 13 March 2012 21:00, Kukjin Kim <kgene.kim@xxxxxxxxxxx> wrote:
> ARM: EXYNOS: irqs.h for exynos4 and exynos5 - WIP
> This patch adds the interrupt definitions for EXYNOS5250 at
> <mach/irqs.h> file. Basically, now it is needed for EXYNOS5250
> interrupt and will be updated for single zImage next time.
>
> Signed-off-by: Kukjin Kim <kgene.kim@xxxxxxxxxxx>
> ---
>  arch/arm/mach-exynos/common.c            |   97 ++++--
>  arch/arm/mach-exynos/dev-ahci.c          |    4 +-
>  arch/arm/mach-exynos/dev-audio.c         |    4 +-
>  arch/arm/mach-exynos/include/mach/irqs.h |  580 ++++++++++++++++++++++--------
>  arch/arm/mach-exynos/mct.c               |   23 +-
>  arch/arm/plat-s5p/irq-pm.c               |   25 +-
>  arch/arm/plat-samsung/irq-vic-timer.c    |   16 +
>  7 files changed, 548 insertions(+), 201 deletions(-)
>
> diff --git a/arch/arm/mach-exynos/common.c b/arch/arm/mach-exynos/common.c
> index 7fdb139..0b53018 100644
> --- a/arch/arm/mach-exynos/common.c


[...]

>        for (irq = 0 ; irq <= 15 ; irq++) {
>                eint0_15_data[irq] = IRQ_EINT(irq);
>
> -               irq_set_handler_data(exynos4_get_irq_nr(irq),
> -                                    &eint0_15_data[irq]);
> -               irq_set_chained_handler(exynos4_get_irq_nr(irq),
> +               if (soc_is_exynos5250()) {
> +                       irq_set_handler_data(exynos4_eint0_15_src_int[irq],
> +                                            &eint0_15_data[irq]);
> +                       irq_set_chained_handler(exynos4_eint0_15_src_int[irq],
> +                                               exynos4_irq_eint0_15);
> +               } else {
> +                       irq_set_handler_data(exynos5_eint0_15_src_int[irq],
> +                                            &eint0_15_data[irq]);
> +                       irq_set_chained_handler(exynos5_eint0_15_src_int[irq],
>                                        exynos4_irq_eint0_15);
> +               }
>        }

The external interrupt numbers for Exynos4 and Exynos5 have been
swapped. This needs to be fixed.

Thanks,
Thomas.
--
To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux SoC Development]     [Linux Rockchip Development]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Linux SCSI]     [Yosemite News]

  Powered by Linux