[U-Boot] [PATCH] AT91: Defer Dataflash access to env_relocate_spec
Reinhard Meyer
u-boot at emk-elektronik.de
Wed Aug 3 09:20:48 CEST 2011
Dear Hong Xu,
> When env_init is called, the SPI is not actually initialized in U-Boot.
> So that we can not read Dataflash for its content.
> We simply mark it OK for now, and defer the real work to
> `env_relocate_spec'. (Idealy from env_nand.c)
>
> Signed-off-by: Hong Xu<hong.xu at atmel.com>
> ---
> common/env_dataflash.c | 83 ++++++++++++++++++++++++++----------------------
> 1 files changed, 45 insertions(+), 38 deletions(-)
I cannot really decide if that is a good approach. Where would be
the issue if SPI/dataflash were initialized at this point (before
relocation)?
Same works well for example for I2C.
If Wolfgang is OK with it, I can pick up this patch (once
it is agreed on the way to solve the issue).
Best Regards,
Reinhard
More information about the U-Boot
mailing list