Lines Matching refs:sirq
130 static int aspeed_vuart_set_sirq(struct aspeed_vuart *vuart, u32 sirq) in aspeed_vuart_set_sirq() argument
134 if (sirq > (ASPEED_VUART_GCRB_HOST_SIRQ_MASK >> ASPEED_VUART_GCRB_HOST_SIRQ_SHIFT)) in aspeed_vuart_set_sirq()
137 sirq <<= ASPEED_VUART_GCRB_HOST_SIRQ_SHIFT; in aspeed_vuart_set_sirq()
138 sirq &= ASPEED_VUART_GCRB_HOST_SIRQ_MASK; in aspeed_vuart_set_sirq()
142 reg |= sirq; in aspeed_vuart_set_sirq()
163 static DEVICE_ATTR_RW(sirq);
422 u32 clk, prop, sirq[2]; in aspeed_vuart_probe() local
540 rc = of_property_read_u32_array(np, "aspeed,lpc-interrupts", sirq, 2); in aspeed_vuart_probe()
542 sirq[0] = ASPEED_VUART_DEFAULT_SIRQ; in aspeed_vuart_probe()
543 sirq[1] = ASPEED_VUART_DEFAULT_SIRQ_POLARITY; in aspeed_vuart_probe()
546 rc = aspeed_vuart_set_sirq(vuart, sirq[0]); in aspeed_vuart_probe()
552 sirq_polarity = aspeed_vuart_map_irq_polarity(sirq[1]); in aspeed_vuart_probe()