Lines Matching full:sirq
129 static int aspeed_vuart_set_sirq(struct aspeed_vuart *vuart, u32 sirq) in aspeed_vuart_set_sirq() argument
133 if (sirq > (ASPEED_VUART_GCRB_HOST_SIRQ_MASK >> ASPEED_VUART_GCRB_HOST_SIRQ_SHIFT)) in aspeed_vuart_set_sirq()
136 sirq <<= ASPEED_VUART_GCRB_HOST_SIRQ_SHIFT; in aspeed_vuart_set_sirq()
137 sirq &= ASPEED_VUART_GCRB_HOST_SIRQ_MASK; in aspeed_vuart_set_sirq()
141 reg |= sirq; in aspeed_vuart_set_sirq()
162 static DEVICE_ATTR_RW(sirq);
391 "could not get regmap for aspeed,sirq-polarity-sense\n"); in aspeed_vuart_auto_configure_sirq_polarity()
423 u32 prop, sirq[2]; in aspeed_vuart_probe() local
494 np, "aspeed,sirq-polarity-sense", 2, 0, in aspeed_vuart_probe()
498 "aspeed,sirq-polarity-sense property not found\n"); in aspeed_vuart_probe()
517 rc = of_property_read_u32_array(np, "aspeed,lpc-interrupts", sirq, 2); in aspeed_vuart_probe()
519 sirq[0] = ASPEED_VUART_DEFAULT_SIRQ; in aspeed_vuart_probe()
520 sirq[1] = ASPEED_VUART_DEFAULT_SIRQ_POLARITY; in aspeed_vuart_probe()
523 rc = aspeed_vuart_set_sirq(vuart, sirq[0]); in aspeed_vuart_probe()
525 dev_err_probe(dev, rc, "invalid sirq number in aspeed,lpc-interrupts property\n"); in aspeed_vuart_probe()
529 sirq_polarity = aspeed_vuart_map_irq_polarity(sirq[1]); in aspeed_vuart_probe()
532 "invalid sirq polarity in aspeed,lpc-interrupts property\n"); in aspeed_vuart_probe()