blob: 66f5da6d46a3f53201a160c4fd9bec3b191aeceb [file] [log] [blame]
Donghwa Lee6d4339f2012-04-05 19:36:17 +00001/*
2 * Copyright (C) 2012 Samsung Electronics
3 *
4 * Author: InKi Dae <inki.dae@samsung.com>
5 * Author: Donghwa Lee <dh09.lee@samsung.com>
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License as
9 * published by the Free Software Foundation; either version 2 of
10 * the License, or (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
20 * MA 02111-1307 USA
21 */
22
23#ifndef _EXYNOS_FB_H_
24#define _EXYNOS_FB_H_
25
26#include <asm/arch/fb.h>
27
28#define MAX_CLOCK (86 * 1000000)
29
30enum exynos_fb_rgb_mode_t {
31 MODE_RGB_P = 0,
32 MODE_BGR_P = 1,
33 MODE_RGB_S = 2,
34 MODE_BGR_S = 3,
35};
36
37enum exynos_cpu_auto_cmd_rate {
38 DISABLE_AUTO_FRM,
39 PER_TWO_FRM,
40 PER_FOUR_FRM,
41 PER_SIX_FRM,
42 PER_EIGHT_FRM,
43 PER_TEN_FRM,
44 PER_TWELVE_FRM,
45 PER_FOURTEEN_FRM,
46 PER_SIXTEEN_FRM,
47 PER_EIGHTEEN_FRM,
48 PER_TWENTY_FRM,
49 PER_TWENTY_TWO_FRM,
50 PER_TWENTY_FOUR_FRM,
51 PER_TWENTY_SIX_FRM,
52 PER_TWENTY_EIGHT_FRM,
53 PER_THIRTY_FRM,
54};
55
56void exynos_fimd_lcd_init_mem(unsigned long screen_base, unsigned long fb_size,
57 unsigned long palette_size);
58void exynos_fimd_lcd_init(vidinfo_t *vid);
59unsigned long exynos_fimd_calc_fbsize(void);
60
61#endif