* [U-Boot] [PATCH] SPL: P1022DS: switch to new multibus/multiadapter support
@ 2013-09-04 9:05 ying.zhang at freescale.com
2013-09-09 5:46 ` Heiko Schocher
0 siblings, 1 reply; 2+ messages in thread
From: ying.zhang at freescale.com @ 2013-09-04 9:05 UTC (permalink / raw)
To: u-boot
From: Ying Zhang <b40530@freescale.com>
- Added section "u_boot_list" in arch/powerpc/cpu/mpc85xx/u-boot-spl.lds
- Use the function i2c_init_all instead of i2c_init
Signed-off-by: Ying Zhang <b40530@freescale.com>
---
arch/powerpc/cpu/mpc85xx/u-boot-spl.lds | 5 +++++
board/freescale/p1022ds/spl.c | 6 +++++-
2 files changed, 10 insertions(+), 1 deletions(-)
diff --git a/arch/powerpc/cpu/mpc85xx/u-boot-spl.lds b/arch/powerpc/cpu/mpc85xx/u-boot-spl.lds
index 85ec74b..bc13267 100644
--- a/arch/powerpc/cpu/mpc85xx/u-boot-spl.lds
+++ b/arch/powerpc/cpu/mpc85xx/u-boot-spl.lds
@@ -44,6 +44,11 @@ SECTIONS
}
_edata = .;
+ . = ALIGN(4);
+ .u_boot_list : {
+ KEEP(*(SORT(.u_boot_list*)));
+ }
+
. = .;
__start___ex_table = .;
__ex_table : { *(__ex_table) }
diff --git a/board/freescale/p1022ds/spl.c b/board/freescale/p1022ds/spl.c
index b9dbf81..7f151e3 100644
--- a/board/freescale/p1022ds/spl.c
+++ b/board/freescale/p1022ds/spl.c
@@ -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
--
1.7.0.4
^ permalink raw reply related [flat|nested] 2+ messages in thread* [U-Boot] [PATCH] SPL: P1022DS: switch to new multibus/multiadapter support
2013-09-04 9:05 [U-Boot] [PATCH] SPL: P1022DS: switch to new multibus/multiadapter support ying.zhang at freescale.com
@ 2013-09-09 5:46 ` Heiko Schocher
0 siblings, 0 replies; 2+ messages in thread
From: Heiko Schocher @ 2013-09-09 5:46 UTC (permalink / raw)
To: u-boot
Hello ying.zhang at freescale.com,
Am 04.09.2013 11:05, schrieb ying.zhang at freescale.com:
> From: Ying Zhang<b40530@freescale.com>
>
> - Added section "u_boot_list" in arch/powerpc/cpu/mpc85xx/u-boot-spl.lds
> - Use the function i2c_init_all instead of i2c_init
>
> Signed-off-by: Ying Zhang<b40530@freescale.com>
> ---
> 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
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-09-09 5:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-04 9:05 [U-Boot] [PATCH] SPL: P1022DS: switch to new multibus/multiadapter support ying.zhang at freescale.com
2013-09-09 5:46 ` Heiko Schocher
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox