diff options
| author | Jingoo Han <jg1.han@samsung.com> | 2013-02-21 19:42:33 -0500 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-02-21 20:22:18 -0500 |
| commit | fe6863cc5b8e8b9b0e0b998e6de9be4e441f5b98 (patch) | |
| tree | f0aed18f86874e71fb7970fb7a3345624f7481e0 /include/video | |
| parent | 151b5c469905fe30efad3a3d0ddffdb6c6ac1851 (diff) | |
video: s3c-fb: remove unnecessary brackets
Remove unnecessary brackets and the duplicated VIDTCON2 definition.
Also, header comment is modified, because EXYNOS series is supported and
<mach/regs-fb.h> is not available.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Cc: Kyungmin Park <kyungmin.park@samsung.com>
Cc: Tomasz Figa <t.figa@samsung.com>
Cc: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/video')
| -rw-r--r-- | include/video/samsung_fimd.h | 199 |
1 files changed, 97 insertions, 102 deletions
diff --git a/include/video/samsung_fimd.h b/include/video/samsung_fimd.h index 086525661c68..be7b853485b8 100644 --- a/include/video/samsung_fimd.h +++ b/include/video/samsung_fimd.h | |||
| @@ -8,12 +8,8 @@ | |||
| 8 | * S3C Platform - new-style fimd and framebuffer register definitions | 8 | * S3C Platform - new-style fimd and framebuffer register definitions |
| 9 | * | 9 | * |
| 10 | * This is the register set for the fimd and new style framebuffer interface | 10 | * This is the register set for the fimd and new style framebuffer interface |
| 11 | * found from the S3C2443 onwards into the S3C2416, S3C2450 and the | 11 | * found from the S3C2443 onwards into the S3C2416, S3C2450, the |
| 12 | * S3C64XX series such as the S3C6400 and S3C6410. | 12 | * S3C64XX series such as the S3C6400 and S3C6410, and EXYNOS series. |
| 13 | * | ||
| 14 | * The file does not contain the cpu specific items which are based on | ||
| 15 | * whichever architecture is selected, it only contains the core of the | ||
| 16 | * register set. See <mach/regs-fb.h> to get the specifics. | ||
| 17 | * | 13 | * |
| 18 | * This program is free software; you can redistribute it and/or modify | 14 | * This program is free software; you can redistribute it and/or modify |
| 19 | * it under the terms of the GNU General Public License version 2 as | 15 | * it under the terms of the GNU General Public License version 2 as |
| @@ -22,10 +18,10 @@ | |||
| 22 | 18 | ||
| 23 | /* VIDCON0 */ | 19 | /* VIDCON0 */ |
| 24 | 20 | ||
| 25 | #define VIDCON0 (0x00) | 21 | #define VIDCON0 0x00 |
| 26 | #define VIDCON0_INTERLACE (1 << 29) | 22 | #define VIDCON0_INTERLACE (1 << 29) |
| 27 | #define VIDCON0_VIDOUT_MASK (0x7 << 26) | 23 | #define VIDCON0_VIDOUT_MASK (0x7 << 26) |
| 28 | #define VIDCON0_VIDOUT_SHIFT (26) | 24 | #define VIDCON0_VIDOUT_SHIFT 26 |
| 29 | #define VIDCON0_VIDOUT_RGB (0x0 << 26) | 25 | #define VIDCON0_VIDOUT_RGB (0x0 << 26) |
| 30 | #define VIDCON0_VIDOUT_TV (0x1 << 26) | 26 | #define VIDCON0_VIDOUT_TV (0x1 << 26) |
| 31 | #define VIDCON0_VIDOUT_I80_LDI0 (0x2 << 26) | 27 | #define VIDCON0_VIDOUT_I80_LDI0 (0x2 << 26) |
| @@ -35,7 +31,7 @@ | |||
| 35 | #define VIDCON0_VIDOUT_WB_I80_LDI1 (0x7 << 26) | 31 | #define VIDCON0_VIDOUT_WB_I80_LDI1 (0x7 << 26) |
| 36 | 32 | ||
| 37 | #define VIDCON0_L1_DATA_MASK (0x7 << 23) | 33 | #define VIDCON0_L1_DATA_MASK (0x7 << 23) |
| 38 | #define VIDCON0_L1_DATA_SHIFT (23) | 34 | #define VIDCON0_L1_DATA_SHIFT 23 |
| 39 | #define VIDCON0_L1_DATA_16BPP (0x0 << 23) | 35 | #define VIDCON0_L1_DATA_16BPP (0x0 << 23) |
| 40 | #define VIDCON0_L1_DATA_18BPP16 (0x1 << 23) | 36 | #define VIDCON0_L1_DATA_18BPP16 (0x1 << 23) |
| 41 | #define VIDCON0_L1_DATA_18BPP9 (0x2 << 23) | 37 | #define VIDCON0_L1_DATA_18BPP9 (0x2 << 23) |
| @@ -44,7 +40,7 @@ | |||
| 44 | #define VIDCON0_L1_DATA_16BPP8 (0x5 << 23) | 40 | #define VIDCON0_L1_DATA_16BPP8 (0x5 << 23) |
| 45 | 41 | ||
| 46 | #define VIDCON0_L0_DATA_MASK (0x7 << 20) | 42 | #define VIDCON0_L0_DATA_MASK (0x7 << 20) |
| 47 | #define VIDCON0_L0_DATA_SHIFT (20) | 43 | #define VIDCON0_L0_DATA_SHIFT 20 |
| 48 | #define VIDCON0_L0_DATA_16BPP (0x0 << 20) | 44 | #define VIDCON0_L0_DATA_16BPP (0x0 << 20) |
| 49 | #define VIDCON0_L0_DATA_18BPP16 (0x1 << 20) | 45 | #define VIDCON0_L0_DATA_18BPP16 (0x1 << 20) |
| 50 | #define VIDCON0_L0_DATA_18BPP9 (0x2 << 20) | 46 | #define VIDCON0_L0_DATA_18BPP9 (0x2 << 20) |
| @@ -53,7 +49,7 @@ | |||
| 53 | #define VIDCON0_L0_DATA_16BPP8 (0x5 << 20) | 49 | #define VIDCON0_L0_DATA_16BPP8 (0x5 << 20) |
| 54 | 50 | ||
| 55 | #define VIDCON0_PNRMODE_MASK (0x3 << 17) | 51 | #define VIDCON0_PNRMODE_MASK (0x3 << 17) |
| 56 | #define VIDCON0_PNRMODE_SHIFT (17) | 52 | #define VIDCON0_PNRMODE_SHIFT 17 |
| 57 | #define VIDCON0_PNRMODE_RGB (0x0 << 17) | 53 | #define VIDCON0_PNRMODE_RGB (0x0 << 17) |
| 58 | #define VIDCON0_PNRMODE_BGR (0x1 << 17) | 54 | #define VIDCON0_PNRMODE_BGR (0x1 << 17) |
| 59 | #define VIDCON0_PNRMODE_SERIAL_RGB (0x2 << 17) | 55 | #define VIDCON0_PNRMODE_SERIAL_RGB (0x2 << 17) |
| @@ -61,14 +57,14 @@ | |||
| 61 | 57 | ||
| 62 | #define VIDCON0_CLKVALUP (1 << 16) | 58 | #define VIDCON0_CLKVALUP (1 << 16) |
| 63 | #define VIDCON0_CLKVAL_F_MASK (0xff << 6) | 59 | #define VIDCON0_CLKVAL_F_MASK (0xff << 6) |
| 64 | #define VIDCON0_CLKVAL_F_SHIFT (6) | 60 | #define VIDCON0_CLKVAL_F_SHIFT 6 |
| 65 | #define VIDCON0_CLKVAL_F_LIMIT (0xff) | 61 | #define VIDCON0_CLKVAL_F_LIMIT 0xff |
| 66 | #define VIDCON0_CLKVAL_F(_x) ((_x) << 6) | 62 | #define VIDCON0_CLKVAL_F(_x) ((_x) << 6) |
| 67 | #define VIDCON0_VLCKFREE (1 << 5) | 63 | #define VIDCON0_VLCKFREE (1 << 5) |
| 68 | #define VIDCON0_CLKDIR (1 << 4) | 64 | #define VIDCON0_CLKDIR (1 << 4) |
| 69 | 65 | ||
| 70 | #define VIDCON0_CLKSEL_MASK (0x3 << 2) | 66 | #define VIDCON0_CLKSEL_MASK (0x3 << 2) |
| 71 | #define VIDCON0_CLKSEL_SHIFT (2) | 67 | #define VIDCON0_CLKSEL_SHIFT 2 |
| 72 | #define VIDCON0_CLKSEL_HCLK (0x0 << 2) | 68 | #define VIDCON0_CLKSEL_HCLK (0x0 << 2) |
| 73 | #define VIDCON0_CLKSEL_LCD (0x1 << 2) | 69 | #define VIDCON0_CLKSEL_LCD (0x1 << 2) |
| 74 | #define VIDCON0_CLKSEL_27M (0x3 << 2) | 70 | #define VIDCON0_CLKSEL_27M (0x3 << 2) |
| @@ -76,13 +72,13 @@ | |||
| 76 | #define VIDCON0_ENVID (1 << 1) | 72 | #define VIDCON0_ENVID (1 << 1) |
| 77 | #define VIDCON0_ENVID_F (1 << 0) | 73 | #define VIDCON0_ENVID_F (1 << 0) |
| 78 | 74 | ||
| 79 | #define VIDCON1 (0x04) | 75 | #define VIDCON1 0x04 |
| 80 | #define VIDCON1_LINECNT_MASK (0x7ff << 16) | 76 | #define VIDCON1_LINECNT_MASK (0x7ff << 16) |
| 81 | #define VIDCON1_LINECNT_SHIFT (16) | 77 | #define VIDCON1_LINECNT_SHIFT 16 |
| 82 | #define VIDCON1_LINECNT_GET(_v) (((_v) >> 16) & 0x7ff) | 78 | #define VIDCON1_LINECNT_GET(_v) (((_v) >> 16) & 0x7ff) |
| 83 | #define VIDCON1_FSTATUS_EVEN (1 << 15) | 79 | #define VIDCON1_FSTATUS_EVEN (1 << 15) |
| 84 | #define VIDCON1_VSTATUS_MASK (0x3 << 13) | 80 | #define VIDCON1_VSTATUS_MASK (0x3 << 13) |
| 85 | #define VIDCON1_VSTATUS_SHIFT (13) | 81 | #define VIDCON1_VSTATUS_SHIFT 13 |
| 86 | #define VIDCON1_VSTATUS_VSYNC (0x0 << 13) | 82 | #define VIDCON1_VSTATUS_VSYNC (0x0 << 13) |
| 87 | #define VIDCON1_VSTATUS_BACKPORCH (0x1 << 13) | 83 | #define VIDCON1_VSTATUS_BACKPORCH (0x1 << 13) |
| 88 | #define VIDCON1_VSTATUS_ACTIVE (0x2 << 13) | 84 | #define VIDCON1_VSTATUS_ACTIVE (0x2 << 13) |
| @@ -98,12 +94,12 @@ | |||
| 98 | 94 | ||
| 99 | /* VIDCON2 */ | 95 | /* VIDCON2 */ |
| 100 | 96 | ||
| 101 | #define VIDCON2 (0x08) | 97 | #define VIDCON2 0x08 |
| 102 | #define VIDCON2_EN601 (1 << 23) | 98 | #define VIDCON2_EN601 (1 << 23) |
| 103 | #define VIDCON2_TVFMTSEL_SW (1 << 14) | 99 | #define VIDCON2_TVFMTSEL_SW (1 << 14) |
| 104 | 100 | ||
| 105 | #define VIDCON2_TVFMTSEL1_MASK (0x3 << 12) | 101 | #define VIDCON2_TVFMTSEL1_MASK (0x3 << 12) |
| 106 | #define VIDCON2_TVFMTSEL1_SHIFT (12) | 102 | #define VIDCON2_TVFMTSEL1_SHIFT 12 |
| 107 | #define VIDCON2_TVFMTSEL1_RGB (0x0 << 12) | 103 | #define VIDCON2_TVFMTSEL1_RGB (0x0 << 12) |
| 108 | #define VIDCON2_TVFMTSEL1_YUV422 (0x1 << 12) | 104 | #define VIDCON2_TVFMTSEL1_YUV422 (0x1 << 12) |
| 109 | #define VIDCON2_TVFMTSEL1_YUV444 (0x2 << 12) | 105 | #define VIDCON2_TVFMTSEL1_YUV444 (0x2 << 12) |
| @@ -115,74 +111,73 @@ | |||
| 115 | * Might not be present in the S3C6410 documentation, | 111 | * Might not be present in the S3C6410 documentation, |
| 116 | * but tests prove it's there almost for sure; shouldn't hurt in any case. | 112 | * but tests prove it's there almost for sure; shouldn't hurt in any case. |
| 117 | */ | 113 | */ |
| 118 | #define PRTCON (0x0c) | 114 | #define PRTCON 0x0c |
| 119 | #define PRTCON_PROTECT (1 << 11) | 115 | #define PRTCON_PROTECT (1 << 11) |
| 120 | 116 | ||
| 121 | /* VIDTCON0 */ | 117 | /* VIDTCON0 */ |
| 122 | 118 | ||
| 123 | #define VIDTCON0 (0x10) | 119 | #define VIDTCON0 0x10 |
| 124 | #define VIDTCON0_VBPDE_MASK (0xff << 24) | 120 | #define VIDTCON0_VBPDE_MASK (0xff << 24) |
| 125 | #define VIDTCON0_VBPDE_SHIFT (24) | 121 | #define VIDTCON0_VBPDE_SHIFT 24 |
| 126 | #define VIDTCON0_VBPDE_LIMIT (0xff) | 122 | #define VIDTCON0_VBPDE_LIMIT 0xff |
| 127 | #define VIDTCON0_VBPDE(_x) ((_x) << 24) | 123 | #define VIDTCON0_VBPDE(_x) ((_x) << 24) |
| 128 | 124 | ||
| 129 | #define VIDTCON0_VBPD_MASK (0xff << 16) | 125 | #define VIDTCON0_VBPD_MASK (0xff << 16) |
| 130 | #define VIDTCON0_VBPD_SHIFT (16) | 126 | #define VIDTCON0_VBPD_SHIFT 16 |
| 131 | #define VIDTCON0_VBPD_LIMIT (0xff) | 127 | #define VIDTCON0_VBPD_LIMIT 0xff |
| 132 | #define VIDTCON0_VBPD(_x) ((_x) << 16) | 128 | #define VIDTCON0_VBPD(_x) ((_x) << 16) |
| 133 | 129 | ||
| 134 | #define VIDTCON0_VFPD_MASK (0xff << 8) | 130 | #define VIDTCON0_VFPD_MASK (0xff << 8) |
| 135 | #define VIDTCON0_VFPD_SHIFT (8) | 131 | #define VIDTCON0_VFPD_SHIFT 8 |
| 136 | #define VIDTCON0_VFPD_LIMIT (0xff) | 132 | #define VIDTCON0_VFPD_LIMIT 0xff |
| 137 | #define VIDTCON0_VFPD(_x) ((_x) << 8) | 133 | #define VIDTCON0_VFPD(_x) ((_x) << 8) |
| 138 | 134 | ||
| 139 | #define VIDTCON0_VSPW_MASK (0xff << 0) | 135 | #define VIDTCON0_VSPW_MASK (0xff << 0) |
| 140 | #define VIDTCON0_VSPW_SHIFT (0) | 136 | #define VIDTCON0_VSPW_SHIFT 0 |
| 141 | #define VIDTCON0_VSPW_LIMIT (0xff) | 137 | #define VIDTCON0_VSPW_LIMIT 0xff |
| 142 | #define VIDTCON0_VSPW(_x) ((_x) << 0) | 138 | #define VIDTCON0_VSPW(_x) ((_x) << 0) |
| 143 | 13 | ||
