blob: ea4bb32affc90f2a3f33fa026a0372315c590654 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
/*
* arch/arm/mach-omap2/board-blaze.h
*
* Copyright (C) 2011 Texas Instruments
*
* This software is licensed under the terms of the GNU General Public
* License version 2, as published by the Free Software Foundation, and
* may be copied, distributed, and modified under those terms.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
*/
#ifndef _OMAP4_ION_H
#define _OMAP4_ION_H
#include <linux/ion.h>
#define OMAP4_ION_HEAP_SECURE_INPUT_SIZE (SZ_1M * 90)
#define OMAP4_ION_HEAP_TILER_SIZE (SZ_1M * 81)
#define OMAP4_ION_HEAP_NONSECURE_TILER_SIZE (SZ_1M * 15)
#define PHYS_ADDR_SMC_SIZE (SZ_1M * 3)
#define PHYS_ADDR_SMC_MEM (0x80000000 + SZ_1G - PHYS_ADDR_SMC_SIZE)
#define PHYS_ADDR_DUCATI_SIZE (SZ_1M * 105)
#define PHYS_ADDR_DUCATI_MEM (PHYS_ADDR_SMC_MEM - PHYS_ADDR_DUCATI_SIZE - \
OMAP4_ION_HEAP_SECURE_INPUT_SIZE)
#ifdef CONFIG_OMAP_REMOTE_PROC_DSP
#define PHYS_ADDR_TESLA_SIZE (SZ_1M * 4)
#define PHYS_ADDR_TESLA_MEM (PHYS_ADDR_DUCATI_MEM - \
OMAP4_ION_HEAP_TILER_SIZE - \
PHYS_ADDR_TESLA_SIZE)
#endif
struct omap_ion_platform_data {
struct ion_platform_data *ion;
u32 tiler2d_size;
u32 nonsecure_tiler2d_size;
};
struct omap_ion_platform_data *get_omap_ion_platform_data(void);
#ifdef CONFIG_ION_OMAP
void omap_ion_init(void);
void omap4_register_ion(void);
#else
static inline void omap_ion_init(void) { return; }
static inline void omap4_register_ion(void) { return; }
#endif
#endif
|