]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
[PowerPC] PowerMac timebase sync for G4
authorBrandon Bergren <bdragon@FreeBSD.org>
Thu, 23 Dec 2021 21:45:24 +0000 (15:45 -0600)
committerJustin Hibbits <jhibbits@FreeBSD.org>
Thu, 23 Dec 2021 22:06:07 +0000 (16:06 -0600)
commitc583b02587285535d1af8691be2d83ac3916f083
treed7ae7518e93708590e19e3fe46db16d5a64570e6
parenta34d3ca6efc47eeced62a50a8328a554fa1ad72c
[PowerPC] PowerMac timebase sync for G4

Summary:
Disable timebase on (some) AIM platforms (tested on PowerMac G4) prior
to synchronization.

Some platforms use a GPIO to enable and disable timebase, while others
use a platform function.

This mirrors 0d69f00b on mpc85xx.

Todo:
 * Implement various G5 timebase controls.
 * Print out platform code on unknown G5s so we can collect it.
 * Change API to be give/take pairs like Linux does so it's possible to
   do a software sync protocol.

Reviewed By: #powerpc, jhibbits
Subscribers: mikael, markmi_dsl-only.net, luporl, alfredo
Tags: #powerpc
Differential Revision: https://reviews.freebsd.org/D29136
sys/conf/files.powerpc
sys/powerpc/powermac/macio.c
sys/powerpc/powermac/platform_powermac.c
sys/powerpc/powermac/platform_powermac.h [new file with mode: 0644]
sys/powerpc/powermac/tbgpio.c [new file with mode: 0644]