8 #ifndef __BFIN_ADV7393FB_H__
9 #define __BFIN_ADV7393FB_H__
11 #define BFIN_LCD_NBR_PALETTE_ENTRIES 256
19 #ifdef CONFIG_NTSC_640x480
22 #ifdef CONFIG_PAL_640x480
25 #ifdef CONFIG_NTSC_YCBCR
28 #ifdef CONFIG_PAL_YCBCR
36 #ifdef CONFIG_ADV7393_2XMEM
42 #if defined(CONFIG_BF537) || defined(CONFIG_BF536) || defined(CONFIG_BF534)
43 # define DMA_CFG_VAL 0x7935
44 # define VB_DUMMY_MEMORY_SOURCE L1_DATA_B_START
46 # define DMA_CFG_VAL 0x7915
47 # define VB_DUMMY_MEMORY_SOURCE BOOT_ROM_START
62 #define DRIVER_NAME "bfin-adv7393"
80 static const u8 init_NTSC_TESTPATTERN[] = {
88 static const u8 init_NTSC[] = {
110 static const u8 init_PAL[] = {
132 static const u8 init_NTSC_YCbCr[] = {
148 static const u8 init_PAL_YCbCr[] = {
167 .name =
"NTSC 720x480",
178 .adv7393_i2c_initd = init_NTSC,
179 .adv7393_i2c_initd_len =
sizeof(init_NTSC)
183 .name =
"PAL 720x576",
194 .adv7393_i2c_initd = init_PAL,
195 .adv7393_i2c_initd_len =
sizeof(init_PAL)
199 .name =
"NTSC 640x480",
208 .boeft_blank = 16 + 40,
209 .aoeft_blank = 122 + 40,
210 .adv7393_i2c_initd = init_NTSC,
211 .adv7393_i2c_initd_len =
sizeof(init_NTSC)
215 .name =
"PAL 640x480",
221 .vb1_lines = 24 + 20,
222 .vb2_lines = 25 + 20,
224 .boeft_blank = 12 + 40,
225 .aoeft_blank = 132 + 40,
226 .adv7393_i2c_initd = init_PAL,
227 .adv7393_i2c_initd_len =
sizeof(init_PAL)
231 .name =
"NTSC 720x480 YCbCR",
242 .adv7393_i2c_initd = init_NTSC_YCbCr,
243 .adv7393_i2c_initd_len =
sizeof(init_NTSC_YCbCr)
247 .name =
"PAL 720x576 YCbCR",
258 .adv7393_i2c_initd = init_PAL_YCbCr,
259 .adv7393_i2c_initd_len =
sizeof(init_PAL_YCbCr)
293 #define to_adv7393fb_device(_info) \
294 (_info ? container_of(_info, struct adv7393fb_device, info) : NULL);
304 static int bfin_adv7393_fb_blank(
int blank,
struct fb_info *
info);
308 static void bfin_disable_dma(
void);
309 static void bfin_enable_ppi(
void);
310 static void bfin_disable_ppi(
void);