Re: [PATCH 6/10] watchdog: bcm63xx_wdt: Obtain watchdog clock HZ from "periph" clk

2015-11-23 Thread Simon Arlott
On 23/11/15 18:19, Florian Fainelli wrote: > On 23/11/15 07:02, Jonas Gorski wrote: >> On Sun, Nov 22, 2015 at 3:07 PM, Simon Arlott wrote: >>> -#define WDT_HZ 5000/* Fclk */ >>> +#define WDT_CLK_NAME "periph" >> >> @Florian: >> Is this correct? The

Re: [PATCH 6/10] watchdog: bcm63xx_wdt: Obtain watchdog clock HZ from "periph" clk

2015-11-23 Thread Florian Fainelli
On 23/11/15 07:02, Jonas Gorski wrote: > Hi, > > On Sun, Nov 22, 2015 at 3:07 PM, Simon Arlott wrote: >> Instead of using a fixed clock HZ in the driver, obtain it from the >> "periph" clk that the watchdog timer uses. >> >> Signed-off-by: Simon Arlott >> --- >> drivers/watchdog/bcm63xx_wdt.c

Re: [PATCH 6/10] watchdog: bcm63xx_wdt: Obtain watchdog clock HZ from "periph" clk

2015-11-23 Thread Jonas Gorski
Hi, On Sun, Nov 22, 2015 at 3:07 PM, Simon Arlott wrote: > Instead of using a fixed clock HZ in the driver, obtain it from the > "periph" clk that the watchdog timer uses. > > Signed-off-by: Simon Arlott > --- > drivers/watchdog/bcm63xx_wdt.c | 36 +++- > 1 file

Re: [PATCH 6/10] watchdog: bcm63xx_wdt: Obtain watchdog clock HZ from "periph" clk

2015-11-23 Thread Florian Fainelli
On 23/11/15 07:02, Jonas Gorski wrote: > Hi, > > On Sun, Nov 22, 2015 at 3:07 PM, Simon Arlott wrote: >> Instead of using a fixed clock HZ in the driver, obtain it from the >> "periph" clk that the watchdog timer uses. >> >> Signed-off-by: Simon Arlott >>

Re: [PATCH 6/10] watchdog: bcm63xx_wdt: Obtain watchdog clock HZ from "periph" clk

2015-11-23 Thread Jonas Gorski
Hi, On Sun, Nov 22, 2015 at 3:07 PM, Simon Arlott wrote: > Instead of using a fixed clock HZ in the driver, obtain it from the > "periph" clk that the watchdog timer uses. > > Signed-off-by: Simon Arlott > --- > drivers/watchdog/bcm63xx_wdt.c | 36

Re: [PATCH 6/10] watchdog: bcm63xx_wdt: Obtain watchdog clock HZ from "periph" clk

2015-11-23 Thread Simon Arlott
On 23/11/15 18:19, Florian Fainelli wrote: > On 23/11/15 07:02, Jonas Gorski wrote: >> On Sun, Nov 22, 2015 at 3:07 PM, Simon Arlott wrote: >>> -#define WDT_HZ 5000/* Fclk */ >>> +#define WDT_CLK_NAME "periph" >> >> @Florian: >> Is

[PATCH 6/10] watchdog: bcm63xx_wdt: Obtain watchdog clock HZ from "periph" clk

2015-11-22 Thread Simon Arlott
Instead of using a fixed clock HZ in the driver, obtain it from the "periph" clk that the watchdog timer uses. Signed-off-by: Simon Arlott --- drivers/watchdog/bcm63xx_wdt.c | 36 +++- 1 file changed, 31 insertions(+), 5 deletions(-) diff --git

[PATCH 6/10] watchdog: bcm63xx_wdt: Obtain watchdog clock HZ from "periph" clk

2015-11-22 Thread Simon Arlott
Instead of using a fixed clock HZ in the driver, obtain it from the "periph" clk that the watchdog timer uses. Signed-off-by: Simon Arlott --- drivers/watchdog/bcm63xx_wdt.c | 36 +++- 1 file changed, 31 insertions(+), 5 deletions(-) diff