From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Gorsulowski Date: Thu, 11 Feb 2010 08:38:42 +0100 Subject: [U-Boot] [PATCH 5/9 V4] convert common files to new SoC access In-Reply-To: <4B7297BA.8080001@esd.eu> References: <4B5AD783.7080904@scharsoft.de> <4B69EED2.8040604@scharsoft.de> <4B7297BA.8080001@esd.eu> Message-ID: <4B73B402.4050201@esd.eu> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Daniel Gorsulowski wrote: > Hello Jens, > > Jens Scharsig wrote: >> * add's a warning to all files, which need update to new SoC access >> * convert common files in cpu/../at91 and a lot of drivers to use >> c stucture SoC access >> >> >> Signed-off-by: Jens Scharsig > > > >> diff --git a/drivers/i2c/soft_i2c.c b/drivers/i2c/soft_i2c.c >> index 9a48783..e0cf1e1 100644 >> --- a/drivers/i2c/soft_i2c.c >> +++ b/drivers/i2c/soft_i2c.c >> @@ -30,14 +30,15 @@ >> #include >> #include >> #endif >> -#ifdef CONFIG_AT91RM9200 /* need this for the at91rm9200 */ >> +#if defined(CONFIG_AT91RM9200) || \ >> + defined(CONFIG_AT91SAM9260) || defined(CONFIG_AT91SAM9261) || \ >> + defined(CONFIG_AT91SAM9263) >> #include >> #include >> -#endif >> -#ifdef CONFIG_AT91SAM9263 /* only valid for AT91SAM9263 */ >> -#include > Please don't remove this include. It breaks build on AT91SAM9263 boards who have > CONFIG_AT91_LEGACY enabled. (e.g. new otc570 board) >> +#include >> +#ifdef CONFIG_AT91_LEGACY >> #include >> -#include > dito >> +#endif >> #endif >> #ifdef CONFIG_IXP425 /* only valid for IXP425 */ >> #include I Updated my otc570 board to new SoC access, hence these includes are not needed anymore. I can ack this patch as it is. Best regards, Daniel Gorsulowski