Thread (12 messages) flat view 12 messages, 4 authors, 2007-06-08

Re: [PATCH] Fix the LPC47M192 SuperIO on the MPC8641 HPCN

From: Arnd Bergmann <arnd@arndb.de>
Date: 2007-06-06 22:39:56

On Wednesday 06 June 2007, Wade Farnsworth wrote:
+=A0=A0=A0=A0=A0=A0=A0/* LPC47M192 Super I/O configuration */
+=A0=A0=A0=A0=A0=A0=A0outb(0x55, 0x4e);=A0=A0=A0=A0=A0=A0=A0/* enter supe=
rio config mode */
+
+=A0=A0=A0=A0=A0=A0=A0/* Enable keyboard and mouse */
+=A0=A0=A0=A0=A0=A0=A0outb(0x07, 0x4e);=A0=A0=A0=A0=A0=A0=A0/* device sel=
ector register */
+=A0=A0=A0=A0=A0=A0=A0outb(0x07, 0x4f);=A0=A0=A0=A0=A0=A0=A0/* select key=
board registers (device 7) */
+=A0=A0=A0=A0=A0=A0=A0outb(0x30, 0x4e);=A0=A0=A0=A0=A0=A0=A0/* keyboard a=
ctivation register */
+=A0=A0=A0=A0=A0=A0=A0outb(0x01, 0x4f);=A0=A0=A0=A0=A0=A0=A0/* activate k=
eyboard */

Hardcoded I/O port numbers always worry me a little. I know that this is
supposed to work in general, but can't you read the I/O port range from
a device tree property?

	Arnd <><
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help