diff options
author | Alison Wang <b18965@freescale.com> | 2014-12-03 15:00:43 +0800 |
---|---|---|
committer | York Sun <yorksun@freescale.com> | 2014-12-11 09:38:35 -0800 |
commit | 14d54dec1ba55d1b12c1fe17855d2ec5fd69734e (patch) | |
tree | a765a6b861bf6f7a60fead4fa1f28979cb612b26 /arch/arm/cpu/u-boot-spl.lds | |
parent | 45c2e480edd5360c46f92bfb7e8ca6ac4554767f (diff) | |
download | u-boot-imx-14d54dec1ba55d1b12c1fe17855d2ec5fd69734e.zip u-boot-imx-14d54dec1ba55d1b12c1fe17855d2ec5fd69734e.tar.gz u-boot-imx-14d54dec1ba55d1b12c1fe17855d2ec5fd69734e.tar.bz2 |
arm: spl: Add I2C linker list in generic .lds
On LS1, DDR is initialized by reading SPD through I2C interface
in SPL code. For I2C, ll_entry_count() is called, and it returns
the number of elements of a linker-generated array placed into
subsection of .u_boot_list section specified by _list argument.
So add I2C linker list in the generic .lds to fix the issue about
using I2C in SPL.
Signed-off-by: Alison Wang <alison.wang@freescale.com>
Reviewed-by: York Sun <yorksun@freescale.com>
Diffstat (limited to 'arch/arm/cpu/u-boot-spl.lds')
-rw-r--r-- | arch/arm/cpu/u-boot-spl.lds | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/cpu/u-boot-spl.lds b/arch/arm/cpu/u-boot-spl.lds index a69b006..a8be204 100644 --- a/arch/arm/cpu/u-boot-spl.lds +++ b/arch/arm/cpu/u-boot-spl.lds @@ -32,6 +32,9 @@ SECTIONS } . = ALIGN(4); + .u_boot_list : { + KEEP(*(SORT(.u_boot_list*_i2c_*))); + } . = .; #ifdef CONFIG_SPL_DM |