Home
last modified time | relevance | path

Searched refs:bcsr_regs (Results 1 – 8 of 8) sorted by relevance

/arch/mips/alchemy/devboards/
Dbcsr.c22 } bcsr_regs[BCSR_CNT]; variable
38 bcsr_regs[i].raddr = (void __iomem *)bcsr2_phys + in bcsr_init()
41 bcsr_regs[i].raddr = (void __iomem *)bcsr1_phys + in bcsr_init()
44 spin_lock_init(&bcsr_regs[i].lock); in bcsr_init()
53 spin_lock_irqsave(&bcsr_regs[reg].lock, flags); in bcsr_read()
54 r = __raw_readw(bcsr_regs[reg].raddr); in bcsr_read()
55 spin_unlock_irqrestore(&bcsr_regs[reg].lock, flags); in bcsr_read()
64 spin_lock_irqsave(&bcsr_regs[reg].lock, flags); in bcsr_write()
65 __raw_writew(val, bcsr_regs[reg].raddr); in bcsr_write()
67 spin_unlock_irqrestore(&bcsr_regs[reg].lock, flags); in bcsr_write()
[all …]
/arch/powerpc/platforms/40x/
Dep405.c35 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()
/arch/powerpc/platforms/83xx/
Dmpc834x_mds.c45 void __iomem *bcsr_regs = NULL; in mpc834xemds_usb_cfg() local
55 bcsr_regs = ioremap(res.start, resource_size(&res)); in mpc834xemds_usb_cfg()
58 if (!bcsr_regs) in mpc834xemds_usb_cfg()
65 bcsr5 = in_8(bcsr_regs + 5); in mpc834xemds_usb_cfg()
67 out_8(bcsr_regs + 5, (bcsr5 | BCSR5_INT_USB)); in mpc834xemds_usb_cfg()
68 iounmap(bcsr_regs); in mpc834xemds_usb_cfg()
Dmpc837x_mds.c34 void __iomem *bcsr_regs = NULL; in mpc837xmds_usb_cfg() local
44 bcsr_regs = of_iomap(np, 0); in mpc837xmds_usb_cfg()
47 if (!bcsr_regs) in mpc837xmds_usb_cfg()
57 clrbits8(bcsr_regs + 12, BCSR12_USB_SER_PIN); in mpc837xmds_usb_cfg()
60 bcsr12 = in_8(bcsr_regs + 12) & ~BCSR12_USB_SER_MASK; in mpc837xmds_usb_cfg()
64 out_8(bcsr_regs + 12, bcsr12); in mpc837xmds_usb_cfg()
71 iounmap(bcsr_regs); in mpc837xmds_usb_cfg()
Dmpc832x_mds.c59 u8 __iomem *bcsr_regs = NULL; in mpc832x_sys_setup_arch() local
69 bcsr_regs = ioremap(res.start, resource_size(&res)); in mpc832x_sys_setup_arch()
86 clrbits8(&bcsr_regs[8], BCSR8_FETH_RST); in mpc832x_sys_setup_arch()
88 setbits8(&bcsr_regs[8], BCSR8_FETH_RST); in mpc832x_sys_setup_arch()
89 iounmap(bcsr_regs); in mpc832x_sys_setup_arch()
Dmpc836x_mds.c67 u8 __iomem *bcsr_regs = NULL; in mpc836x_mds_setup_arch() local
77 bcsr_regs = ioremap(res.start, resource_size(&res)); in mpc836x_mds_setup_arch()
106 clrbits8(&bcsr_regs[9], BCSR9_GETHRST); in mpc836x_mds_setup_arch()
108 setbits8(&bcsr_regs[9], BCSR9_GETHRST); in mpc836x_mds_setup_arch()
132 iounmap(bcsr_regs); in mpc836x_mds_setup_arch()
/arch/powerpc/platforms/85xx/
Dp1023_rdb.c54 static u8 __iomem *bcsr_regs; in mpc85xx_rdb_setup_arch() local
56 bcsr_regs = of_iomap(np, 0); in mpc85xx_rdb_setup_arch()
59 if (!bcsr_regs) { in mpc85xx_rdb_setup_arch()
75 clrbits8(&bcsr_regs[15], BCSR15_I2C_BUS0_SEG_CLR); in mpc85xx_rdb_setup_arch()
76 setbits8(&bcsr_regs[15], BCSR15_I2C_BUS0_SEG2); in mpc85xx_rdb_setup_arch()
79 iounmap(bcsr_regs); in mpc85xx_rdb_setup_arch()
Dmpc85xx_mds.c168 static u8 __iomem *bcsr_regs; in mpc85xx_mds_reset_ucc_phys() local
175 bcsr_regs = of_iomap(np, 0); in mpc85xx_mds_reset_ucc_phys()
177 if (!bcsr_regs) in mpc85xx_mds_reset_ucc_phys()
187 clrbits8(&bcsr_regs[8], BCSR_UCC1_GETH_EN); in mpc85xx_mds_reset_ucc_phys()
188 clrbits8(&bcsr_regs[9], BCSR_UCC2_GETH_EN); in mpc85xx_mds_reset_ucc_phys()
191 clrbits8(&bcsr_regs[11], BCSR_UCC1_MODE_MSK | in mpc85xx_mds_reset_ucc_phys()
195 setbits8(&bcsr_regs[8], BCSR_UCC1_GETH_EN); in mpc85xx_mds_reset_ucc_phys()
196 setbits8(&bcsr_regs[9], BCSR_UCC2_GETH_EN); in mpc85xx_mds_reset_ucc_phys()
207 clrbits8(&bcsr_regs[7], BCSR7_UCC12_GETHnRST); in mpc85xx_mds_reset_ucc_phys()
208 setbits8(&bcsr_regs[8], BCSR8_UEM_MARVELL_RST); in mpc85xx_mds_reset_ucc_phys()
[all …]