From mboxrd@z Thu Jan 1 00:00:00 1970 From: Timur Tabi Date: Thu, 29 Mar 2007 13:11:12 -0500 Subject: [U-Boot-Users] i2c_set_bus_num In-Reply-To: References: Message-ID: <460C0140.80400@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 Dongying_Xu at us.alphanetworks.com wrote: > > Kim, > > Thanks. When I defined CFG_SPD_BUS_NUM 1 in my header file, things are > much better. Though I don't understand why this definition will help. > I read the "Initial Stack, Global Data" part in Readme, It looks that > Initialized global data is read-only, if this is the case, then It > should fail when I try to set I2c bus num to 0, but it worked. Could > you please explain a little bit? Thanks If you call i2c_set_bus_num() before DDR is initialized, it will fail. If you call i2c_set_bus_num() after DDR is initialized, it will succeed. -- Timur Tabi Linux Kernel Developer @ Freescale