Searched refs:cprman (Results 1 – 2 of 2) sorted by relevance
| /linux/drivers/clk/bcm/ |
| H A D | clk-bcm2835.c | 335 static inline void cprman_write(struct bcm2835_cprman *cprman, u32 reg, u32 val) in cprman_write() argument 337 writel(CM_PASSWORD | val, cprman->regs + reg); in cprman_write() 340 static inline u32 cprman_read(struct bcm2835_cprman *cprman, u32 reg) in cprman_read() argument 342 return readl(cprman->regs + reg); in cprman_read() 348 static unsigned long bcm2835_measure_tcnt_mux(struct bcm2835_cprman *cprman, in bcm2835_measure_tcnt_mux() argument 355 spin_lock(&cprman->regs_lock); in bcm2835_measure_tcnt_mux() 357 cprman_write(cprman, CM_TCNTCTL, CM_KILL); in bcm2835_measure_tcnt_mux() 359 cprman_write(cprman, CM_TCNTCTL, in bcm2835_measure_tcnt_mux() 363 cprman_write(cprman, CM_OSCCOUNT, osccount); in bcm2835_measure_tcnt_mux() 370 while (cprman_read(cprman, CM_OSCCOUNT)) { in bcm2835_measure_tcnt_mux() [all …]
|
| /linux/arch/arm/boot/dts/broadcom/ |
| H A D | bcm283x.dtsi | 86 clocks: cprman@7e101000 { 87 compatible = "brcm,bcm2835-cprman";
|