Don't use C++ comments.

This commit is contained in:
imp 2012-08-11 05:03:30 +00:00
parent 43c8a8efc2
commit 24e221572d

View File

@ -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))