Changeset View
Changeset View
Standalone View
Standalone View
head/sys/arm/ti/twl/twl_clks.c
Show First 20 Lines • Show All 465 Lines • ▼ Show 20 Lines | twl_clks_add_clock(struct twl_clks_softc *sc, const char *name, | ||||
new->sub_dev = nsub; | new->sub_dev = nsub; | ||||
new->reg_off = regbase; | new->reg_off = regbase; | ||||
/* Add a sysctl entry for the clock */ | /* Add a sysctl entry for the clock */ | ||||
new->oid = SYSCTL_ADD_PROC(ctx, SYSCTL_CHILDREN(tree), OID_AUTO, name, | new->oid = SYSCTL_ADD_PROC(ctx, SYSCTL_CHILDREN(tree), OID_AUTO, name, | ||||
CTLTYPE_INT | CTLFLAG_RD, sc, 0, | CTLTYPE_INT | CTLFLAG_RD | CTLFLAG_NEEDGIANT, sc, 0, | ||||
twl_clks_sysctl_clock, "I", "external clock"); | twl_clks_sysctl_clock, "I", "external clock"); | ||||
/* Finally add the regulator to list of supported regulators */ | /* Finally add the regulator to list of supported regulators */ | ||||
LIST_INSERT_HEAD(&sc->sc_clks_list, new, link); | LIST_INSERT_HEAD(&sc->sc_clks_list, new, link); | ||||
return (new); | return (new); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 192 Lines • Show Last 20 Lines |