/Linux-v6.1/drivers/clk/nxp/ |
D | clk-lpc18xx-creg.c | 3 * Clk driver for NXP LPC18xx/43xx Configuration Registers (CREG) 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 93 return regmap_update_bits(creg->reg, LPC18XX_CREG_CREG0, in clk_creg_enable() 94 creg->en_mask, creg->en_mask); in clk_creg_enable() [all …]
|
D | Makefile | 4 obj-$(CONFIG_ARCH_LPC18XX) += clk-lpc18xx-creg.o
|
/Linux-v6.1/Documentation/devicetree/bindings/clock/ |
D | lpc1850-creg-clk.txt | 1 * NXP LPC1850 CREG clocks 3 The NXP LPC18xx/43xx CREG (Configuration Registers) block contains 17 Should be "nxp,lpc1850-creg-clk" 23 The creg-clk node must be a child of the creg syscon node. 33 creg: syscon@40043000 { 34 compatible = "nxp,lpc1850-creg", "syscon", "simple-mfd"; 38 compatible = "nxp,lpc1850-creg-clk";
|
/Linux-v6.1/drivers/rtc/ |
D | rtc-rk808.c | 56 struct rk_rtc_compat_reg *creg; member 105 ret = regmap_update_bits(rk808->regmap, rk808_rtc->creg->ctrl_reg, in rk808_rtc_readtime() 119 ret = regmap_update_bits(rk808->regmap, rk808_rtc->creg->ctrl_reg, in rk808_rtc_readtime() 127 ret = regmap_bulk_read(rk808->regmap, rk808_rtc->creg->seconds_reg, in rk808_rtc_readtime() 166 ret = regmap_update_bits(rk808->regmap, rk808_rtc->creg->ctrl_reg, in rk808_rtc_set_time() 174 ret = regmap_bulk_write(rk808->regmap, rk808_rtc->creg->seconds_reg, in rk808_rtc_set_time() 181 ret = regmap_update_bits(rk808->regmap, rk808_rtc->creg->ctrl_reg, in rk808_rtc_set_time() 200 rk808_rtc->creg->alarm_seconds_reg, in rk808_rtc_readalarm() 215 ret = regmap_read(rk808->regmap, rk808_rtc->creg->int_reg, &int_reg); in rk808_rtc_readalarm() 234 ret = regmap_update_bits(rk808->regmap, rk808_rtc->creg->int_reg, in rk808_rtc_stop_alarm() [all …]
|
/Linux-v6.1/drivers/usb/gadget/udc/ |
D | at91_udc.c | 118 csr = __raw_readl(ep->creg); in proc_ep_show() 312 u32 __iomem *creg = ep->creg; in read_fifo() local 313 u8 __iomem *dreg = ep->creg + (AT91_UDP_FDR(0) - AT91_UDP_CSR(0)); in read_fifo() 326 csr = __raw_readl(creg); in read_fifo() 352 __raw_writel(csr, creg); in read_fifo() 374 csr = __raw_readl(creg); in read_fifo() 387 u32 __iomem *creg = ep->creg; in write_fifo() local 388 u32 csr = __raw_readl(creg); in write_fifo() 389 u8 __iomem *dreg = ep->creg + (AT91_UDP_FDR(0) - AT91_UDP_CSR(0)); in write_fifo() 409 __raw_writel(csr, creg); in write_fifo() [all …]
|
D | at91_udc.h | 94 void __iomem *creg; member
|
/Linux-v6.1/Documentation/devicetree/bindings/gpio/ |
D | snps,creg-gpio.txt | 1 Synopsys GPIO via CREG (Control REGisters) driver 4 - compatible : "snps,creg-gpio-hsdk" or "snps,creg-gpio-axs10x". 16 compatible = "snps,creg-gpio-hsdk";
|
/Linux-v6.1/arch/mips/alchemy/common/ |
D | usb.c | 425 static inline void __au1xx0_ohci_control(int enable, unsigned long rb, int creg) in __au1xx0_ohci_control() argument 428 unsigned long r = __raw_readl(base + creg); in __au1xx0_ohci_control() 438 __raw_writel(r | USBHEN_CE, base + creg); in __au1xx0_ohci_control() 441 __raw_writel(r | USBHEN_CE | USBHEN_E, base + creg); in __au1xx0_ohci_control() 446 while (__raw_readl(base + creg), in __au1xx0_ohci_control() 447 !(__raw_readl(base + creg) & USBHEN_RD)) in __au1xx0_ohci_control() 450 __raw_writel(r & ~(USBHEN_CE | USBHEN_E), base + creg); in __au1xx0_ohci_control() 459 int creg) in au1000_usb_control() argument 465 __au1xx0_ohci_control(enable, rb, creg); in au1000_usb_control() 512 static void au1000_usb_pm(unsigned long br, int creg, int susp) in au1000_usb_pm() argument [all …]
|
/Linux-v6.1/Documentation/devicetree/bindings/phy/ |
D | phy-lpc18xx-usb-otg.txt | 14 The phy node must be a child of the creg syscon node. 17 creg: syscon@40043000 { 18 compatible = "nxp,lpc1850-creg", "syscon", "simple-mfd";
|
/Linux-v6.1/sound/drivers/ |
D | mtpav.c | 99 #define CREG 2 macro 212 } else if (reg == CREG) { in snd_mtpav_getreg() 213 rval = inb(chip->port + CREG); in snd_mtpav_getreg() 225 if (reg == DREG || reg == CREG) in snd_mtpav_mputreg() 254 tcbyt = snd_mtpav_getreg(chip, CREG); in snd_mtpav_send_byte() 259 snd_mtpav_mputreg(chip, CREG, clrwrite); // clear write bit in snd_mtpav_send_byte() 261 snd_mtpav_mputreg(chip, CREG, setwrite); // set write bit in snd_mtpav_send_byte() 346 snd_mtpav_mputreg(mtp_card, CREG, (SIGC_INTEN | SIGC_WRITE)); // enable pport interrupts in snd_mtpav_input_open() 364 snd_mtpav_mputreg(mtp_card, CREG, 0); // disable pport interrupts in snd_mtpav_input_close() 530 cbyt = snd_mtpav_getreg(mcrd, CREG); in snd_mtpav_read_bytes() [all …]
|
/Linux-v6.1/drivers/gpio/ |
D | gpio-creg-snps.c | 3 // Synopsys CREG (Control REGisters) GPIO driver 127 .compatible = "snps,creg-gpio-axs10x", 130 .compatible = "snps,creg-gpio-hsdk", 184 .name = "snps-creg-gpio",
|
/Linux-v6.1/drivers/pci/hotplug/ |
D | shpchp_hpc.c | 174 return readb(ctrl->creg + reg); in shpc_readb() 179 return readw(ctrl->creg + reg); in shpc_readw() 184 writew(val, ctrl->creg + reg); in shpc_writew() 189 return readl(ctrl->creg + reg); in shpc_readl() 194 writel(val, ctrl->creg + reg); in shpc_writel() 591 iounmap(ctrl->creg); in hpc_release_ctlr() 955 ctrl_err(ctrl, "Cannot read creg (index = %d)\n", in shpc_init() 983 ctrl->creg = ioremap(ctrl->mmio_base, ctrl->mmio_size); in shpc_init() 984 if (!ctrl->creg) { in shpc_init() 991 ctrl_dbg(ctrl, "ctrl->creg %p\n", ctrl->creg); in shpc_init() [all …]
|
/Linux-v6.1/drivers/video/fbdev/ |
D | dnfb.c | 45 /* CREG 0 */ 52 /* CREG 1 */ 70 /* CREG 2 */ 81 /* CREG 3A/CREG 3B */
|
/Linux-v6.1/arch/arc/plat-axs10x/ |
D | axs10x.c | 74 static void __init axs10x_print_board_ver(unsigned int creg, const char *str) in axs10x_print_board_ver() argument 87 board.val = ioread32((void __iomem *)creg); in axs10x_print_board_ver() 178 {AXC001_SLV_AXI_TUNNEL, 0xE}, /* MB: CREG, CGU... */ 179 {AXC001_SLV_AXI2APB, 0x0}, /* CPU Card local CREG, CGU... */ 224 {AXS_MB_SLV_CONTROL, 0x0}, /* MB Local CREG, CGU... */
|
/Linux-v6.1/drivers/net/ethernet/stmicro/stmmac/ |
D | dwmac-lpc18xx.c | 22 /* Register defines for CREG syscon */ 46 reg = syscon_regmap_lookup_by_compatible("nxp,lpc1850-creg"); in lpc18xx_dwmac_probe()
|
/Linux-v6.1/drivers/media/pci/ddbridge/ |
D | ddbridge-ci.c | 176 ci->port->creg = (ci->port->creg & ~mask) | data; in write_creg() 177 return i2c_write_reg(i2c, adr, 0x02, ci->port->creg); in write_creg() 300 ci->port->creg = 0; in ci_xo2_attach()
|
/Linux-v6.1/drivers/phy/ |
D | phy-lpc18xx-usb-otg.c | 17 /* USB OTG PHY register offset and bit in CREG */ 58 /* The bit in CREG is cleared to enable the PHY */ in lpc18xx_usb_otg_phy_power_on()
|
/Linux-v6.1/drivers/dma/ |
D | lpc18xx-dmamux.c | 20 /* CREG register offset and macros for mux manipulation */ 120 dmamux->reg = syscon_regmap_lookup_by_compatible("nxp,lpc1850-creg"); in lpc18xx_dmamux_probe()
|
/Linux-v6.1/drivers/net/ethernet/sun/ |
D | sunbmac.c | 623 void __iomem *cregs = bp->creg; in bigmac_init_hw() 896 bmac_status = sbus_readl(bp->creg + CREG_STAT); in bigmac_interrupt() 979 sbus_writel(CREG_CTRL_TWAKEUP, bp->creg + CREG_CTRL); in bigmac_start_xmit() 1133 bp->creg = of_ioremap(&op->resource[0], 0, in bigmac_ether_init() 1135 if (!bp->creg) { in bigmac_ether_init() 1206 if (bp->creg) in bigmac_ether_init() 1207 of_iounmap(&op->resource[0], bp->creg, CREG_REG_SIZE); in bigmac_ether_init() 1249 of_iounmap(&op->resource[0], bp->creg, CREG_REG_SIZE); in bigmac_sbus_remove()
|
/Linux-v6.1/Documentation/devicetree/bindings/reset/ |
D | snps,axs10x-reset.yaml | 15 This block is controlled via memory-mapped register (AKA CREG) which
|
/Linux-v6.1/arch/arm/boot/dts/ |
D | lpc18xx.dtsi | 198 creg: syscon@40043000 { label 199 compatible = "nxp,lpc1850-creg", "syscon", "simple-mfd"; 205 compatible = "nxp,lpc1850-creg-clk";
|
/Linux-v6.1/arch/arc/boot/dts/ |
D | axc001.dtsi | 44 * this GPIO block ORs all interrupts on CPU card (creg,..)
|
D | axc003.dtsi | 52 * this GPIO block ORs all interrupts on CPU card (creg,..)
|
D | axc003_idu.dtsi | 59 * this GPIO block ORs all interrupts on CPU card (creg,..)
|
/Linux-v6.1/drivers/infiniband/hw/qib/ |
D | qib_iba6120.c | 2280 u16 creg; in qib_portcntr_6120() local 2324 creg = xlator[reg]; in qib_portcntr_6120() 2339 if (creg == 0xffff) in qib_portcntr_6120() 2346 if (creg == cr_wordsend || creg == cr_wordrcv || in qib_portcntr_6120() 2347 creg == cr_pktsend || creg == cr_pktrcv) in qib_portcntr_6120() 2348 ret = read_6120_creg(dd, creg); in qib_portcntr_6120() 2350 ret = read_6120_creg32(dd, creg); in qib_portcntr_6120() 2351 if (creg == cr_ibsymbolerr) { in qib_portcntr_6120() 2355 } else if (creg == cr_iblinkerrrecov) { in qib_portcntr_6120()
|