Gopikrishnaiah Anandan | fbf7539 | 2017-01-16 10:43:36 -0800 | [diff] [blame^] | 1 | /* Copyright (c) 2017, The Linux Foundation. All rights reserved. |
| 2 | * |
| 3 | * This program is free software; you can redistribute it and/or modify |
| 4 | * it under the terms of the GNU General Public License version 2 and |
| 5 | * only version 2 as published by the Free Software Foundation. |
| 6 | * |
| 7 | * This program is distributed in the hope that it will be useful, |
| 8 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 9 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 10 | * GNU General Public License for more details. |
| 11 | */ |
| 12 | #ifndef _SDE_HW_COLOR_PROC_COMMON_V4_H_ |
| 13 | #define _SDE_HW_COLOR_PROC_COMMON_V4_H_ |
| 14 | |
| 15 | #define GAMUT_TABLE_SEL_OFF 0x4 |
| 16 | #define GAMUT_SCALEA_OFFSET_OFF 0x10 |
| 17 | #define GAMUT_SCALEB_OFFSET_OFF 0x50 |
| 18 | #define GAMUT_LOWER_COLOR_OFF 0xc |
| 19 | #define GAMUT_UPPER_COLOR_OFF 0x8 |
| 20 | #define GAMUT_TABLE0_SEL BIT(12) |
| 21 | #define GAMUT_MAP_EN BIT(1) |
| 22 | #define GAMUT_EN BIT(0) |
| 23 | #define GAMUT_MODE_13B_OFF 640 |
| 24 | |
| 25 | enum { |
| 26 | gamut_mode_17 = 0, |
| 27 | gamut_mode_5, |
| 28 | gamut_mode_13a, |
| 29 | gamut_mode_13b, |
| 30 | }; |
| 31 | |
| 32 | #define GC_C0_OFF 0x4 |
| 33 | #define GC_C0_INDEX_OFF 0x8 |
| 34 | #define GC_8B_ROUND_EN BIT(1) |
| 35 | #define GC_EN BIT(0) |
| 36 | #define GC_TBL_NUM 3 |
| 37 | #define GC_LUT_SWAP_OFF 0x1c |
| 38 | |
| 39 | #endif /* _SDE_HW_COLOR_PROC_COMMON_V4_H_ */ |