/arch/arm/mach-pxa/ |
D | cm-x2xx-pci.c | 136 writel(0x848, IT8152_PCI_CFG_ADDR); in cmx2xx_pci_preinit() 137 writel(0, IT8152_PCI_CFG_DATA); in cmx2xx_pci_preinit() 140 writel(0x840, IT8152_PCI_CFG_ADDR); in cmx2xx_pci_preinit() 141 writel(0, IT8152_PCI_CFG_DATA); in cmx2xx_pci_preinit() 143 writel(0x20, IT8152_GPIO_GPDR); in cmx2xx_pci_preinit() 146 writel(0x4000, IT8152_PCI_CFG_ADDR); in cmx2xx_pci_preinit() 151 writel(0x408C, IT8152_PCI_CFG_ADDR); in cmx2xx_pci_preinit() 152 writel(0x1022, IT8152_PCI_CFG_DATA); in cmx2xx_pci_preinit() 154 writel(0x4080, IT8152_PCI_CFG_ADDR); in cmx2xx_pci_preinit() 155 writel(0x3844d060, IT8152_PCI_CFG_DATA); in cmx2xx_pci_preinit() [all …]
|
/arch/arm/mach-netx/ |
D | time.c | 40 writel(0, NETX_GPIO_COUNTER_CTRL(TIMER_CLOCKEVENT)); in timer_shutdown() 55 writel(0, NETX_GPIO_COUNTER_MAX(TIMER_CLOCKEVENT)); in netx_set_oneshot() 56 writel(tmode, NETX_GPIO_COUNTER_CTRL(TIMER_CLOCKEVENT)); in netx_set_oneshot() 67 writel(NETX_LATCH, NETX_GPIO_COUNTER_MAX(TIMER_CLOCKEVENT)); in netx_set_periodic() 68 writel(tmode, NETX_GPIO_COUNTER_CTRL(TIMER_CLOCKEVENT)); in netx_set_periodic() 76 writel(0 - evt, NETX_GPIO_COUNTER_CURRENT(TIMER_CLOCKEVENT)); in netx_set_next_event() 99 writel(COUNTER_BIT(0), NETX_GPIO_IRQ); in netx_timer_interrupt() 118 writel(0, NETX_GPIO_COUNTER_CTRL(0)); in netx_timer_init() 121 writel(0, NETX_GPIO_COUNTER_CURRENT(0)); in netx_timer_init() 123 writel(NETX_LATCH, NETX_GPIO_COUNTER_MAX(0)); in netx_timer_init() [all …]
|
D | generic.c | 116 writel(val, NETX_DPMAS_IF_CONF1); in netx_hif_irq_type() 127 writel((1 << 24) << irq, NETX_DPMAS_INT_STAT); in netx_hif_ack_irq() 131 writel(val, NETX_DPMAS_INT_EN); in netx_hif_ack_irq() 144 writel(val, NETX_DPMAS_INT_EN); in netx_hif_mask_irq() 156 writel(val, NETX_DPMAS_INT_EN); in netx_hif_unmask_irq() 179 writel(NETX_DPMAS_INT_EN_GLB_EN, NETX_DPMAS_INT_EN); in netx_init_irq() 192 writel(NETX_SYSTEM_RES_CR_FIRMW_RES_EN | NETX_SYSTEM_RES_CR_FIRMW_RES, in netx_restart()
|
/arch/unicore32/kernel/ |
D | irq.c | 68 writel(GPIO_IRQ_rising_edge & GPIO_IRQ_mask, GPIO_GRER); in puv3_gpio_type() 69 writel(GPIO_IRQ_falling_edge & GPIO_IRQ_mask, GPIO_GFER); in puv3_gpio_type() 79 writel((1 << d->irq), GPIO_GEDR); in puv3_low_gpio_ack() 84 writel(readl(INTC_ICMR) & ~(1 << d->irq), INTC_ICMR); in puv3_low_gpio_mask() 89 writel(readl(INTC_ICMR) | (1 << d->irq), INTC_ICMR); in puv3_low_gpio_unmask() 95 writel(readl(PM_PWER) | (1 << d->irq), PM_PWER); in puv3_low_gpio_wake() 97 writel(readl(PM_PWER) & ~(1 << d->irq), PM_PWER); in puv3_low_gpio_wake() 125 writel(mask, GPIO_GEDR); in puv3_gpio_handler() 147 writel(mask, GPIO_GEDR); in puv3_high_gpio_ack() 156 writel(readl(GPIO_GRER) & ~mask, GPIO_GRER); in puv3_high_gpio_mask() [all …]
|
D | time.c | 29 writel(readl(OST_OIER) & ~OST_OIER_E0, OST_OIER); in puv3_ost0_interrupt() 30 writel(readl(OST_OSSR) & ~OST_OSSR_M0, OST_OSSR); in puv3_ost0_interrupt() 41 writel(readl(OST_OIER) | OST_OIER_E0, OST_OIER); in puv3_osmr0_set_next_event() 43 writel(next, OST_OSMR0); in puv3_osmr0_set_next_event() 51 writel(readl(OST_OIER) & ~OST_OIER_E0, OST_OIER); in puv3_osmr0_shutdown() 52 writel(readl(OST_OSSR) & ~OST_OSSR_M0, OST_OSSR); in puv3_osmr0_shutdown() 87 writel(0, OST_OIER); /* disable any timer interrupts */ in time_init() 88 writel(0, OST_OSSR); /* clear status on all timers */ in time_init() 120 writel(0, OST_OSSR); in puv3_timer_resume() 121 writel(osmr[0], OST_OSMR0); in puv3_timer_resume() [all …]
|
D | pci.c | 32 writel(CONFIG_CMD(bus, devfn, where), PCICFG_ADDR); in puv3_read_config() 51 writel(CONFIG_CMD(bus, devfn, where), PCICFG_ADDR); in puv3_write_config() 54 writel((readl(PCICFG_DATA) & ~FMASK(8, (where&3)*8)) in puv3_write_config() 58 writel((readl(PCICFG_DATA) & ~FMASK(16, (where&2)*8)) in puv3_write_config() 62 writel(value, PCICFG_DATA); in puv3_write_config() 77 writel(io_v2p(PKUNITY_PCIBRI_BASE), PCICFG_BRIBASE); in pci_puv3_preinit() 79 writel(0, PCIBRI_AHBCTL0); in pci_puv3_preinit() 80 writel(io_v2p(PKUNITY_PCIBRI_BASE) | PCIBRI_BARx_MEM, PCIBRI_AHBBAR0); in pci_puv3_preinit() 81 writel(0xFFFF0000, PCIBRI_AHBAMR0); in pci_puv3_preinit() 82 writel(0, PCIBRI_AHBTAR0); in pci_puv3_preinit() [all …]
|
/arch/m68k/coldfire/ |
D | m53xx.c | 321 writel(0x77777777, MCF_SCM_MPR); in scm_init() 325 writel(0, MCF_SCM_PACRA); in scm_init() 326 writel(0, MCF_SCM_PACRB); in scm_init() 327 writel(0, MCF_SCM_PACRC); in scm_init() 328 writel(0, MCF_SCM_PACRD); in scm_init() 329 writel(0, MCF_SCM_PACRE); in scm_init() 330 writel(0, MCF_SCM_PACRF); in scm_init() 333 writel(MCF_SCM_BCR_GBR | MCF_SCM_BCR_GBW, MCF_SCM_BCR); in scm_init() 342 writel(0x10080000, MCF_FBCS1_CSAR); in fbcs_init() 344 writel(0x002A3780, MCF_FBCS1_CSCR); in fbcs_init() [all …]
|
/arch/arm/plat-orion/ |
D | time.c | 87 writel(bridge_timer1_clr_mask, bridge_base + BRIDGE_CAUSE_OFF); in orion_clkevt_next_event() 91 writel(u, bridge_base + BRIDGE_MASK_OFF); in orion_clkevt_next_event() 96 writel(delta, timer_base + TIMER1_VAL_OFF); in orion_clkevt_next_event() 103 writel(u, timer_base + TIMER_CTRL_OFF); in orion_clkevt_next_event() 119 writel(u & ~TIMER1_EN, timer_base + TIMER_CTRL_OFF); in orion_clkevt_shutdown() 123 writel(u & ~BRIDGE_INT_TIMER1, bridge_base + BRIDGE_MASK_OFF); in orion_clkevt_shutdown() 126 writel(bridge_timer1_clr_mask, bridge_base + BRIDGE_CAUSE_OFF); in orion_clkevt_shutdown() 141 writel(ticks_per_jiffy - 1, timer_base + TIMER1_RELOAD_OFF); in orion_clkevt_set_periodic() 142 writel(ticks_per_jiffy - 1, timer_base + TIMER1_VAL_OFF); in orion_clkevt_set_periodic() 146 writel(u | BRIDGE_INT_TIMER1, bridge_base + BRIDGE_MASK_OFF); in orion_clkevt_set_periodic() [all …]
|
D | pcie.c | 89 writel(stat, base + PCIE_STAT_OFF); in orion_pcie_set_local_bus_nr() 105 writel(reg, base + PCIE_DEBUG_CTRL); in orion_pcie_reset() 115 writel(reg, base + PCIE_DEBUG_CTRL); in orion_pcie_reset() 135 writel(0, base + PCIE_BAR_CTRL_OFF(i)); in orion_pcie_setup_wins() 136 writel(0, base + PCIE_BAR_LO_OFF(i)); in orion_pcie_setup_wins() 137 writel(0, base + PCIE_BAR_HI_OFF(i)); in orion_pcie_setup_wins() 141 writel(0, base + PCIE_WIN04_CTRL_OFF(i)); in orion_pcie_setup_wins() 142 writel(0, base + PCIE_WIN04_BASE_OFF(i)); in orion_pcie_setup_wins() 143 writel(0, base + PCIE_WIN04_REMAP_OFF(i)); in orion_pcie_setup_wins() 146 writel(0, base + PCIE_WIN5_CTRL_OFF); in orion_pcie_setup_wins() [all …]
|
/arch/mips/ar7/ |
D | irq.c | 54 writel(1 << ((d->irq - ar7_irq_base) % 32), in ar7_unmask_irq() 60 writel(1 << ((d->irq - ar7_irq_base) % 32), in ar7_mask_irq() 66 writel(1 << ((d->irq - ar7_irq_base) % 32), in ar7_ack_irq() 72 writel(1 << (d->irq - ar7_irq_base - 40), REG(SEC_ESR_OFFSET)); in ar7_unmask_sec_irq() 77 writel(1 << (d->irq - ar7_irq_base - 40), REG(SEC_ECR_OFFSET)); in ar7_mask_sec_irq() 82 writel(1 << (d->irq - ar7_irq_base - 40), REG(SEC_CR_OFFSET)); in ar7_ack_sec_irq() 111 writel(0xffffffff, REG(ECR_OFFSET(0))); in ar7_irq_init() 112 writel(0xff, REG(ECR_OFFSET(32))); in ar7_irq_init() 113 writel(0xffffffff, REG(SEC_ECR_OFFSET)); in ar7_irq_init() 114 writel(0xffffffff, REG(CR_OFFSET(0))); in ar7_irq_init() [all …]
|
/arch/arm/mach-sunxi/ |
D | platsmp.c | 83 writel(__pa_symbol(secondary_startup), in sun6i_smp_boot_secondary() 87 writel(0, cpucfg_membase + CPUCFG_CPU_RST_CTRL_REG(cpu)); in sun6i_smp_boot_secondary() 91 writel(reg & ~BIT(cpu), cpucfg_membase + CPUCFG_GEN_CTRL_REG); in sun6i_smp_boot_secondary() 95 writel(reg & ~BIT(cpu), cpucfg_membase + CPUCFG_DBG_CTL1_REG); in sun6i_smp_boot_secondary() 99 writel(0xff >> i, prcm_membase + PRCM_CPU_PWR_CLAMP_REG(cpu)); in sun6i_smp_boot_secondary() 104 writel(reg & ~BIT(cpu), prcm_membase + PRCM_CPU_PWROFF_REG); in sun6i_smp_boot_secondary() 108 writel(3, cpucfg_membase + CPUCFG_CPU_RST_CTRL_REG(cpu)); in sun6i_smp_boot_secondary() 112 writel(reg | BIT(cpu), cpucfg_membase + CPUCFG_DBG_CTL1_REG); in sun6i_smp_boot_secondary() 165 writel(__pa_symbol(secondary_startup), in sun8i_smp_boot_secondary() 169 writel(0, cpucfg_membase + CPUCFG_CPU_RST_CTRL_REG(cpu)); in sun8i_smp_boot_secondary() [all …]
|
/arch/arm/mach-cns3xxx/ |
D | core.c | 107 writel(clkctrl, pm_base + PM_SYS_CLK_CTRL_OFFSET); in cns3xxx_power_off() 118 writel(0, cns3xxx_tmr1 + TIMER1_2_CONTROL_OFFSET); in cns3xxx_shutdown() 128 writel(ctrl, cns3xxx_tmr1 + TIMER1_2_CONTROL_OFFSET); in cns3xxx_set_oneshot() 139 writel(reload, cns3xxx_tmr1 + TIMER1_AUTO_RELOAD_OFFSET); in cns3xxx_set_periodic() 141 writel(ctrl, cns3xxx_tmr1 + TIMER1_2_CONTROL_OFFSET); in cns3xxx_set_periodic() 150 writel(evt, cns3xxx_tmr1 + TIMER1_AUTO_RELOAD_OFFSET); in cns3xxx_timer_set_next_event() 151 writel(ctrl | (1 << 0), cns3xxx_tmr1 + TIMER1_2_CONTROL_OFFSET); in cns3xxx_timer_set_next_event() 188 writel(val & ~(1 << 2), stat); in cns3xxx_timer_interrupt() 214 writel(0, cns3xxx_tmr1 + TIMER1_2_CONTROL_OFFSET); in __cns3xxx_timer_init() 216 writel(0, cns3xxx_tmr1 + TIMER_FREERUN_CONTROL_OFFSET); in __cns3xxx_timer_init() [all …]
|
/arch/arm/mach-s3c64xx/ |
D | setup-usb-phy.c | 29 writel(readl(S3C64XX_OTHERS) | S3C64XX_OTHERS_USBMASK, S3C64XX_OTHERS); in s3c_usb_otgphy_init() 52 writel(phyclk | S3C_PHYCLK_CLK_FORCE, S3C_PHYCLK); in s3c_usb_otgphy_init() 55 writel((readl(S3C_PHYPWR) & ~S3C_PHYPWR_NORMAL_MASK), S3C_PHYPWR); in s3c_usb_otgphy_init() 59 writel(S3C_RSTCON_PHY | S3C_RSTCON_HCLK | S3C_RSTCON_PHYCLK, in s3c_usb_otgphy_init() 62 writel(0, S3C_RSTCON); in s3c_usb_otgphy_init() 69 writel((readl(S3C_PHYPWR) | S3C_PHYPWR_ANALOG_POWERDOWN | in s3c_usb_otgphy_exit() 72 writel(readl(S3C64XX_OTHERS) & ~S3C64XX_OTHERS_USBMASK, S3C64XX_OTHERS); in s3c_usb_otgphy_exit()
|
/arch/arm/mach-orion5x/ |
D | tsx09-common.c | 36 writel(0x83, UART1_REG(LCR)); in qnap_tsx09_power_off() 37 writel(divisor & 0xff, UART1_REG(DLL)); in qnap_tsx09_power_off() 38 writel((divisor >> 8) & 0xff, UART1_REG(DLM)); in qnap_tsx09_power_off() 39 writel(0x03, UART1_REG(LCR)); in qnap_tsx09_power_off() 40 writel(0x00, UART1_REG(IER)); in qnap_tsx09_power_off() 41 writel(0x00, UART1_REG(FCR)); in qnap_tsx09_power_off() 42 writel(0x00, UART1_REG(MCR)); in qnap_tsx09_power_off() 45 writel('A', UART1_REG(TX)); in qnap_tsx09_power_off()
|
/arch/mips/jz4740/ |
D | timer.c | 29 writel(BIT(16), jz4740_timer_base + JZ_REG_TIMER_STOP_CLEAR); in jz4740_timer_enable_watchdog() 35 writel(BIT(16), jz4740_timer_base + JZ_REG_TIMER_STOP_SET); in jz4740_timer_disable_watchdog() 47 writel(0x000100fc, jz4740_timer_base + JZ_REG_TIMER_STOP_SET); in jz4740_timer_init() 50 writel(0x00ff00ff, jz4740_timer_base + JZ_REG_TIMER_MASK_SET); in jz4740_timer_init()
|
/arch/arm/mach-highbank/ |
D | sysregs.h | 58 writel(HB_PWR_SUSPEND, sregs_base + HB_SREG_A9_PWR_REQ); in highbank_set_pwr_suspend() 64 writel(HB_PWR_SHUTDOWN, sregs_base + HB_SREG_A9_PWR_REQ); in highbank_set_pwr_shutdown() 70 writel(HB_PWR_SOFT_RESET, sregs_base + HB_SREG_A9_PWR_REQ); in highbank_set_pwr_soft_reset() 76 writel(HB_PWR_HARD_RESET, sregs_base + HB_SREG_A9_PWR_REQ); in highbank_set_pwr_hard_reset() 82 writel(~0UL, sregs_base + HB_SREG_A9_PWR_REQ); in highbank_clear_pwr_request()
|
/arch/arm/mach-mvebu/ |
D | pm.c | 55 writel(reg, sdram_ctrl + SDRAM_DLB_EVICTION_OFFS); in mvebu_pm_powerdown() 62 writel(reg, sdram_ctrl + SDRAM_CONFIG_OFFS); in mvebu_pm_powerdown() 124 writel(BOOT_MAGIC_WORD, store_addr++); in mvebu_pm_store_armadaxp_bootinfo() 125 writel(resume_pc, store_addr++); in mvebu_pm_store_armadaxp_bootinfo() 133 writel(MBUS_WINDOW_12_CTRL, store_addr++); in mvebu_pm_store_armadaxp_bootinfo() 134 writel(0x0, store_addr++); in mvebu_pm_store_armadaxp_bootinfo() 140 writel(MBUS_INTERNAL_REG_ADDRESS, store_addr++); in mvebu_pm_store_armadaxp_bootinfo() 141 writel(mvebu_internal_reg_base(), store_addr++); in mvebu_pm_store_armadaxp_bootinfo() 150 writel(BOOT_MAGIC_LIST_END, store_addr); in mvebu_pm_store_armadaxp_bootinfo()
|
/arch/arm/mach-socfpga/ |
D | platsmp.c | 38 writel(RSTMGR_MPUMODRST_CPU1, in socfpga_boot_secondary() 43 writel(__pa_symbol(secondary_startup), in socfpga_boot_secondary() 51 writel(0, rst_manager_base_addr + SOCFPGA_RSTMGR_MODMPURST); in socfpga_boot_secondary() 62 writel(RSTMGR_MPUMODRST_CPU1, rst_manager_base_addr + in socfpga_a10_boot_secondary() 66 writel(__pa_symbol(secondary_startup), in socfpga_a10_boot_secondary() 74 writel(0, rst_manager_base_addr + SOCFPGA_A10_RSTMGR_MODMPURST); in socfpga_a10_boot_secondary()
|
D | ocram.c | 48 writel(ALTR_OCRAM_CLEAR_ECC, mapped_ocr_edac_addr); in socfpga_init_ocram_ecc() 49 writel(ALTR_OCRAM_ECC_EN, mapped_ocr_edac_addr); in socfpga_init_ocram_ecc() 83 writel(value, ioaddr); in ecc_set_bits() 91 writel(value, ioaddr); in ecc_clear_bits() 120 writel(ALTR_A10_ECC_ERRPENA_MASK, in altr_init_memory_port() 153 writel(ALTR_A10_OCRAM_ECC_EN_CTL, in socfpga_init_arria10_ocram_ecc() 175 writel(ALTR_A10_OCRAM_ECC_EN_CTL, in socfpga_init_arria10_ocram_ecc()
|
D | l2_cache.c | 53 writel(0x01, mapped_l2_edac_addr); in socfpga_init_l2_ecc() 81 writel(A10_SYSMGR_MPU_CLEAR_L2_ECC, (sys_manager_base_addr + in socfpga_init_arria10_l2_ecc() 84 writel(A10_SYSMGR_ECC_INTMASK_CLR_L2, sys_manager_base_addr + in socfpga_init_arria10_l2_ecc() 86 writel(A10_MPU_CTRL_L2_ECC_EN, mapped_l2_edac_addr + in socfpga_init_arria10_l2_ecc()
|
/arch/arm/mach-rockchip/ |
D | rockchip.c | 46 writel(0, reg_base + 0x30); in rockchip_timer_init() 47 writel(0xffffffff, reg_base + 0x20); in rockchip_timer_init() 48 writel(0xffffffff, reg_base + 0x24); in rockchip_timer_init() 49 writel(1, reg_base + 0x30); in rockchip_timer_init()
|
/arch/arm/mach-ep93xx/ |
D | timer-ep93xx.c | 80 writel(tmode, EP93XX_TIMER3_CONTROL); in ep93xx_clkevt_set_next_event() 83 writel(next, EP93XX_TIMER3_LOAD); in ep93xx_clkevt_set_next_event() 84 writel(tmode | EP93XX_TIMER123_CONTROL_ENABLE, in ep93xx_clkevt_set_next_event() 93 writel(0, EP93XX_TIMER3_CONTROL); in ep93xx_clkevt_shutdown() 113 writel(1, EP93XX_TIMER3_CLEAR); in ep93xx_timer_interrupt() 130 writel(EP93XX_TIMER4_VALUE_HIGH_ENABLE, in ep93xx_timer_init()
|
/arch/arm/mach-dove/ |
D | mpp.c | 77 writel(mpp_gen_cfg, DOVE_MPP_GENERAL_VIRT_BASE); in dove_mpp_cfg_nfc() 114 writel(mpp_ctrl4, DOVE_MPP_CTRL4_VIRT_BASE); in dove_mpp_cfg_au1() 115 writel(ssp_ctrl1, DOVE_SSP_CTRL_STATUS_1); in dove_mpp_cfg_au1() 116 writel(mpp_gen_ctrl, DOVE_MPP_GENERAL_VIRT_BASE); in dove_mpp_cfg_au1() 117 writel(global_cfg_2, DOVE_GLOBAL_CONFIG_2); in dove_mpp_cfg_au1() 143 writel(mpp_ctrl4, DOVE_MPP_CTRL4_VIRT_BASE); in dove_mpp_conf_grp()
|
/arch/mips/include/asm/mach-jz4740/ |
D | timer.h | 66 writel(BIT(timer), jz4740_timer_base + JZ_REG_TIMER_STOP_SET); in jz4740_timer_stop() 71 writel(BIT(timer), jz4740_timer_base + JZ_REG_TIMER_STOP_CLEAR); in jz4740_timer_start() 111 writel(JZ_TIMER_IRQ_FULL(timer), jz4740_timer_base + JZ_REG_TIMER_FLAG_CLEAR); in jz4740_timer_ack_full() 116 writel(JZ_TIMER_IRQ_FULL(timer), jz4740_timer_base + JZ_REG_TIMER_FLAG_CLEAR); in jz4740_timer_irq_full_enable() 117 writel(JZ_TIMER_IRQ_FULL(timer), jz4740_timer_base + JZ_REG_TIMER_MASK_CLEAR); in jz4740_timer_irq_full_enable() 122 writel(JZ_TIMER_IRQ_FULL(timer), jz4740_timer_base + JZ_REG_TIMER_MASK_SET); in jz4740_timer_irq_full_disable()
|
/arch/arm/mach-berlin/ |
D | platsmp.c | 42 writel(val, cpu_ctrl + CPU_RESET_NON_SC); in berlin_perform_reset_cpu() 44 writel(val, cpu_ctrl + CPU_RESET_NON_SC); in berlin_perform_reset_cpu() 90 writel(boot_inst, vectors_base + RESET_VECT); in berlin_smp_prepare_cpus() 96 writel(__pa_symbol(secondary_startup), vectors_base + SW_RESET_ADDR); in berlin_smp_prepare_cpus() 117 writel(val, cpu_ctrl + CPU_RESET_NON_SC); in berlin_cpu_kill()
|