mpc83xx: Add the support of MPC837x SoC
PATCH 1/6 mpc83xx: Add the support of MPC837x SoC
The MPC837x SoC including e300c4 core and new IP blocks, such as SDHC, PCI Express and SATA controller.
Signed-off-by Dave Liu <[email protected]>
--- cpu/mpc83xx/cpu.c | 24 ++++++- cpu/mpc83xx/speed.c | 167 ++++++++++++++++++++++++++++++++------- include/asm-ppc/global_data.h | 10 ++- include/asm-ppc/immap_83xx.h | 84 +++++++++++++++++++- include/mpc83xx.h | 174 ++++++++++++++++++++++++++++++++++++----- 5 files changed, 406 insertions(+), 53 deletions(-)
cpu/mpc83xx/cpu.c +23 -1
@@ -1,5 +1,5 @@/* -* Copyright (C) 2004-2006 Freescale Semiconductor, Inc. +* Copyright (C) 2004-2007 Freescale Semiconductor, Inc. * * See file CREDITS for list of people who contributed to this * project.
@@ -64,6 +64,10 @@ int checkcpu(void)printf ("e300c3, " );break ; +case PVR_E300C4 : +printf ("e300c4, " ); +break ; +default :printf ("Unknown core, " ); }
@@ -148,6 +152,24 @@ int checkcpu(void)case SPR_8313E_REV10 :puts ("MPC8313E, " );break ; +case SPR_8379E_REV10 : +puts ("MPC8379E, " ); +break ; +case SPR_8379_REV10 : +puts ("MPC8379, " ); +break ; +case SPR_8378E_REV10 : +puts ("MPC8378E, " ); +break ; +case SPR_8378_REV10 : +puts ("MPC8378, " ); +break ; +case SPR_8377E_REV10 : +puts ("MPC8377E, " ); +break ; +case SPR_8377_REV10 : +puts ("MPC8377, " ); +break ;default :printf ("Rev: Unknown revision number:%08x\n" "Warning: Unsupported cpu revision!\n" ,spridr);
cpu/mpc83xx/speed.c +138 -29
295 lines not on this page · raw message
include/asm-ppc/global_data.h +9 -1
@@ -55,7 +55,7 @@ typedef struct global_data {#if defined(CONFIG_MPC83XX )/* There are other clocks in the MPC83XX */ u32 csb_clk; -#if defined (CONFIG_MPC834X ) || defined(CONFIG_MPC831X ) +#if defined(CONFIG_MPC834X ) || defined(CONFIG_MPC831X ) || defined(CONFIG_MPC837X )u32 tsec1_clk;u32 tsec2_clk;u32 usbdr_clk;
@@ -63,6 +63,9 @@ typedef struct global_data {#if defined (CONFIG_MPC834X )u32 usbmph_clk;#endif /* CONFIG_MPC834X */ +#if defined(CONFIG_MPC837X ) +u32 sdhc_clk; +#endif u32 core_clk;u32 i2c1_clk;u32 i2c2_clk;
@@ -71,6 +74,11 @@ typedef struct global_data {u32 lclk_clk;u32 ddr_clk;u32 pci_clk; +#if defined(CONFIG_MPC837X ) +u32 pciexp1_clk; +u32 pciexp2_clk; +u32 sata_clk; +#endif #if defined(CONFIG_MPC8360 )u32 ddr_sec_clk;#endif /* CONFIG_MPC8360 */
include/asm-ppc/immap_83xx.h +82 -2
106 lines not on this page · raw message
include/mpc83xx.h +154 -20
260 lines not on this page · raw message
Signature · 1 line
1.5.1