mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-21 14:11:20 +00:00
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:
parent
ffd65af0e6
commit
1e27dbe774
2 changed files with 13 additions and 4 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue