From: Jesper Skov <jskov@cambridge.redhat.com>
To: Andre Sebastien <sebastien.andre@sxb.bsf.alcatel.fr>
Cc: ecos-discuss@sources.redhat.com
Subject: Re: [ECOS] RedBoot RAM version problem
Date: Mon, 30 Jul 2001 01:57:00 -0000 [thread overview]
Message-ID: <otitgax0a5.fsf@zoftcorp.adsl.dk> (raw)
In-Reply-To: <3B651CEF.83619A08@sxb.bsf.alcatel.fr>
>>>>> "Andre" == Andre Sebastien <sebastien.andre@sxb.bsf.alcatel.fr> writes:
Andre> Hi everybody !! So i try to increase a pause in this function
Andre> : 'void flash_dev_query(void* data)'
Wrong place. You want to tweak this function:
//----------------------------------------------------------------------------
// Flash Query
//
// Only reads the manufacturer and part number codes for the first
// device(s) in series. It is assumed that any devices in series
// will be of the same type.
void
flash_query(void* data)
{
volatile flash_data_t *ROM;
flash_data_t* id = (flash_data_t*) data;
int i;
ROM = (volatile flash_data_t*) CYGNUM_FLASH_BASE;
ROM[FLASH_Setup_Addr1] = FLASH_Setup_Code1;
ROM[FLASH_Setup_Addr2] = FLASH_Setup_Code2;
ROM[FLASH_Setup_Addr1] = FLASH_Read_ID;
// FIXME: 10ms delay
for (i = 10000; i > 0; i--);
// Manufacturers' code
id[0] = ROM[0];
// Part number
id[1] = ROM[1];
ROM[FLASH_Setup_Addr1] = FLASH_Setup_Code1;
ROM[FLASH_Setup_Addr2] = FLASH_Setup_Code2;
ROM[FLASH_Setup_Addr1] = FLASH_Read_ID_Exit;
// FIXME: 10ms delay
for (i = 10000; i > 0; i--);
}
it's in devs/flash/atmel.../flash_at29cxxxx.inl
Jesper
next prev parent reply other threads:[~2001-07-30 1:57 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-07-26 7:27 [ECOS] Hardware Watchdog Doug Fraser
2001-07-26 7:51 ` Christoph Csebits
2001-07-26 8:50 ` Gary Thomas
2001-07-26 9:20 ` Christoph Csebits
2001-07-26 9:25 ` Gary Thomas
2001-07-26 11:30 ` Robin Farine
2001-07-26 23:26 ` Christoph Csebits
2001-07-26 23:57 ` Robin Farine
2001-07-27 1:28 ` Christoph Csebits
2001-07-27 1:50 ` Robin Farine
2001-07-27 2:50 ` [ECOS] RedBoot RAM version problem Andre Sebastien
2001-07-27 3:35 ` Jesper Skov
2001-07-27 5:20 ` Andre Sebastien
2001-07-27 6:20 ` Jesper Skov
2001-07-27 7:30 ` Andre Sebastien
2001-07-27 7:54 ` Gary Thomas
2001-07-30 1:38 ` Andre Sebastien
2001-07-30 1:57 ` Jesper Skov [this message]
2001-07-30 2:29 ` Andre Sebastien
2001-07-30 3:03 ` Jesper Skov
2001-07-30 3:07 ` Andre Sebastien
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=otitgax0a5.fsf@zoftcorp.adsl.dk \
--to=jskov@cambridge.redhat.com \
--cc=ecos-discuss@sources.redhat.com \
--cc=sebastien.andre@sxb.bsf.alcatel.fr \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).