aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/bcm53xx/patches-4.4/301-ARM-BCM5301X-Add-DT-for-Netgear-R7900.patch
diff options
context:
space:
mode:
authorKoen Vandeputte <koen.vandeputte@ncentric.com>2017-04-12 11:10:59 +0200
committerFelix Fietkau <nbd@nbd.name>2017-04-12 12:13:15 +0200
commit84acff2865660d361283eaa4d995913c955d826b (patch)
tree2955f93d636a95bd5a50fe35942d8de7950a433c /target/linux/bcm53xx/patches-4.4/301-ARM-BCM5301X-Add-DT-for-Netgear-R7900.patch
parent6f8a552796cb53dc232b66ada8d6b91fa8ce0ef9 (diff)
downloadupstream-84acff2865660d361283eaa4d995913c955d826b.tar.gz
upstream-84acff2865660d361283eaa4d995913c955d826b.tar.bz2
upstream-84acff2865660d361283eaa4d995913c955d826b.zip
cns3xxx: fix mpcore watchdog
The original implementation loaded the count register with (wrong) semi- random values due to its implemenation nature. If the wrongly calulated value was below the kickrate, the WD was triggered and rebooted the system. Rework this, partly based on upstream patches, to dynamically fetch the current clockrate and calculate the proper offset for the WD countdown register. Before: [ 143.800000] count val: 27219720 [ 148.820000] count val: 50623201 [ 153.830000] count val: 96425250 [ 158.830000] count val: 89735401 [ 163.840000] count val: 4756110 After: [ 0.700000] MPCore WD init. clockrate: 299984500 prescaler: 256 countrate: 1171814 timeout: 60s [ 358.530000] count val: 35154751 [ 363.540000] count val: 35154750 [ 368.540000] count val: 35154751 [ 373.550000] count val: 35154750 Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
Diffstat (limited to 'target/linux/bcm53xx/patches-4.4/301-ARM-BCM5301X-Add-DT-for-Netgear-R7900.patch')
0 files changed, 0 insertions, 0 deletions