Home
last modified time | relevance | path

Searched refs:out_be16 (Results 1 – 25 of 96) sorted by relevance

1234

/openbmc/u-boot/arch/m68k/cpu/mcf52x2/
H A Dcpu.c58 out_be16(&wdt->sr, 0x5555); in watchdog_reset()
59 out_be16(&wdt->sr, 0xaaaa); in watchdog_reset()
67 out_be16(&wdt->sr, 0x5555); in watchdog_disable()
68 out_be16(&wdt->sr, 0xaaaa); in watchdog_disable()
70 out_be16(&wdt->cr, 0); in watchdog_disable()
81 out_be16(&wdt->cr, 0); in watchdog_init()
84 out_be16(&wdt->mr, in watchdog_init()
88 out_be16(&wdt->sr, 0x5555); in watchdog_init()
306 out_be16(&wdt->wcr, 0); in watchdog_disable()
317 out_be16(&wdt->wcr, 0); in watchdog_init()
[all …]
H A Dcpu_init.c99 out_be16(&wdg->cr, 0); in cpu_init_f()
340 out_be16(&sysctrl->sc_scr, CONFIG_SYS_SCR); in cpu_init_f()
341 out_be16(&sysctrl->sc_spr, CONFIG_SYS_SPR); in cpu_init_f()
345 out_be16(&gpio->gpio_paddr, CONFIG_SYS_PADDR); in cpu_init_f()
346 out_be16(&gpio->gpio_padat, CONFIG_SYS_PADAT); in cpu_init_f()
348 out_be16(&gpio->gpio_pbddr, CONFIG_SYS_PBDDR); in cpu_init_f()
349 out_be16(&gpio->gpio_pbdat, CONFIG_SYS_PBDAT); in cpu_init_f()
466 out_be16(&wdog_reg->wcr, 0); in cpu_init_f()
/openbmc/u-boot/arch/m68k/cpu/mcf530x/
H A Dcpu_init.c43 out_be16(&csm->csar0, CONFIG_SYS_CS0_BASE); in init_csm()
45 out_be16(&csm->cscr0, CONFIG_SYS_CS0_CTRL); in init_csm()
52 out_be16(&csm->csar1, CONFIG_SYS_CS1_BASE); in init_csm()
54 out_be16(&csm->cscr1, CONFIG_SYS_CS1_CTRL); in init_csm()
59 out_be16(&csm->csar2, CONFIG_SYS_CS2_BASE); in init_csm()
61 out_be16(&csm->cscr2, CONFIG_SYS_CS2_CTRL); in init_csm()
66 out_be16(&csm->csar3, CONFIG_SYS_CS3_BASE); in init_csm()
68 out_be16(&csm->cscr3, CONFIG_SYS_CS3_CTRL); in init_csm()
73 out_be16(&csm->csar4, CONFIG_SYS_CS4_BASE); in init_csm()
75 out_be16(&csm->cscr4, CONFIG_SYS_CS4_CTRL); in init_csm()
[all …]
/openbmc/u-boot/drivers/spi/
H A Dmpc8xx_spi.c40 out_be16(&spi->spi_rpbase, 0); in mpc8xx_spi_probe()
81 out_be16(&spi->spi_rbptr, 0); in mpc8xx_spi_probe()
82 out_be16(&spi->spi_rbc, 0); in mpc8xx_spi_probe()
86 out_be16(&spi->spi_tbptr, 0); in mpc8xx_spi_probe()
87 out_be16(&spi->spi_tbc, 0); in mpc8xx_spi_probe()
92 out_be16(&spi->spi_rbase, CPM_SPI_BASE_RX); in mpc8xx_spi_probe()
93 out_be16(&spi->spi_tbase, CPM_SPI_BASE_TX); in mpc8xx_spi_probe()
104 out_be16(&spi->spi_rbptr, CPM_SPI_BASE_RX); in mpc8xx_spi_probe()
105 out_be16(&spi->spi_tbptr, CPM_SPI_BASE_TX); in mpc8xx_spi_probe()
128 out_be16(&spi->spi_mrblr, MAX_BUFFER); in mpc8xx_spi_probe()
[all …]
/openbmc/linux/drivers/video/fbdev/
H A Dhpfb.c98 out_be16(fb_regs + 0x60ba, 0xff); in hpfb_setcolreg()
100 out_be16(fb_regs + 0x60b2, _red); in hpfb_setcolreg()
104 out_be16(fb_regs + 0x60f0, 0xff); in hpfb_setcolreg()
109 out_be16(fb_regs + 0x60b2, 0); in hpfb_setcolreg()
110 out_be16(fb_regs + 0x60b4, 0); in hpfb_setcolreg()
111 out_be16(fb_regs + 0x60b6, 0); in hpfb_setcolreg()
112 out_be16(fb_regs + 0x60b8, 0); in hpfb_setcolreg()
139 out_be16(fb_regs + DEST_X, x1); in topcat_blit()
140 out_be16(fb_regs + DEST_Y, y1); in topcat_blit()
141 out_be16(fb_regs + WWIDTH, w); in topcat_blit()
[all …]
/openbmc/linux/drivers/usb/host/
H A Dfhci-tds.c214 out_be16(&td->status, 0); in fhci_create_ep()
215 out_be16(&td->length, 0); in fhci_create_ep()
216 out_be16(&td->extra, 0); in fhci_create_ep()
221 out_be16(&td->length, 0); in fhci_create_ep()
308 out_be16(&td->length, 0); in fhci_td_transaction_confirm()
310 out_be16(&td->extra, 0); in fhci_td_transaction_confirm()
497 out_be16(&td->status, 0); in fhci_flush_bds()
498 out_be16(&td->length, 0); in fhci_flush_bds()
500 out_be16(&td->extra, 0); in fhci_flush_bds()
504 out_be16(&td->length, 0); in fhci_flush_bds()
[all …]
H A Dfhci-hcd.c40 out_be16(&fhci->pram->frame_num, 0); in fhci_start_sof_timer()
42 out_be16(&fhci->regs->usb_ussft, 0); in fhci_start_sof_timer()
90 out_be16(&usb->fhci->regs->usb_usber, 0xffff); in fhci_usb_enable_interrupt()
111 out_be16(&usb->fhci->regs->usb_usbmr, 0); in fhci_usb_disable_interrupt()
121 out_be16(&usb->fhci->regs->usb_usber, 0xffff); in fhci_usb_enable()
122 out_be16(&usb->fhci->regs->usb_usbmr, usb->saved_msk); in fhci_usb_enable()
276 out_be16(&fhci->pram->frame_num, 0); in fhci_usb_init()
290 out_be16(&usb->fhci->regs->usb_usbmr, 0); in fhci_usb_init()
293 out_be16(&usb->fhci->regs->usb_usber, 0xffff); in fhci_usb_init()
728 out_be16(&fhci->regs->usb_usber, 0xffff); in of_fhci_probe()
[all …]
/openbmc/linux/arch/powerpc/platforms/8xx/
H A Dmicropatch.c333 out_be16(&cp->cp_rccr, 0); in cpm_load_patch()
346 out_be16(&iip->iic_rpbase, rpbase); in cpm_load_patch()
350 out_be16(&spp->rpbase, (rpbase + sizeof(iic_t) + 31) & ~31); in cpm_load_patch()
356 out_be16(&smp->smc_rpbase, 0x1FC0); in cpm_load_patch()
375 out_be16(&smp->smc_rpbase, 0x1ec0); in cpm_load_patch()
377 out_be16(&smp->smc_rpbase, 0x1fc0); in cpm_load_patch()
380 out_be16(&cp->cp_cpmcr1, patch_params.cpmcr1); in cpm_load_patch()
381 out_be16(&cp->cp_cpmcr2, patch_params.cpmcr2); in cpm_load_patch()
382 out_be16(&cp->cp_cpmcr3, patch_params.cpmcr3); in cpm_load_patch()
383 out_be16(&cp->cp_cpmcr4, patch_params.cpmcr4); in cpm_load_patch()
[all …]
/openbmc/linux/drivers/tty/serial/
H A Dcpm_uart.c782 out_be16(&sup->scc_brkcr, 1); in cpm_uart_init_scc()
783 out_be16(&sup->scc_parec, 0); in cpm_uart_init_scc()
784 out_be16(&sup->scc_frmec, 0); in cpm_uart_init_scc()
785 out_be16(&sup->scc_nosec, 0); in cpm_uart_init_scc()
786 out_be16(&sup->scc_brkec, 0); in cpm_uart_init_scc()
789 out_be16(&sup->scc_toseq, 0); in cpm_uart_init_scc()
812 out_be16(&scp->scc_sccm, 0); in cpm_uart_init_scc()
844 out_be16(&up->smc_brkec, 0); in cpm_uart_init_smc()
856 out_be16(&up->smc_brkec, 0); in cpm_uart_init_smc()
857 out_be16(&up->smc_brkcr, 1); in cpm_uart_init_smc()
[all …]
/openbmc/linux/arch/powerpc/boot/
H A Dcpm-serial.c93 out_be16(cpcr, (op << 8) | cpm_cmd | 1); in cpm1_cmd()
113 out_be16(&smc->smcmr, in_be16(&smc->smcmr) & ~3); in smc_disable_port()
124 out_be16(&smc->smcmr, in_be16(&smc->smcmr) | 3); in smc_enable_port()
140 out_be16(&param->mrblr, 1); in cpm_serial_open()
141 out_be16(&param->maxidl, 0); in cpm_serial_open()
142 out_be16(&param->brkec, 0); in cpm_serial_open()
143 out_be16(&param->brkln, 0); in cpm_serial_open()
144 out_be16(&param->brkcr, 0); in cpm_serial_open()
157 out_be16(&param->rbase, cbd_offset); in cpm_serial_open()
158 out_be16(&param->tbase, cbd_offset + sizeof(struct cpm_bd)); in cpm_serial_open()
[all …]
/openbmc/u-boot/drivers/qe/
H A Duccf.c19 out_be16(&uccf->uf_regs->utodr, UCC_FAST_TOD); in ucc_fast_transmit_on_demand()
324 out_be16(&uf_regs->urfs, UCC_GETH_URFS_GIGA_INIT); in ucc_fast_init()
325 out_be16(&uf_regs->urfet, UCC_GETH_URFET_GIGA_INIT); in ucc_fast_init()
327 out_be16(&uf_regs->utfs, UCC_GETH_UTFS_GIGA_INIT); in ucc_fast_init()
328 out_be16(&uf_regs->utfet, UCC_GETH_UTFET_GIGA_INIT); in ucc_fast_init()
352 out_be16(&uf_regs->urfs, UCC_GETH_URFS_INIT); in ucc_fast_init()
353 out_be16(&uf_regs->urfet, UCC_GETH_URFET_INIT); in ucc_fast_init()
354 out_be16(&uf_regs->urfset, UCC_GETH_URFSET_INIT); in ucc_fast_init()
355 out_be16(&uf_regs->utfs, UCC_GETH_UTFS_INIT); in ucc_fast_init()
356 out_be16(&uf_regs->utfet, UCC_GETH_UTFET_INIT); in ucc_fast_init()
[all …]
/openbmc/u-boot/drivers/serial/
H A Dserial_mpc8xx.c93 out_be16(&up->smc_rpbase, 0); in serial_mpc8xx_probe()
123 out_be16(&rtx->rxbd.cbd_sc, 0); in serial_mpc8xx_probe()
126 out_be16(&rtx->txbd.cbd_sc, 0); in serial_mpc8xx_probe()
129 out_be16(&up->smc_rbase, CPM_SERIAL_BASE); in serial_mpc8xx_probe()
130 out_be16(&up->smc_tbase, CPM_SERIAL_BASE + sizeof(cbd_t)); in serial_mpc8xx_probe()
137 out_be16(&sp->smc_smcmr, smcr_mk_clen(9) | SMCMR_SM_UART); in serial_mpc8xx_probe()
152 out_be16(&up->smc_mrblr, CONFIG_SYS_SMC_RXBUFLEN); in serial_mpc8xx_probe()
153 out_be16(&up->smc_maxidl, CONFIG_SYS_MAXIDLE); in serial_mpc8xx_probe()
160 out_be16(&cp->cp_cpcr, in serial_mpc8xx_probe()
185 out_be16(&rtx->txbd.cbd_datlen, 1); in serial_mpc8xx_putc()
/openbmc/u-boot/drivers/net/
H A Dmpc8xx_fec.c191 out_be16(&rtx->txbd[txIdx].cbd_datlen, length); in fec_send()
251 out_be16(&rtx->rxbd[rxIdx].cbd_datlen, 0); in fec_recv()
255 out_be16(&rtx->rxbd[PKTBUFSRX - 1].cbd_sc, in fec_recv()
414 out_be16(&immr->im_ioport.iop_pdpar, 0x1fff); in fec_pin_init()
415 out_be16(&immr->im_ioport.iop_pddir, 0x1fff); in fec_pin_init()
418 out_be16(&immr->im_ioport.iop_papar, 0xBBFF); in fec_pin_init()
419 out_be16(&immr->im_ioport.iop_padir, 0x04F0); in fec_pin_init()
420 out_be16(&immr->im_ioport.iop_paodr, 0x0000); in fec_pin_init()
424 out_be16(&immr->im_cpm.cp_pbodr, 0x0000); in fec_pin_init()
426 out_be16(&immr->im_ioport.iop_pcpar, 0x0400); in fec_pin_init()
[all …]
H A Dtsec.c277 out_be16(&priv->txbd[priv->tx_idx].length, length); in tsec_send()
279 out_be16(&priv->txbd[priv->tx_idx].status, status | in tsec_send()
318 out_be16(&priv->rxbd[priv->rx_idx].length, 0); in tsec_recv()
324 out_be16(&priv->rxbd[priv->rx_idx].status, status); in tsec_recv()
371 out_be16(&priv->rxbd[priv->rx_idx].length, 0); in tsec_free_pkt()
377 out_be16(&priv->rxbd[priv->rx_idx].status, status); in tsec_free_pkt()
466 out_be16(&priv->rxbd[priv->rx_idx].length, 0); in redundant_init()
517 out_be16(&priv->rxbd[i].status, RXBD_EMPTY); in startup_tsec()
518 out_be16(&priv->rxbd[i].length, 0); in startup_tsec()
526 out_be16(&priv->txbd[i].status, 0); in startup_tsec()
[all …]
/openbmc/u-boot/arch/m68k/cpu/mcf532x/
H A Dcpu.c107 out_be16(&wdp->sr, 0x5555); in watchdog_reset()
108 out_be16(&wdp->sr, 0xaaaa); in watchdog_reset()
131 out_be16(&wdp->mr, wdog_module / 8192); in watchdog_init()
133 out_be16(&wdp->mr, wdog_module / 4096); in watchdog_init()
136 out_be16(&wdp->cr, WTM_WCR_EN); in watchdog_init()
/openbmc/u-boot/board/sysam/amcore/
H A Damcore.c23 out_be16(&sim->par, 0x300); in init_lcd()
27 out_be16(&gpio->paddr, 0xfcff); in init_lcd()
28 out_be16(&gpio->padat, 0x0c00); in init_lcd()
82 out_be16(&dc->dcr, 0x8200 | RC); in dram_init()
/openbmc/u-boot/arch/m68k/cpu/mcf523x/
H A Dcpu.c68 out_be16(&wdp->sr, 0x5555); in watchdog_reset()
70 out_be16(&wdp->sr, 0xaaaa); in watchdog_reset()
93 out_be16(&wdp->mr, wdog_module); in watchdog_init()
95 out_be16(&wdp->cr, WTM_WCR_EN); in watchdog_init()
/openbmc/u-boot/arch/m68k/cpu/mcf547x_8x/
H A Dcpu.c25 out_be16(&gptmr->pre, 10); in do_reset()
26 out_be16(&gptmr->cnt, 1); in do_reset()
122 out_be16(&gptmr->pre, CONFIG_WATCHDOG_TIMEOUT); in watchdog_init()
123 out_be16(&gptmr->cnt, CONFIG_SYS_TIMER_PRESCALER * 1000); in watchdog_init()
/openbmc/linux/arch/powerpc/platforms/52xx/
H A Dlite5200_pm.c143 out_be16(&cdm->fd_counters, scdm.fd_counters); in lite5200_restore_regs()
149 out_be16(&cdm->mclken_div_psc1, scdm.mclken_div_psc1); in lite5200_restore_regs()
150 out_be16(&cdm->mclken_div_psc2, scdm.mclken_div_psc2); in lite5200_restore_regs()
151 out_be16(&cdm->mclken_div_psc3, scdm.mclken_div_psc3); in lite5200_restore_regs()
152 out_be16(&cdm->mclken_div_psc6, scdm.mclken_div_psc6); in lite5200_restore_regs()
163 out_be16(&bes->PtdCntrl, sbes.PtdCntrl); in lite5200_restore_regs()
181 out_be16(&bes->tcr[i], sbes.tcr[i]); in lite5200_restore_regs()
/openbmc/linux/drivers/i2c/busses/
H A Di2c-cpm.c154 out_be16(&i2c_ram->mrblr, CPM_MAX_READ); in cpm_reset_i2c_params()
158 out_be16(&i2c_ram->rbptr, 0); in cpm_reset_i2c_params()
159 out_be16(&i2c_ram->rbc, 0); in cpm_reset_i2c_params()
163 out_be16(&i2c_ram->tbptr, 0); in cpm_reset_i2c_params()
164 out_be16(&i2c_ram->tbc, 0); in cpm_reset_i2c_params()
204 out_be16(&tbdf->cbd_datlen, pmsg->len + 1); in cpm_i2c_parse_message()
205 out_be16(&tbdf->cbd_sc, 0); in cpm_i2c_parse_message()
222 out_be16(&rbdf->cbd_datlen, 0); in cpm_i2c_parse_message()
310 out_be16(&i2c_ram->rbptr, in_be16(&i2c_ram->rbase)); in cpm_i2c_xfer()
311 out_be16(&i2c_ram->tbptr, in_be16(&i2c_ram->tbase)); in cpm_i2c_xfer()
[all …]
/openbmc/u-boot/board/freescale/m5272c3/
H A Dm5272c3.c25 out_be16(&sdp->sdram_sdtr, 0xf539); in dram_init()
26 out_be16(&sdp->sdram_sdcr, 0x4211); in dram_init()
/openbmc/linux/include/linux/fsl/bestcomm/
H A Dbestcomm_priv.h257 out_be16(&bcom_eng->regs->PtdCntrl, regval | 1); in bcom_disable_prefetch()
265 out_be16(&bcom_eng->regs->tcr[task], reg | TASK_ENABLE); in bcom_enable_task()
272 out_be16(&bcom_eng->regs->tcr[task], reg & ~TASK_ENABLE); in bcom_disable_task()
338 out_be16(tcr, (in_be16(tcr) & ~0xff) | 0x00c0 | next_task); in bcom_set_task_auto_start()
345 out_be16(tcr, (in_be16(tcr) & ~0x1f00) | ((initiator & 0x1f) << 8)); in bcom_set_tcr_initiator()
/openbmc/linux/arch/powerpc/sysdev/
H A Dfsl_gtm.c215 out_be16(tmr->gtpsr, psr); in gtm_set_ref_timer16()
218 out_be16(tmr->gtcnr, 0); in gtm_set_ref_timer16()
219 out_be16(tmr->gtrfr, reference_value); in gtm_set_ref_timer16()
220 out_be16(tmr->gtevr, 0xFFFF); in gtm_set_ref_timer16()
311 out_be16(tmr->gtevr, 0xFFFF); in gtm_stop_timer16()
328 out_be16(tmr->gtevr, events); in gtm_ack_timer16()
/openbmc/linux/drivers/spi/
H A Dspi-mpc52xx-psc.c96 out_be16((u16 __iomem *)&psc->ccr, ccr); in mpc52xx_psc_spi_activate_cs()
156 out_be16(&fifo->rfalarm, rfalarm); in mpc52xx_psc_spi_transfer_rxtx()
158 out_be16(&psc->mpc52xx_psc_imr, MPC52xx_PSC_IMR_RXRDY); in mpc52xx_psc_spi_transfer_rxtx()
261 out_be16(&psc->mpc52xx_psc_imr, 0); in mpc52xx_psc_spi_port_config()
269 out_be16((u16 __iomem *)&psc->ccr, 0x070F); /* default SPI Clk 1MHz */ in mpc52xx_psc_spi_port_config()
287 out_be16(&psc->mpc52xx_psc_imr, 0); in mpc52xx_psc_spi_isr()
/openbmc/linux/drivers/net/can/mscan/
H A Dmscan.c235 out_be16(&regs->tx.idr3_2, can_id); in mscan_start_xmit()
247 out_be16(&regs->tx.idr1_0, can_id); in mscan_start_xmit()
254 out_be16(data, *payload++); in mscan_start_xmit()
645 out_be16(&regs->canidar1_0, 0); in register_mscandev()
646 out_be16(&regs->canidar3_2, 0); in register_mscandev()
647 out_be16(&regs->canidar5_4, 0); in register_mscandev()
648 out_be16(&regs->canidar7_6, 0); in register_mscandev()
650 out_be16(&regs->canidmr1_0, 0xffff); in register_mscandev()
651 out_be16(&regs->canidmr3_2, 0xffff); in register_mscandev()
652 out_be16(&regs->canidmr5_4, 0xffff); in register_mscandev()
[all …]

1234