From: Detlev Zundel Date: Wed, 13 Apr 2011 13:48:59 +0200 Subject: [U-Boot] [PATCH v2] MX51: mx51evk: Use struct to access SRSR register instead of offset In-Reply-To: <1302665771-13658-1-git-send-email-festevam@gmail.com> (Fabio Estevam's message of "Wed, 13 Apr 2011 00:36:11 -0300") References: <1302665771-13658-1-git-send-email-festevam@gmail.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Fabio, > Use struct to access SRSR register instead of offset. While at it mask > the 7 bits of SRSR for correctness. > > Signed-off-by: Fabio Estevam The SRSR is a MX51 register and thus not board specific. Can we please move this reset cause detection into common mx51 code so other boards will profit from it also? Thanks Detlev -- (7) It is always something (7a) (corollary). Good, Fast, Cheap: Pick any two (you can't have all three). -- The Twelve Networking Truths (RFC 1925) -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: dzu at denx.de