All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [Patch v2, batch 2 01/23] powerpc/B4860: Corrected FMAN1 operating frequency print at u-boot
@ 2013-03-25 17:33 York Sun
  2013-03-25 17:33 ` [U-Boot] [Patch v2, batch 2 02/23] powerpc/mpc85xx: Add definitions for HDBCR registers York Sun
                   ` (21 more replies)
  0 siblings, 22 replies; 30+ messages in thread
From: York Sun @ 2013-03-25 17:33 UTC (permalink / raw)
  To: u-boot

From: Sandeep Singh <sandeep@freescale.com>

The bit positions for FMAN1 freq in RCW is different for B4860.
Also addded a case when FMAN1 frewuency is equal to systembus.

Signed-off-by: Sandeep Singh <Sandeep@freescale.com>
Signed-off-by: Poonam Aggrwal <poonam.aggrwal@freescale.com>
---
 arch/powerpc/cpu/mpc85xx/speed.c |    8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/arch/powerpc/cpu/mpc85xx/speed.c b/arch/powerpc/cpu/mpc85xx/speed.c
index 297f2ed..9fc7b54 100644
--- a/arch/powerpc/cpu/mpc85xx/speed.c
+++ b/arch/powerpc/cpu/mpc85xx/speed.c
@@ -132,10 +132,15 @@ void get_sys_info (sys_info_t * sysInfo)
 		sysInfo->freqProcessor[cpu] =
 			 freqCC_PLL[cplx_pll] / core_cplx_PLL_div[c_pll_sel];
 	}
+#ifdef CONFIG_PPC_B4860
+#define FM1_CLK_SEL	0xe0000000
+#define FM1_CLK_SHIFT	29
+#else
 #define PME_CLK_SEL	0xe0000000
 #define PME_CLK_SHIFT	29
 #define FM1_CLK_SEL	0x1c000000
 #define FM1_CLK_SHIFT	26
+#endif
 	rcw_tmp = in_be32(&gur->rcwsr[7]);
 
 #ifdef CONFIG_SYS_DPAA_PME
@@ -185,6 +190,9 @@ void get_sys_info (sys_info_t * sysInfo)
 	case 4:
 		sysInfo->freqFMan[0] = freqCC_PLL[3] / 4;
 		break;
+	case 5:
+		sysInfo->freqFMan[0] = sysInfo->freqSystemBus;
+		break;
 	case 6:
 		sysInfo->freqFMan[0] = freqCC_PLL[4] / 2;
 		break;
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 30+ messages in thread

end of thread, other threads:[~2013-05-13 22:49 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-25 17:33 [U-Boot] [Patch v2, batch 2 01/23] powerpc/B4860: Corrected FMAN1 operating frequency print at u-boot York Sun
2013-03-25 17:33 ` [U-Boot] [Patch v2, batch 2 02/23] powerpc/mpc85xx: Add definitions for HDBCR registers York Sun
2013-03-25 17:33 ` [U-Boot] [Patch v2, batch 2 03/23] powerpc/pcie: add PCIe version 3.x support York Sun
2013-05-13 18:50   ` Andy Fleming
2013-05-13 19:25     ` York Sun
2013-05-13 22:49       ` Andy Fleming
2013-03-25 17:33 ` [U-Boot] [Patch v2, batch 2 04/23] powerpc/mpc85xx: Update corenet global utility block registers York Sun
2013-03-25 17:33 ` [U-Boot] [Patch v2, batch 2 05/23] powerpc/t4240qds: Fix SPI flash type York Sun
2013-03-25 17:33 ` [U-Boot] [Patch v2, batch 2 06/23] e6500: Move L1 enablement after L2 enablement York Sun
2013-03-25 17:33 ` [U-Boot] [Patch v2, batch 2 07/23] T4/serdes: fix the serdes clock frequency display York Sun
2013-03-25 17:33 ` [U-Boot] [Patch v2, batch 2 08/23] powerpc/t4240qds: fix XAUI card PHY address York Sun
2013-03-25 17:33 ` [U-Boot] [Patch v2, batch 2 09/23] Fman/t4240: some fix for 10G XAUI York Sun
2013-03-25 17:33 ` [U-Boot] [Patch v2, batch 2 10/23] T4/SerDes: correct the SATA index York Sun
2013-03-25 17:33 ` [U-Boot] [Patch v2, batch 2 11/23] powerpc/t4240qds: Update DDR timing table York Sun
2013-03-25 17:33 ` [U-Boot] [Patch v2, batch 2 12/23] powerpc/mpc8xxx: Fix DDR 3-way interleaving York Sun
2013-03-25 17:33 ` [U-Boot] [Patch v2, batch 2 13/23] powerpc/mpc85xx: Fix portal setup York Sun
2013-03-25 17:33 ` [U-Boot] [Patch v2, batch 2 14/23] powerpc/t4240qds: Add voltage ID support York Sun
2013-03-25 17:33 ` [U-Boot] [Patch v2, batch 2 15/23] T4/USB: Add USB 2.0 UTMI dual phy support York Sun
2013-05-09  0:17   ` Andy Fleming
2013-03-25 17:33 ` [U-Boot] [Patch v2, batch 2 16/23] T4/serdes: fix the actual serdes clock frequency York Sun
2013-03-25 17:33 ` [U-Boot] [Patch v2, batch 2 17/23] powerpc/85xx: add missing QMAN frequency calculation York Sun
2013-05-07 23:04   ` Andy Fleming
2013-05-07 23:18     ` York Sun
2013-05-09  0:40       ` Fleming Andy-AFLEMING
2013-03-25 17:33 ` [U-Boot] [Patch v2, batch 2 18/23] powerpc/corenet2: Print SerDes protocol in decimal York Sun
2013-03-25 17:33 ` [U-Boot] [Patch v2, batch 2 19/23] powerpc/mpc85xx: Fix PIR parsing for chassis2 York Sun
2013-03-25 17:33 ` [U-Boot] [Patch v2, batch 2 20/23] powerpc/t4240: Fix SerDes protocol arrays with const prefix York Sun
2013-03-25 17:33 ` [U-Boot] [Patch v2, batch 2 21/23] powerpc/mpc85xx: Add T4160 SoC York Sun
2013-03-25 17:33 ` [U-Boot] [Patch v2, batch 2 22/23] powerpc/t4240qds: Move SoC define into boards.cfg York Sun
2013-03-25 17:33 ` [U-Boot] [Patch v2, batch 2 23/23] powerpc: Add T4160QDS York Sun

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.