Skip to contentSkip to conversation

SPL: P1022DS: switch to new multibus/multiadapter support

PATCH New ying.zhang at freescale.com 2 participants 2 messages Sep 4, 2013 – Sep 9, 2013 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 SPL: P1022DS: switch to new multibus/multiadapter support

From: Ying Zhang <[email protected]>

- Added section "u_boot_list" in arch/powerpc/cpu/mpc85xx/u-boot-spl.lds
- Use the function i2c_init_all instead of i2c_init

---
 arch/powerpc/cpu/mpc85xx/u-boot-spl.lds |    5 +++++
 board/freescale/p1022ds/spl.c           |    6 +++++-
 2 files changed, 10 insertions(+), 1 deletions(-)
arch/powerpc/cpu/mpc85xx/u-boot-spl.lds +5 -0
index 85ec74b..bc13267 100644
@@ -44,6 +44,11 @@ SECTIONS
 	}
 	_edata  =  .;
 
+	. = ALIGN(4);
+	.u_boot_list : {
+		KEEP(*(SORT(.u_boot_list*)));
+	}
+
 	. = .;
 	__start___ex_table = .;
 	__ex_table : { *(__ex_table) }
board/freescale/p1022ds/spl.c +5 -1
index b9dbf81..7f151e3 100644
@@ -102,7 +102,11 @@ void board_init_r(gd_t *gd, ulong dest_addr)
 	env_relocate();
 #endif
 
-	i2c_init(CONFIG_SYS_FSL_I2C_SPEED, CONFIG_SYS_I2C_SLAVE);
+#ifdef CONFIG_SYS_I2C
+	i2c_init_all();
+#else
+	i2c_init(CONFIG_SYS_I2C_SPEED, CONFIG_SYS_I2C_SLAVE);
+#endif
 
 	gd->ram_size = initdram(0);
 #ifdef CONFIG_SPL_NAND_BOOT
Signature · 1 line
1.7.0.4
#1 lore raw

PATCH 1/1 SPL: P1022DS: switch to new multibus/multiadapter support

Hello ying.zhang at freescale.com,

Am 04.09.2013 11:05, schrieb ying.zhang at freescale.com:

Quoted 10 lines

From: Ying Zhang<[email protected]>

- Added section "u_boot_list" in arch/powerpc/cpu/mpc85xx/u-boot-spl.lds
- Use the function i2c_init_all instead of i2c_init

---
  arch/powerpc/cpu/mpc85xx/u-boot-spl.lds |    5 +++++
  board/freescale/p1022ds/spl.c           |    6 +++++-
  2 files changed, 10 insertions(+), 1 deletions(-)

Applied to u-boot-i2c.git

Thanks!

bye,
Heiko

Signature · 2 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany