board: Update variable names as per new the structures
PATCH 2/2 board: Update variable names as per new the structures
Different board,driver files use fields defined in MPC85xx_SYS_INFO and MPC86xx_SYS_INFO structure. To fix CamelCase warning, field name has been updated in the mentioned structure.
So update variable names as per new the structures.
Signed-off-by Prabhakar Kushwaha <[email protected]>
--- board/freescale/mpc8540ads/mpc8540ads.c | 2 +- board/freescale/mpc8541cds/mpc8541cds.c | 2 +- board/freescale/mpc8555cds/mpc8555cds.c | 2 +- board/freescale/mpc8560ads/mpc8560ads.c | 2 +- board/freescale/p1_p2_rdb_pc/ddr.c | 2 +- board/freescale/p1_twr/ddr.c | 2 +- board/sbc8548/sbc8548.c | 4 ++-- board/socrates/socrates.c | 2 +- board/xes/xpedite537x/ddr.c | 2 +- drivers/spi/fsl_espi.c | 2 +- 10 files changed, 11 insertions(+), 11 deletions(-)
board/freescale/mpc8540ads/mpc8540ads.c +1 -1
@@ -68,7 +68,7 @@ local_bus_init(void)get_sys_info (&sysinfo); clkdiv = lbc->lcrr &LCRR_CLKDIV ; - lbc_hz = sysinfo.freqSystemBus /1000000 / clkdiv; + lbc_hz = sysinfo.freq_systembus /1000000 / clkdiv;if (lbc_hz <66 ) { lbc->lcrr =CONFIG_SYS_LBC_LCRR |LCRR_DBYP ;/* DLL Bypass */
board/freescale/mpc8541cds/mpc8541cds.c +1 -1
@@ -250,7 +250,7 @@ local_bus_init(void)get_sys_info (&sysinfo); clkdiv = lbc->lcrr &LCRR_CLKDIV ; - lbc_hz = sysinfo.freqSystemBus /1000000 / clkdiv; + lbc_hz = sysinfo.freq_systembus /1000000 / clkdiv;if (lbc_hz <66 ) { lbc->lcrr |=LCRR_DBYP ;/* DLL Bypass */
board/freescale/mpc8555cds/mpc8555cds.c +1 -1
@@ -248,7 +248,7 @@ local_bus_init(void)get_sys_info (&sysinfo); clkdiv = lbc->lcrr &LCRR_CLKDIV ; - lbc_hz = sysinfo.freqSystemBus /1000000 / clkdiv; + lbc_hz = sysinfo.freq_systembus /1000000 / clkdiv;if (lbc_hz <66 ) { lbc->lcrr |=LCRR_DBYP ;/* DLL Bypass */
board/freescale/mpc8560ads/mpc8560ads.c +1 -1
@@ -273,7 +273,7 @@ local_bus_init(void)get_sys_info (&sysinfo); clkdiv = lbc->lcrr &LCRR_CLKDIV ; - lbc_hz = sysinfo.freqSystemBus /1000000 / clkdiv; + lbc_hz = sysinfo.freq_systembus /1000000 / clkdiv;if (lbc_hz <66 ) { lbc->lcrr =CONFIG_SYS_LBC_LCRR |LCRR_DBYP ;/* DLL Bypass */
board/freescale/p1_p2_rdb_pc/ddr.c +1 -1
@@ -247,7 +247,7 @@ phys_size_t fixed_sdram(void)get_sys_info (&sysinfo);printf ("Configuring DDR for %s MT/s data rate\n" , -strmhz (buf, sysinfo.freqDDRBus)); +strmhz (buf, sysinfo.freq_ddrbus)); ddr_size =CONFIG_SYS_SDRAM_SIZE *1024 *1024 ;
board/freescale/p1_twr/ddr.c +1 -1
@@ -53,7 +53,7 @@ phys_size_t fixed_sdram(void)get_sys_info (&sysinfo);printf ("Configuring DDR for %s MT/s data rate\n" , -strmhz (buf, sysinfo.freqDDRBus)); +strmhz (buf, sysinfo.freq_ddrbus)); ddr_size =CONFIG_SYS_SDRAM_SIZE *1024 *1024 ;
board/sbc8548/sbc8548.c +2 -2
@@ -65,8 +65,8 @@ local_bus_init(void)get_sys_info (&sysinfo); - lbc_mhz = sysinfo.freqLocalBus /1000000 ; - clkdiv = sysinfo.freqSystemBus / sysinfo.freqLocalBus; + lbc_mhz = sysinfo.freq_localbus /1000000 ; + clkdiv = sysinfo.freq_systembus / sysinfo.freq_localbus;debug ("LCRR=0x%x, CD=%d, MHz=%d\n" , lcrr, clkdiv, lbc_mhz);
board/socrates/socrates.c +1 -1
@@ -143,7 +143,7 @@ void local_bus_init (void)get_sys_info (&sysinfo); clkdiv = lbc->lcrr &LCRR_CLKDIV ; - lbc_mhz = sysinfo.freqSystemBus /1000000 / clkdiv; + lbc_mhz = sysinfo.freq_systembus /1000000 / clkdiv;/* Disable PLL bypass for Local Bus Clock >= 66 MHz */ if (lbc_mhz >=66 )
board/xes/xpedite537x/ddr.c +1 -1
@@ -210,7 +210,7 @@ void fsl_ddr_board_options(memctl_options_t *popts,unsigned int datarate;get_sys_info (&sysinfo); - datarate = sysinfo.freqDDRBus /1000 /1000 ; + datarate = sysinfo.freq_ddrbus /1000 /1000 ;for (i =0 ; i <ARRAY_SIZE (bopts_ctrl[ctrl_num]); i++) { if ((bopts[i].datarate_mhz_low <= datarate) &&
drivers/spi/fsl_espi.c +1 -1
@@ -75,7 +75,7 @@ struct spi_slave *spi_setup_slave(unsigned int bus, unsigned int cs,/* Set eSPI BRG clock source */ get_sys_info (&sysinfo); - spibrg = sysinfo.freqSystemBus /2 ; + spibrg = sysinfo.freq_systembus /2 ; fsl->div16 =0 ;if ((spibrg / max_hz) >32 ) { fsl->div16 =ESPI_CSMODE_DIV16 ;
Signature · 1 line
1.7.9.5
PATCH 2/2 board: Update variable names as per new the structures
Quoted 7 lines · Prabhakar Kushwaha
Different board,driver files use fields defined in
MPC85xx_SYS_INFOandMPC86xx_SYS_INFOstructure. To fix CamelCase warning, field name has been updated in the mentioned structure.So update variable names as per new the structures.
Signed-off-by Prabhakar Kushwaha <[email protected]>
This must be squashed into the previous patch or you will break bisectability.
-Scott