1 /******************************************************************************
2 ** File Name: sprdfb_chip_common.h *
3 ** Author: congfu.zhao *
5 ** Copyright: 2013 Spreatrum, Incoporated. All Rights Reserved. *
7 ******************************************************************************/
8 /******************************************************************************
10 **---------------------------------------------------------------------------*
11 ** DATE NAME DESCRIPTION *
13 ******************************************************************************/
14 #ifndef __DISPC_CHIP_COM_H_
15 #define __DISPC_CHIP_COM_H_
18 #include <asm/arch/dispc_reg.h>
19 #include <asm/arch/sprd_lcd.h>
24 #include "sprdfb_chip_7715.h"
27 #elif defined(CONFIG_SC8830)
30 #include "sprdfb_chip_8830.h"
36 #include "sprdfb_chip_8825.h"
40 #ifdef CONFIG_SC7710G2
42 #include "sprdfb_chip_7710.h"
46 #include "sprdfb_chip_9630.h"
47 #define SPRDFB_SUPPORT_LVDS_PANEL
50 void __raw_bits_and(unsigned int v, unsigned int a);
52 void __raw_bits_or(unsigned int v, unsigned int a);
54 void __raw_bits_set_value(unsigned int reg, unsigned int value, unsigned int bit, unsigned int mask);
56 void dispc_pll_clk_set(unsigned int clk_src, unsigned int clk_div);
58 void dispc_dbi_clk_set(unsigned int clk_src, unsigned int clk_div);
60 void dispc_dpi_clk_set(unsigned int clk_src, unsigned int clk_div);