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
315 (xtal == SONY_XTAL_24000) ? 48000000 : 41000000); in cxd2841er_calc_iffreq_xtal()
788 switch (priv->xtal) { in cxd2841er_shutdown_to_sleep_s()
801 dev_dbg(&priv->i2c->dev, "%s(): invalid demod xtal %d\n", in cxd2841er_shutdown_to_sleep_s()
802 __func__, priv->xtal); in cxd2841er_shutdown_to_sleep_s()
850 switch (priv->xtal) { in cxd2841er_shutdown_to_sleep_tc()
2118 seq_not2d_time = (priv->xtal == SONY_XTAL_24000)?0x0E:0x0C; in cxd2841er_dvbt2_set_profile()
2123 seq_not2d_time = (priv->xtal == SONY_XTAL_24000)?0x2E:0x28; in cxd2841er_dvbt2_set_profile()
2128 seq_not2d_time = (priv->xtal == SONY_XTAL_24000)?0x2E:0x28; in cxd2841er_dvbt2_set_profile()
2174 {0x11, 0xF0, 0x00, 0x00, 0x00}, /* 20.5MHz XTal */ in cxd2841er_sleep_tc_to_active_t2_band()
2175 {0x15, 0x00, 0x00, 0x00, 0x00}, /* 24MHz XTal */ in cxd2841er_sleep_tc_to_active_t2_band()
2176 {0x11, 0xF0, 0x00, 0x00, 0x00} /* 41MHz XTal */ in cxd2841er_sleep_tc_to_active_t2_band()
2181 {0x14, 0x80, 0x00, 0x00, 0x00}, /* 20.5MHz XTal */ in cxd2841er_sleep_tc_to_active_t2_band()
2182 {0x18, 0x00, 0x00, 0x00, 0x00}, /* 24MHz XTal */ in cxd2841er_sleep_tc_to_active_t2_band()
2183 {0x14, 0x80, 0x00, 0x00, 0x00} /* 41MHz XTal */ in cxd2841er_sleep_tc_to_active_t2_band()
2188 {0x17, 0xEA, 0xAA, 0xAA, 0xAA}, /* 20.5MHz XTal */ in cxd2841er_sleep_tc_to_active_t2_band()
2189 {0x1C, 0x00, 0x00, 0x00, 0x00}, /* 24MHz XTal */ in cxd2841er_sleep_tc_to_active_t2_band()
2190 {0x17, 0xEA, 0xAA, 0xAA, 0xAA} /* 41MHz XTal */ in cxd2841er_sleep_tc_to_active_t2_band()
2195 {0x1C, 0xB3, 0x33, 0x33, 0x33}, /* 20.5MHz XTal */ in cxd2841er_sleep_tc_to_active_t2_band()
2196 {0x21, 0x99, 0x99, 0x99, 0x99}, /* 24MHz XTal */ in cxd2841er_sleep_tc_to_active_t2_band()
2197 {0x1C, 0xB3, 0x33, 0x33, 0x33} /* 41MHz XTal */ in cxd2841er_sleep_tc_to_active_t2_band()
2202 {0x58, 0xE2, 0xAF, 0xE0, 0xBC}, /* 20.5MHz XTal */ in cxd2841er_sleep_tc_to_active_t2_band()
2203 {0x68, 0x0F, 0xA2, 0x32, 0xD0}, /* 24MHz XTal */ in cxd2841er_sleep_tc_to_active_t2_band()
2204 {0x58, 0xE2, 0xAF, 0xE0, 0xBC} /* 41MHz XTal */ in cxd2841er_sleep_tc_to_active_t2_band()
2209 0x23, 0xA9, 0x1F, 0xA8, 0x2C, 0xC8}, /* 20.5MHz XTal */ in cxd2841er_sleep_tc_to_active_t2_band()
2211 0x29, 0xA5, 0x2A, 0xAC, 0x29, 0xB5}, /* 24MHz XTal */ in cxd2841er_sleep_tc_to_active_t2_band()
2213 0x23, 0xA9, 0x1F, 0xA8, 0x2C, 0xC8} /* 41MHz XTal */ in cxd2841er_sleep_tc_to_active_t2_band()
2218 0x29, 0xB0, 0x26, 0xA9, 0x21, 0xA5}, /* 20.5MHz XTal */ in cxd2841er_sleep_tc_to_active_t2_band()
2220 0x29, 0xA2, 0x2B, 0xA6, 0x2B, 0xAD}, /* 24MHz XTal */ in cxd2841er_sleep_tc_to_active_t2_band()
2222 0x29, 0xB0, 0x26, 0xA9, 0x21, 0xA5} /* 41MHz XTal */ in cxd2841er_sleep_tc_to_active_t2_band()
2227 0x00, 0xCF, 0x00, 0xE6, 0x23, 0xA4}, /* 20.5MHz XTal */ in cxd2841er_sleep_tc_to_active_t2_band()
2229 0x29, 0xA4, 0x29, 0xA2, 0x29, 0xA8}, /* 24MHz XTal */ in cxd2841er_sleep_tc_to_active_t2_band()
2231 0x00, 0xCF, 0x00, 0xE6, 0x23, 0xA4} /* 41MHz XTal */ in cxd2841er_sleep_tc_to_active_t2_band()
2236 0x00, 0xCF, 0x00, 0xE6, 0x23, 0xA4}, /* 20.5MHz XTal */ in cxd2841er_sleep_tc_to_active_t2_band()
2238 0x29, 0xA4, 0x29, 0xA2, 0x29, 0xA8}, /* 24MHz XTal */ in cxd2841er_sleep_tc_to_active_t2_band()
2240 0x00, 0xCF, 0x00, 0xE6, 0x23, 0xA4} /* 41MHz XTal */ in cxd2841er_sleep_tc_to_active_t2_band()
2245 0x32, 0x90, 0x2C, 0x9D, 0x29, 0x99}, /* 20.5MHz XTal */ in cxd2841er_sleep_tc_to_active_t2_band()
2247 0x30, 0x97, 0x2D, 0x9A, 0x21, 0xA4}, /* 24MHz XTal */ in cxd2841er_sleep_tc_to_active_t2_band()
2249 0x32, 0x90, 0x2C, 0x9D, 0x29, 0x99} /* 41MHz XTal */ in cxd2841er_sleep_tc_to_active_t2_band()
2259 0x9F, nominalRate8bw[priv->xtal], 5); in cxd2841er_sleep_tc_to_active_t2_band()
2274 0xA6, itbCoef8bw[priv->xtal], 14); in cxd2841er_sleep_tc_to_active_t2_band()
2277 iffreq = cxd2841er_calc_iffreq_xtal(priv->xtal, ifhz); in cxd2841er_sleep_tc_to_active_t2_band()
2289 0x9F, nominalRate7bw[priv->xtal], 5); in cxd2841er_sleep_tc_to_active_t2_band()
2304 0xA6, itbCoef7bw[priv->xtal], 14); in cxd2841er_sleep_tc_to_active_t2_band()
2307 iffreq = cxd2841er_calc_iffreq_xtal(priv->xtal, ifhz); in cxd2841er_sleep_tc_to_active_t2_band()
2319 0x9F, nominalRate6bw[priv->xtal], 5); in cxd2841er_sleep_tc_to_active_t2_band()
2334 0xA6, itbCoef6bw[priv->xtal], 14); in cxd2841er_sleep_tc_to_active_t2_band()
2337 iffreq = cxd2841er_calc_iffreq_xtal(priv->xtal, ifhz); in cxd2841er_sleep_tc_to_active_t2_band()
2349 0x9F, nominalRate5bw[priv->xtal], 5); in cxd2841er_sleep_tc_to_active_t2_band()
2364 0xA6, itbCoef5bw[priv->xtal], 14); in cxd2841er_sleep_tc_to_active_t2_band()
2367 iffreq = cxd2841er_calc_iffreq_xtal(priv->xtal, ifhz); in cxd2841er_sleep_tc_to_active_t2_band()
2379 0x9F, nominalRate17bw[priv->xtal], 5); in cxd2841er_sleep_tc_to_active_t2_band()
2394 0xA6, itbCoef17bw[priv->xtal], 14); in cxd2841er_sleep_tc_to_active_t2_band()
2397 iffreq = cxd2841er_calc_iffreq_xtal(priv->xtal, ifhz); in cxd2841er_sleep_tc_to_active_t2_band()
2419 {0x11, 0xF0, 0x00, 0x00, 0x00}, /* 20.5MHz XTal */ in cxd2841er_sleep_tc_to_active_t_band()
2420 {0x15, 0x00, 0x00, 0x00, 0x00}, /* 24MHz XTal */ in cxd2841er_sleep_tc_to_active_t_band()
2421 {0x11, 0xF0, 0x00, 0x00, 0x00} /* 41MHz XTal */ in cxd2841er_sleep_tc_to_active_t_band()
2425 {0x14, 0x80, 0x00, 0x00, 0x00}, /* 20.5MHz XTal */ in cxd2841er_sleep_tc_to_active_t_band()
2426 {0x18, 0x00, 0x00, 0x00, 0x00}, /* 24MHz XTal */ in cxd2841er_sleep_tc_to_active_t_band()
2427 {0x14, 0x80, 0x00, 0x00, 0x00} /* 41MHz XTal */ in cxd2841er_sleep_tc_to_active_t_band()
2431 {0x17, 0xEA, 0xAA, 0xAA, 0xAA}, /* 20.5MHz XTal */ in cxd2841er_sleep_tc_to_active_t_band()
2432 {0x1C, 0x00, 0x00, 0x00, 0x00}, /* 24MHz XTal */ in cxd2841er_sleep_tc_to_active_t_band()
2433 {0x17, 0xEA, 0xAA, 0xAA, 0xAA} /* 41MHz XTal */ in cxd2841er_sleep_tc_to_active_t_band()
2437 {0x1C, 0xB3, 0x33, 0x33, 0x33}, /* 20.5MHz XTal */ in cxd2841er_sleep_tc_to_active_t_band()
2438 {0x21, 0x99, 0x99, 0x99, 0x99}, /* 24MHz XTal */ in cxd2841er_sleep_tc_to_active_t_band()
2439 {0x1C, 0xB3, 0x33, 0x33, 0x33} /* 41MHz XTal */ in cxd2841er_sleep_tc_to_active_t_band()
2444 0x1F, 0xA8, 0x2C, 0xC8}, /* 20.5MHz XTal */ in cxd2841er_sleep_tc_to_active_t_band()
2446 0x2A, 0xAC, 0x29, 0xB5}, /* 24MHz XTal */ in cxd2841er_sleep_tc_to_active_t_band()
2448 0x1F, 0xA8, 0x2C, 0xC8} /* 41MHz XTal */ in cxd2841er_sleep_tc_to_active_t_band()
2452 0x26, 0xA9, 0x21, 0xA5}, /* 20.5MHz XTal */ in cxd2841er_sleep_tc_to_active_t_band()
2454 0x2B, 0xA6, 0x2B, 0xAD}, /* 24MHz XTal */ in cxd2841er_sleep_tc_to_active_t_band()
2456 0x26, 0xA9, 0x21, 0xA5} /* 41MHz XTal */ in cxd2841er_sleep_tc_to_active_t_band()
2460 0x00, 0xE6, 0x23, 0xA4}, /* 20.5MHz XTal */ in cxd2841er_sleep_tc_to_active_t_band()
2462 0x29, 0xA2, 0x29, 0xA8}, /* 24MHz XTal */ in cxd2841er_sleep_tc_to_active_t_band()
2464 0x00, 0xE6, 0x23, 0xA4} /* 41MHz XTal */ in cxd2841er_sleep_tc_to_active_t_band()
2468 0x00, 0xE6, 0x23, 0xA4}, /* 20.5MHz XTal */ in cxd2841er_sleep_tc_to_active_t_band()
2470 0x29, 0xA2, 0x29, 0xA8}, /* 24MHz XTal */ in cxd2841er_sleep_tc_to_active_t_band()
2472 0x00, 0xE6, 0x23, 0xA4} /* 41MHz XTal */ in cxd2841er_sleep_tc_to_active_t_band()
2489 0x9F, nominalRate8bw[priv->xtal], 5); in cxd2841er_sleep_tc_to_active_t_band()
2495 0xA6, itbCoef8bw[priv->xtal], 14); in cxd2841er_sleep_tc_to_active_t_band()
2498 iffreq = cxd2841er_calc_iffreq_xtal(priv->xtal, ifhz); in cxd2841er_sleep_tc_to_active_t_band()
2508 if (priv->xtal == SONY_XTAL_24000) { in cxd2841er_sleep_tc_to_active_t_band()
2526 0x9F, nominalRate7bw[priv->xtal], 5); in cxd2841er_sleep_tc_to_active_t_band()
2532 0xA6, itbCoef7bw[priv->xtal], 14); in cxd2841er_sleep_tc_to_active_t_band()
2535 iffreq = cxd2841er_calc_iffreq_xtal(priv->xtal, ifhz); in cxd2841er_sleep_tc_to_active_t_band()
2545 if (priv->xtal == SONY_XTAL_24000) { in cxd2841er_sleep_tc_to_active_t_band()
2563 0x9F, nominalRate6bw[priv->xtal], 5); in cxd2841er_sleep_tc_to_active_t_band()
2569 0xA6, itbCoef6bw[priv->xtal], 14); in cxd2841er_sleep_tc_to_active_t_band()
2572 iffreq = cxd2841er_calc_iffreq_xtal(priv->xtal, ifhz); in cxd2841er_sleep_tc_to_active_t_band()
2582 if (priv->xtal == SONY_XTAL_24000) { in cxd2841er_sleep_tc_to_active_t_band()
2600 0x9F, nominalRate5bw[priv->xtal], 5); in cxd2841er_sleep_tc_to_active_t_band()
2606 0xA6, itbCoef5bw[priv->xtal], 14); in cxd2841er_sleep_tc_to_active_t_band()
2609 iffreq = cxd2841er_calc_iffreq_xtal(priv->xtal, ifhz); in cxd2841er_sleep_tc_to_active_t_band()
2619 if (priv->xtal == SONY_XTAL_24000) { in cxd2841er_sleep_tc_to_active_t_band()
2647 {0x00, 0x00, 0x00, 0x00, 0x00}, /* 20.5MHz XTal */ in cxd2841er_sleep_tc_to_active_i_band()
2648 {0x11, 0xB8, 0x00, 0x00, 0x00}, /* 24MHz XTal */ in cxd2841er_sleep_tc_to_active_i_band()
2649 {0x00, 0x00, 0x00, 0x00, 0x00} /* 41MHz XTal */ in cxd2841er_sleep_tc_to_active_i_band()
2653 {0x00, 0x00, 0x00, 0x00, 0x00}, /* 20.5MHz XTal */ in cxd2841er_sleep_tc_to_active_i_band()
2654 {0x14, 0x40, 0x00, 0x00, 0x00}, /* 24MHz XTal */ in cxd2841er_sleep_tc_to_active_i_band()
2655 {0x00, 0x00, 0x00, 0x00, 0x00} /* 41MHz XTal */ in cxd2841er_sleep_tc_to_active_i_band()
2659 {0x14, 0x2E, 0x00, 0x00, 0x00}, /* 20.5MHz XTal */ in cxd2841er_sleep_tc_to_active_i_band()
2660 {0x17, 0xA0, 0x00, 0x00, 0x00}, /* 24MHz XTal */ in cxd2841er_sleep_tc_to_active_i_band()
2661 {0x14, 0x2E, 0x00, 0x00, 0x00} /* 41MHz XTal */ in cxd2841er_sleep_tc_to_active_i_band()
2665 {0x00}, /* 20.5MHz XTal */ in cxd2841er_sleep_tc_to_active_i_band()
2667 0xA5, 0x2A, 0xAC, 0x29, 0xB5}, /* 24MHz Xtal */ in cxd2841er_sleep_tc_to_active_i_band()
2668 {0x0}, /* 41MHz XTal */ in cxd2841er_sleep_tc_to_active_i_band()
2672 {0x00}, /* 20.5MHz XTal */ in cxd2841er_sleep_tc_to_active_i_band()
2674 0xA2, 0x2B, 0xA6, 0x2B, 0xAD}, /* 24MHz Xtal */ in cxd2841er_sleep_tc_to_active_i_band()
2675 {0x00}, /* 41MHz XTal */ in cxd2841er_sleep_tc_to_active_i_band()
2680 0xCF, 0x00, 0xE6, 0x23, 0xA4}, /* 20.5MHz XTal */ in cxd2841er_sleep_tc_to_active_i_band()
2682 0xA4, 0x29, 0xA2, 0x29, 0xA8}, /* 24MHz Xtal */ in cxd2841er_sleep_tc_to_active_i_band()
2684 0xCF, 0x00, 0xE6, 0x23, 0xA4}, /* 41MHz XTal */ in cxd2841er_sleep_tc_to_active_i_band()
2691 /* 20.5/41MHz Xtal support is not available in cxd2841er_sleep_tc_to_active_i_band()
2694 if (priv->xtal != SONY_XTAL_24000 && bandwidth > 6000000) { in cxd2841er_sleep_tc_to_active_i_band()
2696 "%s(): bandwidth %d supported only for 24MHz xtal\n", in cxd2841er_sleep_tc_to_active_i_band()
2705 0x9F, nominalRate8bw[priv->xtal], 5); in cxd2841er_sleep_tc_to_active_i_band()
2709 0xA6, itbCoef8bw[priv->xtal], 14); in cxd2841er_sleep_tc_to_active_i_band()
2713 iffreq = cxd2841er_calc_iffreq_xtal(priv->xtal, ifhz); in cxd2841er_sleep_tc_to_active_i_band()
2736 0x9F, nominalRate7bw[priv->xtal], 5); in cxd2841er_sleep_tc_to_active_i_band()
2740 0xA6, itbCoef7bw[priv->xtal], 14); in cxd2841er_sleep_tc_to_active_i_band()
2744 iffreq = cxd2841er_calc_iffreq_xtal(priv->xtal, ifhz); in cxd2841er_sleep_tc_to_active_i_band()
2767 0x9F, nominalRate6bw[priv->xtal], 5); in cxd2841er_sleep_tc_to_active_i_band()
2771 0xA6, itbCoef6bw[priv->xtal], 14); in cxd2841er_sleep_tc_to_active_i_band()
2775 iffreq = cxd2841er_calc_iffreq_xtal(priv->xtal, ifhz); in cxd2841er_sleep_tc_to_active_i_band()
2785 if (priv->xtal == SONY_XTAL_24000) { in cxd2841er_sleep_tc_to_active_i_band()
2916 if (priv->xtal == SONY_XTAL_41000) { in cxd2841er_sleep_tc_to_active_t()
2949 if (priv->xtal == SONY_XTAL_24000) { in cxd2841er_sleep_tc_to_active_t()
2991 if (priv->xtal == SONY_XTAL_41000) { in cxd2841er_sleep_tc_to_active_t2()
3044 /* 24MHz Xtal setting */ in cxd2841er_sleep_tc_to_active_t2()
3045 if (priv->xtal == SONY_XTAL_24000) { in cxd2841er_sleep_tc_to_active_t2()
3147 /* xtal freq 20.5MHz or 24M */ in cxd2841er_sleep_tc_to_active_i()
3182 /* for xtal 24MHz */ in cxd2841er_sleep_tc_to_active_i()
3223 /* xtal freq 20.5MHz */ in cxd2841er_sleep_tc_to_active_c()
3306 dev_dbg(&priv->i2c->dev, "%s(): %s frequency=%d symbol_rate=%d xtal=%d\n", in cxd2841er_set_frontend_s()
3309 p->frequency, symbol_rate, priv->xtal); in cxd2841er_set_frontend_s()
3853 priv->xtal = cfg->xtal; in cxd2841er_attach()