From: Peter Korsgaard Date: Wed, 15 May 2013 22:43:19 +0200 Subject: [U-Boot] [PATCH v2 5/7] am335x_evm: Rework board_is_foo() checks In-Reply-To: <1368469719-22406-5-git-send-email-trini@ti.com> (Tom Rini's message of "Mon, 13 May 2013 14:28:37 -0400") References: <1368469719-22406-1-git-send-email-trini@ti.com> <1368469719-22406-5-git-send-email-trini@ti.com> Message-ID: <87vc6knfdk.fsf@dell.be.48ers.dk> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de >>>>> "Tom" == Tom Rini writes: Tom> We rework the various board_is_foo() checks to take a pointer to Tom> struct am335x_baseboard_id rather than using a local copy in board.c. Tom> This allows us to make use of the same checks in mux.c as well as fixing Tom> problems when this code could be running from read-only memory. Tom> Signed-off-by: Tom Rini Reviewed-by: Peter Korsgaard -- Bye, Peter Korsgaard