15 #include <linux/module.h>
16 #include <linux/kernel.h>
17 #include <linux/errno.h>
19 #include <linux/wait.h>
23 #include <linux/ctype.h>
81 unsigned int mode,
unsigned int mask)
132 unsigned int width_resol,
unsigned int height_resol)
141 reg &= ~((0x7ff << 16) | (0x7ff << 0));
149 unsigned int cmd_allow,
unsigned int vfront,
unsigned int vback)
165 unsigned int front,
unsigned int back)
178 unsigned int vert,
unsigned int hori)
192 unsigned int vert,
unsigned int hori)
215 ~((1 << 28) | (0x1f << 20) | (0x3 << 5));
233 ~((0x3 << 26) | (1 << 25) | (0x3 << 18) | (0x7 << 12) |
234 (0x3 << 16) | (0x7 << 8));
281 unsigned int afc_code)
288 reg |= (afc_code & 0x7) << 5;
307 unsigned int m,
unsigned int s)
311 reg |= ((p & 0x3f) << 13) | ((m & 0x1ff) << 4) | ((s & 0x7) << 1);
317 unsigned int freq_band)
328 unsigned int pre_divider,
unsigned int main_divider,
334 reg |= (pre_divider & 0x3f) << 13 | (main_divider & 0x1ff) << 4 |
341 unsigned int lock_time)
379 unsigned int enable,
unsigned int prs_val)
392 unsigned int lane_sel,
unsigned int enable)
435 unsigned int cnt_val)
446 unsigned int timeout)
457 unsigned int timeout)
505 unsigned int swap_en)
510 reg |= (swap_en & 0x3) << 0;
516 unsigned int hs_zero)
521 reg |= ((hs_zero & 0xf) << 28);
531 reg |= ((prep & 0x7) << 20);
554 unsigned int reg = 0;
570 return reg & (1 << 31) ? 1 : 0;
579 unsigned int di,
unsigned int data0,
unsigned int data1)
581 unsigned int reg = (data1 << 16) | (data0 << 8) | ((di & 0x3f) << 0);
587 unsigned int di,
unsigned int data0)
589 unsigned int reg = (data0 << 8) | (di << 0);
615 unsigned int tx_data)