Skip to contentSkip to conversation

armv8: ls1088a: Add clock related function in CONFIG_SPL_BUILD

PATCH New Ashish Kumar 2 participants 4 messages Feb 19, 2018 – Mar 21, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 armv8: ls1088a: Add clock related function in CONFIG_SPL_BUILD

get_board_ddr_clk(), get_board_sys_clk() and if_board_diff_clk() is now valid for CONFIG_SPL_BUILD

---
 board/freescale/ls1088a/ls1088a.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
board/freescale/ls1088a/ls1088a.c +1 -1
index 0769e90..16e7083 100644
@@ -168,6 +168,7 @@ int checkboard(void)
 
 	return 0;
 }
+#endif
 
 bool if_board_diff_clk(void)
 {
@@ -221,7 +222,6 @@ unsigned long get_board_ddr_clk(void)
 
 	return 66666666;
 }
-#endif
 
 int select_i2c_ch_pca9547(u8 ch)
 {
Signature · 1 line
2.7.4
#1 lore raw

PATCH 2/2 armv8: ls1088a: Add i2c_early_init() func for LS1088AQDS

This function is required for enabling access to early i2c function for correct usage of QIXIS_READ and QIXIS_WRITE

---
 board/freescale/ls1088a/ls1088a.c | 3 +++
 1 file changed, 3 insertions(+)
board/freescale/ls1088a/ls1088a.c +3 -0
index 16e7083..618239b 100644
@@ -31,6 +31,9 @@ DECLARE_GLOBAL_DATA_PTR;
 
 int board_early_init_f(void)
 {
+#if defined(CONFIG_SYS_I2C_EARLY_INIT) && defined(CONFIG_TARGET_LS1088AQDS)
+	i2c_early_init_f();
+#endif
 	fsl_lsch3_early_init_f();
 	return 0;
 }
Signature · 1 line
2.7.4
#2 lore raw

PATCH 2/2 armv8: ls1088a: Add i2c_early_init() func for LS1088AQDS

Quoted 6 lines · Ashish Kumar

This function is required for enabling access to early i2c function for correct usage of QIXIS_READ and QIXIS_WRITE

---

Minor change to commit message.
Applied to fsl-qoriq master. Thanks.

York

#3 lore raw

PATCH 1/2 armv8: ls1088a: Add clock related function in CONFIG_SPL_BUILD

In reply to Ashish Kumar
Quoted 5 lines · Ashish Kumar

get_board_ddr_clk(), get_board_sys_clk() and if_board_diff_clk() is now valid for CONFIG_SPL_BUILD

---

Minor change to commit message.
Applied to fsl-qoriq master. Thanks.

York