summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2012-08-11 05:03:30 +0000
committerimp <imp@FreeBSD.org>2012-08-11 05:03:30 +0000
commit24e221572dd235254073f5db3dbc3d70ba374f54 (patch)
treeeebeecf3aeaad7f4b5be0b5d9856f199c70e154f
parent43c8a8efc2fbdafcc2aa3163f8c3efd8a863f25c (diff)
downloadFreeBSD-src-24e221572dd235254073f5db3dbc3d70ba374f54.zip
FreeBSD-src-24e221572dd235254073f5db3dbc3d70ba374f54.tar.gz
Don't use C++ comments.
-rw-r--r--sys/arm/at91/at91_pmc.c23
1 files changed, 12 insertions, 11 deletions
diff --git a/sys/arm/at91/at91_pmc.c b/sys/arm/at91/at91_pmc.c
index f74b88b..c8002fa 100644
--- a/sys/arm/at91/at91_pmc.c
+++ b/sys/arm/at91/at91_pmc.c
@@ -71,7 +71,7 @@ static void at91_pmc_set_periph_mode(struct at91_pmc_clock *, int);
static void at91_pmc_clock_alias(const char *name, const char *alias);
static struct at91_pmc_clock slck = {
- .name = "slck", // 32,768 Hz slow clock
+ .name = "slck", /* 32,768 Hz slow clock */
.hz = 32768,
.refcnt = 1,
.id = 0,
@@ -83,7 +83,7 @@ static struct at91_pmc_clock slck = {
* are now created automatically. Only "system" clocks need be defined here.
*/
static struct at91_pmc_clock main_ck = {
- .name = "main", // Main clock
+ .name = "main", /* Main clock */
.refcnt = 0,
.id = 1,
.primary = 1,
@@ -91,7 +91,7 @@ static struct at91_pmc_clock main_ck = {
};
static struct at91_pmc_clock plla = {
- .name = "plla", // PLLA Clock, used for CPU clocking
+ .name = "plla", /* PLLA Clock, used for CPU clocking */
.parent = &main_ck,
.refcnt = 1,
.id = 0,
@@ -101,7 +101,7 @@ static struct at91_pmc_clock plla = {
};
static struct at91_pmc_clock pllb = {
- .name = "pllb", // PLLB Clock, used for USB functions
+ .name = "pllb", /* PLLB Clock, used for USB functions */
.parent = &main_ck,
.refcnt = 0,
.id = 0,
@@ -113,7 +113,7 @@ static struct at91_pmc_clock pllb = {
/* Used by USB on at91sam9g45 */
static struct at91_pmc_clock upll = {
- .name = "upll", // UTMI PLL, used for USB functions on 9G45
+ .name = "upll", /* UTMI PLL, used for USB functions on 9G45 family */
.parent = &main_ck,
.refcnt = 0,
.id = 0,
@@ -138,13 +138,13 @@ static struct at91_pmc_clock uhpck = {
};
static struct at91_pmc_clock mck = {
- .name = "mck", // Master (Peripheral) Clock
+ .name = "mck", /* Master (Peripheral) Clock */
.pmc_mask = PMC_IER_MCKRDY,
.refcnt = 0,
};
static struct at91_pmc_clock cpu = {
- .name = "cpu", // CPU Clock
+ .name = "cpu", /* CPU Clock */
.parent = &plla,
.pmc_mask = PMC_SCER_PCK,
.refcnt = 0,
@@ -329,7 +329,6 @@ at91_pmc_clock_ref(const char *name)
return (clock_list[i]);
}
- //printf("at91_pmc: Warning - did not find clock '%s'", name);
return (NULL);
}
@@ -510,9 +509,11 @@ at91_pmc_init_clock(void)
mckr = RD4(sc, PMC_MCKR);
main_ck.hz = main_clock;
- // Note: this means outa calc code for plla never used since
- // we never change it. If we did, we'd also have to mind
- // ICPLLA to get the charge pump current right.
+ /*
+ * Note: this means outa calc code for plla never used since
+ * we never change it. If we did, we'd also have to mind
+ * ICPLLA to get the charge pump current right.
+ */
at91_pmc_pll_rate(&plla, RD4(sc, CKGR_PLLAR));
if (at91_cpu_is(AT91_T_SAM9G45) && (mckr & PMC_MCKR_PLLADIV2))
OpenPOWER on IntegriCloud