18 #include <asm/delay.h>
33 { 39721, 0x31C45801, },
34 { 35308, 0x20E36802, },
35 { 31746, 0x33915801, },
36 { 27777, 0x31EC4801, },
37 { 26666, 0x21E22801, },
38 { 25000, 0x33088801, },
39 { 22271, 0x33E22801, },
40 { 20202, 0x336C4801, },
41 { 20000, 0x23088801, },
42 { 19860, 0x23088801, },
43 { 18518, 0x3708A801, },
44 { 17777, 0x23E36802, },
45 { 17733, 0x23E36802, },
46 { 17653, 0x23E36802, },
47 { 16949, 0x37C45801, },
48 { 15873, 0x23EC4801, },
49 { 15384, 0x37911801, },
50 { 14814, 0x37963803, },
51 { 14124, 0x37058803, },
52 { 13888, 0x3710C805, },
53 { 13333, 0x37E22801, },
54 { 12698, 0x27915801, },
55 { 12500, 0x37D8D802, },
56 { 11135, 0x27588802, },
57 { 10582, 0x27EC4802, },
58 { 10101, 0x27AC6803, },
59 { 10000, 0x27088801, },
60 { 9259, 0x2710C805, },
61 { 8888, 0x27E36802, },
62 { 7692, 0x27C58803, },
63 { 7407, 0x27316803, },
64 { 6349, 0x2F915801, },
65 { 6172, 0x2F08A801, },
66 { 5714, 0x2FB11802, },
67 { 5291, 0x2FEC4802, },
68 { 4950, 0x2F963803, },
69 { 4310, 0x2FB1B802, },
72 static void cs5530_set_dclk_frequency(
struct fb_info *
info)
81 min = cs5530_pll_table[0].
pixclock - info->
var.pixclock;
82 if (min < 0) min = -
min;
83 for (i = 1; i <
ARRAY_SIZE(cs5530_pll_table); i++) {
84 diff = cs5530_pll_table[
i].
pixclock - info->
var.pixclock;
85 if (diff < 0L) diff = -diff;
99 static void cs5530_configure_display(
struct fb_info *info)
137 static int cs5530_blank_display(
struct fb_info *info,
int blank_mode)
143 switch (blank_mode) {
145 blank = 0; hsync = 1; vsync = 1;
148 blank = 1; hsync = 1; vsync = 1;
151 blank = 1; hsync = 1; vsync = 0;
154 blank = 1; hsync = 0; vsync = 1;
157 blank = 1; hsync = 0; vsync = 0;
190 .set_dclk = cs5530_set_dclk_frequency,
191 .configure_display = cs5530_configure_display,
192 .blank_display = cs5530_blank_display,