From: Po-Yu Chuang Date: Thu, 28 Apr 2011 15:47:06 +0800 Subject: [U-Boot] [PATCH v3 4/4] ftsmc020: move ftsmc020 static mem controller to driver/mtd In-Reply-To: References: <1302939431-27337-1-git-send-email-macpaul@andestech.com> <1302939431-27337-4-git-send-email-macpaul@andestech.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Macpaul, On Thu, Apr 28, 2011 at 3:33 PM, Macpaul Lin wrote: > Hi Po-Yu, > > 2011/4/28 Po-Yu Chuang : >> Hi Macpaul, >> >>> -#include >>> +#define CONFIG_FTSMC020 This is for drivers/mtd/Makefile. >>> +#include >>> >>> ?#define FTSMC020_BANK0_CONFIG ?(FTSMC020_BANK_ENABLE ? ? ? ? ? ? | ? ? \ >>> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? FTSMC020_BANK_BASE(PHYS_FLASH_1) | ? ? \ >>> @@ -196,6 +197,7 @@ >>> ? ? ? ?{ FTSMC020_BANK0_CONFIG, FTSMC020_BANK0_TIMING, }, ? ? ?\ >>> ? ? ? ?{ FTSMC020_BANK1_CONFIG, FTSMC020_BANK1_TIMING, }, ? ? ?\ >>> ?} >>> +#endif /* CONFIG_FTSMC020 */ >> >> Looks like this #endif is unnecessary? > > At the time the patch has been generated, I could bulid a320evb. > I'm not in the office in these 2 days. > Could I check it and reply to you later? > > According to your reply, I guess I was meant to support > #define CONFIG_FTSMC020 in board's config file. > > I'll check it later after 10:00 in Taiwan time. Sorry. After removed the #endif line, it builds again. I will submit a simple patch. Please check it later. Thanks, :-) Po-Yu Chuang