summaryrefslogtreecommitdiffstats
path: root/sys/arm/at91/at91_pmcvar.h
diff options
context:
space:
mode:
authorcognet <cognet@FreeBSD.org>2010-10-06 22:25:21 +0000
committercognet <cognet@FreeBSD.org>2010-10-06 22:25:21 +0000
commit2edabad8a47c024ddbf097f91202a71b88cff6fc (patch)
treec231f180320438f262879021e2e02bbace0911b3 /sys/arm/at91/at91_pmcvar.h
parent87987160d6251c2bc94a904a9995d519ac8df5fd (diff)
downloadFreeBSD-src-2edabad8a47c024ddbf097f91202a71b88cff6fc.zip
FreeBSD-src-2edabad8a47c024ddbf097f91202a71b88cff6fc.tar.gz
if_ate.c:
* Support for sam9 "EMAC" controller. * Support for rmii interface to phy. at91.c & at91sam9.c: * Eliminate separate at91sam9.c file. * Add new devices to at91sam9_devs table. at91_machdep.c & at at91sam9_machdep.c: * Automatic chip type determination. * Remove compile time chip dependencies. * Eliminate separate at91sam9_machdep.c file. at91_pmc.c: * Corrected support for all of the sam926? and sam9g20 chips. * Remove compile time chip dependencies. My apologies to Greg for taking so long to take care of it.
Diffstat (limited to 'sys/arm/at91/at91_pmcvar.h')
-rw-r--r--sys/arm/at91/at91_pmcvar.h17
1 files changed, 16 insertions, 1 deletions
diff --git a/sys/arm/at91/at91_pmcvar.h b/sys/arm/at91/at91_pmcvar.h
index a4ebba7..22255d6 100644
--- a/sys/arm/at91/at91_pmcvar.h
+++ b/sys/arm/at91/at91_pmcvar.h
@@ -30,7 +30,7 @@
struct at91_pmc_clock
{
- const char *name;
+ char *name;
uint32_t hz;
struct at91_pmc_clock *parent;
uint32_t pmc_mask;
@@ -40,8 +40,23 @@ struct at91_pmc_clock
unsigned primary:1;
unsigned pll:1;
unsigned programmable:1;
+
+ /* PLL Params */
+ uint32_t pll_min_in;
+ uint32_t pll_max_in;
+ uint32_t pll_min_out;
+ uint32_t pll_max_out;
+
+ uint32_t pll_div_shift;
+ uint32_t pll_div_mask;
+ uint32_t pll_mul_shift;
+ uint32_t pll_mul_mask;
+
+ uint32_t (*set_outb)(int);
};
+struct at91_pmc_clock * at91_pmc_clock_add(const char *name, uint32_t irq,
+ struct at91_pmc_clock *parent);
struct at91_pmc_clock *at91_pmc_clock_ref(const char *name);
void at91_pmc_clock_deref(struct at91_pmc_clock *);
void at91_pmc_clock_enable(struct at91_pmc_clock *);
OpenPOWER on IntegriCloud