mpc52xx/wdt: merge WDT code into the GPT driver
Subsystems (2)
PATCH v2 2/3 mpc52xx/wdt: merge WDT code into the GPT driver
Merge the WDT code into the GPT interface.
Signed-off-by Albrecht Dreß <[email protected]>
---
Change against v1: fully merge the wdt api into this file.
Note: The patch does also include the tiny GPT api changes from
<http://lists.ozlabs.org/pipermail/linuxppc-dev/2009-November/077647.html>.
arch/powerpc/include/asm/mpc52xx.h | 5 +- arch/powerpc/platforms/52xx/mpc52xx_gpt.c | 328 +++++++++++++++++++++++++++-- 2 files changed, 312 insertions(+), 21 deletions(-)
arch/powerpc/include/asm/mpc52xx.h +3 -2
@@ -279,9 +279,10 @@ extern void mpc52xx_restart(char *cmd);/* mpc52xx_gpt.c */ struct mpc52xx_gpt_priv ;extern struct mpc52xx_gpt_priv *mpc52xx_gpt_from_irq (int irq); -extern int mpc52xx_gpt_start_timer (struct mpc52xx_gpt_priv *gpt,int period, +extern int mpc52xx_gpt_start_timer (struct mpc52xx_gpt_priv *gpt,u64 period,int continuous); -extern void mpc52xx_gpt_stop_timer (struct mpc52xx_gpt_priv *gpt); +extern u64 mpc52xx_gpt_timer_period (struct mpc52xx_gpt_priv *gpt); +extern int mpc52xx_gpt_stop_timer (struct mpc52xx_gpt_priv *gpt);/* mpc52xx_lpbfifo.c */ #define MPC52XX_LPBFIFO_FLAG_READ (0)
arch/powerpc/platforms/52xx/mpc52xx_gpt.c +309 -19
416 lines not on this page · raw message
Quoted 3 lines · Albrecht Dreß
Merge the WDT code into the GPT interface.
Signed-off-by Albrecht Dreß <[email protected]>
Looks good to me.
g.
Signature · 2 lines
Grant Likely, B.Sc., P.Eng. Secret Lab Technologies Ltd.