diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2012-01-25 05:42:52 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2012-02-09 10:34:52 -0500 |
commit | e5c0fc4185c551c270868dcb6573604db2bc3171 (patch) | |
tree | 4b648c5839a80a9b955668daa37d1fad0bfb455c /arch/arm/include/asm/hardware | |
parent | 3259701cc2969ae16a0018d7e3a89f327fa23a6e (diff) |
ARM: sa1111: change devid to be a bitmask
Change the sa1111 device id to be a bitmask. This allows us to
specify the actual device, while allowing a single driver to bind
to both PS2 devices.
Acked-by: Nicolas Pitre <nico@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/include/asm/hardware')
-rw-r--r-- | arch/arm/include/asm/hardware/sa1111.h | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/arch/arm/include/asm/hardware/sa1111.h b/arch/arm/include/asm/hardware/sa1111.h index d54d781021c8..37ad29d482f4 100644 --- a/arch/arm/include/asm/hardware/sa1111.h +++ b/arch/arm/include/asm/hardware/sa1111.h | |||
@@ -516,15 +516,17 @@ | |||
516 | 516 | ||
517 | extern struct bus_type sa1111_bus_type; | 517 | extern struct bus_type sa1111_bus_type; |
518 | 518 | ||
519 | #define SA1111_DEVID_SBI 0 | 519 | #define SA1111_DEVID_SBI (1 << 0) |
520 | #define SA1111_DEVID_SK 1 | 520 | #define SA1111_DEVID_SK (1 << 1) |
521 | #define SA1111_DEVID_USB 2 | 521 | #define SA1111_DEVID_USB (1 << 2) |
522 | #define SA1111_DEVID_SAC 3 | 522 | #define SA1111_DEVID_SAC (1 << 3) |
523 | #define SA1111_DEVID_SSP 4 | 523 | #define SA1111_DEVID_SSP (1 << 4) |
524 | #define SA1111_DEVID_PS2 5 | 524 | #define SA1111_DEVID_PS2 (3 << 5) |
525 | #define SA1111_DEVID_GPIO 6 | 525 | #define SA1111_DEVID_PS2_KBD (1 << 5) |
526 | #define SA1111_DEVID_INT 7 | 526 | #define SA1111_DEVID_PS2_MSE (1 << 6) |
527 | #define SA1111_DEVID_PCMCIA 8 | 527 | #define SA1111_DEVID_GPIO (1 << 7) |
528 | #define SA1111_DEVID_INT (1 << 8) | ||
529 | #define SA1111_DEVID_PCMCIA (1 << 9) | ||
528 | 530 | ||
529 | struct sa1111_dev { | 531 | struct sa1111_dev { |
530 | struct device dev; | 532 | struct device dev; |