From: Tom Rini Date: Mon, 22 Apr 2013 11:53:15 -0400 Subject: [U-Boot] [PATCH 4/4] watchdog: Add support for Xilinx Microblaze watchdog In-Reply-To: References: <865c446dd3208ed797260efe67a114ac4b24b86a.1366641621.git.michal.simek@xilinx.com> Message-ID: <20130422155315.GR14952@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: