1 diff -ru fbset-2.1/fb.h fbset-2.1-avr32/fb.h
2 --- fbset-2.1/fb.h 1999-06-23 16:09:48.000000000 +0200
3 +++ fbset-2.1-avr32/fb.h 2005-12-09 16:00:07.000000000 +0100
5 /* vtotal = 144d/288n/576i => PAL */
6 /* vtotal = 121d/242n/484i => NTSC */
7 #define FB_SYNC_ON_GREEN 32 /* sync on green */
8 +#define FB_SYNC_PCLK_RISING 64 /* pixel data sampled on rising pclk */
10 #define FB_VMODE_NONINTERLACED 0 /* non interlaced */
11 #define FB_VMODE_INTERLACED 1 /* interlaced */
12 diff -ru fbset-2.1/fbset.c fbset-2.1-avr32/fbset.c
13 --- fbset-2.1/fbset.c 1999-06-23 16:11:46.000000000 +0200
14 +++ fbset-2.1-avr32/fbset.c 2005-12-09 16:04:53.000000000 +0100
16 static const char *Opt_vsync = NULL;
17 static const char *Opt_csync = NULL;
18 static const char *Opt_gsync = NULL;
19 +static const char *Opt_pclk = NULL;
20 static const char *Opt_extsync = NULL;
21 static const char *Opt_bcast = NULL;
22 static const char *Opt_laced = NULL;
24 { "-vsync", &Opt_vsync, 1 },
25 { "-csync", &Opt_csync, 1 },
26 { "-gsync", &Opt_gsync, 1 },
27 + { "-pclk", &Opt_pclk, 1 },
28 { "-extsync", &Opt_extsync, 1 },
29 { "-bcast", &Opt_bcast, 1 },
30 { "-laced", &Opt_laced, 1 },
32 var->sync |= FB_SYNC_COMP_HIGH_ACT;
33 if (vmode->gsync == HIGH)
34 var->sync |= FB_SYNC_ON_GREEN;
35 + if (vmode->pclk == RISING)
36 + var->sync |= FB_SYNC_PCLK_RISING;
37 if (vmode->extsync == TRUE)
38 var->sync |= FB_SYNC_EXT;
39 if (vmode->bcast == TRUE)
41 vmode->vsync = var->sync & FB_SYNC_VERT_HIGH_ACT ? HIGH : LOW;
42 vmode->csync = var->sync & FB_SYNC_COMP_HIGH_ACT ? HIGH : LOW;
43 vmode->gsync = var->sync & FB_SYNC_ON_GREEN ? TRUE : FALSE;
44 + vmode->pclk = var->sync & FB_SYNC_PCLK_RISING ? RISING : FALLING;
45 vmode->extsync = var->sync & FB_SYNC_EXT ? TRUE : FALSE;
46 vmode->bcast = var->sync & FB_SYNC_BROADCAST ? TRUE : FALSE;
47 vmode->grayscale = var->grayscale;
50 if (!strcasecmp(var, "false") || !strcasecmp(var, "low") ||
51 !strcasecmp(var, "no") || !strcasecmp(var, "off") ||
53 + !strcmp(var, "0") || !strcasecmp(var, "falling"))
55 else if (!strcasecmp(var, "true") || !strcasecmp(var, "high") ||
56 !strcasecmp(var, "yes") || !strcasecmp(var, "on") ||
58 + !strcmp(var, "1") || !strcasecmp(var, "rising"))
61 Die("Invalid value `%s'\n", var);
63 vmode->csync = atoboolean(Opt_csync);
65 vmode->gsync = atoboolean(Opt_gsync);
67 + vmode->pclk = atoboolean(Opt_pclk);
69 vmode->extsync = atoboolean(Opt_extsync);
76 + puts(" pclk rising");
78 puts(" extsync true");
81 " -vsync <value> : vertical sync polarity (low or high)\n"
82 " -csync <value> : composite sync polarity (low or high)\n"
83 " -gsync <value> : synch on green (false or true)\n"
84 + " -pclk <value> : pclk edge on which pixeldata is valid (rising or falling)\n"
85 " -extsync <value> : external sync enable (false or true)\n"
86 " -bcast <value> : broadcast enable (false or true)\n"
87 " -laced <value> : interlace enable (false or true)\n"
88 diff -ru fbset-2.1/fbset.h fbset-2.1-avr32/fbset.h
89 --- fbset-2.1/fbset.h 1999-06-23 16:12:28.000000000 +0200
90 +++ fbset-2.1-avr32/fbset.h 2005-12-09 16:05:25.000000000 +0100
106 unsigned extsync : 1;