Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 226516
b: refs/heads/master
c: 65dd4c1
h: refs/heads/master
v: v3
  • Loading branch information
Tony Lindgren committed Dec 21, 2010
1 parent 05627df commit 0736387
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 14 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: da07c0cff295d887427ad2519e452ee3c27e47ff
refs/heads/master: 65dd4c1626b396af839881708fdf3bc726a16f73
7 changes: 2 additions & 5 deletions trunk/arch/arm/mach-omap1/board-innovator.c
Original file line number Diff line number Diff line change
Expand Up @@ -290,11 +290,6 @@ static void __init innovator_init_irq(void)
{
omap1_init_common_hw();
omap_init_irq();
#ifdef CONFIG_ARCH_OMAP15XX
if (cpu_is_omap1510()) {
omap1510_fpga_init_irq();
}
#endif
}

#ifdef CONFIG_ARCH_OMAP15XX
Expand Down Expand Up @@ -385,6 +380,8 @@ static struct omap_board_config_kernel innovator_config[] = {

static void __init innovator_init(void)
{
if (cpu_is_omap1510())
omap1510_fpga_init_irq();
innovator_init_smc91x();

#ifdef CONFIG_ARCH_OMAP15XX
Expand Down
10 changes: 6 additions & 4 deletions trunk/arch/arm/mach-omap1/fpga.c
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ static struct irq_chip omap_fpga_irq = {
*/
void omap1510_fpga_init_irq(void)
{
int i;
int i, res;

__raw_writeb(0, OMAP1510_FPGA_IMR_LO);
__raw_writeb(0, OMAP1510_FPGA_IMR_HI);
Expand Down Expand Up @@ -177,10 +177,12 @@ void omap1510_fpga_init_irq(void)
* NOTE: For general GPIO/MPUIO access and interrupts, please see
* gpio.[ch]
*/
gpio_request(13, "FPGA irq");
res = gpio_request(13, "FPGA irq");
if (res) {
pr_err("%s failed to get gpio\n", __func__);
return;
}
gpio_direction_input(13);
set_irq_type(gpio_to_irq(13), IRQ_TYPE_EDGE_RISING);
set_irq_chained_handler(OMAP1510_INT_FPGA, innovator_fpga_IRQ_demux);
}

EXPORT_SYMBOL(omap1510_fpga_init_irq);
4 changes: 0 additions & 4 deletions trunk/arch/arm/plat-omap/include/plat/fpga.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,7 @@
#ifndef __ASM_ARCH_OMAP_FPGA_H
#define __ASM_ARCH_OMAP_FPGA_H

#if defined(CONFIG_MACH_OMAP_INNOVATOR) && defined(CONFIG_ARCH_OMAP15XX)
extern void omap1510_fpga_init_irq(void);
#else
#define omap1510_fpga_init_irq() (0)
#endif

#define fpga_read(reg) __raw_readb(reg)
#define fpga_write(val, reg) __raw_writeb(val, reg)
Expand Down

0 comments on commit 0736387

Please sign in to comment.