From: Andreas =?iso-8859-1?q?M=FCller?= Date: Thu, 15 Dec 2011 00:00:00 +0100 Subject: [U-Boot] [PATCH] overo: add SPL support In-Reply-To: References: <1323880052-2463-1-git-send-email-schnitzeltony@gmx.de> Message-ID: <201112150000.00987.schnitzeltony@gmx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wednesday, December 14, 2011 06:24:13 PM you wrote: > > I think you will also need to update the get_board_revision function > to ensure that SPL works with very early Overo revisions. > > Note this excerpt from the X-loader get_board_revision funtion: > > /* board revisions <= R2410 connect 4030 irq_1 to gpio112 */ > /* these boards should return a revision number of 0 */ > /* the code below forces a 4030 RTC irq to ensure that gpio112 is low */ > #ifdef CONFIG_DRIVER_OMAP34XX_I2C > i2c_init(CFG_I2C_SPEED, CFG_I2C_SLAVE); > data = 0x01; > i2c_write(0x4B, 0x29, 1, &data, 1); > data = 0x0c; > i2c_write(0x4B, 0x2b, 1, &data, 1); > i2c_read(0x4B, 0x2a, 1, &data, 1); > #endif > > Yup, ugly, but this is the only way to detect revision properly on those > boards. That explains why my Rev0-board is sometimes detected with Rev 1 and the whole i2c stuff is not working because it was not initialized in u-boot :) will prepare V2 & test tomorrow & thanks for this hint! Andreas