Date: Sat, 11 Aug 2012 05:03:30 +0000 (UTC) From: Warner Losh <imp@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r239188 - head/sys/arm/at91 Message-ID: <201208110503.q7B53UvN017381@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: imp Date: Sat Aug 11 05:03:30 2012 New Revision: 239188 URL: http://svn.freebsd.org/changeset/base/239188 Log: Don't use C++ comments. Modified: head/sys/arm/at91/at91_pmc.c Modified: head/sys/arm/at91/at91_pmc.c ============================================================================== --- head/sys/arm/at91/at91_pmc.c Sat Aug 11 00:06:56 2012 (r239187) +++ head/sys/arm/at91/at91_pmc.c Sat Aug 11 05:03:30 2012 (r239188) @@ -71,7 +71,7 @@ static void at91_pmc_set_periph_mode(str 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))
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201208110503.q7B53UvN017381>