Home
last modified time | relevance | path

Searched refs:msel (Results 1 – 5 of 5) sorted by relevance

/linux-6.1.9/drivers/clk/nxp/
Dclk-lpc18xx-cgu.c306 static u32 lpc18xx_pll0_msel2mdec(u32 msel) in lpc18xx_pll0_msel2mdec() argument
310 switch (msel) { in lpc18xx_pll0_msel2mdec()
315 for (i = msel; i <= LPC18XX_PLL0_MSEL_MAX; i++) in lpc18xx_pll0_msel2mdec()
322 static u32 lpc18xx_pll0_msel2seli(u32 msel) in lpc18xx_pll0_msel2seli() argument
326 if (msel > 16384) return 1; in lpc18xx_pll0_msel2seli()
327 if (msel > 8192) return 2; in lpc18xx_pll0_msel2seli()
328 if (msel > 2048) return 4; in lpc18xx_pll0_msel2seli()
329 if (msel >= 501) return 8; in lpc18xx_pll0_msel2seli()
330 if (msel >= 60) { in lpc18xx_pll0_msel2seli()
331 tmp = 1024 / (msel + 9); in lpc18xx_pll0_msel2seli()
[all …]
/linux-6.1.9/drivers/fpga/
Dsocfpga-a10.c278 u32 msel, stat, mask; in socfpga_a10_fpga_write_init() local
287 msel = socfpga_a10_fpga_read_stat(priv); in socfpga_a10_fpga_write_init()
288 msel &= A10_FPGAMGR_IMGCFG_STAT_F2S_MSEL_MASK; in socfpga_a10_fpga_write_init()
289 msel >>= A10_FPGAMGR_IMGCFG_STAT_F2S_MSEL_SHIFT; in socfpga_a10_fpga_write_init()
290 if ((msel != 0) && (msel != 1)) { in socfpga_a10_fpga_write_init()
291 dev_dbg(&mgr->dev, "Fail: invalid msel=%d\n", msel); in socfpga_a10_fpga_write_init()
Dsocfpga.c322 u32 msel; in socfpga_fpga_cfg_mode_get() local
324 msel = socfpga_fpga_readl(priv, SOCFPGA_FPGMGR_STAT_OFST); in socfpga_fpga_cfg_mode_get()
325 msel &= SOCFPGA_FPGMGR_STAT_MSEL_MASK; in socfpga_fpga_cfg_mode_get()
326 msel >>= SOCFPGA_FPGMGR_STAT_MSEL_SHIFT; in socfpga_fpga_cfg_mode_get()
329 if ((msel >= ARRAY_SIZE(cfgmgr_modes)) || !cfgmgr_modes[msel].valid) in socfpga_fpga_cfg_mode_get()
332 return msel; in socfpga_fpga_cfg_mode_get()
/linux-6.1.9/drivers/pinctrl/renesas/
Dsh_pfc.h385 #define PINMUX_IPSR_NOGM(ipsr, fn, msel) \ argument
386 PINMUX_DATA(fn##_MARK, FN_##fn, FN_##msel)
408 #define PINMUX_IPSR_MSEL(ipsr, fn, msel) \ argument
409 PINMUX_DATA(fn##_MARK, FN_##msel, FN_##fn, FN_##ipsr)
420 #define PINMUX_IPSR_PHYS_MSEL(ipsr, fn, psel, msel) \ argument
421 PINMUX_DATA(fn##_MARK, FN_##psel, FN_##msel, FN_##fn, FN_##ipsr)
/linux-6.1.9/drivers/net/dsa/sja1105/
Dsja1105_clocking.c57 u64 msel; member
329 sja1105_packing(buf, &cmd->msel, 23, 16, size, op); in sja1105_cgu_pll_control_packing()
701 pll.msel = 0x1; in sja1105_cgu_rmii_pll_config()