]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - arch/m68k/mac/misc.c
m68k/mac: Enable RTC for 100-series PowerBooks
authorFinn Thain <fthain@telegraphics.com.au>
Mon, 12 Mar 2018 03:38:28 +0000 (23:38 -0400)
committerGeert Uytterhoeven <geert@linux-m68k.org>
Mon, 26 Mar 2018 12:10:22 +0000 (14:10 +0200)
commit6df2afba7a87afa71d4baf9875ec846d3040f9bb
treec1bbc6bc28e0094fe0a1af8ec32018ba2fdec657
parent31b1c780177d02d470109bdcf9899a3433c9fa93
m68k/mac: Enable RTC for 100-series PowerBooks

According to Apple's Developer Notes, all of the early PowerBook models
have their RTC connected to VIA1. Use the VIA clock ops as appropriate.
This was tested on a PowerBook 170.

Don't use the VIA ops when not appropriate. Calling unimplemented clock
or PRAM getter or setter ops can now result in an error instead of
failing silently.

Tested-by: Stan Johnson <userm57@yahoo.com>
Signed-off-by: Finn Thain <fthain@telegraphics.com.au>
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
arch/m68k/mac/misc.c