diff options
author | York Sun <yorksun@freescale.com> | 2014-02-10 14:02:52 -0800 |
---|---|---|
committer | Heiko Schocher <hs@denx.de> | 2014-04-29 07:10:27 +0200 |
commit | dec1861be90c948ea9fb771927d3d26a994d2e20 (patch) | |
tree | 11faa5e4eaa0a614155e79653e688df3fd57796c /include/asm-generic | |
parent | 8854070784450f7ade382c5792b2721fbe27315a (diff) | |
download | u-boot-imx-dec1861be90c948ea9fb771927d3d26a994d2e20.zip u-boot-imx-dec1861be90c948ea9fb771927d3d26a994d2e20.tar.gz u-boot-imx-dec1861be90c948ea9fb771927d3d26a994d2e20.tar.bz2 |
driver/mxc_i2c: Move static data structure to global_data
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 <yorksun@freescale.com>
CC: Troy Kisky <troy.kisky@boundarydevices.com>
Diffstat (limited to 'include/asm-generic')
-rw-r--r-- | include/asm-generic/global_data.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/asm-generic/global_data.h b/include/asm-generic/global_data.h index 707400e..e98b661 100644 --- a/include/asm-generic/global_data.h +++ b/include/asm-generic/global_data.h @@ -80,6 +80,9 @@ typedef struct global_data { #if defined(CONFIG_SYS_I2C) int cur_i2c_bus; /* current used i2c bus */ #endif +#ifdef CONFIG_SYS_I2C_MXC + void *srdata[10]; +#endif unsigned long timebase_h; unsigned long timebase_l; struct arch_global_data arch; /* architecture-specific data */ |