Home
last modified time | relevance | path

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

12

/external/u-boot/arch/m68k/cpu/mcf52x2/
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()
89 out_be16(&wdt->sr, 0xaaaa); in watchdog_init()
179 out_be16(&wdp->wdog_wrrr, 0); in do_reset()
[all …]
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()
/external/u-boot/arch/m68k/cpu/mcf530x/
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 …]
/external/u-boot/drivers/spi/
Dmpc8xx_spi.c85 out_be16(&spi->spi_rpbase, 0); in spi_init_f()
126 out_be16(&spi->spi_rbptr, 0); in spi_init_f()
127 out_be16(&spi->spi_rbc, 0); in spi_init_f()
131 out_be16(&spi->spi_tbptr, 0); in spi_init_f()
132 out_be16(&spi->spi_tbc, 0); in spi_init_f()
137 out_be16(&spi->spi_rbase, CPM_SPI_BASE_RX); in spi_init_f()
138 out_be16(&spi->spi_tbase, CPM_SPI_BASE_TX); in spi_init_f()
149 out_be16(&spi->spi_rbptr, CPM_SPI_BASE_RX); in spi_init_f()
150 out_be16(&spi->spi_tbptr, CPM_SPI_BASE_TX); in spi_init_f()
157 out_be16(&cp->cp_cpcr, mk_cr_cmd(CPM_CR_CH_SPI, CPM_CR_INIT_TRX) | in spi_init_f()
[all …]
/external/u-boot/drivers/qe/
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()
326 out_be16(&uf_regs->urfset, UCC_GETH_URFSET_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()
329 out_be16(&uf_regs->utftt, UCC_GETH_UTFTT_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()
[all …]
Duec.c745 out_be16(&uec->p_tx_glbl_pram->temoder, TEMODER_INIT_VALUE); in uec_init_tx_parameter()
826 out_be16(&uec->p_rx_glbl_pram->typeorlen, 3072); in uec_init_rx_parameter()
839 out_be16(&uec->p_rx_glbl_pram->mrblr, MAX_RXBUF_LEN); in uec_init_rx_parameter()
857 out_be16(&uec->p_rx_glbl_pram->mflr, MAX_FRAME_LEN); in uec_init_rx_parameter()
859 out_be16(&uec->p_rx_glbl_pram->minflr, MIN_FRAME_LEN); in uec_init_rx_parameter()
861 out_be16(&uec->p_rx_glbl_pram->maxd1, MAX_DMA1_LEN); in uec_init_rx_parameter()
863 out_be16(&uec->p_rx_glbl_pram->maxd2, MAX_DMA2_LEN); in uec_init_rx_parameter()
874 out_be16(&uec->p_rx_glbl_pram->vlantype, 0x8100); in uec_init_rx_parameter()
876 out_be16(&uec->p_rx_glbl_pram->vlantci, 0); in uec_init_rx_parameter()
/external/u-boot/drivers/net/
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()
259 out_be16(&rtx->rxbd[rxIdx].cbd_sc, BD_ENET_RX_EMPTY); 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()
[all …]
Dtsec.c254 out_be16(&priv->txbd[priv->tx_idx].length, length); in tsec_send()
256 out_be16(&priv->txbd[priv->tx_idx].status, status | in tsec_send()
295 out_be16(&priv->rxbd[priv->rx_idx].length, 0); in tsec_recv()
301 out_be16(&priv->rxbd[priv->rx_idx].status, status); in tsec_recv()
348 out_be16(&priv->rxbd[priv->rx_idx].length, 0); in tsec_free_pkt()
354 out_be16(&priv->rxbd[priv->rx_idx].status, status); in tsec_free_pkt()
443 out_be16(&priv->rxbd[priv->rx_idx].length, 0); in redundant_init()
447 out_be16(&priv->rxbd[priv->rx_idx].status, status); in redundant_init()
494 out_be16(&priv->rxbd[i].status, RXBD_EMPTY); in startup_tsec()
495 out_be16(&priv->rxbd[i].length, 0); in startup_tsec()
[all …]
/external/u-boot/drivers/serial/
Dserial_mpc8xx.c90 out_be16(&up->smc_rpbase, 0); in smc_init()
120 out_be16(&rtx->rxbd.cbd_sc, 0); in smc_init()
123 out_be16(&rtx->txbd.cbd_sc, 0); in smc_init()
126 out_be16(&up->smc_rbase, CPM_SERIAL_BASE); in smc_init()
127 out_be16(&up->smc_tbase, CPM_SERIAL_BASE + sizeof(cbd_t)); in smc_init()
134 out_be16(&sp->smc_smcmr, smcr_mk_clen(9) | SMCMR_SM_UART); in smc_init()
149 out_be16(&up->smc_mrblr, CONFIG_SYS_SMC_RXBUFLEN); in smc_init()
150 out_be16(&up->smc_maxidl, CONFIG_SYS_MAXIDLE); in smc_init()
157 out_be16(&cp->cp_cpcr, in smc_init()
182 out_be16(&rtx->txbd.cbd_datlen, 1); in smc_putc()
/external/u-boot/arch/m68k/cpu/mcf532x/
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()
/external/u-boot/board/sysam/amcore/
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()
/external/u-boot/arch/m68k/cpu/mcf523x/
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()
Dcpu_init.c24 #define out_be_fbcs_reg out_be16
45 out_be16(&wdog->cr, 0); in cpu_init_f()
/external/u-boot/arch/m68k/cpu/mcf547x_8x/
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()
Dpci.c78 out_be16(&gpio->par_pcibg, in pci_mcf547x_8x_init()
82 out_be16(&gpio->par_pcibr, in pci_mcf547x_8x_init()
/external/u-boot/drivers/watchdog/
Dmpc8xx_wdt.c15 out_be16(&immap->im_siu_conf.sc_swsr, 0x556c); /* write magic1 */ in hw_watchdog_reset()
16 out_be16(&immap->im_siu_conf.sc_swsr, 0xaa39); /* write magic2 */ in hw_watchdog_reset()
/external/u-boot/board/freescale/m5272c3/
Dm5272c3.c25 out_be16(&sdp->sdram_sdtr, 0xf539); in dram_init()
26 out_be16(&sdp->sdram_sdcr, 0x4211); in dram_init()
/external/u-boot/arch/powerpc/cpu/mpc8xx/
Dcpu_init.c41 out_be16(&immr->im_sit.sit_tbscr, CONFIG_SYS_TBSCR | TBSCR_TBE); in cpu_init_f()
49 out_be16(&immr->im_sit.sit_piscr, CONFIG_SYS_PISCR); in cpu_init_f()
179 out_be16(&immr->im_cpm.cp_cpcr, CPM_CR_RST | CPM_CR_FLG); in cpu_init_f()
/external/u-boot/arch/m68k/cpu/mcf5445x/
Dcpu_init.c88 out_be16(&scm->cwcr, 0); in cpu_init_f()
144 out_be16(&gpio->pcr_b, 0x003C); in cpu_init_f()
164 out_be16(&gpio->pcr_h, 0xF000); in cpu_init_f()
170 out_be16(&gpio->pcr_e, 0x0003); in cpu_init_f()
171 out_be16(&gpio->pcr_f, 0xC000); in cpu_init_f()
199 out_be16(&gpio->par_feci2c, in cpu_init_f()
/external/u-boot/arch/m68k/include/asm/
Dio.h36 #define writew(b,addr) out_be16((volatile u16 *)(addr),(b))
57 #define outw(val, port) out_be16((u16 *)((port)+_IO_BASE), (val))
186 static inline void out_be16(volatile u16 * addr, int val) in out_be16() function
/external/u-boot/board/keymile/kmp204x/
Dqrio.c105 out_be16(qrio_base + WDMASK_OFF, wdmask); in qrio_wdmask()
124 out_be16(qrio_base + PRST_OFF, prst); in qrio_prst()
/external/u-boot/arch/arm/cpu/armv8/fsl-layerscape/
Dsoc.c133 out_be16((phy) + SCFG_USB_PHY_RX_OVRD_IN_HI, USB_PHY_RX_EQ_VAL_1); \
134 out_be16((phy) + SCFG_USB_PHY_RX_OVRD_IN_HI, USB_PHY_RX_EQ_VAL_2); \
135 out_be16((phy) + SCFG_USB_PHY_RX_OVRD_IN_HI, USB_PHY_RX_EQ_VAL_3); \
136 out_be16((phy) + SCFG_USB_PHY_RX_OVRD_IN_HI, USB_PHY_RX_EQ_VAL_4)
/external/u-boot/board/cssi/MCR3000/
Dnand.c42 out_be16(&immr->im_ioport.iop_pddat, pddat); in nand_hwcontrol()
/external/u-boot/board/freescale/m5275evb/
Dm5275evb.c33 out_be16(&gpio_reg->par_sdram, 0x3FF); in dram_init()
/external/u-boot/board/freescale/m5235evb/
Dm5235evb.c56 out_be16(&sdram->dcr, SDRAMC_DCR_RTIM_9CLKS | in dram_init()

12