From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Roese Date: Thu, 30 Aug 2012 16:15:19 +0200 Subject: [U-Boot] Problems with a P2020 board In-Reply-To: References: <95DC1AA8EC908B48939B72CF375AA5E30532A982FA@alice.at.omicron.at> Message-ID: <503F7577.4020704@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 On 08/30/2012 03:12 PM, Joakim Tjernlund wrote: >> - Boot Count. We are keen to use the boot counter feature, but I >> am struggling to find a suitable register in the P2020. The file >> arch/powerpc/lib/bootcount.c list a few locations that work with >> other PowerPC chips, but I can't find any of those registers in the >> P2020 documentation. > > Me too on finding such a register. If you don't have such registers, a bit of reserved SDRAM might be a solution. That already implemented for some boards. See bootcount_store() and bootcount_load() in: board/keymile/km_arm/km_arm.c This "RAM bootcount driver" will be moved to a common location by the bootcount consolidation patches that are pending. Thanks, Stefan