
22 Apr
2013
22 Apr
'13
5:53 p.m.
On Mon, Apr 22, 2013 at 04:41:03PM +0200, Michal Simek wrote:
Watchdog can be used on Microblaze, PPC and Zynq hw designs.
[snip]
+++ b/drivers/watchdog/xilinx_tb_wdt.c
[snip]
+#define watchdog_base ((struct watchdog_regs *)CONFIG_WATCHDOG_BASEADDR)
Just do: static struct watchdog_regs *watchdog_base = CONFIG_WATCHDOG_BASEADDR;
[snip]
+/* watchdog */ +#if defined(XILINX_WATCHDOG_BASEADDR) && defined(XILINX_WATCHDOG_IRQ) +# define CONFIG_WATCHDOG_BASEADDR XILINX_WATCHDOG_BASEADDR +# define CONFIG_WATCHDOG_IRQ XILINX_WATCHDOG_IRQ +# define CONFIG_HW_WATCHDOG 1 +# define CONFIG_XILINX_TB_WATCHDOG 1
Just '#define' and no 1 for options that we only need to set please, thanks.
--
Tom