From: Dirk Behme <dirk.behme@googlemail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [ARM] TI DaVinci (TMS320DM644x) support [5/5]
Date: Mon, 06 Aug 2007 18:59:27 +0200 [thread overview]
Message-ID: <46B7536F.8000708@googlemail.com> (raw)
In-Reply-To: <Pine.LNX.4.64ksi.0708051732040.21187@home-gw.koi8.net>
ksi at koi8.net wrote:
> Signed-off-by: Sergey Kubushyn <ksi@koi8.net>
...
> 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 <cmd_confdefs.h>
- 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
next prev parent reply other threads:[~2007-08-06 16:59 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-06 0:33 [U-Boot-Users] [ARM] TI DaVinci (TMS320DM644x) support [5/5] ksi at koi8.net
2007-08-06 16:59 ` Dirk Behme [this message]
2007-08-06 17:52 ` Jon Loeliger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=46B7536F.8000708@googlemail.com \
--to=dirk.behme@googlemail.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.