Please pull u-boot.git 'mpc83xx' branch
Please pull from 'mpc83xx' branch ofgit://git.kernel.org/pub/scm/boot/u-boot/galak/u-boot.git
to receive the following updates:
cpu/mpc83xx/cpu.c | 2 - cpu/mpc83xx/cpu_init.c | 12 +++---- cpu/mpc83xx/speed.c | 12 +++---- doc/README.mpc83xxads | 2 - include/asm-ppc/global_data.h | 4 +- include/asm-ppc/immap_83xx.h | 66 +++++++++++++++++++++--------------------- include/configs/MPC8349EMDS.h | 1 include/configs/MPC8349ITX.h | 1 include/configs/TQM834x.h | 1 include/mpc83xx.h | 10 +++--- 10 files changed, 54 insertions(+), 57 deletions(-)
commit cd6447cfd69ace6fc748ff1964d42107bc93beab
Author: Kumar Gala <[email protected]> Date: Mon Dec 4 12:42:06 2006 -0600
Fix config of Arbiter, System Priority, and Clock Mode on MPC83xx
The config value for:
* CFG_ACR_PIPE_DEP
* CFG_ACR_RPTCNT
* CFG_SPCR_TSEC1EP
* CFG_SPCR_TSEC2EP
* CFG_SCCR_TSEC1CM
* CFG_SCCR_TSEC2CM
Wasn't not being used when setting the appropriate register
commit 2b0c21e7a44172084a1194897693977d01083e3e
Author: Kumar Gala <[email protected]> Date: Mon Dec 4 12:41:37 2006 -0600
Remove CONFIG_MPC8349 and use CONFIG_MPC834X instead
CONFIG_MPC8349 is redudant with CONFIG_MPC834X. Additionally CONFIG_MPC834X truly states the class of processors the code is applicable for.
cpu/mpc83xx/cpu.c +1 -1
@@ -97,7 +97,7 @@ int checkcpu(void)return -1 ;/* Not sure what this is */ } -#if defined(CONFIG_MPC8349 ) +#if defined(CONFIG_MPC834X )printf ("Rev: %02x at %s MHz\n" , (spridr &0x0000FFFF )>>4 |(spridr &0x0000000F ),strmhz (buf, clock));#else printf ("Rev: %02x at %s MHz\n" , spridr &0x0000FFFF ,strmhz (buf, clock));
cpu/mpc83xx/cpu_init.c +6 -6
@@ -69,31 +69,31 @@ void cpu_init_f (volatile immap_t * im)#ifdef CFG_ACR_PIPE_DEP /* Arbiter pipeline depth */ - im->arbiter.acr = (im->arbiter.acr & ~ACR_PIPE_DEP ) | (3 <<ACR_PIPE_DEP_SHIFT ); + im->arbiter.acr = (im->arbiter.acr & ~ACR_PIPE_DEP ) | (CFG_ACR_PIPE_DEP <<ACR_PIPE_DEP_SHIFT );#endif #ifdef CFG_SPCR_TSEC1EP /* TSEC1 Emergency priority */ - im->sysconf.spcr = (im->sysconf.spcr & ~SPCR_TSEC1EP ) | (3 <<SPCR_TSEC1EP_SHIFT ); + im->sysconf.spcr = (im->sysconf.spcr & ~SPCR_TSEC1EP ) | (CFG_SPCR_TSEC1EP <<SPCR_TSEC1EP_SHIFT );#endif #ifdef CFG_SPCR_TSEC2EP /* TSEC2 Emergency priority */ - im->sysconf.spcr = (im->sysconf.spcr & ~SPCR_TSEC2EP ) | (3 <<SPCR_TSEC2EP_SHIFT ); + im->sysconf.spcr = (im->sysconf.spcr & ~SPCR_TSEC2EP ) | (CFG_SPCR_TSEC2EP <<SPCR_TSEC2EP_SHIFT );#endif #ifdef CFG_SCCR_TSEC1CM /* TSEC1 clock mode */ - im->clk.sccr = (im->clk.sccr & ~SCCR_TSEC1CM ) | (1 <<SCCR_TSEC1CM_SHIFT ); + im->clk.sccr = (im->clk.sccr & ~SCCR_TSEC1CM ) | (CFG_SCCR_TSEC1CM <<SCCR_TSEC1CM_SHIFT );#endif #ifdef CFG_SCCR_TSEC2CM /* TSEC2 & I2C1 clock mode */ - im->clk.sccr = (im->clk.sccr & ~SCCR_TSEC2CM ) | (1 <<SCCR_TSEC2CM_SHIFT ); + im->clk.sccr = (im->clk.sccr & ~SCCR_TSEC2CM ) | (CFG_SCCR_TSEC2CM <<SCCR_TSEC2CM_SHIFT );#endif #ifdef CFG_ACR_RPTCNT /* Arbiter repeat count */ - im->arbiter.acr = ((im->arbiter.acr & ~(ACR_RPTCNT )) | (3 <<ACR_RPTCNT_SHIFT )); + im->arbiter.acr = ((im->arbiter.acr & ~(ACR_RPTCNT )) | (CFG_ACR_RPTCNT <<ACR_RPTCNT_SHIFT ));#endif /* RSR - Reset Status Register - clear all status (4.6.1.3) */
cpu/mpc83xx/speed.c +6 -6
@@ -99,7 +99,7 @@ int get_clocks(void)u32 lcrr;u32 csb_clk; -#if defined(CONFIG_MPC8349 ) +#if defined(CONFIG_MPC834X )u32 tsec1_clk;u32 tsec2_clk;u32 usbmph_clk;
@@ -144,7 +144,7 @@ #endif sccr = im->clk.sccr; -#if defined(CONFIG_MPC8349 ) +#if defined(CONFIG_MPC834X )switch ((sccr &SCCR_TSEC1CM ) >>SCCR_TSEC1CM_SHIFT ) {case 0 : tsec1_clk =0 ;
@@ -249,7 +249,7 @@ #endif/* unkown SCCR_ENCCM value */ return -6 ; } -#if defined(CONFIG_MPC8349 ) || defined(CONFIG_MPC8360 ) +#if defined(CONFIG_MPC834X ) || defined(CONFIG_MPC8360 ) lbiu_clk = csb_clk * (1 + ((im->reset.rcwl &RCWL_LBIUCM ) >>RCWL_LBIUCM_SHIFT ));#else
@@ -266,7 +266,7 @@ #endif/* unknown lcrr */ return -10 ; } -#if defined(CONFIG_MPC8349 ) || defined(CONFIG_MPC8360 ) +#if defined(CONFIG_MPC834X ) || defined(CONFIG_MPC8360 ) ddr_clk = csb_clk * (1 + ((im->reset.rcwl &RCWL_DDRCM ) >>RCWL_DDRCM_SHIFT )); corepll = (im->reset.rcwl &RCWL_COREPLL ) >>RCWL_COREPLL_SHIFT ;
@@ -314,7 +314,7 @@ #if defined (CONFIG_MPC8360)#endif gd->csb_clk = csb_clk; -#if defined(CONFIG_MPC8349 ) +#if defined(CONFIG_MPC834X ) gd->tsec1_clk = tsec1_clk; gd->tsec2_clk = tsec2_clk; gd->usbmph_clk = usbmph_clk;
@@ -364,7 +364,7 @@ #endifprintf (" SEC: %4d MHz\n" , gd->enc_clk /1000000 );printf (" I2C1: %4d MHz\n" , gd->i2c1_clk /1000000 );printf (" I2C2: %4d MHz\n" , gd->i2c2_clk /1000000 ); -#if defined(CONFIG_MPC8349 ) +#if defined(CONFIG_MPC834X )printf (" TSEC1: %4d MHz\n" , gd->tsec1_clk /1000000 );printf (" TSEC2: %4d MHz\n" , gd->tsec2_clk /1000000 );printf (" USB MPH: %4d MHz\n" , gd->usbmph_clk /1000000 );
doc/README.mpc83xxads +1 -1
@@ -49,7 +49,7 @@ Freescale MPC83xx ADS Boards include/configs/MPC8349ADS.h CONFIG_MPC83xx MPC83xx family - CONFIG_MPC8349 MPC8349 specific + CONFIG_MPC834X MPC834x specific CONFIG_MPC8349ADS MPC8349ADS board specific CONFIG_TSEC_ENET Use on-chip 10/100/1000 ethernet
include/asm-ppc/global_data.h +2 -2
@@ -52,12 +52,12 @@ #endif#if defined(CONFIG_MPC83XX )/* There are other clocks in the MPC83XX */ u32 csb_clk; -#if defined (CONFIG_MPC8349 ) +#if defined (CONFIG_MPC834X )u32 tsec1_clk;u32 tsec2_clk;u32 usbmph_clk;u32 usbdr_clk; -#endif /* CONFIG_MPC8349 */ +#endif /* CONFIG_MPC834X */ u32 core_clk;u32 i2c1_clk;u32 i2c2_clk;
include/asm-ppc/immap_83xx.h +33 -33
261 lines not on this page · raw message
include/configs/MPC8349EMDS.h +0 -1
@@ -37,7 +37,6 @@ #undef DEBUG#define CONFIG_E300 1/* E300 Family */ #define CONFIG_MPC83XX 1/* MPC83XX family */ #define CONFIG_MPC834X 1/* MPC834X family */ -#define CONFIG_MPC8349 1/* MPC8349 specific */ #define CONFIG_MPC8349EMDS 1/* MPC8349EMDS board specific */ #undef CONFIG_PCI
include/configs/MPC8349ITX.h +0 -1
@@ -62,7 +62,6 @@ #undef DEBUG* High Level Configuration Options */ #define CONFIG_MPC834X /* MPC834x family (8343, 8347, 8349) */ -#define CONFIG_MPC8349 /* MPC8349 specific */ #define CONFIG_PCI
include/configs/TQM834x.h +0 -1
@@ -37,7 +37,6 @@ #undef DEBUG#define CONFIG_E300 1/* E300 Family */ #define CONFIG_MPC83XX 1/* MPC83XX family */ #define CONFIG_MPC834X 1/* MPC834X specific */ -#define CONFIG_MPC8349 1/* MPC8349 specific */ #define CONFIG_TQM834X 1/* TQM834X board specific */ /* IMMR Base Addres Register, use Freescale default: 0xff400000 */
include/mpc83xx.h +5 -5
@@ -140,7 +140,7 @@ #define BR_ATOM_SHIFT 2#endif #define BR_V 0x00000001#define BR_V_SHIFT 0 -#if defined (CONFIG_MPC8349 ) +#if defined (CONFIG_MPC834X )#define BR_RES ~(BR_BA|BR_PS|BR_DECC|BR_WP|BR_MSEL|BR_V)#elif defined (CONFIG_MPC8360 )#define BR_RES ~(BR_BA|BR_PS|BR_DECC|BR_WP|BR_MSEL|BR_ATOM|BR_V)
@@ -227,7 +227,7 @@ #define OR_SDRAM_EAD_SHIFT 0#define HRCWH_PCI_AGENT 0x00000000#define HRCWH_PCI_HOST 0x80000000 -#if defined (CONFIG_MPC8349 ) +#if defined (CONFIG_MPC834X )#define HRCWH_32_BIT_PCI 0x00000000#define HRCWH_64_BIT_PCI 0x40000000#endif
@@ -235,7 +235,7 @@ #endif#define HRCWH_PCI1_ARBITER_DISABLE 0x00000000#define HRCWH_PCI1_ARBITER_ENABLE 0x20000000 -#if defined (CONFIG_MPC8349 ) +#if defined (CONFIG_MPC834X )#define HRCWH_PCI2_ARBITER_DISABLE 0x00000000#define HRCWH_PCI2_ARBITER_ENABLE 0x10000000#elif defined (CONFIG_MPC8360 )
@@ -258,14 +258,14 @@ #define HRCWH_SW_WATCHDOG_ENABLE 0x0#define HRCWH_ROM_LOC_DDR_SDRAM 0x00000000#define HRCWH_ROM_LOC_PCI1 0x00100000 -#if defined (CONFIG_MPC8349 ) +#if defined (CONFIG_MPC834X )#define HRCWH_ROM_LOC_PCI2 0x00200000#endif #define HRCWH_ROM_LOC_LOCAL_8BIT 0x00500000#define HRCWH_ROM_LOC_LOCAL_16BIT 0x00600000#define HRCWH_ROM_LOC_LOCAL_32BIT 0x00700000 -#if defined (CONFIG_MPC8349 ) +#if defined (CONFIG_MPC834X )#define HRCWH_TSEC1M_IN_RGMII 0x00000000#define HRCWH_TSEC1M_IN_RTBI 0x00004000#define HRCWH_TSEC1M_IN_GMII 0x00008000
Quoted 2 lines · Kumar Gala
Please pull from 'mpc83xx' branch of
git://git.kernel.org/pub/scm/boot/u-boot/galak/u-boot.git
Ack. Tested on an 8349ITX.
Since this change just replaces every instance of CONFIG_MPC8349 with CONFIG_MPC834X, and since the only 834x boards in U-Boot at 8349, it's safe. Any future 834x board that's not an 8349 may require changes in common files, though.
Signature · 2 lines
Timur Tabi Linux Kernel Developer @ Freescale