[U-Boot] [PATCH] driver/mxc_i2c: Move static data structure to global_data

Wolfgang Denk wd at denx.de
Tue Feb 11 23:12:26 CET 2014


Dear York,

In message <52FA8FDB.3030808 at freescale.com> you wrote:
>
> > well, to do something with the linker script, you need some memory
> > somewhere you can use for this purpose.  Your example showed SRAM. so
> > if you do have SRAM on that board - why do you not use it for stack
> > and GD?  Where is your steck and GD right now?
> 
> The initial stack and GD are in SRAM. Of course they are moved to SDRAM after
> initialization. I intend to spare SRAM for other purpose after relocation.

Well, after relocation GD has also been relocated, so your SRAM would
be comletely unused.

> I am scratching my head trying to figure out how to put this variable "srdata"
> in mxc_i2c.c into stack. Please give me some guidance if you have the idea on
> top of your head.

I have no idea which code you are talking about - sorry.

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
In accord with UNIX philosophy, Perl gives you enough  rope  to  hang
yourself.              - L. Wall & R. L. Schwartz, _Programming Perl_


More information about the U-Boot mailing list