From: Florian Fainelli Date: Thu, 7 Jun 2018 09:54:11 -0700 Subject: [U-Boot] [PATCH v3 1/1] board: arm: Add support for Broadcom BCM7445 In-Reply-To: <7357ba59e5f71037a5c628dc5d3efe371eb2298a.1528297389.git.fitzsim@fitzsim.org> References: <7357ba59e5f71037a5c628dc5d3efe371eb2298a.1528297389.git.fitzsim@fitzsim.org> Message-ID: <253ca2bc-3a6c-0086-87e1-8914d391a416@gmail.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 06/06/2018 11:35 AM, Thomas Fitzsimmons wrote: > Add support for loading U-Boot on the Broadcom 7445 SoC. This port > assumes Broadcom's BOLT bootloader is acting as the second stage > bootloader, and U-Boot is acting as the third stage bootloader, loaded > as an ELF program by BOLT. > > Signed-off-by: Thomas Fitzsimmons > Cc: Stefan Roese > Cc: Tom Rini > Cc: Florian Fainelli > --- Looks good, still some minor comments about the choice of representation for physical addresses of peripherals, see below. > +config BCMSTB_TIMER_LOW > + hex "Address of BCMSTB timer low register" > + default 0xf0412008 This looks very simplistic here since the CPU system control timer is a 64-bit timer. I am really not a big fan of all of those configurable addresses which are a) fixed given a specific SoC family (7445, 7439 etc.) and b) are error prone because we let an user change those without necessarily knowing what is the implication. I really think sticking those constants into a header file would be much more appropriate. > +void enable_caches(void) > +{ > + /* > + * Nothing required here, since the prior stage bootloader has > + * enabled I-cache and D-cache already. Implementing this > + * function silences the warning in the default function. > + */ This heavily depends on how you load your binary from BOLT, so you must be careful about this statement here. -- Florian