From: Kim Phillips Date: Wed, 28 Jan 2009 20:12:06 -0600 Subject: [U-Boot] [PATCH 31/31] 83xx, kmeter1: added bootcount feature In-Reply-To: <4980282E.3020109@denx.de> References: <4980282E.3020109@denx.de> Message-ID: <20090128201206.f9b4959d.kim.phillips@freescale.com> 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, 28 Jan 2009 10:41:02 +0100 Heiko Schocher wrote: > diff --git a/cpu/mpc83xx/cpu.c b/cpu/mpc83xx/cpu.c > +#ifdef CONFIG_BOOTCOUNT_LIMIT > + > +#if !defined(CONFIG_BOOTCOUNT_ADDR) > +#define CONFIG_BOOTCOUNT_ADDR 0x11bff8 it's CONFIG_SYS and magic number, but now that I've found it, sorry, I can't accept this - not all 83xx have a QE and thus this MURAM. Even if they did this would require changing the device tree muram node property, to indicate its size has shrunk 8 bytes, right? In fact, not all QE's have 48Kbytes of MURAM either - the 8323 only has 16Kbytes. Problem is, I don't know of a better place to put the bootcount. Ideas? Kim