From mboxrd@z Thu Jan 1 00:00:00 1970 From: Igor Grinberg Date: Thu, 14 Aug 2014 09:59:30 +0300 Subject: [U-Boot] [PATCH V2 17/18] arm: mx6: cm_fx6: use eeprom In-Reply-To: <1407690780-19645-9-git-send-email-nikita@compulab.co.il> References: <1407690780-19645-1-git-send-email-nikita@compulab.co.il> <1407690780-19645-9-git-send-email-nikita@compulab.co.il> Message-ID: <53EC5E52.4010609@compulab.co.il> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 08/10/14 20:12, Nikita Kiryanov wrote: > Use Compulab eeprom module to obtain revision number, serial number, and > mac address from the EEPROM. > > Cc: Igor Grinberg > Cc: Stefano Babic > Cc: Tom Rini > Signed-off-by: Nikita Kiryanov > --- > Changes in V2: > - No changes > > board/compulab/cm_fx6/cm_fx6.c | 26 +++++++++++++++++++++++++- > include/configs/cm_fx6.h | 2 ++ > 2 files changed, 27 insertions(+), 1 deletion(-) > > diff --git a/board/compulab/cm_fx6/cm_fx6.c b/board/compulab/cm_fx6/cm_fx6.c > index 1b967e5..76d7430 100644 > --- a/board/compulab/cm_fx6/cm_fx6.c > +++ b/board/compulab/cm_fx6/cm_fx6.c [...] > @@ -348,5 +372,5 @@ int dram_init(void) > > u32 get_board_rev(void) > { > - return 100; > + return cl_eeprom_get_board_rev(); > } I would expect this function to be introduced here and not before this patch - along with I2C support and CONFIG_REVISION_TAG. > diff --git a/include/configs/cm_fx6.h b/include/configs/cm_fx6.h > index 0aa88fd..adfd55e 100644 > --- a/include/configs/cm_fx6.h > +++ b/include/configs/cm_fx6.h > @@ -236,6 +236,8 @@ > #define CONFIG_SYS_BOOTMAPSZ (8 << 20) > #define CONFIG_SETUP_MEMORY_TAGS > #define CONFIG_INITRD_TAG > +#define CONFIG_REVISION_TAG > +#define CONFIG_SERIAL_TAG > > /* misc */ > #define CONFIG_SYS_GENERIC_BOARD > -- Regards, Igor.