Skip to contentSkip to conversation

ppc/85xx: Convert MPC8572DS to using board common ICS307 code

PATCH New Kumar Gala 1 participant 4 messages Jun 30, 2010 – Jul 10, 2010

lore
Share & tools
lore

Kumar Gala

author
#0 lore raw

PATCH 1/1 ppc/85xx: Convert MPC8572DS to using board common ICS307 code

---
 board/freescale/common/Makefile       |    1 +
 board/freescale/mpc8572ds/mpc8572ds.c |  145 +--------------------------------
 include/configs/MPC8572DS.h           |   14 +--
 3 files changed, 7 insertions(+), 153 deletions(-)
board/freescale/common/Makefile +1 -0
index d18445b..3498638 100644
@@ -42,6 +42,7 @@ COBJS-$(CONFIG_MPC8541CDS)	+= cds_pci_ft.o
 COBJS-$(CONFIG_MPC8548CDS)	+= cds_pci_ft.o
 COBJS-$(CONFIG_MPC8555CDS)	+= cds_pci_ft.o
 
+COBJS-$(CONFIG_MPC8572DS)	+= ics307_clk.o
 COBJS-$(CONFIG_P2020DS)		+= ics307_clk.o
 
 SRCS	:= $(SOBJS:.o=.S) $(COBJS-y:.o=.c)
board/freescale/mpc8572ds/mpc8572ds.c +1 -144

155 lines not on this page · raw message

include/configs/MPC8572DS.h +5 -9
index 78b7369..41d9662 100644
@@ -1,5 +1,5 @@
 /*
- * Copyright 2007-2008 Freescale Semiconductor, Inc.
+ * Copyright 2007-2008,2010 Freescale Semiconductor, Inc.
  *
  * See file CREDITS for list of people who contributed to this
  * project.
@@ -27,6 +27,8 @@
 #ifndef __CONFIG_H
 #define __CONFIG_H
 
+#include "../board/freescale/common/ics307_clk.h"
+
 #ifdef CONFIG_MK_36BIT
 #define CONFIG_PHYS_64BIT
 #endif
@@ -53,15 +55,9 @@
 #define CONFIG_TSEC_ENET		/* tsec ethernet support */
 #define CONFIG_ENV_OVERWRITE
 
-#ifndef __ASSEMBLY__
-extern unsigned long get_board_sys_clk(unsigned long dummy);
-extern unsigned long get_board_ddr_clk(unsigned long dummy);
-#endif
-#define CONFIG_SYS_CLK_FREQ	get_board_sys_clk(0) /* sysclk for MPC85xx */
-#define CONFIG_DDR_CLK_FREQ	get_board_ddr_clk(0) /* ddrclk for MPC85xx */
+#define CONFIG_SYS_CLK_FREQ	get_board_sys_clk() /* sysclk for MPC85xx */
+#define CONFIG_DDR_CLK_FREQ	get_board_ddr_clk() /* ddrclk for MPC85xx */
 #define CONFIG_ICS307_REFCLK_HZ	33333000  /* ICS307 clock chip ref freq */
-#define CONFIG_GET_CLK_FROM_ICS307	  /* decode sysclk and ddrclk freq
-					     from ICS307 instead of switches */
 
 /*
  * These can be toggled for performance analysis, otherwise use default.
Signature · 1 line
1.6.0.6
author
#1 lore raw

PATCH 1/1 ppc/85xx: Convert MPC8536DS to using board common ICS307 code

---
 board/freescale/common/Makefile       |    1 +
 board/freescale/mpc8536ds/mpc8536ds.c |  148 ---------------------------------
 include/configs/MPC8536DS.h           |   14 +--
 3 files changed, 6 insertions(+), 157 deletions(-)
board/freescale/common/Makefile +1 -0
index 3498638..bd6a09d 100644
@@ -42,6 +42,7 @@ COBJS-$(CONFIG_MPC8541CDS)	+= cds_pci_ft.o
 COBJS-$(CONFIG_MPC8548CDS)	+= cds_pci_ft.o
 COBJS-$(CONFIG_MPC8555CDS)	+= cds_pci_ft.o
 
+COBJS-$(CONFIG_MPC8536DS)	+= ics307_clk.o
 COBJS-$(CONFIG_MPC8572DS)	+= ics307_clk.o
 COBJS-$(CONFIG_P2020DS)		+= ics307_clk.o
 
board/freescale/mpc8536ds/mpc8536ds.c +0 -148

154 lines not on this page · raw message

include/configs/MPC8536DS.h +5 -9
index da4313a..c52b605 100644
@@ -1,5 +1,5 @@
 /*
- * Copyright 2008-2009 Freescale Semiconductor, Inc.
+ * Copyright 2007-2009,2010 Freescale Semiconductor, Inc.
  *
  * See file CREDITS for list of people who contributed to this
  * project.
@@ -27,6 +27,8 @@
 #ifndef __CONFIG_H
 #define __CONFIG_H
 
+#include "../board/freescale/common/ics307_clk.h"
+
 #ifdef CONFIG_MK_36BIT
 #define CONFIG_PHYS_64BIT	1
 #endif
@@ -70,15 +72,9 @@
 #define CONFIG_TSEC_ENET		/* tsec ethernet support */
 #define CONFIG_ENV_OVERWRITE
 
-#ifndef __ASSEMBLY__
-extern unsigned long get_board_sys_clk(unsigned long dummy);
-extern unsigned long get_board_ddr_clk(unsigned long dummy);
-#endif
-#define CONFIG_SYS_CLK_FREQ	get_board_sys_clk(0) /* sysclk for MPC85xx */
-#define CONFIG_DDR_CLK_FREQ	get_board_ddr_clk(0)
+#define CONFIG_SYS_CLK_FREQ	get_board_sys_clk() /* sysclk for MPC85xx */
+#define CONFIG_DDR_CLK_FREQ	get_board_ddr_clk()
 #define CONFIG_ICS307_REFCLK_HZ	33333000  /* ICS307 clock chip ref freq */
-#define CONFIG_GET_CLK_FROM_ICS307	  /* decode sysclk and ddrclk freq
-					     from ICS307 instead of switches */
 
 /*
  * These can be toggled for performance analysis, otherwise use default.
Signature · 1 line
1.6.0.6
author Applied
#2 lore raw

PATCH 1/1 ppc/85xx: Convert MPC8536DS to using board common ICS307 code

Quoted 6 lines · Kumar Gala

---

board/freescale/common/Makefile       |    1 +
board/freescale/mpc8536ds/mpc8536ds.c |  148 ---------------------------------
include/configs/MPC8536DS.h           |   14 +--
3 files changed, 6 insertions(+), 157 deletions(-)

applied to 85xx

- k

author Applied
#3 lore raw

PATCH 1/1 ppc/85xx: Convert MPC8572DS to using board common ICS307 code

In reply to Kumar Gala
Quoted 6 lines · Kumar Gala

---

board/freescale/common/Makefile       |    1 +
board/freescale/mpc8572ds/mpc8572ds.c |  145 +--------------------------------
include/configs/MPC8572DS.h           |   14 +--
3 files changed, 7 insertions(+), 153 deletions(-)

applied to 85xx

- k