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>
This commit is contained in:
committed by
Linus Torvalds
parent
ffd65af0e6
commit
1e27dbe774
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user