From: Timur Tabi <timur@freescale.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] cpu_init.c: qe_config_ioports not being called?
Date: Wed, 10 Jan 2007 13:09:11 -0600 [thread overview]
Message-ID: <45A539D7.4000206@freescale.com> (raw)
In-Reply-To: <000e01c734e4$e2bea040$6405a8c0@absolut>
Russell McGuire wrote:
> I placed some printf()?s in the function to see if it was getting
> called, and no printouts.
That's because cpu_init_f() is called before the serial port is enabled.
> So my question is, why isn?t the ?config_qe_ioports()? getting called
> inside the mpc83xx/cpu_init_f.
>
> Is perhaps cpu_init_f() not getting called? Stumped here?
Just FYI, here's a trick to make sure the compiler is thinking the same thing
you are:
Modify cpu_init_f() like this:
#ifdef CONFIG_QE
asdlfhasdfkjlhgasdfiuge
/* Config QE ioports */
config_qe_ioports();
#endif
The compiler will generate a syntax error on the garbage characters you insert,
if it compiles that code. If U-Boot builds fine, then you know that CONFIG_QE
is not defined at that point in the code, or cpu_init.c is not being compiled at
all.
> U-boot seems to work fine otherwise, it boots completely into RAM and
> relocates, etc? I can use the md command and query the ioports and see
> the settings are not taking effect.
cpu_init_r() has further QE initialization, and printfs work in that function.
Check to see if it is being called.
--
Timur Tabi
Linux Kernel Developer @ Freescale
prev parent reply other threads:[~2007-01-10 19:09 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-10 18:26 [U-Boot-Users] cpu_init.c: qe_config_ioports not being called? Russell McGuire
2007-01-10 19:09 ` Timur Tabi [this message]
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=45A539D7.4000206@freescale.com \
--to=timur@freescale.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox