diff options
author | Andre Przywara <andre.przywara@arm.com> | 2018-06-27 01:42:53 +0100 |
---|---|---|
committer | Jagan Teki <jagan@amarulasolutions.com> | 2018-07-03 22:00:00 +0530 |
commit | be0d217952222b2bd3ed071de9bb0c66d8cc80d9 (patch) | |
tree | 54129545162b45102f9c1a80bee4f96e51248667 /lib/tpm-v1.c | |
parent | 38651588d3d9a977ca457049d6357408ddad4a8b (diff) | |
download | u-boot-midas-be0d217952222b2bd3ed071de9bb0c66d8cc80d9.tar.gz u-boot-midas-be0d217952222b2bd3ed071de9bb0c66d8cc80d9.tar.bz2 u-boot-midas-be0d217952222b2bd3ed071de9bb0c66d8cc80d9.zip |
arm: timer: sunxi: add Allwinner timer erratum workaround
The Allwinner A64 SoCs suffers from an arch timer implementation erratum,
where sometimes the lower 11 bits of the counter value erroneously
become all 0's or all 1's [1]. This leads to sudden jumps, both forwards and
backwards, with the latter one often showing weird behaviour.
Port the workaround proposed for Linux to U-Boot and activate it for all
A64 boards.
This fixes crashes when accessing MMC devices (SD cards), caused by a
recent change to actually use the counter value for timeout checks.
Fixes: 5ff8e54888e4d26a352453564f7f599d29696dc9 ("sunxi: improve throughput
in the sunxi_mmc driver")
[1] http://lists.infradead.org/pipermail/linux-arm-kernel/2018-May/576886.html
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Tested-by: Jagan Teki <jagan@amarulasolutions.com>
Tested-by: Andreas Färber <afaerber@suse.de>
Tested-by: Guillaume Gardet <guillaume.gardet@free.fr>
Diffstat (limited to 'lib/tpm-v1.c')
0 files changed, 0 insertions, 0 deletions