Home
last modified time | relevance | path

Searched refs:PERIPHERAL_MASK (Results 1 – 2 of 2) sorted by relevance

/openbmc/u-boot/drivers/clk/at91/
H A Dclk-peripheral.c16 #define PERIPHERAL_MASK(id) (1 << ((id) & PERIPHERAL_ID_MAX)) macro
70 setbits_le32(addr, PERIPHERAL_MASK(clk->id)); in periph_clk_enable()
/openbmc/linux/drivers/clk/at91/
H A Dclk-peripheral.c20 #define PERIPHERAL_MASK(id) (1 << ((id) & PERIPHERAL_ID_MAX)) macro
58 regmap_write(periph->regmap, offset, PERIPHERAL_MASK(id)); in clk_peripheral_enable()
73 regmap_write(periph->regmap, offset, PERIPHERAL_MASK(id)); in clk_peripheral_disable()
89 return status & PERIPHERAL_MASK(id) ? 1 : 0; in clk_peripheral_is_enabled()