openwrt/target/linux
Koen Vandeputte 84acff2865 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>
2017-04-12 12:13:15 +02:00
..
adm5120
adm8668
apm821xx apm821xx: remove 4.4 kernel support 2017-04-12 09:51:47 +02:00
ar7
ar71xx ar71xx: add correct named default wireless led by using platform leds 2017-04-08 14:30:00 +02:00
arc770
archs38
arm64 arm64: remove linux 4.4 support 2017-04-12 09:52:14 +02:00
armvirt
at91
ath25
au1000
bcm53xx bcm53xx: put kernel into TRX when building initramfs images 2017-03-27 10:41:36 +02:00
brcm47xx
brcm63xx
brcm2708 kernel: update kernel 4.9 to 4.9.20 2017-04-02 12:47:55 +02:00
cns3xxx cns3xxx: fix mpcore watchdog 2017-04-12 12:13:15 +02:00
gemini
generic kernel: Add various arm64-related symbols 2017-04-11 15:17:08 -07:00
imx6 kernel: update kernel 4.4 to 4.4.59 2017-04-02 12:48:00 +02:00
ipq806x firmware: rework fritz-tools package 2017-04-08 14:30:00 +02:00
ixp4xx
kirkwood
lantiq lantiq: drop tffs patches 2017-04-08 14:30:00 +02:00
layerscape
malta
mcs814x
mediatek mediatek: various fixes for v4.9 2017-04-07 17:42:08 +02:00
mpc85xx
mvebu mvebu: remove linux 4.4 support 2017-04-12 09:51:34 +02:00
mxs
octeon
omap
omap24xx
orion
oxnas
pistachio kernel: update kernel 4.9 to 4.9.17 2017-03-26 12:23:19 +02:00
ppc40x
ppc44x
ramips kernel: update kernel 4.4 to 4.4.59 2017-04-02 12:48:00 +02:00
rb532
sunxi
uml
x86 build: allow specifying flow-control to grub on serial console 2017-04-03 08:51:02 +02:00
xburst
zynq
Makefile