From: Wolfgang Denk Date: Sun, 25 Nov 2012 20:47:29 +0100 Subject: [U-Boot] [PATCH 03/22] ARM sunxi: I2C driver In-Reply-To: <1353843526.17518.15.camel@home.hno.se> References: <1353843526.17518.15.camel@home.hno.se> Message-ID: <20121125194729.7EC4D20105B@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Henrik Nordstr?m, In message <1353843526.17518.15.camel@home.hno.se> you wrote: > A basic basic driver for the I2C controller found in Allwinner > sunXi (A10 & A13) SoCs. > > Signed-off-by: Henrik Nordstrom > Signed-off-by: Stefan Roese ??? > +static struct i2c __attribute__ ((section(".data"))) *i2c_base = > + (struct i2c *)0x1c2ac00; Why would the __attribute__ ((section(".data"))) be needed here??? > + while ((readl(&i2c_base->reset) & TWI_SRST_SRST)) > + ; No timeout? Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Ernest asks Frank how long he has been working for the company. "Ever since they threatened to fire me."