From: Timur Tabi <timur@freescale.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] Please pull from 'mpc83xx' branch
Date: Thu, 14 Dec 2006 16:18:47 -0600 [thread overview]
Message-ID: <4581CDC7.5070804@freescale.com> (raw)
In-Reply-To: <Pine.LNX.4.64.0612051550420.12871@gate.crashing.org>
Kumar Gala wrote:
> Please pull from 'mpc83xx' branch of
> git://git.kernel.org/pub/scm/boot/u-boot/galak/u-boot.git
Unfortunately, I'm going to have to NACK one of these patches, "Fix config of
Arbiter, System Priority, and Clock Mode on MPC83xx".
I just noticed the problem with this patch. It will work for the 8349ITX, but
it will break the 8349EMDS and TQM834x.
> #ifdef CFG_SCCR_TSEC1CM
> /* TSEC1 clock mode */
> - im->clk.sccr = (im->clk.sccr & ~SCCR_TSEC1CM) | (1 << SCCR_TSEC1CM_SHIFT);
> + im->clk.sccr = (im->clk.sccr & ~SCCR_TSEC1CM) | (CFG_SCCR_TSEC1CM << SCCR_TSEC1CM_SHIFT);
> #endif
This works as long as CFG_SCCR_TSEC1CM is between 0 and 4. But look what the
MPC8349EMDS.h has:
#define CFG_SCCR_INIT (SCCR_DEFAULT & (~SCCR_CLK_MASK))
#define CFG_SCCR_TSEC1CM SCCR_TSEC1CM_1 /* TSEC1 clock setting */
#define CFG_SCCR_TSEC2CM SCCR_TSEC2CM_1 /* TSEC2 clock setting */
#define CFG_SCCR_ENCCM SCCR_ENCCM_3 /* ENC clock setting */
#define CFG_SCCR_USBCM SCCR_USBCM_3 /* USB clock setting */
#define CFG_SCCR_VAL ( CFG_SCCR_INIT \
| CFG_SCCR_TSEC1CM \
| CFG_SCCR_TSEC2CM \
| CFG_SCCR_ENCCM \
| CFG_SCCR_USBCM )
SCCR_TSEC1CM_1 is defined in mpc83xx.h:
#define SCCR_TSEC1CM_1 0x40000000
So the patch for mpc83xx/cpu_init.c needs to include changes to MPC8349EMDS.h
and TQM834x.h.
But that's not the only problem. cpu_init_f() does not have any code that uses
these two defines in MPC8349EMDS.h and TQM834x.h:
#define CFG_SCCR_ENCCM SCCR_ENCCM_3 /* ENC clock setting */
#define CFG_SCCR_USBCM SCCR_USBCM_3 /* USB clock setting */
Which means that currently, these bitfields aren't being set at all! If you try
to load the Linux USB driver on an 8349EMDS, the driver will hang at boot time.
I'm working on follow-up patches to fix this.
--
Timur Tabi
Linux Kernel Developer @ Freescale
next prev parent reply other threads:[~2006-12-14 22:18 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-05 21:51 [U-Boot-Users] Please pull from 'mpc83xx' branch Kumar Gala
2006-12-14 22:18 ` Timur Tabi [this message]
2006-12-14 22:44 ` Kumar Gala
2006-12-14 22:47 ` Timur Tabi
-- strict thread matches above, loose matches on Subject: below --
2007-01-30 21:34 Kumar Gala
2007-01-30 22:37 ` Wolfgang Denk
2007-01-30 22:49 ` Timur Tabi
2007-01-30 22:55 ` Kumar Gala
2007-01-31 0:26 ` Wolfgang Denk
2007-01-31 23:04 ` Timur Tabi
2007-02-01 4:26 ` Kumar Gala
2007-02-01 16:06 ` Timur Tabi
2007-02-01 16:39 ` Kumar Gala
2007-02-01 17:18 ` Timur Tabi
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=4581CDC7.5070804@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