Home
last modified time | relevance | path

Searched refs:immap (Results 1 – 9 of 9) sorted by relevance

/linux-2.4.37.9/arch/ppc/boot/simple/
Diic.c25 volatile immap_t *immap; in iic_init() local
28 immap = (immap_t *)IMAP_ADDR; in iic_init()
29 cp = (cpm8xx_t *)&(immap->im_cpm); in iic_init()
53 i2c = (i2c8xx_t *)&(immap->im_i2c); in iic_init()
103 immap->im_siu_conf.sc_sdcr = 1; in iic_init()
120 volatile immap_t *immap; in iic_read() local
129 immap = (immap_t *)IMAP_ADDR; in iic_read()
130 cp = (cpm8xx_t *)&(immap->im_cpm); in iic_read()
133 i2c = (i2c8xx_t *)&(immap->im_i2c); in iic_read()
/linux-2.4.37.9/arch/ppc/8xx_io/
Denet.c648 volatile immap_t *immap; in scc_enet_init() local
652 immap = (immap_t *)(mfspr(IMMR) & 0xFFFF0000); /* and to internal registers */ in scc_enet_init()
693 immap->im_ioport.iop_papar |= (PA_ENET_RXD | PA_ENET_TXD); in scc_enet_init()
694 immap->im_ioport.iop_padir &= ~(PA_ENET_RXD | PA_ENET_TXD); in scc_enet_init()
695 immap->im_ioport.iop_paodr &= ~PA_ENET_TXD; in scc_enet_init()
699 immap->im_cpm.cp_pbpar |= (PB_ENET_RXD | PB_ENET_TXD); in scc_enet_init()
700 immap->im_cpm.cp_pbdir &= ~(PB_ENET_RXD | PB_ENET_TXD); in scc_enet_init()
701 immap->im_cpm.cp_pbodr &= ~PB_ENET_TXD; in scc_enet_init()
709 immap->im_ioport.iop_pcpar &= ~PC_ENET_LBK; in scc_enet_init()
710 immap->im_ioport.iop_pcdir |= PC_ENET_LBK; in scc_enet_init()
[all …]
Dfec.c1711 volatile immap_t *immap; in fec_enet_init() local
1718 immap = (immap_t *)IMAP_ADDR; /* pointer to internal registers */ in fec_enet_init()
1734 fecp = &(immap->im_cpm.cp_fec); in fec_enet_init()
1822 immap->im_ioport.iop_pcpar &= ~0x0001; in fec_enet_init()
1823 immap->im_ioport.iop_pcdir &= ~0x0001; in fec_enet_init()
1824 immap->im_ioport.iop_pcso &= ~0x0001; in fec_enet_init()
1825 immap->im_ioport.iop_pcint |= 0x0001; in fec_enet_init()
1865 immap->im_ioport.iop_pdpar = 0x1fff; in fec_enet_init()
1870 immap->im_ioport.iop_pddir = 0x1c58; /* Pre rev. D */ in fec_enet_init()
1872 immap->im_ioport.iop_pddir = 0x1fff; /* Rev. D and later */ in fec_enet_init()
[all …]
Duart.c2615 volatile immap_t *immap; in rs_8xx_init() local
2684 immap = (immap_t *)IMAP_ADDR; /* and to internal registers */ in rs_8xx_init()
2693 immap->im_ioport.iop_papar |= 0x00fc; in rs_8xx_init()
2694 immap->im_ioport.iop_padir &= ~0x00fc; in rs_8xx_init()
2695 immap->im_ioport.iop_paodr &= ~0x00fc; in rs_8xx_init()
2699 immap->im_ioport.iop_papar |= 0x000c; /* SCC2 on port A */ in rs_8xx_init()
2700 immap->im_ioport.iop_padir &= ~0x000c; in rs_8xx_init()
2701 immap->im_ioport.iop_paodr &= ~0x000c; in rs_8xx_init()
2703 immap->im_ioport.iop_pdpar |= 0x0030; /* SCC3 on port D */ in rs_8xx_init()
2710 immap->im_ioport.iop_pcdir |= 0x03c6; in rs_8xx_init()
[all …]
/linux-2.4.37.9/arch/ppc/cpm2_io/
Dfcc_enet.c342 volatile cpm2_map_t *immap);
345 volatile cpm2_map_t *immap);
347 volatile cpm2_map_t *immap);
1430 volatile cpm2_map_t *immap; in fec_enet_init() local
1433 immap = (cpm2_map_t *)CPM_MAP_ADDR; /* and to internal registers */ in fec_enet_init()
1434 io = &immap->im_ioport; in fec_enet_init()
1457 init_fcc_shutdown(fip, cep, immap); in fec_enet_init()
1458 init_fcc_ioports(fip, io, immap); in fec_enet_init()
1459 init_fcc_param(fip, dev, immap); in fec_enet_init()
1500 volatile cpm2_map_t *immap) in init_fcc_shutdown() argument
[all …]
Denet.c617 volatile cpm2_map_t *immap; in scc_enet_init() local
622 immap = (cpm2_map_t *)CPM_MAP_ADDR; /* and to internal registers */ in scc_enet_init()
623 io = &immap->im_ioport; in scc_enet_init()
642 ep = (scc_enet_t *)(&immap->im_dprambase[PROFF_ENET]); in scc_enet_init()
646 sccp = (volatile scc_t *)(&immap->im_scc[SCC_ENET]); in scc_enet_init()
674 immap->im_cpmux.cmx_scr &= ~CMX_CLK_MASK; in scc_enet_init()
675 immap->im_cpmux.cmx_scr |= CMX_CLK_ROUTE; in scc_enet_init()
683 cep->rx_bd_base = (cbd_t *)&immap->im_dprambase[i]; in scc_enet_init()
687 cep->tx_bd_base = (cbd_t *)&immap->im_dprambase[i]; in scc_enet_init()
Duart.c2569 volatile cpm2_map_t *immap; in rs_8xx_init() local
2639 immap = cpm2_immr; in rs_8xx_init()
2640 cp = &immap->im_cpm; in rs_8xx_init()
2641 io = &immap->im_ioport; in rs_8xx_init()
2646 *(ushort *)(&immap->im_dprambase[PROFF_SMC1_BASE]) = PROFF_SMC1; in rs_8xx_init()
2647 *(ushort *)(&immap->im_dprambase[PROFF_SMC2_BASE]) = PROFF_SMC2; in rs_8xx_init()
2683 immap->im_cpmux.cmx_smr = 0; in rs_8xx_init()
2688 immap->im_cpmux.cmx_scr &= ~0x00ffff00; in rs_8xx_init()
2689 immap->im_cpmux.cmx_scr |= 0x00121b00; in rs_8xx_init()
2708 immap->im_cpmux.cmx_scr &= ~0xffffff00; in rs_8xx_init()
[all …]
/linux-2.4.37.9/include/asm-ppc/
D8xx_immap.h438 typedef struct immap { struct
Dimmap_cpm2.h570 typedef struct immap { struct