From: Stefan Roese <sr@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v3] Add "cpu_config" command for PPC4xx bootstrap configuration
Date: Sun, 19 Jul 2009 19:03:06 +0200 [thread overview]
Message-ID: <200907191903.07051.sr@denx.de> (raw)
In-Reply-To: <200907191323.50125.matthias.fuchs@esd.eu>
On Sunday 19 July 2009 13:23:49 Matthias Fuchs wrote:
> > > Either we use eeprom_write() or we use multiple call of i2c_write().
> > > If we do not change this, Stefan's code does not work with 405EP cpus.
> > > On these you have 0x20 strapping bytes and typicall EEPROMs with 8 or
> > > 16 bytes pagesize (24W01/02/04/08/16).
> >
> > I see. So we should probably enable and export eeprom_write() in this
> > case, and then use it.
>
> I see no other way.
>
> Stefan, could you then please also a a further CONFIG option
> "CONFIG_4xx_CONFIG_I2C_EEPROM_OFFSET" to give a starting address of the
> bootstrap data inside the EEPROM other than 0. On some 4xx CPUs you can
> select between different EEPROM offsets by external CPU pins. So bootstrap
> data could start at an address other than 0. It could also be helpful to
> pass this address somehow to the cpu_config during runtime. Let's say you
> have a 405EP based PCI adapter board that my use 33 or 66MHZ PCI clock
> dependant from the PCI M66EN signal. You could use that signal to make the
> bootstrap controller select between two configurations. In this case to
> have to call cpu_config on two EEPROM ranges with diffenrent arguments.
>
> But to get cpu_config finally done, please add the _OFFSET option and I am
> happy. It could have a default of 0.
OK, I'll try wrap up a new patch version tomorrow which uses eeprom_write() if
available and this new ..._EEPROM_OFFSET define. And then let's please get
this patch in. We can always add functionality later on.
Best regards,
Stefan
=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de
=====================================================================
prev parent reply other threads:[~2009-07-19 17:03 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-17 13:53 [U-Boot] [PATCH v3] Add "cpu_config" command for PPC4xx bootstrap configuration Stefan Roese
2009-07-17 14:39 ` Wolfgang Denk
2009-07-17 14:45 ` Stefan Roese
2009-07-17 15:38 ` Kumar Gala
2009-07-17 17:05 ` Stefan Roese
2009-07-17 18:26 ` Wolfgang Denk
2009-07-17 19:57 ` Matthias Fuchs
2009-07-17 20:58 ` Wolfgang Denk
2009-07-18 9:55 ` Matthias Fuchs
2009-07-19 7:55 ` Wolfgang Denk
2009-07-19 11:23 ` Matthias Fuchs
2009-07-19 17:03 ` Stefan Roese [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=200907191903.07051.sr@denx.de \
--to=sr@denx.de \
--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