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-03-07 12:38:40 +01:00
2023-07-25 17:13:53 +03:00
2023-03-02 13:57:50 +01: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-04-20 11:17:35 +02:00
2023-10-06 10:33:43 +02:00
2021-03-12 12:48:56 +00:00
2023-09-21 11:31:16 +03:00
2020-12-08 13:48:57 -05:00
2021-02-08 15:15:32 +01:00
2021-11-09 10:11:27 +01:00
2023-09-21 11:31:16 +03:00