From: Wolfgang Denk Date: Wed, 08 Jul 2009 20:59:26 +0200 Subject: [U-Boot] bootcount support on arm/kirkwood In-Reply-To: <73173D32E9439E4ABB5151606C3E19E202DD54DE86@SC-VEXCH1.marvell.com> References: <73173D32E9439E4ABB5151606C3E19E202DD54DE86@SC-VEXCH1.marvell.com> Message-ID: <20090708185926.CB0CB832E416@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Prafulla Wadaskar, In message <73173D32E9439E4ABB5151606C3E19E202DD54DE86@SC-VEXCH1.marvell.com> you wrote: > > > I searched for some space on this CPU for implementing this > > feature, but could not find any (at least 4 bytes = 1 > > register), which not lost his value on a reset of this CPU. > There is reset counter register on Kirkwood which counts the time for which H/w Reset is pressed-n-hold. This is generally used to trigger "Factory Reset" Kind of function using reset key. > > I don't think you are searching for the same. Do you? No, he doesn't. He needs a register that is guaranteed to keep it''s values across a processor reset. > BTW: What's your end use case? The boot counter counts the number of (failed) boot attempts (i. e. processor resets minus one) after power on. See http://www.denx.de/wiki/view/DULG/UBootBootCountLimit Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de PLEASE NOTE: Some Quantum Physics Theories Suggest That When the Con- sumer Is Not Directly Observing This Product, It May Cease to Exist or Will Exist Only in a Vague and Undetermined State.