bump version
[buildroot.git] / package / fbset / fbset-2.1-avr32.patch
blob359513901294de972a38822ef5786e045cf5680f
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
4 @@ -131,6 +131,7 @@
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
15 @@ -85,6 +85,7 @@
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;
23 @@ -122,6 +123,7 @@
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 },
31 @@ -344,6 +346,8 @@
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)
40 @@ -389,6 +393,7 @@
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;
48 @@ -420,11 +425,11 @@
50 if (!strcasecmp(var, "false") || !strcasecmp(var, "low") ||
51 !strcasecmp(var, "no") || !strcasecmp(var, "off") ||
52 - !strcmp(var, "0"))
53 + !strcmp(var, "0") || !strcasecmp(var, "falling"))
54 value = 0;
55 else if (!strcasecmp(var, "true") || !strcasecmp(var, "high") ||
56 !strcasecmp(var, "yes") || !strcasecmp(var, "on") ||
57 - !strcmp(var, "1"))
58 + !strcmp(var, "1") || !strcasecmp(var, "rising"))
59 value = 1;
60 else
61 Die("Invalid value `%s'\n", var);
62 @@ -559,6 +564,8 @@
63 vmode->csync = atoboolean(Opt_csync);
64 if (Opt_gsync)
65 vmode->gsync = atoboolean(Opt_gsync);
66 + if (Opt_pclk)
67 + vmode->pclk = atoboolean(Opt_pclk);
68 if (Opt_extsync)
69 vmode->extsync = atoboolean(Opt_extsync);
70 if (Opt_bcast)
71 @@ -635,6 +642,8 @@
72 puts(" csync high");
73 if (vmode->gsync)
74 puts(" gsync true");
75 + if (vmode->pclk)
76 + puts(" pclk rising");
77 if (vmode->extsync)
78 puts(" extsync true");
79 if (vmode->bcast)
80 @@ -875,6 +884,7 @@
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
91 @@ -26,6 +26,9 @@
92 #define LOW (0)
93 #define HIGH (1)
95 +#define FALLING (0)
96 +#define RISING (1)
98 #define FALSE (0)
99 #define TRUE (1)
101 @@ -59,6 +62,7 @@
102 unsigned vsync : 1;
103 unsigned csync : 1;
104 unsigned gsync : 1;
105 + unsigned pclk : 1;
106 unsigned extsync : 1;
107 unsigned bcast : 1;
108 unsigned laced : 1;