diff options
author | Ben Dooks <ben-linux@fluff.org> | 2007-06-24 04:16:31 +0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-06-24 19:59:11 +0400 |
commit | 1e27dbe7746f3bcbcf1f9a37f31df4b886e36ce3 (patch) | |
tree | cca92108cf97c5c13b0c9e7f85f11da8bd513fb5 /include/linux/sm501-regs.h | |
parent | ffd65af0e67a054e1e2393c9b0995c03c47cdc30 (diff) | |
download | linux-1e27dbe7746f3bcbcf1f9a37f31df4b886e36ce3.tar.xz |
SM501: Check SM501 ID register on initialisation
When binding the driver, check the ID register for a valid identity, in case
the SM501 is not functioning correctly.
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/sm501-regs.h')
-rw-r--r-- | include/linux/sm501-regs.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/sm501-regs.h b/include/linux/sm501-regs.h index 8b4ecf02f9dc..014e73b31fc0 100644 --- a/include/linux/sm501-regs.h +++ b/include/linux/sm501-regs.h @@ -109,6 +109,9 @@ #define SM501_DEVICEID (0x000060) /* 0x050100A0 */ +#define SM501_DEVICEID_SM501 (0x05010000) +#define SM501_DEVICEID_IDMASK (0xffff0000) + #define SM501_PLLCLOCK_COUNT (0x000064) #define SM501_MISC_TIMING (0x000068) #define SM501_CURRENT_SDRAM_CLOCK (0x00006C) |