From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Thu, 26 Jan 2017 12:41:43 -0500 Subject: [U-Boot] [PATCH 6/7] ARM: k2g: setup PRU ethernet MAC addresses In-Reply-To: <1485436049-19754-7-git-send-email-rogerq@ti.com> References: <1485436049-19754-1-git-send-email-rogerq@ti.com> <1485436049-19754-7-git-send-email-rogerq@ti.com> Message-ID: <20170126174143.GC22316@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 Thu, Jan 26, 2017 at 03:07:28PM +0200, Roger Quadros wrote: > PRU ethernet MAC address range is present in the > board EEPROM. Parse it and setup eth?addr > environment variables. [snip] > +#ifdef CONFIG_BOARD_LATE_INIT > +int board_late_init(void) > +{ > + __maybe_unused int rc; > + > +#if !defined(CONFIG_SPL_BUILD) && defined(CONFIG_TI_I2C_BOARD_DETECT) Just move the #if up to include 'int rc' and we don't need to declare it __maybe_unused then. [snip] > +/* Board Detection EEPROM */ > +#define CONFIG_EEPROM_BUS_ADDRESS 0 > +#define CONFIG_EEPROM_CHIP_ADDRESS 0x50 Only dra7xx and am57xx use these CONFIG options currently, please migrate them to Kconfig instead of adding another board, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: