[U-Boot] [PATCH] powerpc/t4240: Add a frequency setting case for fman1

shh.xie at gmail.com shh.xie at gmail.com
Thu Nov 28 06:52:51 CET 2013


From: Shaohui Xie <Shaohui.Xie at freescale.com>

A new valid setting case added for fman1, it uses platform frequency.

Signed-off-by: Shaohui Xie <Shaohui.Xie at freescale.com>
---
based on patch: http://patchwork.ozlabs.org/patch/294663/

 arch/powerpc/cpu/mpc85xx/speed.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/arch/powerpc/cpu/mpc85xx/speed.c b/arch/powerpc/cpu/mpc85xx/speed.c
index 6c862d8..0973261 100644
--- a/arch/powerpc/cpu/mpc85xx/speed.c
+++ b/arch/powerpc/cpu/mpc85xx/speed.c
@@ -229,6 +229,9 @@ void get_sys_info(sys_info_t *sys_info)
 	case 4:
 		sys_info->freq_fman[1] = freq_c_pll[CONFIG_SYS_FM2_CLK + 1] / 4;
 		break;
+	case 5:
+		sys_info->freq_fman[1] = sys_info->freq_systembus;
+		break;
 	case 6:
 		sys_info->freq_fman[1] = freq_c_pll[CONFIG_SYS_FM2_CLK] / 2;
 		break;
-- 
1.8.0




More information about the U-Boot mailing list