mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] mfd, lpc_sch: Intel Quark X1000 WDT enabling
@ 2015-01-14  8:20 Ong Boon Leong
  2015-01-14  8:20 ` [PATCH] mfd: lpc_sch: enable WDT for Intel Quark X1000 Ong Boon Leong
  0 siblings, 1 reply; 3+ messages in thread
From: Ong Boon Leong @ 2015-01-14  8:20 UTC (permalink / raw)
  To: Samuel Ortiz, Lee Jones; +Cc: linux-kernel

Hi,
	This patch simply adds WDT IO resource for Quark within lpc_sch driver.
The MFD driver would register 'ie6xx_wdt' platform device and eventually be bound
to its platform driver under drivers/watchdog/ie6xx_wdt.c

	I have tested this patch on Intel Quark Galileo Gen v2 boad by opening
/dev/watchdog0 and confirmed that the board undergo warm reset when time-out.

	I can read the debugfs for the driver by following command:-
		$ cat /sys/kernel/debug/ie6xx_wdt

	To modify the time-out value, we use kernel param:-
		ie6xx_wdt.timeout=<val in second>

	To activate warm reset & enable reset, we use kernel param:-
		ie6xx_wdt.resetmode=0x18

Thank you very much
Ong Boon Leong
Intel Corp.

Ong Boon Leong (1):
  mfd: lpc_sch: enable WDT for Intel Quark X1000

 drivers/mfd/lpc_sch.c |    1
 1 file changed, 1 insertion(+)

-- 
1.7.9.5


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH] mfd: lpc_sch: enable WDT for Intel Quark X1000
  2015-01-14  8:20 [PATCH] mfd, lpc_sch: Intel Quark X1000 WDT enabling Ong Boon Leong
@ 2015-01-14  8:20 ` Ong Boon Leong
  2015-01-19 11:42   ` Lee Jones
  0 siblings, 1 reply; 3+ messages in thread
From: Ong Boon Leong @ 2015-01-14  8:20 UTC (permalink / raw)
  To: Samuel Ortiz, Lee Jones; +Cc: linux-kernel

Quark X1000 uses ie6xx_wdt driver for WDT. To enable WDT, we declare WDT IO
resource size for Quark X1000.

Signed-off-by: Ong Boon Leong <boon.leong.ong@intel.com>
---
 drivers/mfd/lpc_sch.c |    1
 1 file changed, 1 insertion(+)

diff --git a/drivers/mfd/lpc_sch.c b/drivers/mfd/lpc_sch.c
index 5c38df3..a56e4ba 100644
--- a/drivers/mfd/lpc_sch.c
+++ b/drivers/mfd/lpc_sch.c
@@ -75,6 +75,7 @@ static struct lpc_sch_info sch_chipset_info[] = {
 	[LPC_QUARK_X1000] = {
 		.io_size_gpio = GPIO_IO_SIZE,
 		.irq_gpio = GPIO_IRQ_QUARK_X1000,
+		.io_size_wdt = WDT_IO_SIZE,
 	},
 };
 
-- 
1.7.9.5


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] mfd: lpc_sch: enable WDT for Intel Quark X1000
  2015-01-14  8:20 ` [PATCH] mfd: lpc_sch: enable WDT for Intel Quark X1000 Ong Boon Leong
@ 2015-01-19 11:42   ` Lee Jones
  0 siblings, 0 replies; 3+ messages in thread
From: Lee Jones @ 2015-01-19 11:42 UTC (permalink / raw)
  To: Ong Boon Leong; +Cc: Samuel Ortiz, linux-kernel

On Wed, 14 Jan 2015, Ong Boon Leong wrote:

> Quark X1000 uses ie6xx_wdt driver for WDT. To enable WDT, we declare WDT IO
> resource size for Quark X1000.
> 
> Signed-off-by: Ong Boon Leong <boon.leong.ong@intel.com>
> ---
>  drivers/mfd/lpc_sch.c |    1
>  1 file changed, 1 insertion(+)

Applied, thanks.

> diff --git a/drivers/mfd/lpc_sch.c b/drivers/mfd/lpc_sch.c
> index 5c38df3..a56e4ba 100644
> --- a/drivers/mfd/lpc_sch.c
> +++ b/drivers/mfd/lpc_sch.c
> @@ -75,6 +75,7 @@ static struct lpc_sch_info sch_chipset_info[] = {
>  	[LPC_QUARK_X1000] = {
>  		.io_size_gpio = GPIO_IO_SIZE,
>  		.irq_gpio = GPIO_IRQ_QUARK_X1000,
> +		.io_size_wdt = WDT_IO_SIZE,
>  	},
>  };
>  

-- 
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-01-19 11:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-14  8:20 [PATCH] mfd, lpc_sch: Intel Quark X1000 WDT enabling Ong Boon Leong
2015-01-14  8:20 ` [PATCH] mfd: lpc_sch: enable WDT for Intel Quark X1000 Ong Boon Leong
2015-01-19 11:42   ` Lee Jones

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®