All of lore.kernel.org
 help / color / mirror / Atom feed
From: Vladimir A. Gurevich <vag@paulidav.org>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] Microcode patches for mpc8xx
Date: Mon, 23 May 2005 00:14:34 -0700	[thread overview]
Message-ID: <429182DA.4090207@paulidav.org> (raw)
In-Reply-To: <20050522083835.856FCC1512@atlas.denx.de>

Hello Wolfgang,

Wolfgang Denk wrote:

>This is a neglected area  in  U-Boot;  usually  U-Boot  needs  little
>resources  and  uCode patches are needed at all. actually none of the
>existing configurations seems to use the code.
>  
>
Yes, I noticed that too and was a little suprised. At least SMC1/SCC3 or 
SPI/SCC2 combinations should not be that uncommon...

Does that mean it's OK to mess up cpu/mpc8xx/upatch.c? How would you 
like to ifdef the original code?

I think that CFG_{SPI,I2C}_UCODE_PATCH config variables  make little 
sense. Instead, we should rely on CFG_{I2C,SPI}_DPMEM_OFFSET (and add 
another one for SMC) as well as the CPU type to decide whether a patch 
is needed and if yes, which one. Also, the code in the corresponding 
drivers will be changed to use RPBASE based not on the  fact that patch 
is there, but on whether the feature is supported. This will take care 
of MPC852T, that doesn't need a patch for SPI/I2C, but still needs one 
for SMC1. Is that OK?

>You are right. See how it's implemented in our Linux tree.
>  
>
I should've probably asked that on linuxppc-embedded, but since we are 
on this topic here: look like SMC relocation is explicitly not supported 
and I can't see the SPI driver as well (unless it reuses 8260 driver). 
So, while the ucode support seems to be more elaborate, I am not sure I 
understand how it is used. I am talking about linuxppc_2_4_devel tree 
here. Am I missing something?

>This is what it's doing at the moment. One can ague if this is a good idea or not.
>  
>
That's probably the safest way, though probably not the most efficient 
or elegant one.

Thanks,
Vladimir

  parent reply	other threads:[~2005-05-23  7:14 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-22  5:55 [U-Boot-Users] Microcode patches for mpc8xx Vladimir A. Gurevich
2005-05-22  8:38 ` Wolfgang Denk
2005-05-22 17:14   ` Thomas Lange
2005-05-22 20:02     ` Wolfgang Denk
2005-05-22 18:02   ` Dan Malek
2005-05-22 20:06     ` Wolfgang Denk
2005-05-23  7:14   ` Vladimir A. Gurevich [this message]
2005-05-23  8:28     ` Wolfgang Denk
2005-05-23 13:46       ` Vladimir A. Gurevich
2005-05-23 20:30         ` 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=429182DA.4090207@paulidav.org \
    --to=vag@paulidav.org \
    --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.