tizen 2.4 release
[kernel/u-boot-tm1.git] / drivers / video / sprdfb / sprdfb_chip_common.h
1 /******************************************************************************
2  ** File Name:    sprdfb_chip_common.h                                     *
3  ** Author:       congfu.zhao                                           *
4  ** DATE:         30/04/2013                                        *
5  ** Copyright:    2013 Spreatrum, Incoporated. All Rights Reserved. *
6  ** Description:                                                    *
7  ******************************************************************************/
8 /******************************************************************************
9  **                   Edit    History                               *
10  **---------------------------------------------------------------------------*
11  ** DATE          NAME            DESCRIPTION                       *
12
13  ******************************************************************************/
14 #ifndef __DISPC_CHIP_COM_H_
15 #define __DISPC_CHIP_COM_H_
16
17 #include <common.h>
18 #include <asm/arch/dispc_reg.h>
19 #include <asm/arch/sprd_lcd.h>
20
21
22 #ifdef CONFIG_SPX15
23
24 #include "sprdfb_chip_7715.h"
25
26
27 #elif defined(CONFIG_SC8830)
28
29
30 #include "sprdfb_chip_8830.h"
31
32 #endif
33
34 #ifdef CONFIG_SC8825
35
36 #include "sprdfb_chip_8825.h"
37
38 #endif
39
40 #ifdef CONFIG_SC7710G2
41
42 #include "sprdfb_chip_7710.h"
43 #endif
44
45 #ifdef CONFIG_SC9630
46 #include "sprdfb_chip_9630.h"
47 #define SPRDFB_SUPPORT_LVDS_PANEL
48 #endif
49
50 void __raw_bits_or(unsigned int v, unsigned int a);
51
52 void __raw_bits_set_value(unsigned int reg, unsigned int value, unsigned int bit, unsigned int mask);
53
54 void dispc_pll_clk_set(unsigned int clk_src, unsigned int clk_div);
55
56 void dispc_dbi_clk_set(unsigned int clk_src, unsigned int clk_div);
57
58 void dispc_dpi_clk_set(unsigned int clk_src, unsigned int clk_div);
59
60
61
62 #endif