From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Warren Date: Thu, 28 Mar 2013 09:10:43 -0600 Subject: [U-Boot] [PATCH] ARM: bcm2835: fix get_timer() to return mS In-Reply-To: <20130328100014.074eebc8@lilith> References: <1363923150-12493-1-git-send-email-swarren@wwwdotorg.org> <20130328100014.074eebc8@lilith> Message-ID: <51545D73.4030806@wwwdotorg.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 03/28/2013 03:00 AM, Albert ARIBAUD wrote: > Hi Stephen, > > On Thu, 21 Mar 2013 21:32:30 -0600, Stephen Warren > wrote: > >> Apparently, CONFIG_SYS_HZ must be 1000. Change this, and fix the timer >> driver to conform to this. > > Is this a fix to some known issue or bug? Yes. The bootdelay timeout implementation was recently(?) changed and the new code doesn't use CONFIG_SYS_HZ at all, but rather assumes that it's 1000. Since rpi_b's SYS_HZ was 1000000, the bootdelay runs by far too fast. This fixes that.