All of lore.kernel.org
 help / color / mirror / Atom feed
From: 刘辉 <liuhuicumt@tom.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] can't light led after flash restrict to preliminary range
Date: Fri, 29 Jul 2005 17:34:46 +0800	[thread overview]
Message-ID: <E1DyRGb-00046C-9I@mail.sourceforge.net> (raw)

hello all:
	
	I am new for U-boot and try to port uboot base one TQM866M to my board. I meet a problem and I don't know how to sovle it. Here is the situation:
	
	I light a led in cup_init.c -> cpu_init_f( ) as flow:

[174]	led_init(0x7);	/* here is my light led function*/
[175]	/* now restrict to preliminary range */
[176]	memctl->memc_br0 = CFG_BR0_PRELIM;
[177]	memctl->memc_or0 = CFG_OR0_PRELIM;

	And I succeed. But when i move the led function down to line 177 or even to 176, the led doesn't work, as flows:

[174]	/* now restrict to preliminary range */
[175]	memctl->memc_br0 = CFG_BR0_PRELIM;
[176]	led_init(0x7);	/* here is my light led function*/
[177]	memctl->memc_or0 = CFG_OR0_PRELIM;

	Here is the short discription of my board:
	MPC859DSL
	OSCLK
	AM29lv320mb * 1, CS0, 4MByte
	IC42S16800-t *2, CS1, 32Mbyte

	I didn't change any words of the tqm866.h, because I thing that:
	1. althoung I have only one flash chip, while tqm866m has tow and memc_or1 was set in line 168, but it doesn't take into use.
	2. the or and br belong to ram don't take into use at this moment, too.

	i don't have a debuger like IDE2000, so i was so confused. 
	hope you can help me.

	regards.

             reply	other threads:[~2005-07-29  9:34 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-29  9:34 刘辉 [this message]
2005-07-29 10:49 ` [U-Boot-Users] can't light led after flash restrict to preliminary range Wolfgang Denk

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=E1DyRGb-00046C-9I@mail.sourceforge.net \
    --to=liuhuicumt@tom.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.