[coreboot-gerrit] Change in coreboot[master]: drivers/ati/ragexl: Add whitespace around '=='

Elyes HAOUAS (Code Review) gerrit at coreboot.org
Thu Apr 26 10:24:20 CEST 2018


Elyes HAOUAS has uploaded this change for review. ( https://review.coreboot.org/25857


Change subject: drivers/ati/ragexl: Add whitespace around '=='
......................................................................

drivers/ati/ragexl: Add whitespace around '=='

Change-Id: Ia7920c334f6c5e0ed67a6899715cee3552227014
Signed-off-by: Elyes HAOUAS <ehaouas at noos.fr>
---
M src/drivers/ati/ragexl/atyfb.h
M src/drivers/ati/ragexl/mach64_ct.c
M src/drivers/ati/ragexl/xlinit.c
3 files changed, 28 insertions(+), 28 deletions(-)



  git pull ssh://review.coreboot.org:29418/coreboot refs/changes/57/25857/1

diff --git a/src/drivers/ati/ragexl/atyfb.h b/src/drivers/ati/ragexl/atyfb.h
index df8dd3d..6ed6ac9 100644
--- a/src/drivers/ati/ragexl/atyfb.h
+++ b/src/drivers/ati/ragexl/atyfb.h
@@ -96,7 +96,7 @@
 #endif
 struct fb_info_aty {
 #if CONFIG_CONSOLE_BTEXT
-#if PLL_CRTC_DECODE==1
+#if PLL_CRTC_DECODE == 1
     struct fb_info fb_info;
 #endif
 #endif
@@ -119,7 +119,7 @@
     struct { u8 red, green, blue, pad; } palette[256];
 #endif
     struct atyfb_par default_par;
-#if PLL_CRTC_DECODE==1
+#if PLL_CRTC_DECODE == 1
     struct atyfb_par current_par;
 #endif
 
diff --git a/src/drivers/ati/ragexl/mach64_ct.c b/src/drivers/ati/ragexl/mach64_ct.c
index 9b45f2a..b5fd65c 100644
--- a/src/drivers/ati/ragexl/mach64_ct.c
+++ b/src/drivers/ati/ragexl/mach64_ct.c
@@ -14,7 +14,7 @@
 		      struct pll_ct *pll);
 static int aty_var_to_pll_ct(const struct fb_info_aty *info, u32 vclk_per,
 			     u8 bpp, union aty_pll *pll);
-#if PLL_CRTC_DECODE==1
+#if PLL_CRTC_DECODE == 1
 static u32 aty_pll_ct_to_var(const struct fb_info_aty *info,
 			     const union aty_pll *pll);
 #endif
@@ -31,7 +31,7 @@
     u32 xclks_per_row, fifo_off, fifo_on, y, fifo_size;
     u32 memcntl, n, t_pfc, t_rp, t_ras, t_rcd, t_crd, t_rcc, t_lat;
 
-#if DEBUG_PLL==1
+#if DEBUG_PLL == 1
     printk(BIOS_DEBUG, "aty_dsp_gt : mclk_fb_mult=%d\n", pll->mclk_fb_mult);
 #endif
 
@@ -121,7 +121,7 @@
 static int aty_valid_pll_ct(const struct fb_info_aty *info, u32 vclk_per,
 			    struct pll_ct *pll)
 {
-#if DEBUG_PLL==1
+#if DEBUG_PLL == 1
     int pllmclk, pllsclk;
 #endif
     u32 q;
@@ -145,7 +145,7 @@
 	pll->mclk_post_div_real = 1;
     pll->sclk_fb_div = q*pll->mclk_post_div_real/8;
 
-#if DEBUG_PLL==1
+#if DEBUG_PLL == 1
     pllsclk = (1000000 * 2 * pll->sclk_fb_div) /
 	    (info->ref_clk_per * pll->pll_ref_div);
 
@@ -171,7 +171,7 @@
 	pll->xclk_post_div_real = 1;
     pll->mclk_fb_div = q*pll->xclk_post_div_real/8;
 
-#if DEBUG_PLL==1
+#if DEBUG_PLL == 1
     pllmclk = (1000000 * pll->mclk_fb_mult * pll->mclk_fb_div) /
 	    (info->ref_clk_per * pll->pll_ref_div);
     printk(BIOS_DEBUG, "aty_valid_pll_ct: pllmclk=%d MHz, xclk=%d MHz\n",
@@ -285,7 +285,7 @@
     return 0;
 }
 #if CONFIG_CONSOLE_BTEXT
-#if PLL_CRTC_DECODE==1
+#if PLL_CRTC_DECODE == 1
 u32 aty_pll_ct_to_var(const struct fb_info_aty *info,
 			     const union aty_pll *pll)
 {
@@ -299,7 +299,7 @@
 #endif
 void aty_set_pll_ct(const struct fb_info_aty *info, const union aty_pll *pll)
 {
-#if DEBUG_PLL==1
+#if DEBUG_PLL == 1
     printk(BIOS_DEBUG, "aty_set_pll_ct: about to program:\n"
 	   "refdiv=%d, extcntl=0x%02x, mfbdiv=%d\n"
 	   "spllcntl2=0x%02x, sfbdiv=%d, gencntl=0x%02x\n"
diff --git a/src/drivers/ati/ragexl/xlinit.c b/src/drivers/ati/ragexl/xlinit.c
index c5d4404..67293be 100644
--- a/src/drivers/ati/ragexl/xlinit.c
+++ b/src/drivers/ati/ragexl/xlinit.c
@@ -60,7 +60,7 @@
 #define HAS_VICTORIA 0
 
 enum {
-#if HAS_VICTORIA==1
+#if HAS_VICTORIA == 1
 	VICTORIA = 0,
 	XPERT98,
 #else
@@ -88,7 +88,7 @@
 	u8  dll2_cntl;
 	u8  pll_yclk_cntl;
 } card_cfg[NUM_XL_CARDS] = {
-#if HAS_VICTORIA==1
+#if HAS_VICTORIA == 1
 	// VICTORIA
 	{	2700, SDRAM, 0x800000,
 		0x10757A3B, 0x64000C81, 0x00110202, 0x7b33A040,
@@ -399,7 +399,7 @@
 static int aty_var_to_crtc(const struct fb_info_aty *info,
                            const struct fb_var_screeninfo *var,
                            struct crtc *crtc);
-#if PLL_CRTC_DECODE==1
+#if PLL_CRTC_DECODE == 1
 static int aty_crtc_to_var(const struct crtc *crtc,
                            struct fb_var_screeninfo *var);
 #endif
@@ -409,7 +409,7 @@
 static int atyfb_decode_var(const struct fb_var_screeninfo *var,
                             struct atyfb_par *par,
                             const struct fb_info_aty *info);
-#if PLL_CRTC_DECODE==1
+#if PLL_CRTC_DECODE == 1
 static int atyfb_encode_var(struct fb_var_screeninfo *var,
                             const struct atyfb_par *par,
                             const struct fb_info_aty *info);
@@ -517,7 +517,7 @@
 	u8 pll_ref_div;
 #endif
 
-#endif /*CONFIG_CONSOLE_BTEXT==1 */
+#endif /*CONFIG_CONSOLE_BTEXT == 1 */
 
         struct fb_info_aty *info;
         struct fb_info_aty info_t;
@@ -536,7 +536,7 @@
 	info->frame_buffer = res->base;
 #endif /* CONFIG_CONSOLE_BTEXT */
 
-#if USE_AUX_REG==0
+#if USE_AUX_REG == 0
         info->ati_regbase = res2mmio(res, 0x7ff000+0xc00, 0);
 #else
 	/* Fix this to look for the correct index. */
@@ -752,7 +752,7 @@
     }
 #endif
 
-#if PLL_CRTC_DECODE==1
+#if PLL_CRTC_DECODE == 1
 	atyfb_set_var(&var, -1, &info->fb_info);
 #else
             atyfb_set_par(&info->default_par, info);
@@ -760,7 +760,7 @@
 	    do_install_cmap(-1, info);
 #endif
 
-#if PLL_CRTC_DECODE==1
+#if PLL_CRTC_DECODE == 1
 
     printk(BIOS_SPEW, "framebuffer=0x%08x, width=%d, height=%d, bpp=%d, pitch=%d\n",info->frame_buffer,
                          (((info->current_par.crtc.h_tot_disp>>16) & 0xff)+1)*8,
@@ -830,7 +830,7 @@
 
     return 0;
 }
-#if PLL_CRTC_DECODE==1
+#if PLL_CRTC_DECODE == 1
 static int atyfb_encode_var(struct fb_var_screeninfo *var,
                             const struct atyfb_par *par,
                             const struct fb_info_aty *info)
@@ -934,7 +934,7 @@
         dp_pix_width = HOST_8BPP | SRC_8BPP | DST_8BPP | BYTE_ORDER_LSB_TO_MSB;
         dp_chain_mask = 0x8080;
     }
-#if SUPPORT_8_BPP_ABOVE==1
+#if SUPPORT_8_BPP_ABOVE == 1
    else if (bpp <= 16) {
         bpp = 16;
         pix_width = CRTC_PIX_WIDTH_15BPP;
@@ -986,7 +986,7 @@
 
     return 0;
 }
-#if PLL_CRTC_DECODE==1
+#if PLL_CRTC_DECODE == 1
 static int aty_crtc_to_var(const struct crtc *crtc,
                            struct fb_var_screeninfo *var)
 {
@@ -1049,7 +1049,7 @@
             var->transp.offset = 0;
             var->transp.length = 0;
             break;
-#if SUPPORT_8_BPP_ABOVE==1
+#if SUPPORT_8_BPP_ABOVE == 1
         case CRTC_PIX_WIDTH_15BPP:      /* RGB 555 */
             bpp = 16;
             var->red.offset = 10;
@@ -1168,7 +1168,7 @@
    /*
      *  Set the User Defined Part of the Display
      */
-#if PLL_CRTC_DECODE==1
+#if PLL_CRTC_DECODE == 1
 static int atyfb_set_var(struct fb_var_screeninfo *var, int con,
                          struct fb_info *fb)
 {
@@ -1269,7 +1269,7 @@
 
     accelmode = par->accel_flags;  /* hack */
 
-#if PLL_CRTC_DECODE==1
+#if PLL_CRTC_DECODE == 1
     info->current_par = *par;
 #endif
 
@@ -1293,7 +1293,7 @@
             case 8:
                 i |= 0x02000000;
                 break;
-#if SUPPORT_8_BPP_ABOVE==1
+#if SUPPORT_8_BPP_ABOVE == 1
             case 16:
                 i |= 0x03000000;
                 break;
@@ -1309,12 +1309,12 @@
                 i |= info->mem_refresh_rate << 20;
         switch (par->crtc.bpp) {
             case 8:
-#if SUPPORT_8_BPP_ABOVE==1
+#if SUPPORT_8_BPP_ABOVE == 1
             case 24:
 #endif
                 i |= 0x00000000;
                break;
-#if SUPPORT_8_BPP_ABOVE==1
+#if SUPPORT_8_BPP_ABOVE == 1
             case 16:
                 i |= 0x04000000;
                 break;
@@ -1433,7 +1433,7 @@
         i |= 0x2;       /*DAC_CNTL|0x2 turns off the extra brightness for gt*/
     aty_st_8(DAC_CNTL, i, info);
     aty_st_8(DAC_MASK, 0xff, info);
-#if PLL_CRTC_DECODE==1
+#if PLL_CRTC_DECODE == 1
     scale = (M64_HAS(INTEGRATED) && info->current_par.crtc.bpp == 16) ? 3 : 0;
 #else
     scale = (M64_HAS(INTEGRATED) && info->default_par.crtc.bpp == 16) ? 3 : 0;
@@ -1493,7 +1493,7 @@
 
 static void do_install_cmap(int con, struct fb_info_aty *info)
 {
-#if PLL_CRTC_DECODE==1
+#if PLL_CRTC_DECODE == 1
         int size = info->current_par.crtc.bpp == 16 ? 32 : 256;
 #else
 	int size = 256;

-- 
To view, visit https://review.coreboot.org/25857
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia7920c334f6c5e0ed67a6899715cee3552227014
Gerrit-Change-Number: 25857
Gerrit-PatchSet: 1
Gerrit-Owner: Elyes HAOUAS <ehaouas at noos.fr>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20180426/ec8b05e7/attachment-0001.html>


More information about the coreboot-gerrit mailing list