From: Jean-Christophe PLAGNIOL-VILLARD Date: Sun, 9 Nov 2008 16:05:11 +0100 Subject: [U-Boot] [PATCH 12/13 v5] ARM: OMAP3: Add Overo board In-Reply-To: <490df3f7.0b38560a.129d.ffff99aa@mx.google.com> References: <490df3da.1438560a.2e2d.31f5@mx.google.com> <490df3f7.0b38560a.129d.ffff99aa@mx.google.com> Message-ID: <20081109150511.GG25307@game.jcrosoft.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de + > +/****************************************************************************** > + * Routine: misc_init_r > + * Description: Init ethernet (done here so udelay works) > + *****************************************************************************/ > +int misc_init_r(void) > +{ > + > + unsigned char byte; > + > +#ifdef CONFIG_DRIVER_OMAP34XX_I2C > + i2c_init(CONFIG_SYS_I2C_SPEED, CONFIG_SYS_I2C_SLAVE); > +#endif > + /* set vaux2 to 2.8V */ > + byte = 0x20; > + i2c_write(0x4B, 0x76, 1, &byte, 1); > + byte = 0x09; > + i2c_write(0x4B, 0x79, 1, &byte, 1); > + > + /* set vaux3 to 2.8V */ > + byte = 0x20; > + i2c_write(0x4B, 0x7A, 1, &byte, 1); > + byte = 0x03; > + i2c_write(0x4B, 0x7D, 1, &byte, 1); > + > + /* set vpll2 to 1.8V */ > + byte = 0xE0; > + i2c_write(0x4B, 0x8E, 1, &byte, 1); > + byte = 0x05; > + i2c_write(0x4B, 0x91, 1, &byte, 1); > + > + /* set VDAC to 1.8V */ > + byte = 0x20; > + i2c_write(0x4B, 0x96, 1, &byte, 1); > + byte = 0x03; > + i2c_write(0x4B, 0x99, 1, &byte, 1); > + > + byte = 0x33; > + i2c_write(0x4A, 0xEE, 1, &byte, 1); as beagle board please add a comment a comment to explain what you do on I2C > + > + *((uint *) 0x49058034) = 0xFFFFFAF9; > + *((uint *) 0x49056034) = 0x0F9F0FFF; > + *((uint *) 0x49058094) = 0x00000506; > + *((uint *) 0x49056094) = 0xF060F000; > + > + return 0; > +} Best Regards, J.