From: Tom Rini Date: Tue, 25 Jun 2013 15:59:25 -0400 Subject: [U-Boot] [PATCH v4 2/3] Add TI816X support In-Reply-To: <3465D313FDFB824F9A9C8CD24FA4F6BC0112AA76@frontmail.adetel.com> References: <1371636501-23411-1-git-send-email-atenart@adeneo-embedded.com> <3465D313FDFB824F9A9C8CD24FA4F6BC0112AA76@frontmail.adetel.com> Message-ID: <20130625195925.GH28078@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 Wed, Jun 19, 2013 at 12:08:20PM +0200, TENART Antoine wrote: [snip] > +/* WDT related */ > +#define WDT_WDSC (WDT_BASE + 0x010) > +#define WDT_WDST (WDT_BASE + 0x014) > +#define WDT_WISR (WDT_BASE + 0x018) > +#define WDT_WIER (WDT_BASE + 0x01C) > +#define WDT_WWER (WDT_BASE + 0x020) > +#define WDT_WCLR (WDT_BASE + 0x024) > +#define WDT_WCRR (WDT_BASE + 0x028) > +#define WDT_WLDR (WDT_BASE + 0x02C) > +#define WDT_WTGR (WDT_BASE + 0x030) > +#define WDT_WWPS (WDT_BASE + 0x034) > +#define WDT_WDLY (WDT_BASE + 0x044) > +#define WDT_WSPR (WDT_BASE + 0x048) > +#define WDT_WIRQEOI (WDT_BASE + 0x050) > +#define WDT_WIRQSTATRAW (WDT_BASE + 0x054) > +#define WDT_WIRQSTAT (WDT_BASE + 0x058) > +#define WDT_WIRQENSET (WDT_BASE + 0x05C) > +#define WDT_WIRQENCLR (WDT_BASE + 0x060) > +#define WDT_UNFREEZE (CTRL_BASE + 0x100) This should be using a struct like the other platforms do for wdt. [snip] > +/* needed by config_dmm() */ > +void enable_dmm_clocks(void) {} #ifndef the caller? > +void ddr_pll_config(unsigned int pll) > +{ > + writel(0x5, &(ddr_reg[pll])->cm0config); Magic value (0x5). [snip] > + main_pll_ctrl &= 0xFFFFFFFB; > + main_pll_ctrl |= 4; More magic. [snip] > +static void peripheral_enable(void) Lots more magic values in here. -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: