Lines Matching full:cpld
66 * A MAX-II CPLD is used for various board control functions.
101 static void __iomem *cpld; variable
301 if (!cpld) in cpld_mmc_get_cd()
305 return !(__raw_readb(cpld + CPLD_CARDSTAT) & BIT(module ? 4 : 0)); in cpld_mmc_get_cd()
310 if (!cpld) in cpld_mmc_get_ro()
314 return !!(__raw_readb(cpld + CPLD_CARDSTAT) & BIT(module ? 5 : 1)); in cpld_mmc_get_ro()
639 u8 reg = __raw_readb(cpld + CPLD_LEDS); in cpld_led_set()
645 __raw_writeb(reg, cpld + CPLD_LEDS); in cpld_led_set()
651 u8 reg = __raw_readb(cpld + CPLD_LEDS); in cpld_led_get()
660 if (!have_leds() || !cpld) in cpld_leds_init()
664 __raw_writeb(0xff, cpld + CPLD_LEDS); in cpld_leds_init()
697 /* Make sure we can configure the CPLD through CS1. Then in evm_init_cpld()
706 "cpld") == NULL) in evm_init_cpld()
708 cpld = ioremap(DM365_ASYNC_EMIF_DATA_CE1_BASE, SECTION_SIZE); in evm_init_cpld()
709 if (!cpld) { in evm_init_cpld()
713 pr_err("ERROR: can't map CPLD\n"); in evm_init_cpld()
724 if ((__raw_readb(cpld + CPLD_SWITCH) & BIT(5)) == 0) { in evm_init_cpld()
778 __raw_writeb(mux, cpld + CPLD_MUX); in evm_init_cpld()
779 __raw_writeb(resets, cpld + CPLD_RESETS); in evm_init_cpld()