Searched refs:bcsr_regs (Results 1 – 8 of 8) sorted by relevance
/Linux-v5.4/arch/mips/alchemy/devboards/ |
D | bcsr.c | 24 } bcsr_regs[BCSR_CNT]; variable 40 bcsr_regs[i].raddr = (void __iomem *)bcsr2_phys + in bcsr_init() 43 bcsr_regs[i].raddr = (void __iomem *)bcsr1_phys + in bcsr_init() 46 spin_lock_init(&bcsr_regs[i].lock); in bcsr_init() 55 spin_lock_irqsave(&bcsr_regs[reg].lock, flags); in bcsr_read() 56 r = __raw_readw(bcsr_regs[reg].raddr); in bcsr_read() 57 spin_unlock_irqrestore(&bcsr_regs[reg].lock, flags); in bcsr_read() 66 spin_lock_irqsave(&bcsr_regs[reg].lock, flags); in bcsr_write() 67 __raw_writew(val, bcsr_regs[reg].raddr); in bcsr_write() 69 spin_unlock_irqrestore(&bcsr_regs[reg].lock, flags); in bcsr_write() [all …]
|
/Linux-v5.4/arch/powerpc/platforms/85xx/ |
D | mpc85xx_mds.c | 164 static u8 __iomem *bcsr_regs; in mpc85xx_mds_reset_ucc_phys() local 171 bcsr_regs = of_iomap(np, 0); in mpc85xx_mds_reset_ucc_phys() 173 if (!bcsr_regs) in mpc85xx_mds_reset_ucc_phys() 183 clrbits8(&bcsr_regs[8], BCSR_UCC1_GETH_EN); in mpc85xx_mds_reset_ucc_phys() 184 clrbits8(&bcsr_regs[9], BCSR_UCC2_GETH_EN); in mpc85xx_mds_reset_ucc_phys() 187 clrbits8(&bcsr_regs[11], BCSR_UCC1_MODE_MSK | in mpc85xx_mds_reset_ucc_phys() 191 setbits8(&bcsr_regs[8], BCSR_UCC1_GETH_EN); in mpc85xx_mds_reset_ucc_phys() 192 setbits8(&bcsr_regs[9], BCSR_UCC2_GETH_EN); in mpc85xx_mds_reset_ucc_phys() 203 clrbits8(&bcsr_regs[7], BCSR7_UCC12_GETHnRST); in mpc85xx_mds_reset_ucc_phys() 204 setbits8(&bcsr_regs[8], BCSR8_UEM_MARVELL_RST); in mpc85xx_mds_reset_ucc_phys() [all …]
|
D | p1023_rdb.c | 50 static u8 __iomem *bcsr_regs; in mpc85xx_rdb_setup_arch() local 52 bcsr_regs = of_iomap(np, 0); in mpc85xx_rdb_setup_arch() 55 if (!bcsr_regs) { in mpc85xx_rdb_setup_arch() 71 clrbits8(&bcsr_regs[15], BCSR15_I2C_BUS0_SEG_CLR); in mpc85xx_rdb_setup_arch() 72 setbits8(&bcsr_regs[15], BCSR15_I2C_BUS0_SEG2); in mpc85xx_rdb_setup_arch() 75 iounmap(bcsr_regs); in mpc85xx_rdb_setup_arch()
|
/Linux-v5.4/arch/powerpc/platforms/40x/ |
D | ep405.c | 35 static void __iomem *bcsr_regs; variable 78 bcsr_regs = of_iomap(bcsr_node, 0); in ep405_init_bcsr() 79 if (bcsr_regs == NULL) { in ep405_init_bcsr() 90 out_8(bcsr_regs + BCSR_XIRQ_SELECT, i); in ep405_init_bcsr() 91 out_8(bcsr_regs + BCSR_XIRQ_ROUTING, irq); in ep405_init_bcsr() 93 in_8(bcsr_regs + BCSR_XIRQ_SELECT); in ep405_init_bcsr() 95 out_8(bcsr_regs + BCSR_GPIO_IRQ_PAR_CTRL, 0xfe); in ep405_init_bcsr()
|
/Linux-v5.4/arch/powerpc/platforms/83xx/ |
D | mpc837x_mds.c | 30 void __iomem *bcsr_regs = NULL; in mpc837xmds_usb_cfg() local 40 bcsr_regs = of_iomap(np, 0); in mpc837xmds_usb_cfg() 43 if (!bcsr_regs) in mpc837xmds_usb_cfg() 53 clrbits8(bcsr_regs + 12, BCSR12_USB_SER_PIN); in mpc837xmds_usb_cfg() 56 bcsr12 = in_8(bcsr_regs + 12) & ~BCSR12_USB_SER_MASK; in mpc837xmds_usb_cfg() 60 out_8(bcsr_regs + 12, bcsr12); in mpc837xmds_usb_cfg() 67 iounmap(bcsr_regs); in mpc837xmds_usb_cfg()
|
D | mpc834x_mds.c | 41 void __iomem *bcsr_regs = NULL; in mpc834xemds_usb_cfg() local 51 bcsr_regs = ioremap(res.start, resource_size(&res)); in mpc834xemds_usb_cfg() 54 if (!bcsr_regs) in mpc834xemds_usb_cfg() 61 bcsr5 = in_8(bcsr_regs + 5); in mpc834xemds_usb_cfg() 63 out_8(bcsr_regs + 5, (bcsr5 | BCSR5_INT_USB)); in mpc834xemds_usb_cfg() 64 iounmap(bcsr_regs); in mpc834xemds_usb_cfg()
|
D | mpc832x_mds.c | 55 u8 __iomem *bcsr_regs = NULL; in mpc832x_sys_setup_arch() local 65 bcsr_regs = ioremap(res.start, resource_size(&res)); in mpc832x_sys_setup_arch() 82 clrbits8(&bcsr_regs[8], BCSR8_FETH_RST); in mpc832x_sys_setup_arch() 84 setbits8(&bcsr_regs[8], BCSR8_FETH_RST); in mpc832x_sys_setup_arch() 85 iounmap(bcsr_regs); in mpc832x_sys_setup_arch()
|
D | mpc836x_mds.c | 63 u8 __iomem *bcsr_regs = NULL; in mpc836x_mds_setup_arch() local 73 bcsr_regs = ioremap(res.start, resource_size(&res)); in mpc836x_mds_setup_arch() 102 clrbits8(&bcsr_regs[9], BCSR9_GETHRST); in mpc836x_mds_setup_arch() 104 setbits8(&bcsr_regs[9], BCSR9_GETHRST); in mpc836x_mds_setup_arch() 128 iounmap(bcsr_regs); in mpc836x_mds_setup_arch()
|