GPU: Rogue_M: update to 1.31_2 version & support gpu pd.
[firefly-linux-kernel-4.4.55.git] / drivers / gpu / rogue_m / include / pvrversion.h
1 /*************************************************************************/ /*!
2 @File
3 @Title          Version numbers and strings.
4 @Copyright      Copyright (c) Imagination Technologies Ltd. All Rights Reserved
5 @Description    Version numbers and strings for PVR Consumer services
6                 components.
7 @License        Dual MIT/GPLv2
8
9 The contents of this file are subject to the MIT license as set out below.
10
11 Permission is hereby granted, free of charge, to any person obtaining a copy
12 of this software and associated documentation files (the "Software"), to deal
13 in the Software without restriction, including without limitation the rights
14 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
15 copies of the Software, and to permit persons to whom the Software is
16 furnished to do so, subject to the following conditions:
17
18 The above copyright notice and this permission notice shall be included in
19 all copies or substantial portions of the Software.
20
21 Alternatively, the contents of this file may be used under the terms of
22 the GNU General Public License Version 2 ("GPL") in which case the provisions
23 of GPL are applicable instead of those above.
24
25 If you wish to allow use of your version of this file only under the terms of
26 GPL, and not to allow others to use your version of this file under the terms
27 of the MIT license, indicate your decision by deleting the provisions above
28 and replace them with the notice and other provisions required by GPL as set
29 out in the file called "GPL-COPYING" included in this distribution. If you do
30 not delete the provisions above, a recipient may use your version of this file
31 under the terms of either the MIT license or GPL.
32
33 This License is also included in this distribution in the file called
34 "MIT-COPYING".
35
36 EXCEPT AS OTHERWISE STATED IN A NEGOTIATED AGREEMENT: (A) THE SOFTWARE IS
37 PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
38 BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
39 PURPOSE AND NONINFRINGEMENT; AND (B) IN NO EVENT SHALL THE AUTHORS OR
40 COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
41 IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
42 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
43 */ /**************************************************************************/
44
45 #ifndef _PVRVERSION_H_
46 #define _PVRVERSION_H_
47
48 /*
49  *  Rogue KM Version Note
50  *
51  *  L 1.17:
52  *              Support gpu disable dvfs case.
53  *              Add rk_tf_check_version to compatible for rk3328.
54  *  L 1.18:
55  *              If fix freq,then don't force to drop freq to the lowest.
56  *
57  *  M 1.21:
58  *              Merge 1.5_RTM3604260 DDK code.
59  *  M 1.24:
60  *              Merge 1.5_ED3653583 DDK code.
61  *  M 1.28:
62  *              Merge 1.5_ED3776568 DDK code.
63  *  M 1.29
64  *              1. Reopen bEnableRDPowIsland since it doesn't appear splash screen when click the drawerbutton.
65  *              2. Don't set PVR_ANDROID_HAS_SET_BUFFERS_DATASPACE by default.
66  *              3. Remove hGPUUtilLock to avoid dead lock.
67  *              4. Get raw ion_device by IonDevAcquire.
68  *  M 1.31
69  *              1. Merge 1.5_ED3830101 DDK code.
70  *  M 1.31+
71  *              1. Let Rogue M support kernel 4.4.
72  *              2. Close OPEN_GPU_PD temporarily.
73  *  M 1.31_2
74  *              1. Add GPU dvfs support.
75  *              2. Adjust the code indentation.
76  *              3. Use late_initcall instead of module_init to load gpu driver.
77  *              4. Add GPU pd support.
78  *              5. Disable RD power island.
79  */
80
81 #define PVR_STR(X) #X
82 #define PVR_STR2(X) PVR_STR(X)
83
84 #define PVRVERSION_MAJ               1
85 #define PVRVERSION_MIN               5
86
87 #define PVRVERSION_FAMILY           "rogueddk"
88 #define PVRVERSION_BRANCHNAME       "1.5"
89 #define PVRVERSION_BUILD             3830101
90 #define PVRVERSION_BSCONTROL        "Rogue_DDK_Android"
91
92 #define PVRVERSION_STRING           "Rogue_DDK_Android rogueddk 1.5@" PVR_STR2(PVRVERSION_BUILD)
93 #define PVRVERSION_STRING_SHORT     "1.5@" PVR_STR2(PVRVERSION_BUILD) ""
94
95 #define COPYRIGHT_TXT               "Copyright (c) Imagination Technologies Ltd. All Rights Reserved."
96
97 #define PVRVERSION_BUILD_HI          383
98 #define PVRVERSION_BUILD_LO          101
99 #define PVRVERSION_STRING_NUMERIC    PVR_STR2(PVRVERSION_MAJ) "." PVR_STR2(PVRVERSION_MIN) "." PVR_STR2(PVRVERSION_BUILD_HI) "." PVR_STR2(PVRVERSION_BUILD_LO)
100
101 #define PVRVERSION_PACK(MAJ,MIN) ((((MAJ)&0xFFFF) << 16) | (((MIN)&0xFFFF) << 0))
102 #define PVRVERSION_UNPACK_MAJ(VERSION) (((VERSION) >> 16) & 0xFFFF)
103 #define PVRVERSION_UNPACK_MIN(VERSION) (((VERSION) >> 0) & 0xFFFF)
104
105 //chenli:define rockchip version
106 #define RKVERSION                   "Rogue M 1.31+"
107 #endif /* _PVRVERSION_H_ */