[U-Boot] [PATCH v3 8/9] tegra: i2c: Enable new CONFIG_SYS_I2C framework
Wolfgang Denk
wd at denx.de
Wed Jul 31 21:39:07 CEST 2013
Dear Albert,
In message <20130731090644.2b4ce215 at lilith> you wrote:
>
> > On some boards, yes. For example, if they store the environment in an
> > I2C attached EEPROM. Then you need I2C support early, before console,
> > to read for example the baudrate setting.
>
> Thanks, so some I2C reads are needed. Next question: on these boards,
> do these I2C reads require DT reads? Maybe a few hard-coded low level
> I2C reads are enough. I guess DT writes are completely unneeded at
> that point. Also, why exactly do I2C and, as the case may be, DT, need
> to write to .data?
A quick check shows that it's actually more than 50 boards that store
the env in EEPROM (I'm surprised myself about this large number, given
the disadvantages of such an approach), but AFAICT none of these needs
to access the DT that early.
> More generally, while I think the board_init_f() part of U-Boot should
> be as short and compact as possible, I understand and admit that it
> might have to read from just about any (local) storage resource, be it
> environment or DT or any stored information it needs.
Agreed - actually we're entering an area hear that smells pretty
strong like device model reorganization ;-)
> So, board_init_() should *strictly* be limited to setting up a console
> (for information purposes) and giving access to DDR while in the same
> time never writing to it itself. Bonus points if it can limit itself to
> *enabling* and postpone any *optimizing*(I am thinking of DDR settings
> here and no, I don't have specific existing cases in mind; just sayin').
Agreed!
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
A good marriage would be between a blind wife and deaf husband.
-- Michel de Montaigne
More information about the U-Boot
mailing list