tizen 2.4 release
[kernel/u-boot-tm1.git] / board / spreadtrum / sp7710g2 / lcd_config.c
1 #include <asm/arch/sc8810_lcd.h>
2 #include <asm/io.h>
3
4 extern void LCD_SetBackLightBrightness( unsigned long  value);
5 static void __raw_bits_and(unsigned int v, unsigned int a)
6 {
7         __raw_writel((__raw_readl(a) & v), a);
8
9 }
10
11 static void __raw_bits_or(unsigned int v, unsigned int a)
12 {
13         __raw_writel((__raw_readl(a) | v), a);
14 }
15 #if 0
16 void set_backlight(uint32_t value)
17 {
18 #ifndef CONFIG_SP8810EA
19         LCD_SetBackLightBrightness(value);
20 #else
21     __raw_writel(0x101, 0x8C0003e0);
22     __raw_bits_or((1<<5),  0x8B000008);
23     __raw_bits_or((1<<15), 0x8A000384);
24     __raw_bits_or((1<<15), 0x8A000388);
25     __raw_bits_or((1<<15), 0x8A000380);
26 #endif
27 }
28 void FB_LDO_TurnOnLDO()
29 {
30
31 }
32 #endif
33