Lines Matching full:xtal
60 enum cxd2841er_xtal xtal; member
312 static u32 cxd2841er_calc_iffreq_xtal(enum cxd2841er_xtal xtal, u32 ifhz) in cxd2841er_calc_iffreq_xtal() argument
317 do_div(tmp, ((xtal == SONY_XTAL_24000) ? 48000000 : 41000000)); in cxd2841er_calc_iffreq_xtal()
792 switch (priv->xtal) { in cxd2841er_shutdown_to_sleep_s()
805 dev_dbg(&priv->i2c->dev, "%s(): invalid demod xtal %d\n", in cxd2841er_shutdown_to_sleep_s()
806 __func__, priv->xtal); in cxd2841er_shutdown_to_sleep_s()
854 switch (priv->xtal) { in cxd2841er_shutdown_to_sleep_tc()
2122 seq_not2d_time = (priv->xtal == SONY_XTAL_24000)?0x0E:0x0C; in cxd2841er_dvbt2_set_profile()
2127 seq_not2d_time = (priv->xtal == SONY_XTAL_24000)?0x2E:0x28; in cxd2841er_dvbt2_set_profile()
2132 seq_not2d_time = (priv->xtal == SONY_XTAL_24000)?0x2E:0x28; in cxd2841er_dvbt2_set_profile()
2178 {0x11, 0xF0, 0x00, 0x00, 0x00}, /* 20.5MHz XTal */ in cxd2841er_sleep_tc_to_active_t2_band()
2179 {0x15, 0x00, 0x00, 0x00, 0x00}, /* 24MHz XTal */ in cxd2841er_sleep_tc_to_active_t2_band()
2180 {0x11, 0xF0, 0x00, 0x00, 0x00} /* 41MHz XTal */ in cxd2841er_sleep_tc_to_active_t2_band()
2185 {0x14, 0x80, 0x00, 0x00, 0x00}, /* 20.5MHz XTal */ in cxd2841er_sleep_tc_to_active_t2_band()
2186 {0x18, 0x00, 0x00, 0x00, 0x00}, /* 24MHz XTal */ in cxd2841er_sleep_tc_to_active_t2_band()
2187 {0x14, 0x80, 0x00, 0x00, 0x00} /* 41MHz XTal */ in cxd2841er_sleep_tc_to_active_t2_band()
2192 {0x17, 0xEA, 0xAA, 0xAA, 0xAA}, /* 20.5MHz XTal */ in cxd2841er_sleep_tc_to_active_t2_band()
2193 {0x1C, 0x00, 0x00, 0x00, 0x00}, /* 24MHz XTal */ in cxd2841er_sleep_tc_to_active_t2_band()
2194 {0x17, 0xEA, 0xAA, 0xAA, 0xAA} /* 41MHz XTal */ in cxd2841er_sleep_tc_to_active_t2_band()
2199 {0x1C, 0xB3, 0x33, 0x33, 0x33}, /* 20.5MHz XTal */ in cxd2841er_sleep_tc_to_active_t2_band()
2200 {0x21, 0x99, 0x99, 0x99, 0x99}, /* 24MHz XTal */ in cxd2841er_sleep_tc_to_active_t2_band()
2201 {0x1C, 0xB3, 0x33, 0x33, 0x33} /* 41MHz XTal */ in cxd2841er_sleep_tc_to_active_t2_band()
2206 {0x58, 0xE2, 0xAF, 0xE0, 0xBC}, /* 20.5MHz XTal */ in cxd2841er_sleep_tc_to_active_t2_band()
2207 {0x68, 0x0F, 0xA2, 0x32, 0xD0}, /* 24MHz XTal */ in cxd2841er_sleep_tc_to_active_t2_band()
2208 {0x58, 0xE2, 0xAF, 0xE0, 0xBC} /* 41MHz XTal */ in cxd2841er_sleep_tc_to_active_t2_band()
2213 0x23, 0xA9, 0x1F, 0xA8, 0x2C, 0xC8}, /* 20.5MHz XTal */ in cxd2841er_sleep_tc_to_active_t2_band()
2215 0x29, 0xA5, 0x2A, 0xAC, 0x29, 0xB5}, /* 24MHz XTal */ in cxd2841er_sleep_tc_to_active_t2_band()
2217 0x23, 0xA9, 0x1F, 0xA8, 0x2C, 0xC8} /* 41MHz XTal */ in cxd2841er_sleep_tc_to_active_t2_band()
2222 0x29, 0xB0, 0x26, 0xA9, 0x21, 0xA5}, /* 20.5MHz XTal */ in cxd2841er_sleep_tc_to_active_t2_band()
2224 0x29, 0xA2, 0x2B, 0xA6, 0x2B, 0xAD}, /* 24MHz XTal */ in cxd2841er_sleep_tc_to_active_t2_band()
2226 0x29, 0xB0, 0x26, 0xA9, 0x21, 0xA5} /* 41MHz XTal */ in cxd2841er_sleep_tc_to_active_t2_band()
2231 0x00, 0xCF, 0x00, 0xE6, 0x23, 0xA4}, /* 20.5MHz XTal */ in cxd2841er_sleep_tc_to_active_t2_band()
2233 0x29, 0xA4, 0x29, 0xA2, 0x29, 0xA8}, /* 24MHz XTal */ in cxd2841er_sleep_tc_to_active_t2_band()
2235 0x00, 0xCF, 0x00, 0xE6, 0x23, 0xA4} /* 41MHz XTal */ in cxd2841er_sleep_tc_to_active_t2_band()
2240 0x00, 0xCF, 0x00, 0xE6, 0x23, 0xA4}, /* 20.5MHz XTal */ in cxd2841er_sleep_tc_to_active_t2_band()
2242 0x29, 0xA4, 0x29, 0xA2, 0x29, 0xA8}, /* 24MHz XTal */ in cxd2841er_sleep_tc_to_active_t2_band()
2244 0x00, 0xCF, 0x00, 0xE6, 0x23, 0xA4} /* 41MHz XTal */ in cxd2841er_sleep_tc_to_active_t2_band()
2249 0x32, 0x90, 0x2C, 0x9D, 0x29, 0x99}, /* 20.5MHz XTal */ in cxd2841er_sleep_tc_to_active_t2_band()
2251 0x30, 0x97, 0x2D, 0x9A, 0x21, 0xA4}, /* 24MHz XTal */ in cxd2841er_sleep_tc_to_active_t2_band()
2253 0x32, 0x90, 0x2C, 0x9D, 0x29, 0x99} /* 41MHz XTal */ in cxd2841er_sleep_tc_to_active_t2_band()
2263 0x9F, nominalRate8bw[priv->xtal], 5); in cxd2841er_sleep_tc_to_active_t2_band()
2278 0xA6, itbCoef8bw[priv->xtal], 14); in cxd2841er_sleep_tc_to_active_t2_band()
2281 iffreq = cxd2841er_calc_iffreq_xtal(priv->xtal, ifhz); in cxd2841er_sleep_tc_to_active_t2_band()
2293 0x9F, nominalRate7bw[priv->xtal], 5); in cxd2841er_sleep_tc_to_active_t2_band()
2308 0xA6, itbCoef7bw[priv->xtal], 14); in cxd2841er_sleep_tc_to_active_t2_band()
2311 iffreq = cxd2841er_calc_iffreq_xtal(priv->xtal, ifhz); in cxd2841er_sleep_tc_to_active_t2_band()
2323 0x9F, nominalRate6bw[priv->xtal], 5); in cxd2841er_sleep_tc_to_active_t2_band()
2338 0xA6, itbCoef6bw[priv->xtal], 14); in cxd2841er_sleep_tc_to_active_t2_band()
2341 iffreq = cxd2841er_calc_iffreq_xtal(priv->xtal, ifhz); in cxd2841er_sleep_tc_to_active_t2_band()
2353 0x9F, nominalRate5bw[priv->xtal], 5); in cxd2841er_sleep_tc_to_active_t2_band()
2368 0xA6, itbCoef5bw[priv->xtal], 14); in cxd2841er_sleep_tc_to_active_t2_band()
2371 iffreq = cxd2841er_calc_iffreq_xtal(priv->xtal, ifhz); in cxd2841er_sleep_tc_to_active_t2_band()
2383 0x9F, nominalRate17bw[priv->xtal], 5); in cxd2841er_sleep_tc_to_active_t2_band()
2398 0xA6, itbCoef17bw[priv->xtal], 14); in cxd2841er_sleep_tc_to_active_t2_band()
2401 iffreq = cxd2841er_calc_iffreq_xtal(priv->xtal, ifhz); in cxd2841er_sleep_tc_to_active_t2_band()
2423 {0x11, 0xF0, 0x00, 0x00, 0x00}, /* 20.5MHz XTal */ in cxd2841er_sleep_tc_to_active_t_band()
2424 {0x15, 0x00, 0x00, 0x00, 0x00}, /* 24MHz XTal */ in cxd2841er_sleep_tc_to_active_t_band()
2425 {0x11, 0xF0, 0x00, 0x00, 0x00} /* 41MHz XTal */ in cxd2841er_sleep_tc_to_active_t_band()
2429 {0x14, 0x80, 0x00, 0x00, 0x00}, /* 20.5MHz XTal */ in cxd2841er_sleep_tc_to_active_t_band()
2430 {0x18, 0x00, 0x00, 0x00, 0x00}, /* 24MHz XTal */ in cxd2841er_sleep_tc_to_active_t_band()
2431 {0x14, 0x80, 0x00, 0x00, 0x00} /* 41MHz XTal */ in cxd2841er_sleep_tc_to_active_t_band()
2435 {0x17, 0xEA, 0xAA, 0xAA, 0xAA}, /* 20.5MHz XTal */ in cxd2841er_sleep_tc_to_active_t_band()
2436 {0x1C, 0x00, 0x00, 0x00, 0x00}, /* 24MHz XTal */ in cxd2841er_sleep_tc_to_active_t_band()
2437 {0x17, 0xEA, 0xAA, 0xAA, 0xAA} /* 41MHz XTal */ in cxd2841er_sleep_tc_to_active_t_band()
2441 {0x1C, 0xB3, 0x33, 0x33, 0x33}, /* 20.5MHz XTal */ in cxd2841er_sleep_tc_to_active_t_band()
2442 {0x21, 0x99, 0x99, 0x99, 0x99}, /* 24MHz XTal */ in cxd2841er_sleep_tc_to_active_t_band()
2443 {0x1C, 0xB3, 0x33, 0x33, 0x33} /* 41MHz XTal */ in cxd2841er_sleep_tc_to_active_t_band()
2448 0x1F, 0xA8, 0x2C, 0xC8}, /* 20.5MHz XTal */ in cxd2841er_sleep_tc_to_active_t_band()
2450 0x2A, 0xAC, 0x29, 0xB5}, /* 24MHz XTal */ in cxd2841er_sleep_tc_to_active_t_band()
2452 0x1F, 0xA8, 0x2C, 0xC8} /* 41MHz XTal */ in cxd2841er_sleep_tc_to_active_t_band()
2456 0x26, 0xA9, 0x21, 0xA5}, /* 20.5MHz XTal */ in cxd2841er_sleep_tc_to_active_t_band()
2458 0x2B, 0xA6, 0x2B, 0xAD}, /* 24MHz XTal */ in cxd2841er_sleep_tc_to_active_t_band()
2460 0x26, 0xA9, 0x21, 0xA5} /* 41MHz XTal */ in cxd2841er_sleep_tc_to_active_t_band()
2464 0x00, 0xE6, 0x23, 0xA4}, /* 20.5MHz XTal */ in cxd2841er_sleep_tc_to_active_t_band()
2466 0x29, 0xA2, 0x29, 0xA8}, /* 24MHz XTal */ in cxd2841er_sleep_tc_to_active_t_band()
2468 0x00, 0xE6, 0x23, 0xA4} /* 41MHz XTal */ in cxd2841er_sleep_tc_to_active_t_band()
2472 0x00, 0xE6, 0x23, 0xA4}, /* 20.5MHz XTal */ in cxd2841er_sleep_tc_to_active_t_band()
2474 0x29, 0xA2, 0x29, 0xA8}, /* 24MHz XTal */ in cxd2841er_sleep_tc_to_active_t_band()
2476 0x00, 0xE6, 0x23, 0xA4} /* 41MHz XTal */ in cxd2841er_sleep_tc_to_active_t_band()
2493 0x9F, nominalRate8bw[priv->xtal], 5); in cxd2841er_sleep_tc_to_active_t_band()
2499 0xA6, itbCoef8bw[priv->xtal], 14); in cxd2841er_sleep_tc_to_active_t_band()
2502 iffreq = cxd2841er_calc_iffreq_xtal(priv->xtal, ifhz); in cxd2841er_sleep_tc_to_active_t_band()
2512 if (priv->xtal == SONY_XTAL_24000) { in cxd2841er_sleep_tc_to_active_t_band()
2530 0x9F, nominalRate7bw[priv->xtal], 5); in cxd2841er_sleep_tc_to_active_t_band()
2536 0xA6, itbCoef7bw[priv->xtal], 14); in cxd2841er_sleep_tc_to_active_t_band()
2539 iffreq = cxd2841er_calc_iffreq_xtal(priv->xtal, ifhz); in cxd2841er_sleep_tc_to_active_t_band()
2549 if (priv->xtal == SONY_XTAL_24000) { in cxd2841er_sleep_tc_to_active_t_band()
2567 0x9F, nominalRate6bw[priv->xtal], 5); in cxd2841er_sleep_tc_to_active_t_band()
2573 0xA6, itbCoef6bw[priv->xtal], 14); in cxd2841er_sleep_tc_to_active_t_band()
2576 iffreq = cxd2841er_calc_iffreq_xtal(priv->xtal, ifhz); in cxd2841er_sleep_tc_to_active_t_band()
2586 if (priv->xtal == SONY_XTAL_24000) { in cxd2841er_sleep_tc_to_active_t_band()
2604 0x9F, nominalRate5bw[priv->xtal], 5); in cxd2841er_sleep_tc_to_active_t_band()
2610 0xA6, itbCoef5bw[priv->xtal], 14); in cxd2841er_sleep_tc_to_active_t_band()
2613 iffreq = cxd2841er_calc_iffreq_xtal(priv->xtal, ifhz); in cxd2841er_sleep_tc_to_active_t_band()
2623 if (priv->xtal == SONY_XTAL_24000) { in cxd2841er_sleep_tc_to_active_t_band()
2651 {0x00, 0x00, 0x00, 0x00, 0x00}, /* 20.5MHz XTal */ in cxd2841er_sleep_tc_to_active_i_band()
2652 {0x11, 0xB8, 0x00, 0x00, 0x00}, /* 24MHz XTal */ in cxd2841er_sleep_tc_to_active_i_band()
2653 {0x00, 0x00, 0x00, 0x00, 0x00} /* 41MHz XTal */ in cxd2841er_sleep_tc_to_active_i_band()
2657 {0x00, 0x00, 0x00, 0x00, 0x00}, /* 20.5MHz XTal */ in cxd2841er_sleep_tc_to_active_i_band()
2658 {0x14, 0x40, 0x00, 0x00, 0x00}, /* 24MHz XTal */ in cxd2841er_sleep_tc_to_active_i_band()
2659 {0x00, 0x00, 0x00, 0x00, 0x00} /* 41MHz XTal */ in cxd2841er_sleep_tc_to_active_i_band()
2663 {0x14, 0x2E, 0x00, 0x00, 0x00}, /* 20.5MHz XTal */ in cxd2841er_sleep_tc_to_active_i_band()
2664 {0x17, 0xA0, 0x00, 0x00, 0x00}, /* 24MHz XTal */ in cxd2841er_sleep_tc_to_active_i_band()
2665 {0x14, 0x2E, 0x00, 0x00, 0x00} /* 41MHz XTal */ in cxd2841er_sleep_tc_to_active_i_band()
2669 {0x00}, /* 20.5MHz XTal */ in cxd2841er_sleep_tc_to_active_i_band()
2671 0xA5, 0x2A, 0xAC, 0x29, 0xB5}, /* 24MHz Xtal */ in cxd2841er_sleep_tc_to_active_i_band()
2672 {0x0}, /* 41MHz XTal */ in cxd2841er_sleep_tc_to_active_i_band()
2676 {0x00}, /* 20.5MHz XTal */ in cxd2841er_sleep_tc_to_active_i_band()
2678 0xA2, 0x2B, 0xA6, 0x2B, 0xAD}, /* 24MHz Xtal */ in cxd2841er_sleep_tc_to_active_i_band()
2679 {0x00}, /* 41MHz XTal */ in cxd2841er_sleep_tc_to_active_i_band()
2684 0xCF, 0x00, 0xE6, 0x23, 0xA4}, /* 20.5MHz XTal */ in cxd2841er_sleep_tc_to_active_i_band()
2686 0xA4, 0x29, 0xA2, 0x29, 0xA8}, /* 24MHz Xtal */ in cxd2841er_sleep_tc_to_active_i_band()
2688 0xCF, 0x00, 0xE6, 0x23, 0xA4}, /* 41MHz XTal */ in cxd2841er_sleep_tc_to_active_i_band()
2695 /* 20.5/41MHz Xtal support is not available in cxd2841er_sleep_tc_to_active_i_band()
2698 if (priv->xtal != SONY_XTAL_24000 && bandwidth > 6000000) { in cxd2841er_sleep_tc_to_active_i_band()
2700 "%s(): bandwidth %d supported only for 24MHz xtal\n", in cxd2841er_sleep_tc_to_active_i_band()
2709 0x9F, nominalRate8bw[priv->xtal], 5); in cxd2841er_sleep_tc_to_active_i_band()
2713 0xA6, itbCoef8bw[priv->xtal], 14); in cxd2841er_sleep_tc_to_active_i_band()
2717 iffreq = cxd2841er_calc_iffreq_xtal(priv->xtal, ifhz); in cxd2841er_sleep_tc_to_active_i_band()
2740 0x9F, nominalRate7bw[priv->xtal], 5); in cxd2841er_sleep_tc_to_active_i_band()
2744 0xA6, itbCoef7bw[priv->xtal], 14); in cxd2841er_sleep_tc_to_active_i_band()
2748 iffreq = cxd2841er_calc_iffreq_xtal(priv->xtal, ifhz); in cxd2841er_sleep_tc_to_active_i_band()
2771 0x9F, nominalRate6bw[priv->xtal], 5); in cxd2841er_sleep_tc_to_active_i_band()
2775 0xA6, itbCoef6bw[priv->xtal], 14); in cxd2841er_sleep_tc_to_active_i_band()
2779 iffreq = cxd2841er_calc_iffreq_xtal(priv->xtal, ifhz); in cxd2841er_sleep_tc_to_active_i_band()
2789 if (priv->xtal == SONY_XTAL_24000) { in cxd2841er_sleep_tc_to_active_i_band()
2920 if (priv->xtal == SONY_XTAL_41000) { in cxd2841er_sleep_tc_to_active_t()
2953 if (priv->xtal == SONY_XTAL_24000) { in cxd2841er_sleep_tc_to_active_t()
2995 if (priv->xtal == SONY_XTAL_41000) { in cxd2841er_sleep_tc_to_active_t2()
3048 /* 24MHz Xtal setting */ in cxd2841er_sleep_tc_to_active_t2()
3049 if (priv->xtal == SONY_XTAL_24000) { in cxd2841er_sleep_tc_to_active_t2()
3151 /* xtal freq 20.5MHz or 24M */ in cxd2841er_sleep_tc_to_active_i()
3186 /* for xtal 24MHz */ in cxd2841er_sleep_tc_to_active_i()
3227 /* xtal freq 20.5MHz */ in cxd2841er_sleep_tc_to_active_c()
3310 dev_dbg(&priv->i2c->dev, "%s(): %s frequency=%d symbol_rate=%d xtal=%d\n", in cxd2841er_set_frontend_s()
3313 p->frequency, symbol_rate, priv->xtal); in cxd2841er_set_frontend_s()
3857 priv->xtal = cfg->xtal; in cxd2841er_attach()