m68k/mac: Fix PRAM accessors
PMU-based m68k Macs pre-date PowerMac-style NVRAM. Use the appropriate PMU commands. Also implement the missing XPRAM accessors for VIA-based Macs. Acked-by: Geert Uytterhoeven <geert@linux-m68k.org> Tested-by: Stan Johnson <userm57@yahoo.com> Signed-off-by: Finn Thain <fthain@telegraphics.com.au> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:

committed by
Greg Kroah-Hartman

parent
a71fa0e3e5
commit
aefcb7460e
@@ -19,7 +19,9 @@
|
||||
#define PMU_POWER_CTRL 0x11 /* control power of some devices */
|
||||
#define PMU_ADB_CMD 0x20 /* send ADB packet */
|
||||
#define PMU_ADB_POLL_OFF 0x21 /* disable ADB auto-poll */
|
||||
#define PMU_WRITE_XPRAM 0x32 /* write eXtended Parameter RAM */
|
||||
#define PMU_WRITE_NVRAM 0x33 /* write non-volatile RAM */
|
||||
#define PMU_READ_XPRAM 0x3a /* read eXtended Parameter RAM */
|
||||
#define PMU_READ_NVRAM 0x3b /* read non-volatile RAM */
|
||||
#define PMU_SET_RTC 0x30 /* set real-time clock */
|
||||
#define PMU_READ_RTC 0x38 /* read real-time clock */
|
||||
|
Reference in New Issue
Block a user