From mboxrd@z Thu Jan 1 00:00:00 1970 From: Timur Tabi Date: Sun, 22 Jun 2008 17:03:55 -0500 Subject: [U-Boot-Users] [PATCH v2] Update Freescale sys_eeprom.c to handle CCID formats In-Reply-To: <20080622134055.GQ1189@pengutronix.de> References: <1213973943-22779-1-git-send-email-timur@freescale.com> <20080622134055.GQ1189@pengutronix.de> Message-ID: <485ECC4B.7000801@freescale.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Robert Schwebel wrote: > Hi, > > On Fri, Jun 20, 2008 at 09:59:03AM -0500, Timur Tabi wrote: >> Update the sys_eeprom.c file to handle both NXID and CCID EEPROM formats. The >> NXID format replaces the older CCID format, but it's important to support both >> since most boards out there still use the CCID format. This change is in >> preparation for using one file to handle both formats. This will also unify >> EEPROM support for all Freescale 85xx and 86xx boards. >> >> Also update the 86xx board header files to use the standard CFG_I2C_EEPROM_ADDR >> instead of ID_EEPROM_ADDR. > > I don't know what NXID and CCID is, but have you seen Wolfram's proposal > for sub-devicetrees? > > http://ozlabs.org/pipermail/linuxppc-dev/2008-June/058263.html This doesn't apply. CCID and NXID are Freescale-custom layouts for data in an EEPROM. NXID replaces CCID. I suppose we could replace NXID with something FDT-based, like Wolfram's proposal, but for now my goal is clean up the code that supports the existing formats. > Our aim here is to put device tree sniplets into eeproms or flash areas; > we have several boards here that consist of > > - a module > - a base board > - maybe an extension board > > and having sub devicetrees would make it possible to simply put the > devicetree for each component into a piece of storage *on the > component*. So the bootloader and later Linux would be able to build the > whole tree from these sniplets. Sounds complicated and interesting. I might think about it some more later. -- Timur Tabi Linux Kernel Developer @ Freescale