From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dirk Behme Date: Mon, 06 Aug 2007 18:59:27 +0200 Subject: [U-Boot-Users] [ARM] TI DaVinci (TMS320DM644x) support [5/5] In-Reply-To: References: Message-ID: <46B7536F.8000708@googlemail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de ksi at koi8.net wrote: > Signed-off-by: Sergey Kubushyn ... > diff -purN u-boot.git.orig/include/configs/davinci.h u-boot.git/include/configs/davinci.h > --- u-boot.git.orig/include/configs/davinci.h 1969-12-31 16:00:00.000000000 -0800 > +++ u-boot.git/include/configs/davinci.h 2007-08-05 16:19:52.000000000 -0700 ... > +/*===========================================================================*/ > +/* Board, choose one */ > +/*===========================================================================*/ > +#define DV_EVM > +/* > +#define DV_EVM > +#define SONATA_BOARD > +#define SCHMOOGIE > +*/ ... > +#ifdef SONATA_BOARD > +#define CFG_FLASH_SECT_SZ 0x20000 /* 128KB sect size AMD Flash */ > +#define CFG_ENV_OFFSET (CFG_FLASH_SECT_SZ*2) > +#elif defined(DV_EVM) > +#define CFG_FLASH_SECT_SZ 0x10000 /* 64KB sect size AMD Flash */ > +#define CFG_ENV_OFFSET (CFG_FLASH_SECT_SZ*3) > +#else > +#error "Unknown board in NOR Flash config (davinci.h) !!!" > +#endif - Can you please check if this really compiles for all three boards, especially for SCHMOOGIE? - I vote for at least having three config files, one for each board (as done by my patch ;) ). > +/*=================*/ > +/* U-Boot commands */ > +/*=================*/ > +#define COMMON_CMD_SET (CONFIG_CMD_DFL |\ > + CFG_CMD_PING |\ > + CFG_CMD_DHCP |\ > + CFG_CMD_I2C |\ > + CFG_CMD_DIAG |\ > + CFG_CMD_ASKENV |\ > + CFG_CMD_SAVES |\ > + CFG_CMD_MII) > +#ifdef CFG_USE_NAND > +#define CUSTOM_CMD_SET ((COMMON_CMD_SET |\ > + CFG_CMD_NAND) &\ > + ~(CFG_CMD_FLASH |\ > + CFG_CMD_IMLS)) > +#elif defined(CFG_USE_NOR) > +#define CUSTOM_CMD_SET ((COMMON_CMD_SET |\ > + CFG_CMD_FLASH |\ > + CFG_CMD_JFFS2) &\ > + ~(CFG_CMD_NAND)) > +#else > +#error "Either CFG_USE_NAND or CFG_USE_NOR _MUST_ be defined !!!" > +#endif > +#ifdef SCHMOOGIE > +#define CONFIG_COMMANDS ((CUSTOM_CMD_SET) |\ > + (CFG_CMD_DATE)) > +#elif defined(DV_EVM) || defined(SONATA_BOARD) > +#define CONFIG_COMMANDS ((CUSTOM_CMD_SET) |\ > + (CFG_CMD_EEPROM)) > +#else > +#define CONFIG_COMMANDS (CUSTOM_CMD_SET) > +#endif > +/* this must be included AFTER the definition of CONFIG_COMMANDS (if any) */ > +#include - I had to learn that recent git update from today needs update to this stuff (there is no cmd_confdefs.h any more). So, with git from yesterday, Sunday, this still works, but recent git update needs an update of this as well. See e.g. http://www.denx.de/cgi-bin/gitweb.cgi?p=u-boot.git;a=commitdiff;h=a5cb23092a7d31490a33d4ec871468b63babfa3c Best regards Dirk