]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - drivers/video/exynos_fb.h
Merge branch 'master' of git://git.denx.de/u-boot-video
[karo-tx-uboot.git] / drivers / video / exynos_fb.h
1 /*
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
30 enum exynos_cpu_auto_cmd_rate {
31         DISABLE_AUTO_FRM,
32         PER_TWO_FRM,
33         PER_FOUR_FRM,
34         PER_SIX_FRM,
35         PER_EIGHT_FRM,
36         PER_TEN_FRM,
37         PER_TWELVE_FRM,
38         PER_FOURTEEN_FRM,
39         PER_SIXTEEN_FRM,
40         PER_EIGHTEEN_FRM,
41         PER_TWENTY_FRM,
42         PER_TWENTY_TWO_FRM,
43         PER_TWENTY_FOUR_FRM,
44         PER_TWENTY_SIX_FRM,
45         PER_TWENTY_EIGHT_FRM,
46         PER_THIRTY_FRM,
47 };
48
49 void exynos_fimd_lcd_init_mem(unsigned long screen_base, unsigned long fb_size,
50         unsigned long palette_size);
51 void exynos_fimd_lcd_init(vidinfo_t *vid);
52 unsigned long exynos_fimd_calc_fbsize(void);
53
54 #endif