aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPraneeth Bajjuri2013-07-25 21:02:54 -0500
committerPraneeth Bajjuri2013-07-25 21:02:54 -0500
commit36e3dab9021df936535d20fc2a3ae8871434c7aa (patch)
treea9c57c73d0bb4d70ba3c648bbcf3b0a6f4fee3fd /include
parent25c03f68530632720fd19ffb319502199e1d8752 (diff)
parent08d2b71b41d8acb5f0684faf18a27f3b82d17f57 (diff)
downloadkernel-video-36e3dab9021df936535d20fc2a3ae8871434c7aa.tar.gz
kernel-video-36e3dab9021df936535d20fc2a3ae8871434c7aa.tar.xz
kernel-video-36e3dab9021df936535d20fc2a3ae8871434c7aa.zip
Merge branch 'p-ti-android-3.8.y-video' of git://git.ti.com/android-sdk/kernel-video into p-ti-android-3.8.y
* 'p-ti-android-3.8.y-video' of git://git.ti.com/android-sdk/kernel-video: ARM: OMAP5/DRA7: hwmod: add ADDR_TYPE_RT to bb2d address flags gc320: gcx: [WA] Allocate MMU page tables as non cached gc320: Added missing programming of MTLB base second time gc320: Increase VRAM buffers to 4 gc320: adding gcxxx support in Makefiles gc320: Adapt GC320 driver for K3.8 devices: Initialize GC320 as part of devices init platform_data: Added platform data for GC320 gc320: OMAP4: Adding cache-2dmanager Change-Id: I7b240582c78cb9ba0c5d77e56ab0cf06d29a64a4 Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/cache-2dmanager.h62
-rw-r--r--include/linux/gccore.h4
-rw-r--r--include/linux/platform_data/omap_gcx.h33
3 files changed, 99 insertions, 0 deletions
diff --git a/include/linux/cache-2dmanager.h b/include/linux/cache-2dmanager.h
new file mode 100644
index 00000000000..2f452da63ee
--- /dev/null
+++ b/include/linux/cache-2dmanager.h
@@ -0,0 +1,62 @@
1/*
2 * cache-2dmanager.h
3 *
4 * Copyright (C) 2011-2012 Texas Instruments Corporation.
5 *
6 * This package is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
9 *
10 * THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
11 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
12 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
13 */
14
15#ifndef CACHE_2DMANAGER_H_
16#define CACHE_2DMANAGER_H_
17
18#include "slab.h"
19
20#ifdef CONFIG_ARCH_OMAP4
21#define L1CACHE_SIZE 32768
22#define L2CACHE_SIZE 1048576
23
24#define L1THRESHOLD L1CACHE_SIZE
25#define L2THRESHOLD L2CACHE_SIZE
26#else
27#error Cache configuration must be specified.
28#endif
29
30struct c2dmrgn {
31 char *start; /* addr of upper left of rect */
32 size_t span; /* bytes to be operated on per line */
33 size_t lines; /* lines to be operated on */
34 long stride; /* bytes per line */
35};
36
37/*
38 * c2dm_l1cache(count, rgns, dir)
39 *
40 * L1 Cache operations in 2D
41 *
42 * - count - number of regions
43 * - rgns - array of regions
44 * - dir - cache operation direction
45 *
46 */
47void c2dm_l1cache(int count, struct c2dmrgn rgns[], int dir);
48
49/*
50 * c2dm_l2cache(count, rgns, dir)
51 *
52 * L2 Cache operations in 2D
53 *
54 * - count - number of regions
55 * - rgns - array of regions
56 * - dir - cache operation direction
57 *
58 */
59void c2dm_l2cache(int count, struct c2dmrgn rgns[], int dir);
60
61
62#endif /* CACHE_2DMANAGER_H_ */
diff --git a/include/linux/gccore.h b/include/linux/gccore.h
index ce9ed4fb75e..ae64f2f75c6 100644
--- a/include/linux/gccore.h
+++ b/include/linux/gccore.h
@@ -18,6 +18,10 @@
18#include "sched.h" 18#include "sched.h"
19#include "gcioctl.h" 19#include "gcioctl.h"
20 20
21
22/* Hw availability query */
23bool gc_is_hw_present(void);
24
21/* Capability query. */ 25/* Capability query. */
22void gc_caps(struct gcicaps *gcicaps); 26void gc_caps(struct gcicaps *gcicaps);
23 27
diff --git a/include/linux/platform_data/omap_gcx.h b/include/linux/platform_data/omap_gcx.h
new file mode 100644
index 00000000000..82abd8a97fc
--- /dev/null
+++ b/include/linux/platform_data/omap_gcx.h
@@ -0,0 +1,33 @@
1/*
2 * arch/arm/plat-omap/include/plat/omap_gcx.h
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 */
18
19#ifndef OMAP_GCX_H
20#define OMAP_GCX_H
21
22struct omap_gcx_platform_data {
23 bool is_hw_present;
24 void *regbase;
25 /*bool (*was_context_lost)(struct device *dev);*/
26 int (*get_context_loss_count)(struct device *dev);
27 /* device scale */
28 int (*scale_dev)(struct device *dev, unsigned long freq);
29 /* bandwith */
30 int (*set_bw)(struct device *dev, unsigned long v);
31};
32
33#endif