openwrt/target/linux/cns3xxx/patches-4.9
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
..
000-cns3xxx_arch_include.patch cns3xxx: add preliminary 4.9 support 2017-02-10 11:05:57 +01:00
001-arm_openwrt_machtypes.patch cns3xxx: add preliminary 4.9 support 2017-02-10 11:05:57 +01:00
010-arm_introduce-dma-fiq-irq-broadcast.patch cns3xxx: add preliminary 4.9 support 2017-02-10 11:05:57 +01:00
020-watchdog_support.patch cns3xxx: fix mpcore watchdog 2017-04-12 12:13:15 +02:00
025-smp_support.patch cns3xxx: add preliminary 4.9 support 2017-02-10 11:05:57 +01:00
030-pcie_clock.patch cns3xxx: add preliminary 4.9 support 2017-02-10 11:05:57 +01:00
040-fiq_support.patch cns3xxx: add preliminary 4.9 support 2017-02-10 11:05:57 +01:00
045-twd_base.patch cns3xxx: add preliminary 4.9 support 2017-02-10 11:05:57 +01:00
055-pcie_io.patch cns3xxx: add preliminary 4.9 support 2017-02-10 11:05:57 +01:00
060-pcie_abort.patch cns3xxx: add preliminary 4.9 support 2017-02-10 11:05:57 +01:00
065-pcie_skip_inactive.patch cns3xxx: add preliminary 4.9 support 2017-02-10 11:05:57 +01:00
070-i2c_support.patch cns3xxx: add preliminary 4.9 support 2017-02-10 11:05:57 +01:00
075-spi_support.patch cns3xxx: add preliminary 4.9 support 2017-02-10 11:05:57 +01:00
080-sata_support.patch cns3xxx: add preliminary 4.9 support 2017-02-10 11:05:57 +01:00
090-timers.patch cns3xxx: add preliminary 4.9 support 2017-02-10 11:05:57 +01:00
093-add-virt-pci-io-mapping.patch cns3xxx: add preliminary 4.9 support 2017-02-10 11:05:57 +01:00
095-gpio_support.patch cns3xxx: add back watchdog support 2017-02-11 15:36:35 +01:00
097-l2x0_cmdline_disable.patch kernel: update kernel 4.9 to version 4.9.10 2017-02-16 00:46:23 +01:00
100-laguna_support.patch cns3xxx: add preliminary 4.9 support 2017-02-10 11:05:57 +01:00
101-laguna_sdhci_card_detect.patch cns3xxx: add preliminary 4.9 support 2017-02-10 11:05:57 +01:00
110-pci_isolated_interrupts.patch cns3xxx: add preliminary 4.9 support 2017-02-10 11:05:57 +01:00
130-Extend-PCIE_BUS_PEER2PEER-to-set-MRSS-128-to-fix-CNS3xxx-BM-DMA..patch kernel: update kernel 4.9 to 4.9.17 2017-03-26 12:23:19 +02:00
200-broadcom_phy_reinit.patch cns3xxx: add preliminary 4.9 support 2017-02-10 11:05:57 +01:00
210-dwc2_defaults.patch cns3xxx: add preliminary 4.9 support 2017-02-10 11:05:57 +01:00