ARM: arm920/s3c24xx: IRQ demulitplexer callback
PATCH 1/1 ARM: arm920/s3c24xx: IRQ demulitplexer callback
This patch adds a IRQ demultiplexer callback to the arm920 cpu core code, plus a stub implementation of it for the S3C2410.
The purpose is to allow arm920t implementations suhc as the s3c24x0 to implement interrupt handlers in u-boot without having to touch core arm920t code.
Signed-off-by Harald Welte <[email protected]>
cpu/arm920t/interrupts.c +6 -1
@@ -161,11 +161,16 @@void do_irq (struct pt_regs *pt_regs) { -#if defined (CONFIG_USE_IRQ ) && defined (CONFIG_ARCH_INTEGRATOR ) +#if defined (CONFIG_USE_IRQ ) +#if defined (ARM920_IRQ_CALLBACK ) +ARM920_IRQ_CALLBACK (); +return ; +#elif defined (CONFIG_ARCH_INTEGRATOR )/* ASSUMED to be a timer interrupt */ /* Just clear it - count handled in */ /* integratorap.c */ *(volatile ulong *)(CFG_TIMERBASE +0x0C ) =0 ; +#endif /* ARCH_INTEGRATOR */ #else printf ("interrupt request\n" );show_regs (pt_regs);
cpu/arm920t/s3c24x0/interrupts.c +9 -0
@@ -216,4 +216,13 @@ /*NOTREACHED*/ } +#ifdef CONFIG_USE_IRQ +void s3c2410_irq (void ) +{ +S3C24X0_INTERRUPT * irq =S3C24X0_GetBase_INTERRUPT (); +u_int32_t intpnd = irq->INTPND; + +} +#endif /* USE_IRQ */ +#endif /* defined(CONFIG_S3C2400) || defined (CONFIG_S3C2410) || defined (CONFIG_TRAB) */
include/common.h +2 -0
@@ -480,6 +480,8 @@ulong get_PCI_freq (void );#endif #if defined(CONFIG_S3C2400 ) || defined(CONFIG_S3C2410 ) || defined(CONFIG_LH7A40X ) +void s3c2410_irq (void ); +#define ARM920_IRQ_CALLBACK s3c2410_irqulong get_FCLK (void );ulong get_HCLK (void );ulong get_PCLK (void );
Signature · 3 lines
- Harald Welte <[email protected]> http://openmoko.org/ ============================================================================ Software for the world's first truly open Free Software mobile phone
Wolfgang Denk
AppliedPATCH 1/1 ARM: arm920/s3c24xx: IRQ demulitplexer callback
Quoted 8 lines · In message <[email protected]> you wrote:
This patch adds a IRQ demultiplexer callback to the arm920 cpu core code, plus a stub implementation of it for the S3C2410.
The purpose is to allow arm920t implementations suhc as the s3c24x0 to implement interrupt handlers in u-boot without having to touch core arm920t code.
Signed-off-by Harald Welte <[email protected]>
Applied, thanks.
Best regards,
Wolfgang Denk
Signature · 5 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Any time things appear to be going better, you have overlooked some- thing.