33
44
55#define DDR_DUMP_INTERNAL_DEVICE_MEMORY 0xBFC02B00
6- #define MIPS_CLOCK_REG 0x0f000820
6+ #define MIPS_CLOCK_REG 0x0f000820
77
88/* DDR INIT-133Mhz */
99#define T3_SKIP_CLOCK_PROGRAM_DUMP_133MHZ 12 /* index for 0x0F007000 */
@@ -818,13 +818,13 @@ int ddr_init(struct bcm_mini_adapter *Adapter)
818818 if ((Adapter -> chip_id != BCS220_2 ) &&
819819 (Adapter -> chip_id != BCS220_2BC ) &&
820820 (Adapter -> chip_id != BCS220_3 )) {
821- retval = rdmalt (Adapter ,(UINT )0x0f000830 , & uiResetValue , sizeof (uiResetValue ));
821+ retval = rdmalt (Adapter , (UINT )0x0f000830 , & uiResetValue , sizeof (uiResetValue ));
822822 if (retval < 0 ) {
823823 BCM_DEBUG_PRINT (Adapter , CMHOST , RDM , DBG_LVL_ALL , "%s:%d RDM failed\n" , __func__ , __LINE__ );
824824 return retval ;
825825 }
826826 uiResetValue |= 0x44 ;
827- retval = wrmalt (Adapter ,(UINT )0x0f000830 , & uiResetValue , sizeof (uiResetValue ));
827+ retval = wrmalt (Adapter , (UINT )0x0f000830 , & uiResetValue , sizeof (uiResetValue ));
828828 if (retval < 0 ) {
829829 BCM_DEBUG_PRINT (Adapter , CMHOST , RDM , DBG_LVL_ALL , "%s:%d RDM failed\n" , __func__ , __LINE__ );
830830 return retval ;
@@ -871,7 +871,7 @@ int ddr_init(struct bcm_mini_adapter *Adapter)
871871 case 0xbece0121 :
872872 case 0xbece0130 :
873873 case 0xbece0300 :
874- BCM_DEBUG_PRINT (Adapter ,DBG_TYPE_INITEXIT , DRV_ENTRY , DBG_LVL_ALL , "DDR Setting: %x\n" , Adapter -> DDRSetting );
874+ BCM_DEBUG_PRINT (Adapter , DBG_TYPE_INITEXIT , DRV_ENTRY , DBG_LVL_ALL , "DDR Setting: %x\n" , Adapter -> DDRSetting );
875875 switch (Adapter -> DDRSetting ) {
876876 case DDR_80_MHZ :
877877 psDDRSetting = asT3_DDRSetting80MHz ;
@@ -933,7 +933,7 @@ int ddr_init(struct bcm_mini_adapter *Adapter)
933933 }
934934
935935 value = 0 ;
936- BCM_DEBUG_PRINT (Adapter ,DBG_TYPE_INITEXIT , DRV_ENTRY , DBG_LVL_ALL , "Register Count is =%lu\n" , RegCount );
936+ BCM_DEBUG_PRINT (Adapter , DBG_TYPE_INITEXIT , DRV_ENTRY , DBG_LVL_ALL , "Register Count is =%lu\n" , RegCount );
937937 while (RegCount && !retval ) {
938938 if (uiClockSetting && psDDRSetting -> ulRegAddress == MIPS_CLOCK_REG )
939939 value = uiClockSetting ;
@@ -990,12 +990,12 @@ int ddr_init(struct bcm_mini_adapter *Adapter)
990990 * we will change this when we will have internal PMU.
991991 */
992992 if (Adapter -> PmuMode == HYBRID_MODE_7C ) {
993- retval = rdmalt (Adapter ,(UINT )0x0f000c00 , & uiResetValue , sizeof (uiResetValue ));
993+ retval = rdmalt (Adapter , (UINT )0x0f000c00 , & uiResetValue , sizeof (uiResetValue ));
994994 if (retval < 0 ) {
995995 BCM_DEBUG_PRINT (Adapter , CMHOST , RDM , DBG_LVL_ALL , "%s:%d RDM failed\n" , __func__ , __LINE__ );
996996 return retval ;
997997 }
998- retval = rdmalt (Adapter ,(UINT )0x0f000c00 , & uiResetValue , sizeof (uiResetValue ));
998+ retval = rdmalt (Adapter , (UINT )0x0f000c00 , & uiResetValue , sizeof (uiResetValue ));
999999 if (retval < 0 ) {
10001000 BCM_DEBUG_PRINT (Adapter , CMHOST , RDM , DBG_LVL_ALL , "%s:%d RDM failed\n" , __func__ , __LINE__ );
10011001 return retval ;
@@ -1006,12 +1006,12 @@ int ddr_init(struct bcm_mini_adapter *Adapter)
10061006 BCM_DEBUG_PRINT (Adapter , CMHOST , RDM , DBG_LVL_ALL , "%s:%d RDM failed\n" , __func__ , __LINE__ );
10071007 return retval ;
10081008 }
1009- retval = rdmalt (Adapter ,(UINT )0x0f000c00 , & uiResetValue , sizeof (uiResetValue ));
1009+ retval = rdmalt (Adapter , (UINT )0x0f000c00 , & uiResetValue , sizeof (uiResetValue ));
10101010 if (retval < 0 ) {
10111011 BCM_DEBUG_PRINT (Adapter , DBG_TYPE_PRINTK , RDM , DBG_LVL_ALL , "%s:%d RDM failed\n" , __func__ , __LINE__ );
10121012 return retval ;
10131013 }
1014- retval = rdmalt (Adapter ,(UINT )0x0f000c00 , & uiResetValue , sizeof (uiResetValue ));
1014+ retval = rdmalt (Adapter , (UINT )0x0f000c00 , & uiResetValue , sizeof (uiResetValue ));
10151015 if (retval < 0 ) {
10161016 BCM_DEBUG_PRINT (Adapter , CMHOST , RDM , DBG_LVL_ALL , "%s:%d RDM failed\n" , __func__ , __LINE__ );
10171017 return retval ;
@@ -1024,12 +1024,12 @@ int ddr_init(struct bcm_mini_adapter *Adapter)
10241024 }
10251025 } else if (Adapter -> PmuMode == HYBRID_MODE_6 ) {
10261026
1027- retval = rdmalt (Adapter ,(UINT )0x0f000c00 , & uiResetValue , sizeof (uiResetValue ));
1027+ retval = rdmalt (Adapter , (UINT )0x0f000c00 , & uiResetValue , sizeof (uiResetValue ));
10281028 if (retval < 0 ) {
10291029 BCM_DEBUG_PRINT (Adapter , CMHOST , RDM , DBG_LVL_ALL , "%s:%d RDM failed\n" , __func__ , __LINE__ );
10301030 return retval ;
10311031 }
1032- retval = rdmalt (Adapter ,(UINT )0x0f000c00 , & uiResetValue , sizeof (uiResetValue ));
1032+ retval = rdmalt (Adapter , (UINT )0x0f000c00 , & uiResetValue , sizeof (uiResetValue ));
10331033 if (retval < 0 ) {
10341034 BCM_DEBUG_PRINT (Adapter , CMHOST , RDM , DBG_LVL_ALL , "%s:%d RDM failed\n" , __func__ , __LINE__ );
10351035 return retval ;
@@ -1040,12 +1040,12 @@ int ddr_init(struct bcm_mini_adapter *Adapter)
10401040 BCM_DEBUG_PRINT (Adapter , CMHOST , RDM , DBG_LVL_ALL , "%s:%d RDM failed\n" , __func__ , __LINE__ );
10411041 return retval ;
10421042 }
1043- retval = rdmalt (Adapter ,(UINT )0x0f000c00 , & uiResetValue , sizeof (uiResetValue ));
1043+ retval = rdmalt (Adapter , (UINT )0x0f000c00 , & uiResetValue , sizeof (uiResetValue ));
10441044 if (retval < 0 ) {
10451045 BCM_DEBUG_PRINT (Adapter , CMHOST , RDM , DBG_LVL_ALL , "%s:%d RDM failed\n" , __func__ , __LINE__ );
10461046 return retval ;
10471047 }
1048- retval = rdmalt (Adapter ,(UINT )0x0f000c00 , & uiResetValue , sizeof (uiResetValue ));
1048+ retval = rdmalt (Adapter , (UINT )0x0f000c00 , & uiResetValue , sizeof (uiResetValue ));
10491049 if (retval < 0 ) {
10501050 BCM_DEBUG_PRINT (Adapter , CMHOST , RDM , DBG_LVL_ALL , "%s:%d RDM failed\n" , __func__ , __LINE__ );
10511051 return retval ;
@@ -1215,7 +1215,7 @@ int download_ddr_settings(struct bcm_mini_adapter *Adapter)
12151215 ul_ddr_setting_load_addr += sizeof (ULONG );
12161216 if (!retval ) {
12171217 if (bOverrideSelfRefresh && (psDDRSetting -> ulRegAddress == 0x0F007018 )) {
1218- value = (psDDRSetting -> ulRegValue |(1 <<8 ));
1218+ value = (psDDRSetting -> ulRegValue | (1 <<8 ));
12191219 if (STATUS_SUCCESS != wrmalt (Adapter , ul_ddr_setting_load_addr ,
12201220 & value , sizeof (value ))) {
12211221 BCM_DEBUG_PRINT (Adapter , DBG_TYPE_PRINTK , 0 , 0 , "%s:%d\n" , __func__ , __LINE__ );
0 commit comments