Home
last modified time | relevance | path

Searched refs:au_writel (Results 1 – 25 of 30) sorted by relevance

12

/linux-2.4.37.9/arch/mips/au1000/common/
Dreset.c52 au_writel(0x02, 0xb0000010); /* ac97_enable */ in au1000_restart()
53 au_writel(0x08, 0xb017fffc); /* usbh_enable - early errata */ in au1000_restart()
55 au_writel(0x00, 0xb017fffc); /* usbh_enable */ in au1000_restart()
56 au_writel(0x00, 0xb0200058); /* usbd_enable */ in au1000_restart()
57 au_writel(0x00, 0xb0300040); /* ir_enable */ in au1000_restart()
58 au_writel(0x00, 0xb4004104); /* mac dma */ in au1000_restart()
59 au_writel(0x00, 0xb4004114); /* mac dma */ in au1000_restart()
60 au_writel(0x00, 0xb4004124); /* mac dma */ in au1000_restart()
61 au_writel(0x00, 0xb4004134); /* mac dma */ in au1000_restart()
62 au_writel(0x00, 0xb0520000); /* macen0 */ in au1000_restart()
[all …]
Dirq.c115 au_writel(1<<(irq_nr-32), IC1_MASKSET); in local_enable_irq()
116 au_writel(1<<(irq_nr-32), IC1_WAKESET); in local_enable_irq()
119 au_writel(1<<irq_nr, IC0_MASKSET); in local_enable_irq()
120 au_writel(1<<irq_nr, IC0_WAKESET); in local_enable_irq()
129 au_writel(1<<(irq_nr-32), IC1_MASKCLR); in local_disable_irq()
130 au_writel(1<<(irq_nr-32), IC1_WAKECLR); in local_disable_irq()
133 au_writel(1<<irq_nr, IC0_MASKCLR); in local_disable_irq()
134 au_writel(1<<irq_nr, IC0_WAKECLR); in local_disable_irq()
143 au_writel(1<<(irq_nr-32), IC1_RISINGCLR); in mask_and_ack_rise_edge_irq()
144 au_writel(1<<(irq_nr-32), IC1_MASKCLR); in mask_and_ack_rise_edge_irq()
[all …]
Dpower.c125 au_writel(0, 0xb0100004); au_sync(); in save_core_regs()
126 au_writel(0, USB_HOST_CONFIG); au_sync(); in save_core_regs()
129 au_writel(0, USBD_ENABLE); au_sync(); in save_core_regs()
169 au_writel(sleep_aux_pll_cntrl, SYS_AUXPLL); au_sync(); in restore_core_regs()
170 au_writel(sleep_cpu_pll_cntrl, SYS_CPUPLL); au_sync(); in restore_core_regs()
171 au_writel(sleep_pin_function, SYS_PINFUNC); au_sync(); in restore_core_regs()
175 au_writel(sleep_static_memctlr[0][0], MEM_STCFG0); in restore_core_regs()
176 au_writel(sleep_static_memctlr[0][1], MEM_STTIME0); in restore_core_regs()
177 au_writel(sleep_static_memctlr[0][2], MEM_STADDR0); in restore_core_regs()
178 au_writel(sleep_static_memctlr[1][0], MEM_STCFG1); in restore_core_regs()
[all …]
Dtime.c152 au_writel(last_match20 + MATCH20_INC, SYS_TOYMATCH2); in counter0_irq()
189 au_writel(last_match20 + MATCH20_INC, SYS_TOYMATCH2); in wakeup_counter0_adjust()
203 au_writel(last_match20 + (MATCH20_INC * ticks), SYS_TOYMATCH2); in wakeup_counter0_set()
245 au_writel(counter | SYS_CNTRL_EN1, SYS_COUNTER_CNTRL); in cal_r4koff()
249 au_writel(trim_divide-1, SYS_RTCTRIM); in cal_r4koff()
253 au_writel (0, SYS_TOYWRITE); in cal_r4koff()
437 au_writel(0, SYS_TOYWRITE); in au1xxx_timer_setup()
440 au_writel(au_readl(SYS_WAKEMSK) | (1<<8), SYS_WAKEMSK); in au1xxx_timer_setup()
441 au_writel(~0, SYS_WAKESRC); in au1xxx_timer_setup()
447 au_writel(last_match20 + MATCH20_INC, SYS_TOYMATCH2); in au1xxx_timer_setup()
Dpci_fixup.c80 au_writel( 1<<16 | au_readl(Au1500_PCI_CFG), Au1500_PCI_CFG); in pcibios_fixup()
90 au_writel(0, PCI_BRIDGE_CONFIG); // set extend byte to 0 in pcibios_fixup()
91 au_writel(0, SDRAM_MBAR); // set mbar to 0 in pcibios_fixup()
92 au_writel(0x2, SDRAM_CMD); // enable memory accesses in pcibios_fixup()
96 au_writel(((pci_mem_start >> 24) & 0xff) | in pcibios_fixup()
Dsetup.c96 au_writel(bclk | 0x60, 0xB190003C); in au1x00_setup()
191 au_writel(0x08, USB_HOST_CONFIG); in au1x00_setup()
193 au_writel(0x0E, USB_HOST_CONFIG); in au1x00_setup()
208 au_writel(0, UART0_ADDR + UART_CLK); in au1x00_setup()
219 au_writel(SYS_CNTRL_E0 | SYS_CNTRL_EN0, SYS_COUNTER_CNTRL); in au1x00_setup()
222 au_writel(0, SYS_TOYTRIM); in au1x00_setup()
Dusbdev.c313 au_writel(USBDEV_FSTAT_FLUSH | USBDEV_FSTAT_UF | in flush_write_fifo()
327 au_writel(USBDEV_FSTAT_FLUSH | USBDEV_FSTAT_UF | in flush_read_fifo()
359 au_writel(cs, ep->reg->ctrl_stat); in endpoint_stall()
371 au_writel(cs, ep->reg->ctrl_stat); in endpoint_unstall()
418 au_writel(*bufptr++, ep->reg->write_fifo);
458 au_writel(cs, ep->reg->ctrl_stat); in kickstart_send_packet()
998 au_writel(0, ep0->reg->write_fifo); in process_ep0_receive()
1046 au_writel(status, USBD_INTSTAT); // ack'em in req_sus_intr()
1285 au_writel(0, USBD_INTEN); // disable usb dev ints in usbdev_exit()
1286 au_writel(0, USBD_ENABLE); // disable usb dev in usbdev_exit()
[all …]
Dpci_ops.c106 au_writel(*data, config); in config_access()
182 au_writel(((0x2000 << 16) | (au_readl(Au1500_PCI_STATCMD) & 0xffff)), in config_access()
246 au_writel(*data, (int)(pci_cfg_vm->addr + offset)); in config_access()
Drtc.c25 au_writel(data, offset + PB1500_RTC_ADDR); in std_rtc_write_data()
Ddbg_io.c57 #define UART16550_WRITE(y,z) (au_writel(z&0xff, DEBUG_BASE + y))
/linux-2.4.37.9/arch/mips/au1000/pb1000/
Dboard_setup.c70 au_writel(8, SYS_AUXPLL); in board_setup()
71 au_writel(0, SYS_PINSTATERD); in board_setup()
78 au_writel(sys_freqctrl, SYS_FREQCTRL0); in board_setup()
83 au_writel(sys_clksrc, SYS_CLKSRC); in board_setup()
97 au_writel(4, SYS_CPUPLL); in board_setup()
104 au_writel(sys_freqctrl, SYS_FREQCTRL0); in board_setup()
107 au_writel(0x20, SYS_CPUPLL); in board_setup()
115 au_writel(sys_freqctrl, SYS_FREQCTRL0); in board_setup()
128 au_writel(sys_clksrc, SYS_CLKSRC); in board_setup()
137 au_writel(pin_func, SYS_PINFUNC); in board_setup()
[all …]
/linux-2.4.37.9/arch/mips/au1000/csb250/
Dboard_setup.c68 au_writel(8, SYS_AUXPLL); in board_setup()
69 au_writel(0, SYS_PINSTATERD); in board_setup()
76 au_writel(au_readl(GPIO2_DIR) & (u32)(~((1<<1)|(1<<3))), GPIO2_DIR); in board_setup()
81 au_writel(sys_freqctrl, SYS_FREQCTRL0); in board_setup()
86 au_writel(sys_clksrc, SYS_CLKSRC); in board_setup()
96 au_writel(sys_freqctrl, SYS_FREQCTRL0); in board_setup()
107 au_writel(sys_clksrc, SYS_CLKSRC); in board_setup()
115 au_writel(pin_func, SYS_PINFUNC); in board_setup()
124 au_writel(0x00000001, GPIO2_DIR); in board_setup()
131 au_writel(pin_val, GPIO2_OUTPUT); in board_setup()
[all …]
/linux-2.4.37.9/arch/mips/au1000/pb1500/
Dboard_setup.c62 au_writel(0x00000000, 0xAE00001C); in board_reset()
72 au_writel(8, SYS_AUXPLL); in board_setup()
73 au_writel(0, SYS_PINSTATERD); in board_setup()
80 au_writel(au_readl(GPIO2_DIR) & (u32)(~((1<<1)|(1<<3))), GPIO2_DIR); in board_setup()
85 au_writel(sys_freqctrl, SYS_FREQCTRL0); in board_setup()
90 au_writel(sys_clksrc, SYS_CLKSRC); in board_setup()
100 au_writel(sys_freqctrl, SYS_FREQCTRL0); in board_setup()
111 au_writel(sys_clksrc, SYS_CLKSRC); in board_setup()
119 au_writel(pin_func, SYS_PINFUNC); in board_setup()
126 au_writel(0, Au1500_PCI_CMEM); in board_setup()
[all …]
/linux-2.4.37.9/arch/mips/au1000/mtx-1/
Dboard_setup.c58 au_writel(au_readl(SYS_PINFUNC) & (u32)(~0x8000), SYS_PINFUNC); in board_setup()
61 au_writel( au_readl(GPIO2_DIR) | 0x10, GPIO2_DIR ); in board_setup()
62 au_writel( 0x100000, GPIO2_OUTPUT ); in board_setup()
67 au_writel(0xf | (2<<6) | (1<<4), Au1500_PCI_CFG); in board_setup()
69 au_writel(0xf, Au1500_PCI_CFG); in board_setup()
76 au_writel( SYS_PF_NI2 | SYS_PF_U3, SYS_PINFUNC ); in board_setup()
79 au_writel( 0xFFFFFFFF, SYS_TRIOUTCLR ); in board_setup()
80 au_writel( 0x00000001, SYS_OUTPUTCLR ); // set M66EN (PCI 66MHz) to OFF in board_setup()
81 au_writel( 0x00000008, SYS_OUTPUTSET ); // set PCI CLKRUN# to OFF in board_setup()
82 au_writel( 0x00000020, SYS_OUTPUTCLR ); // set eth PHY TX_ER to OFF in board_setup()
[all …]
/linux-2.4.37.9/arch/mips/au1000/xxs1500/
Dboard_setup.c53 au_writel(0x00000000, 0xAE00001C); in board_reset()
65 au_writel(pin_func, SYS_PINFUNC); in board_setup()
68 au_writel(0x01, UART3_ADDR+UART_MOD_CNTRL); // clock enable (CE) in board_setup()
70 au_writel(0x03, UART3_ADDR+UART_MOD_CNTRL); // CE and "enable" in board_setup()
74 au_writel(0x01, UART3_ADDR+UART_MCR); //? UART_MCR_DTR is 0x01??? in board_setup()
78 au_writel(0, SYS_PININPUTEN); in board_setup()
81 au_writel(1 | (1<<1) | (1<<4), SYS_TRIOUTCLR); in board_setup()
84 au_writel(1, GPIO2_ENABLE); in board_setup()
86 au_writel((1<<8) | (1<<9) | (1<<10) | (1<<11), GPIO2_DIR); in board_setup()
89 au_writel((au_readl(GPIO2_PINSTATE) & ~(1<<14))|(1<<30), GPIO2_OUTPUT); in board_setup()
[all …]
/linux-2.4.37.9/arch/mips/au1000/pb1100/
Dboard_setup.c62 au_writel(0x00000000, 0xAE00001C); in board_reset()
71 au_writel(8, SYS_AUXPLL); in board_setup()
72 au_writel(0, SYS_PININPUTEN); in board_setup()
82 au_writel(sys_freqctrl, SYS_FREQCTRL0); in board_setup()
87 au_writel(sys_clksrc, SYS_CLKSRC); in board_setup()
97 au_writel(sys_freqctrl, SYS_FREQCTRL0); in board_setup()
103 au_writel(sys_clksrc, SYS_CLKSRC); in board_setup()
106 au_writel(0x00000002, MEM_STCFG3); /* type = PCMCIA */ in board_setup()
107 au_writel(0x280E3D07, MEM_STTIME3); /* 250ns cycle time */ in board_setup()
108 au_writel(0x10000000, MEM_STADDR3); /* any PCMCIA select */ in board_setup()
[all …]
/linux-2.4.37.9/arch/mips/au1000/db1x00/
Dboard_setup.c57 au_writel(0x00000000, 0xAE00001C); in board_reset()
70 au_writel(pin_func, SYS_PINFUNC); in board_setup()
76 au_writel(pin_func, SYS_PINFUNC); in board_setup()
82 au_writel(0, 0xAE000010); /* turn off pcmcia power */ in board_setup()
86 au_writel(0, SYS_PININPUTEN); in board_setup()
89 au_writel((u32)(~(1<<20)), SYS_TRIOUTCLR); in board_setup()
102 au_writel(pin_func, SYS_PINFUNC); in board_setup()
107 au_writel(au_readl(GPIO2_DIR) | 0x200, GPIO2_DIR); in board_setup()
108 au_writel(0x02000200, GPIO2_OUTPUT); in board_setup()
/linux-2.4.37.9/include/asm-mips/
Dau1000_dma.h166 au_writel(DMA_BE0, chan->io + DMA_MODE_SET); in enable_dma_buffer0()
173 au_writel(DMA_BE1, chan->io + DMA_MODE_SET); in enable_dma_buffer1()
180 au_writel(DMA_BE0 | DMA_BE1, chan->io + DMA_MODE_SET); in enable_dma_buffers()
189 au_writel(DMA_GO, chan->io + DMA_MODE_SET); in start_dma()
201 au_writel(DMA_GO, chan->io + DMA_MODE_CLEAR); in halt_dma()
220 au_writel(~DMA_GO, chan->io + DMA_MODE_CLEAR); in disable_dma()
242 au_writel(PHYSADDR(chan->fifo_addr), in init_dma()
249 au_writel(~mode, chan->io + DMA_MODE_CLEAR); in init_dma()
250 au_writel(mode, chan->io + DMA_MODE_SET); in init_dma()
306 au_writel(PHYSADDR(a), chan->io + DMA_PERIPHERAL_ADDR); in set_dma_fifo_addr()
[all …]
/linux-2.4.37.9/drivers/pcmcia/
Dau1000_xxs1500.c72 au_writel(au_readl(GPIO2_PINSTATE) | (1<<14)|(1<<30), in xxs1500_pcmcia_shutdown()
77 au_writel(au_readl(GPIO2_PINSTATE) | (1<<4)|(1<<20), in xxs1500_pcmcia_shutdown()
152 au_writel((au_readl(GPIO2_PINSTATE) & ~(1<<14))|(1<<30), in xxs1500_pcmcia_configure_socket()
163 au_writel(au_readl(GPIO2_PINSTATE) | (1<<14)|(1<<30), in xxs1500_pcmcia_configure_socket()
170 au_writel((au_readl(GPIO2_PINSTATE) & ~(1<<4))|(1<<20), in xxs1500_pcmcia_configure_socket()
173 au_writel((au_readl(GPIO2_PINSTATE) & ~(1<<5))|(1<<21), in xxs1500_pcmcia_configure_socket()
178 au_writel(au_readl(GPIO2_PINSTATE) | (1<<4)|(1<<20), in xxs1500_pcmcia_configure_socket()
Dau1000_pb1x00.c69 au_writel(0x8000, PB1000_MDR); /* clear pcmcia interrupt */ in pb1x00_pcmcia_init()
71 au_writel(0x4000, PB1000_MDR); /* enable pcmcia interrupt */ in pb1x00_pcmcia_init()
76 au_writel(pcr, PB1000_PCR); in pb1x00_pcmcia_init()
99 au_writel(pcr, PB1000_PCR); in pb1x00_pcmcia_shutdown()
326 au_writel(pcr, PB1000_PCR); in pb1x00_pcmcia_configure_socket()
/linux-2.4.37.9/arch/mips/au1000/pb1550/
Dboard_setup.c68 au_writel(pin_func, SYS_PINFUNC); in board_setup()
76 au_writel(pin_func, SYS_PINFUNC); in board_setup()
78 au_writel(0, (u32)bcsr|0x10); /* turn off pcmcia power */ in board_setup()
/linux-2.4.37.9/arch/mips/au1000/hydrogen3/
Dboard_setup.c63 au_writel(pin_func, SYS_PINFUNC); in board_setup()
69 au_writel(pin_func, SYS_PINFUNC); in board_setup()
/linux-2.4.37.9/drivers/sound/
Dau1550_psc.c216 au_writel(cmd, PSC_AC97CDC); in rdcodec()
250 au_writel(PSC_AC97EVNT_CD, PSC_AC97EVNT); in rdcodec()
280 au_writel(cmd, PSC_AC97CDC); in wrcodec()
303 au_writel(PSC_AC97EVNT_CD, PSC_AC97EVNT); in wrcodec()
478 au_writel(PSC_AC97PCR_TP, PSC_AC97PCR); in stop_dac()
507 au_writel(PSC_AC97PCR_RP, PSC_AC97PCR); in stop_adc()
533 au_writel(ac97_config, PSC_AC97CFG); in set_xmit_slots()
553 au_writel(ac97_config, PSC_AC97CFG); in set_xmit_slots()
557 au_writel(ac97_config, PSC_AC97CFG); in set_xmit_slots()
576 au_writel(ac97_config, PSC_AC97CFG); in set_recv_slots()
[all …]
Dau1000.c264 au_writel(cmd, AC97C_CMD); in rdcodec()
301 au_writel(cmd, AC97C_CMD); in wrcodec()
487 au_writel(ac97_config, AC97C_CONFIG); in set_xmit_slots()
500 au_writel(ac97_config, AC97C_CONFIG); in set_recv_slots()
2092 au_writel(au_readl(SYS_PINFUNC) & ~0x02, SYS_PINFUNC); in au1000_probe()
2095 au_writel(AC97C_RS | AC97C_CE, AC97C_CNTRL); in au1000_probe()
2097 au_writel(AC97C_CE, AC97C_CNTRL); in au1000_probe()
2101 au_writel(AC97C_RESET, AC97C_CONFIG); in au1000_probe()
2103 au_writel(0, AC97C_CONFIG); in au1000_probe()
2109 au_writel(AC97C_SG | AC97C_SYNC, AC97C_CONFIG); in au1000_probe()
[all …]
/linux-2.4.37.9/drivers/video/
Dau1100fb.c325 au_writel(0x20002000, 0xB1700008); in au1100_blank()
326 au_writel(0x00040000, 0xB1900108); in au1100_blank()
327 au_writel(0x01000100, 0xB1700008); in au1100_blank()
490 au_writel(0x20002000, 0xB1700008); in au1100_setmode()
491 au_writel(0x00040000, 0xB1900108); in au1100_setmode()
492 au_writel(0x01000100, 0xB1700008); in au1100_setmode()
575 au_writel(sys_clksrc, SYS_CLKSRC); in au1100fb_init()

12