drivers/clk/ti/dpll44xx.c

Source file repositories/reference/linux-study-clean/drivers/clk/ti/dpll44xx.c

File Facts

System
Linux kernel
Corpus path
drivers/clk/ti/dpll44xx.c
Extension
.c
Size
5375 bytes
Lines
200
Domain
Driver Families
Bucket
drivers/clk
Inferred role
Driver Families: implementation source
Status
source implementation candidate

Why This File Exists

Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.

Dependency Surface

Detected Declarations

Annotated Snippet

if (r < 0) {
			/*
			 * If we did not find a valid DPLL configuration, try again, but
			 * this time see if using the 4X multiplier can help. Enabling the
			 * 4X multiplier is equivalent to dividing the target rate by 4.
			 */
			tmp_req.rate /= OMAP4430_REGM4XEN_MULT;
			r = omap2_dpll_determine_rate(hw, &tmp_req);
			if (r < 0)
				return r;

			dd->last_rounded_rate *= OMAP4430_REGM4XEN_MULT;
			dd->last_rounded_m4xen = 1;
		}

		omap4_dpll_lpmode_recalc(dd);

		req->rate = dd->last_rounded_rate;
		req->best_parent_hw = dd->clk_ref;
	}

	req->best_parent_rate = req->rate;

	return 0;
}

Annotation

Implementation Notes