From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Fri, 14 Mar 2014 10:17:13 -0400 Subject: [U-Boot] [PATCH v1 4/9] sunxi: initial generic sun7i cpu, board and start of day support In-Reply-To: <1394793231-11922-4-git-send-email-ijc@hellion.org.uk> References: <1394793212.13270.89.camel@hastur.hellion.org.uk> <1394793231-11922-4-git-send-email-ijc@hellion.org.uk> Message-ID: <20140314141713.GH16360@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Fri, Mar 14, 2014 at 10:33:46AM +0000, Ian Campbell wrote: [snip] > +/* The sunxi internal brom will try to loader external bootloader > + * from mmc0, nannd flash, mmc2. Typo. > +#ifdef CONFIG_SPL_BUILD > +void sunxi_board_init(void) > +{ > + int power_failed = 0; > + unsigned long ramsize; > + > + printf("DRAM:"); > + ramsize = sunxi_dram_init(); > + if (!ramsize) { > + printf(" ?"); > + ramsize = sunxi_dram_init(); > + } > + if (!ramsize) { > + printf(" ?"); > + ramsize = sunxi_dram_init(); > + } We have to try 3 times? What? > + /* > + * Only clock up the CPU to full speed if we are reasonably > + * assured it's being powered with suitable core voltage > + */ > + if (!power_failed) > + clock_set_pll1(912000000); Define that please. -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: