Searched +full:lpc1850 +full:- +full:creg (Results 1 – 5 of 5) sorted by relevance
/linux/drivers/clk/nxp/ |
H A D | clk-lpc18xx-creg.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Clk driver for NXP LPC18xx/43xx Configuration Registers (CREG) 8 #include <linux/clk-provider.h> 47 struct clk_creg_data *creg = to_clk_creg(hw); in clk_creg_32k_prepare() local 50 ret = regmap_update_bits(creg->reg, LPC18XX_CREG_CREG0, in clk_creg_32k_prepare() 65 struct clk_creg_data *creg = to_clk_creg(hw); in clk_creg_32k_unprepare() local 67 regmap_update_bits(creg->reg, LPC18XX_CREG_CREG0, in clk_creg_32k_unprepare() 74 struct clk_creg_data *creg = to_clk_creg(hw); in clk_creg_32k_is_prepared() local 77 regmap_read(creg->reg, LPC18XX_CREG_CREG0, ®); in clk_creg_32k_is_prepared() 91 struct clk_creg_data *creg = to_clk_creg(hw); in clk_creg_enable() local [all …]
|
/linux/drivers/net/ethernet/stmicro/stmmac/ |
H A D | dwmac-lpc18xx.c | 22 /* Register defines for CREG syscon */ 44 plat_dat->mac_interface = PHY_INTERFACE_MODE_NA; in lpc18xx_dwmac_probe() 45 plat_dat->has_gmac = true; in lpc18xx_dwmac_probe() 47 reg = syscon_regmap_lookup_by_compatible("nxp,lpc1850-creg"); in lpc18xx_dwmac_probe() 49 dev_err(&pdev->dev, "syscon lookup failed\n"); in lpc18xx_dwmac_probe() 53 if (plat_dat->phy_interface == PHY_INTERFACE_MODE_MII) { in lpc18xx_dwmac_probe() 55 } else if (plat_dat->phy_interface == PHY_INTERFACE_MODE_RMII) { in lpc18xx_dwmac_probe() 58 dev_err(&pdev->dev, "Only MII and RMII mode supported\n"); in lpc18xx_dwmac_probe() 59 return -EINVAL; in lpc18xx_dwmac_probe() 65 return stmmac_dvr_probe(&pdev->dev, plat_dat, &stmmac_res); in lpc18xx_dwmac_probe() [all …]
|
/linux/arch/arm/boot/dts/nxp/lpc/ |
H A D | lpc18xx.dtsi | 9 * Released under the terms of 3-clause BSD License 14 #include "../../armv7-m.dtsi" 16 #include "dt-bindings/clock/lpc18xx-cgu.h" 17 #include "dt-bindings/clock/lpc18xx-ccu.h" 23 #address-cells = <1>; 24 #size-cells = <1>; 27 #address-cells = <1>; 28 #size-cells = <0>; 31 compatible = "arm,cortex-m3"; 40 compatible = "fixed-clock"; [all …]
|
/linux/drivers/dma/ |
H A D | lpc18xx-dmamux.c | 1 // SPDX-License-Identifier: GPL-2.0-only 8 * Copyright (C) 2015 Texas Instruments Incorporated - http://www.ti.com 22 /* CREG register offset and macros for mux manipulation */ 48 spin_lock_irqsave(&dmamux->lock, flags); in lpc18xx_dmamux_free() 49 mux->busy = false; in lpc18xx_dmamux_free() 50 spin_unlock_irqrestore(&dmamux->lock, flags); in lpc18xx_dmamux_free() 56 struct platform_device *pdev = of_find_device_by_node(ofdma->of_node); in lpc18xx_dmamux_reserve() 61 if (dma_spec->args_count != 3) { in lpc18xx_dmamux_reserve() 62 dev_err(&pdev->dev, "invalid number of dma mux args\n"); in lpc18xx_dmamux_reserve() 63 return ERR_PTR(-EINVAL); in lpc18xx_dmamux_reserve() [all …]
|
/linux/drivers/phy/ |
H A D | phy-lpc18xx-usb-otg.c | 1 // SPDX-License-Identifier: GPL-2.0-only 17 /* USB OTG PHY register offset and bit in CREG */ 33 ret = clk_set_rate(lpc->clk, 480000000); in lpc18xx_usb_otg_phy_init() 37 return clk_prepare(lpc->clk); in lpc18xx_usb_otg_phy_init() 44 clk_unprepare(lpc->clk); in lpc18xx_usb_otg_phy_exit() 54 ret = clk_enable(lpc->clk); in lpc18xx_usb_otg_phy_power_on() 58 /* The bit in CREG is cleared to enable the PHY */ in lpc18xx_usb_otg_phy_power_on() 59 ret = regmap_update_bits(lpc->reg, LPC18XX_CREG_CREG0, in lpc18xx_usb_otg_phy_power_on() 62 clk_disable(lpc->clk); in lpc18xx_usb_otg_phy_power_on() 74 ret = regmap_update_bits(lpc->reg, LPC18XX_CREG_CREG0, in lpc18xx_usb_otg_phy_power_off() [all …]
|