]> git.baikalelectronics.ru Git - kernel.git/commit
bcma: add methods for watchdog driver
authorHauke Mehrtens <hauke@hauke-m.de>
Wed, 5 Dec 2012 17:46:01 +0000 (18:46 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 6 Dec 2012 19:58:56 +0000 (14:58 -0500)
commit85d8e41d6880cfb137b7810cfe0a2e55cde4cdd0
tree7ef75f05f651badbe8f7ef4ad7fd985f0dd214b0
parentd2448f8837ee28442a4566a27a60f8daf67b8a6d
bcma: add methods for watchdog driver

The watchdog driver wants to set the watchdog timeout in ms and not in
ticks, which is depending on the SoC type and the clock.
Calculate the number of ticks per millisecond and provide two functions
for the watchdog driver. Also return the ticks or millisecond the timer
was set to in case the provided value was bigger than the max allowed
value.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/bcma/driver_chipcommon.c
include/linux/bcma/bcma_driver_chipcommon.h