Arrange the bitfields of each register in the ascending order.

Signed-off-by: Dario Binacchi <dario...@libero.it>
---

 drivers/video/am335x-fb.c | 29 ++++++++++++++---------------
 1 file changed, 14 insertions(+), 15 deletions(-)

diff --git a/drivers/video/am335x-fb.c b/drivers/video/am335x-fb.c
index 17476f5b72..2facac986a 100644
--- a/drivers/video/am335x-fb.c
+++ b/drivers/video/am335x-fb.c
@@ -26,8 +26,8 @@
 #define LCDC_FMAX                              200000000
 
 /* LCD Control Register */
-#define LCD_CLK_DIVISOR(x)                     (((x) & 0xFF) << 8)
 #define LCD_RASTER_MODE                                BIT(0)
+#define LCD_CLK_DIVISOR(x)                     (((x) & 0xFF) << 8)
 /* LCD Clock Enable Register */
 #define LCD_CORECLKEN                          BIT(0)
 #define LCD_LIDDCLKEN                          BIT(1)
@@ -40,29 +40,28 @@
 #define LCD_DMA_BURST_8                                0x3
 #define LCD_DMA_BURST_16                       0x4
 /* LCD Timing_0 Register */
-#define LCD_HBPLSB(x)                          ((((x) - 1) & 0xFF) << 24)
-#define LCD_HFPLSB(x)                          ((((x) - 1) & 0xFF) << 16)
-#define LCD_HSWLSB(x)                          ((((x) - 1) & 0x3F) << 10)
-#define LCD_HORLSB(x)                          (((((x) >> 4) - 1) & 0x3F) << 4)
 #define LCD_HORMSB(x)                          (((((x) >> 4) - 1) & 0x40) >> 4)
+#define LCD_HORLSB(x)                          (((((x) >> 4) - 1) & 0x3F) << 4)
+#define LCD_HSWLSB(x)                          ((((x) - 1) & 0x3F) << 10)
+#define LCD_HFPLSB(x)                          ((((x) - 1) & 0xFF) << 16)
+#define LCD_HBPLSB(x)                          ((((x) - 1) & 0xFF) << 24)
 /* LCD Timing_1 Register */
-#define LCD_VBP(x)                             (((x) & 0xFF) << 24)
-#define LCD_VFP(x)                             (((x) & 0xFF) << 16)
-#define LCD_VSW(x)                             ((((x) - 1) & 0x3F) << 10)
 #define LCD_VERLSB(x)                          (((x) - 1) & 0x3FF)
+#define LCD_VSW(x)                             ((((x) - 1) & 0x3F) << 10)
+#define LCD_VFP(x)                             (((x) & 0xFF) << 16)
+#define LCD_VBP(x)                             (((x) & 0xFF) << 24)
 /* LCD Timing_2 Register */
-#define LCD_HSWMSB(x)                          ((((x) - 1) & 0x3C0) << 21)
-#define LCD_VERMSB(x)                          ((((x) - 1) & 0x400) << 16)
-#define LCD_HBPMSB(x)                          ((((x) - 1) & 0x300) >> 4)
 #define LCD_HFPMSB(x)                          ((((x) - 1) & 0x300) >> 8)
+#define LCD_HBPMSB(x)                          ((((x) - 1) & 0x300) >> 4)
 #define LCD_INVMASK(x)                         ((x) & 0x3F00000)
+#define LCD_VERMSB(x)                          ((((x) - 1) & 0x400) << 16)
+#define LCD_HSWMSB(x)                          ((((x) - 1) & 0x3C0) << 21)
 /* LCD Raster Ctrl Register */
+#define LCD_RASTER_ENABLE                      BIT(0)
+#define LCD_TFT_MODE                           BIT(7)
+#define LCD_PALMODE_RAWDATA                    (0x02 << 20)
 #define LCD_TFT_24BPP_MODE                     BIT(25)
 #define LCD_TFT_24BPP_UNPACK                   BIT(26)
-#define LCD_PALMODE_RAWDATA                    (0x02 << 20)
-#define LCD_TFT_MODE                           BIT(7)
-#define LCD_RASTER_ENABLE                      BIT(0)
-
 
 /* Macro definitions */
 #define FBSIZE(x)      ((x->hactive * x->vactive * x->bpp) >> 3)
-- 
2.24.0

Reply via email to