ARM: tegra12: set CPU rate to 2.2GHz for sku 0x87
[linux-3.10.git] / arch / arm / mach-tegra / include / mach / fb.h
1 /*
2  * arch/arm/mach-tegra/include/mach/fb.h
3  *
4  * Copyright (C) 2010 Google, Inc.
5  * Author: Erik Gilling <konkers@google.com>
6  *
7  * Copyright (c) 2010-2013, NVIDIA CORPORATION, All rights reserved.
8  *
9  * This software is licensed under the terms of the GNU General Public
10  * License version 2, as published by the Free Software Foundation, and
11  * may be copied, distributed, and modified under those terms.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16  * GNU General Public License for more details.
17  *
18  */
19
20 #ifndef __MACH_TEGRA_FB_H
21 #define __MACH_TEGRA_FB_H
22
23 #include <linux/fb.h>
24
25 struct platform_device;
26 struct tegra_dc;
27 struct tegra_fb_data;
28 struct tegra_fb_info;
29 struct resource;
30
31 int tegra_fb_get_mode(struct tegra_dc *dc);
32 int tegra_fb_set_mode(struct tegra_dc *dc, int fps);
33
34 #ifdef CONFIG_FB_TEGRA
35 struct tegra_fb_info *tegra_fb_register(struct platform_device *ndev,
36                                         struct tegra_dc *dc,
37                                         struct tegra_fb_data *fb_data,
38                                         struct resource *fb_mem);
39 void tegra_fb_unregister(struct tegra_fb_info *fb_info);
40 void tegra_fb_pan_display_reset(struct tegra_fb_info *fb_info);
41 void tegra_fb_update_monspecs(struct tegra_fb_info *fb_info,
42                               struct fb_monspecs *specs,
43                               bool (*mode_filter)(const struct tegra_dc *dc,
44                                                   struct fb_videomode *mode));
45 #else
46 static inline struct tegra_fb_info *tegra_fb_register(
47         struct platform_device *ndev, struct tegra_dc *dc,
48         struct tegra_fb_data *fb_data, struct resource *fb_mem)
49 {
50         return NULL;
51 }
52
53 static inline void tegra_fb_unregister(struct tegra_fb_info *fb_info)
54 {
55 }
56
57 static inline void tegra_fb_pan_display_reset(struct tegra_fb_info *fb_info)
58 {
59 }
60
61 static inline void tegra_fb_update_monspecs(struct tegra_fb_info *fb_info,
62                                             struct fb_monspecs *specs,
63                                             bool (*mode_filter)(struct fb_videomode *mode))
64 {
65 }
66 #endif
67
68 #endif