| /OK3568_Linux_fs/kernel/drivers/ssb/ |
| H A D | driver_chipcommon_pmu.c | 182 u8 p1div; member 187 { .freq = 12000, .xf = 1, .p1div = 3, .p2div = 22, .ndiv_int = 0x9, .ndiv_frac = 0xFFFFEF, }, 188 { .freq = 13000, .xf = 2, .p1div = 1, .p2div = 6, .ndiv_int = 0xb, .ndiv_frac = 0x483483, }, 189 { .freq = 14400, .xf = 3, .p1div = 1, .p2div = 10, .ndiv_int = 0xa, .ndiv_frac = 0x1C71C7, }, 190 { .freq = 15360, .xf = 4, .p1div = 1, .p2div = 5, .ndiv_int = 0xb, .ndiv_frac = 0x755555, }, 191 { .freq = 16200, .xf = 5, .p1div = 1, .p2div = 10, .ndiv_int = 0x5, .ndiv_frac = 0x6E9E06, }, 192 { .freq = 16800, .xf = 6, .p1div = 1, .p2div = 10, .ndiv_int = 0x5, .ndiv_frac = 0x3CF3CF, }, 193 { .freq = 19200, .xf = 7, .p1div = 1, .p2div = 9, .ndiv_int = 0x5, .ndiv_frac = 0x17B425, }, 194 { .freq = 19800, .xf = 8, .p1div = 1, .p2div = 11, .ndiv_int = 0x4, .ndiv_frac = 0xA57EB, }, 195 { .freq = 20000, .xf = 9, .p1div = 1, .p2div = 11, .ndiv_int = 0x4, .ndiv_frac = 0, }, [all …]
|
| /OK3568_Linux_fs/kernel/drivers/bcma/ |
| H A D | driver_chipcommon_pmu.c | 391 u32 tmp, ndiv, p1div, p2div; in bcma_pmu_pll_clock_bcm4706() local 400 p1div = (tmp & BCMA_CC_PMU6_4706_PROC_P1DIV_MASK) in bcma_pmu_pll_clock_bcm4706() 408 clock = (25000000 / 4) * ndiv * p2div / p1div; in bcma_pmu_pll_clock_bcm4706() 411 clock = (25000000 / 2) * ndiv * p2div / p1div; in bcma_pmu_pll_clock_bcm4706()
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/bcmdhd/ |
| H A D | hndpmu.c | 191 void si_pmu_armpll_freq_upd(si_t *sih, uint8 p1div, uint32 ndiv_int, uint32 ndiv_frac); 192 void si_pmu_bbpll_freq_upd(si_t *sih, uint8 p1div, uint32 ndiv_int, uint32 ndiv_frac); 2540 uint8 p1div; member 3370 uint8 p1div; in si_pmu_pll28nm_calc_ndiv() local 3373 p1div = 1 + (uint8) ((xtal * 1000) / 54000000UL); in si_pmu_pll28nm_calc_ndiv() 3374 *ndiv_int = (fvco * p1div) / xtal; in si_pmu_pll28nm_calc_ndiv() 3377 math_uint64_multiple_add(&temp_high, &temp_low, fvco * p1div - xtal * (*ndiv_int), 1 << 20, in si_pmu_pll28nm_calc_ndiv() 3380 return p1div; in si_pmu_pll28nm_calc_ndiv() 3384 si_pmu_armpll_freq_upd(si_t *sih, uint8 p1div, uint32 ndiv_int, uint32 ndiv_frac) in si_pmu_armpll_freq_upd() argument 3399 ((p1div >> PMU4369_P1DIV_LO_SHIFT) << PMU4369_PLL1_PC5_P1DIV_SHIFT)); in si_pmu_armpll_freq_upd() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/ |
| H A D | hndpmu.c | 191 void si_pmu_armpll_freq_upd(si_t *sih, uint8 p1div, uint32 ndiv_int, uint32 ndiv_frac); 192 void si_pmu_bbpll_freq_upd(si_t *sih, uint8 p1div, uint32 ndiv_int, uint32 ndiv_frac); 2540 uint8 p1div; member 3370 uint8 p1div; in si_pmu_pll28nm_calc_ndiv() local 3373 p1div = 1 + (uint8) ((xtal * 1000) / 54000000UL); in si_pmu_pll28nm_calc_ndiv() 3374 *ndiv_int = (fvco * p1div) / xtal; in si_pmu_pll28nm_calc_ndiv() 3377 math_uint64_multiple_add(&temp_high, &temp_low, fvco * p1div - xtal * (*ndiv_int), 1 << 20, in si_pmu_pll28nm_calc_ndiv() 3380 return p1div; in si_pmu_pll28nm_calc_ndiv() 3384 si_pmu_armpll_freq_upd(si_t *sih, uint8 p1div, uint32 ndiv_int, uint32 ndiv_frac) in si_pmu_armpll_freq_upd() argument 3399 ((p1div >> PMU4369_P1DIV_LO_SHIFT) << PMU4369_PLL1_PC5_P1DIV_SHIFT)); in si_pmu_armpll_freq_upd() [all …]
|