Mark Cave-Ayland b4d3a83b89 mac_via: extend timer calibration hack to work with A/UX
The A/UX timer calibration loop runs continuously until 2 consecutive iterations
differ by at least 0x492 timer ticks. Modern hosts execute the timer calibration
loop so fast that this situation never occurs causing a hang on boot.

Use a similar method to Shoebill which is to randomly add 0x500 to the T2
counter value during calibration to enable it to eventually succeed.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Message-ID: <20231004083806.757242-21-mark.cave-ayland@ilande.co.uk>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
2023-10-06 10:33:43 +02:00
..
2023-07-25 17:13:53 +03:00
2023-10-06 10:33:43 +02:00
2023-07-25 17:13:53 +03:00
2023-09-21 11:31:16 +03:00
2023-08-31 09:45:17 +01:00
2023-10-06 10:33:43 +02:00
2023-10-06 10:33:43 +02:00
2023-10-06 10:33:43 +02:00
2023-09-21 11:31:16 +03:00
2023-09-21 11:31:16 +03:00