Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 204701
b: refs/heads/master
c: 540c6c3
h: refs/heads/master
i:
  204699: 40816e2
v: v3
  • Loading branch information
Martyn Welch authored and Benjamin Herrenschmidt committed Jul 9, 2010
1 parent cabb8f6 commit b919d76
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 68581e9350506dcf0160c3a29dcd21e5a848cda7
refs/heads/master: 540c6c392f01887dcc96bef0a41e63e6c1334f01
13 changes: 13 additions & 0 deletions trunk/arch/powerpc/kernel/setup-common.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,10 @@ struct screen_info screen_info = {
.orig_video_points = 16
};

/* Variables required to store legacy IO irq routing */
int of_i8042_kbd_irq;
int of_i8042_aux_irq;

#ifdef __DO_IRQ_CANON
/* XXX should go elsewhere eventually */
int ppc_do_canonicalize_irqs;
Expand Down Expand Up @@ -575,6 +579,15 @@ int check_legacy_ioport(unsigned long base_port)
np = of_find_compatible_node(NULL, NULL, "pnpPNP,f03");
if (np) {
parent = of_get_parent(np);

of_i8042_kbd_irq = irq_of_parse_and_map(parent, 0);
if (!of_i8042_kbd_irq)
of_i8042_kbd_irq = 1;

of_i8042_aux_irq = irq_of_parse_and_map(parent, 1);
if (!of_i8042_aux_irq)
of_i8042_aux_irq = 12;

of_node_put(np);
np = parent;
break;
Expand Down
5 changes: 5 additions & 0 deletions trunk/drivers/input/serio/i8042-io.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@
#include <asm/irq.h>
#elif defined(CONFIG_SH_CAYMAN)
#include <asm/irq.h>
#elif defined(CONFIG_PPC)
extern int of_i8042_kbd_irq;
extern int of_i8042_aux_irq;
# define I8042_KBD_IRQ of_i8042_kbd_irq
# define I8042_AUX_IRQ of_i8042_aux_irq
#else
# define I8042_KBD_IRQ 1
# define I8042_AUX_IRQ 12
Expand Down

0 comments on commit b919d76

Please sign in to comment.