Searched refs:lpc (Results 1 - 19 of 19) sorted by relevance

/linux-4.4.14/drivers/phy/
H A Dphy-lpc18xx-usb-otg.c33 struct lpc18xx_usb_otg_phy *lpc = phy_get_drvdata(phy); lpc18xx_usb_otg_phy_init() local
37 ret = clk_set_rate(lpc->clk, 480000000); lpc18xx_usb_otg_phy_init()
41 return clk_prepare(lpc->clk); lpc18xx_usb_otg_phy_init()
46 struct lpc18xx_usb_otg_phy *lpc = phy_get_drvdata(phy); lpc18xx_usb_otg_phy_exit() local
48 clk_unprepare(lpc->clk); lpc18xx_usb_otg_phy_exit()
55 struct lpc18xx_usb_otg_phy *lpc = phy_get_drvdata(phy); lpc18xx_usb_otg_phy_power_on() local
58 ret = clk_enable(lpc->clk); lpc18xx_usb_otg_phy_power_on()
63 return regmap_update_bits(lpc->reg, LPC18XX_CREG_CREG0, lpc18xx_usb_otg_phy_power_on()
69 struct lpc18xx_usb_otg_phy *lpc = phy_get_drvdata(phy); lpc18xx_usb_otg_phy_power_off() local
72 ret = regmap_update_bits(lpc->reg, LPC18XX_CREG_CREG0, lpc18xx_usb_otg_phy_power_off()
78 clk_disable(lpc->clk); lpc18xx_usb_otg_phy_power_off()
94 struct lpc18xx_usb_otg_phy *lpc; lpc18xx_usb_otg_phy_probe() local
96 lpc = devm_kzalloc(&pdev->dev, sizeof(*lpc), GFP_KERNEL); lpc18xx_usb_otg_phy_probe()
97 if (!lpc) lpc18xx_usb_otg_phy_probe()
100 lpc->reg = syscon_node_to_regmap(pdev->dev.of_node->parent); lpc18xx_usb_otg_phy_probe()
101 if (IS_ERR(lpc->reg)) { lpc18xx_usb_otg_phy_probe()
103 return PTR_ERR(lpc->reg); lpc18xx_usb_otg_phy_probe()
106 lpc->clk = devm_clk_get(&pdev->dev, NULL); lpc18xx_usb_otg_phy_probe()
107 if (IS_ERR(lpc->clk)) { lpc18xx_usb_otg_phy_probe()
109 return PTR_ERR(lpc->clk); lpc18xx_usb_otg_phy_probe()
112 lpc->phy = devm_phy_create(&pdev->dev, NULL, &lpc18xx_usb_otg_phy_ops); lpc18xx_usb_otg_phy_probe()
113 if (IS_ERR(lpc->phy)) { lpc18xx_usb_otg_phy_probe()
115 return PTR_ERR(lpc->phy); lpc18xx_usb_otg_phy_probe()
118 phy_set_drvdata(lpc->phy, lpc); lpc18xx_usb_otg_phy_probe()
/linux-4.4.14/drivers/clocksource/
H A Dclksrc_st_lpc.c22 #include <dt-bindings/mfd/st-lpc.h>
59 "clksrc-st-lpc", rate, 300, 32, st_clksrc_init()
62 pr_err("clksrc-st-lpc: Failed to register clocksource\n"); st_clksrc_init()
75 pr_err("clksrc-st-lpc: Failed to get LPC clock\n"); st_clksrc_setup_clk()
80 pr_err("clksrc-st-lpc: Failed to enable LPC clock\n"); st_clksrc_setup_clk()
85 pr_err("clksrc-st-lpc: Failed to get LPC clock rate\n"); st_clksrc_setup_clk()
100 ret = of_property_read_u32(np, "st,lpc-mode", &mode); st_clksrc_of_register()
102 pr_err("clksrc-st-lpc: An LPC mode must be provided\n"); st_clksrc_of_register()
112 pr_err("clksrc-st-lpc: Unable to map iomem\n"); st_clksrc_of_register()
128 pr_info("clksrc-st-lpc: clocksource initialised - running @ %luHz\n", st_clksrc_of_register()
131 CLOCKSOURCE_OF_DECLARE(ddata, "st,stih407-lpc", st_clksrc_of_register);
/linux-4.4.14/drivers/watchdog/
H A Dst_lpc_wdt.c27 #include <dt-bindings/mfd/st-lpc.h>
83 .compatible = "st,stih407-lpc",
87 .compatible = "st,stih416-lpc",
91 .compatible = "st,stih415-lpc",
95 .compatible = "st,stid127-lpc",
194 ret = of_property_read_u32(np, "st,lpc-mode", &mode); st_wdog_probe()
334 .name = "st-lpc-wdt",
/linux-4.4.14/arch/powerpc/platforms/powernv/
H A Dopal-lpc.c192 struct lpc_debugfs_entry *lpc = filp->private_data; lpc_debug_read() local
209 if (lpc->lpc_type == OPAL_LPC_FW) { lpc_debug_read()
215 rc = opal_lpc_read(opal_lpc_chip_id, lpc->lpc_type, pos, lpc_debug_read()
283 struct lpc_debugfs_entry *lpc = filp->private_data; lpc_debug_write() local
300 if (lpc->lpc_type == OPAL_LPC_FW) { lpc_debug_write()
339 rc = opal_lpc_write(opal_lpc_chip_id, lpc->lpc_type, pos, lpc_debug_write()
379 root = debugfs_create_dir("lpc", powerpc_debugfs_root); opal_lpc_init_debugfs()
398 for_each_compatible_node(np, NULL, "ibm,power8-lpc") { opal_lpc_init()
/linux-4.4.14/drivers/rtc/
H A Drtc-st-lpc.c2 * rtc-st-lpc.c - ST's LPC RTC, powered by the Low Power Timer
29 #include <dt-bindings/mfd/st-lpc.h>
205 ret = of_property_read_u32(np, "st,lpc-mode", &mode); st_rtc_probe()
275 rtc->rtc_dev = rtc_device_register("st-lpc-rtc", &pdev->dev, st_rtc_probe()
335 { .compatible = "st,stih407-lpc" },
342 .name = "st-lpc-rtc",
H A DMakefile144 obj-$(CONFIG_RTC_DRV_ST_LPC) += rtc-st-lpc.o
/linux-4.4.14/arch/powerpc/platforms/512x/
H A Dmpc512x_shared.c493 static struct mpc512x_lpc __iomem *lpc; mpc512x_cs_config() local
499 if (!lpc) { mpc512x_cs_config()
500 np = of_find_compatible_node(NULL, NULL, "fsl,mpc5121-lpc"); mpc512x_cs_config()
501 lpc = of_iomap(np, 0); mpc512x_cs_config()
503 if (!lpc) mpc512x_cs_config()
507 out_be32(&lpc->cs_cfg[cs], val); mpc512x_cs_config()
H A Dclock-commonclk.c809 clks[MPC512x_CLK_LPC_UG] = mpc512x_clk_divtable("lpc-ug", "ips", mpc512x_clk_setup_clock_tree()
813 clks[MPC512x_CLK_LPC] = mpc512x_clk_gated("lpc", "lpc-ug", mpc512x_clk_setup_clock_tree()
/linux-4.4.14/drivers/misc/
H A Dcs5535-mfgpt.c102 uint32_t zsel, lpc, dummy; cs5535_mfgpt_set_irq() local
132 rdmsr(MSR_PIC_IRQM_LPC, lpc, dummy); cs5535_mfgpt_set_irq()
133 if (lpc & (1 << *irq)) cs5535_mfgpt_set_irq()
H A Dapds990x.c449 u32 lpc; /* Lux per count */ apds990x_get_lux() local
461 lpc = APDS990X_LUX_OUTPUT_SCALE * (chip->cf.df * chip->cf.ga) / apds990x_get_lux()
464 return (iac * lpc) / APDS_PARAM_SCALE; apds990x_get_lux()
/linux-4.4.14/arch/powerpc/kernel/
H A Dlegacy_serial.c234 * Note: Don't even try on P8 lpc, we know it's not directly mapped add_legacy_isa_port()
236 if (!of_device_is_compatible(isa_brg, "ibm,power8-lpc")) { add_legacy_isa_port()
400 !strcmp(isa->name, "lpc"))) { find_legacy_serial_ports()
/linux-4.4.14/drivers/platform/chrome/
H A Dcros_ec_lpc.c17 * to the AP over some bus (such as i2c, lpc, spi). The EC does debouncing,
/linux-4.4.14/drivers/mmc/host/
H A Ddw_mmc.h3 * (Based on NXP driver for lpc 31xx)
H A Ddw_mmc.c3 * (Based on NXP driver for lpc 31xx)
/linux-4.4.14/drivers/input/keyboard/
H A Dcros_ec_keyb.c17 * to the AP over some bus (such as i2c, lpc, spi). The EC does debouncing,
/linux-4.4.14/include/linux/mmc/
H A Ddw_mmc.h3 * (Based on NXP driver for lpc 31xx)
/linux-4.4.14/drivers/edac/
H A Damd8111_edac.c329 .ctl_name = "lpc",
/linux-4.4.14/drivers/net/ethernet/nxp/
H A Dlpc_eth.c51 #define MODNAME "lpc-eth"
1584 { .compatible = "nxp,lpc-eth" },
/linux-4.4.14/include/linux/mfd/
H A Dcros_ec_commands.h638 * on lpc since it has its own out-of-band busy indicator.
640 * lpc must read the status from the command register. Attempting this on
641 * lpc will overwrite the args/parameter space and corrupt its data.

Completed in 844 milliseconds