From: Alison Wang Date: Wed, 3 Dec 2014 15:00:43 +0800 Subject: [U-Boot] [PATCH v4 3/9] arm: spl: Add I2C linker list in generic .lds In-Reply-To: <1417590049-500-1-git-send-email-b18965@freescale.com> References: <1417590049-500-1-git-send-email-b18965@freescale.com> Message-ID: <1417590049-500-4-git-send-email-b18965@freescale.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 --- Change log: v4: No change. v3: No change. v2: New file. arch/arm/cpu/u-boot-spl.lds | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.1.0.27.g96db324