Lines Matching +full:system +full:- +full:ctl

9  * Copyright (C) 2006-2009 Felix Fietkau <nbd@openwrt.org>
96 ar5312_rst_reg_mask(AR5312_IMR, 0, BIT(d->hwirq)); in ar5312_misc_irq_unmask()
102 ar5312_rst_reg_mask(AR5312_IMR, BIT(d->hwirq), 0); in ar5312_misc_irq_mask()
107 .name = "ar5312-misc",
152 if (request_irq(irq, ar5312_ahb_err_handler, 0, "ar5312-ahb-error", in ar5312_arch_init_irq()
154 pr_err("Failed to register ar5312-ahb-error interrupt\n"); in ar5312_arch_init_irq()
168 .end = AR5312_FLASH_BASE + AR5312_FLASH_SIZE - 1,
173 .name = "physmap-flash",
183 u32 ctl; in ar5312_flash_init() local
188 ctl = __raw_readl(flashctl_base + AR5312_FLASHCTL0); in ar5312_flash_init()
189 ctl &= AR5312_FLASHCTL_MW; in ar5312_flash_init()
192 switch (ctl) { in ar5312_flash_init()
206 ctl |= AR5312_FLASHCTL_E | AR5312_FLASHCTL_AC_8M | AR5312_FLASHCTL_RBLE; in ar5312_flash_init()
207 ctl |= 0x01 << AR5312_FLASHCTL_IDCY_S; in ar5312_flash_init()
208 ctl |= 0x07 << AR5312_FLASHCTL_WST1_S; in ar5312_flash_init()
209 ctl |= 0x07 << AR5312_FLASHCTL_WST2_S; in ar5312_flash_init()
210 __raw_writel(ctl, flashctl_base + AR5312_FLASHCTL0); in ar5312_flash_init()
213 ctl = __raw_readl(flashctl_base + AR5312_FLASHCTL1); in ar5312_flash_init()
214 ctl &= ~(AR5312_FLASHCTL_E | AR5312_FLASHCTL_AC); in ar5312_flash_init()
215 __raw_writel(ctl, flashctl_base + AR5312_FLASHCTL1); in ar5312_flash_init()
216 ctl = __raw_readl(flashctl_base + AR5312_FLASHCTL2); in ar5312_flash_init()
217 ctl &= ~(AR5312_FLASHCTL_E | AR5312_FLASHCTL_AC); in ar5312_flash_init()
218 __raw_writel(ctl, flashctl_base + AR5312_FLASHCTL2); in ar5312_flash_init()
238 else if (config->flags & BD_ISCASPER) in ar5312_init_devices()
252 if (!(config->flags & BD_WLAN0)) in ar5312_init_devices()
266 if (config->flags & BD_WLAN1) in ar5312_init_devices()
272 /* reset the system */ in ar5312_restart()