On 02/10/2014 02:02 PM, York Sun wrote: > This driver needs a data structure in SRAM before SDRAM is available. > This is not alway the case using .data section. Moving this data > structure to global_data guarantees it is writable. > > Signed-off-by: York Sun <york...@freescale.com> > CC: Troy Kisky <troy.ki...@boundarydevices.com> > --- > drivers/i2c/mxc_i2c.c | 18 ++++++++---------- > include/asm-generic/global_data.h | 3 +++ > 2 files changed, 11 insertions(+), 10 deletions(-) >
Troy, Following Tom's suggestion, I am trying to use linker script to put the srdata into SRAM. But I still have a concern regarding initializing the srdata. I don't see it is initialized anywhere. Do you presume the data is wiped out before the driver runs? If that's the case, I need to clear the data somewhere in my code. York _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot