Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1434358
| From | Jean-Francois Moine <moinejf@free.fr> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v3 13/14] clk: sunxi-ng: Add H3 clocks |
| Date | 2016-06-30 10:40 +0200 |
| Message-ID | <rPFFU-7jk-25@gated-at.bofh.it> (permalink) |
| References | <rPt22-85k-5@gated-at.bofh.it> <rPt22-85k-31@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Wed, 29 Jun 2016 21:05:34 +0200
Maxime Ripard <maxime.ripard@free-electrons.com> wrote:
> +static void __init sun8i_h3_ccu_setup(struct device_node *node)
> +{
> + void __iomem *reg;
> + u32 val;
> +
> + reg = of_io_request_and_map(node, 0, of_node_full_name(node));
> + if (IS_ERR(reg)) {
> + pr_err("%s: Could not map the clock registers\n",
> + of_node_full_name(node));
> + return;
> + }
> +
> + /* Force the PLL-Audio-1x divider to 4 */
> + val = readl(reg + SUN8I_H3_PLL_AUDIO_REG);
> + val &= ~GENMASK(4, 0);
> + writel(val | 3, reg + SUN8I_H3_PLL_AUDIO_REG);
> +
> + sunxi_ccu_probe(node, reg, &sun8i_h3_ccu_desc);
> +}
FYI, the pll-audio PLL_POST_DIV is 19:16.
--
Ken ar c'hentaƱ | ** Breizh ha Linux atav! **
Jef | http://moinejf.free.fr/
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v3 00/14] clk: sunxi: introduce "modern" clock support Maxime Ripard <maxime.ripard@free-electrons.com> - 2016-06-29 21:10 +0200
[PATCH v3 08/14] clk: sunxi-ng: Add M-P factor clock support Maxime Ripard <maxime.ripard@free-electrons.com> - 2016-06-29 21:10 +0200
[PATCH v3 11/14] clk: sunxi-ng: Add N-K-M Factor clock Maxime Ripard <maxime.ripard@free-electrons.com> - 2016-06-29 21:20 +0200
[PATCH v3 12/14] clk: sunxi-ng: Add N-K-M-P factor clock Maxime Ripard <maxime.ripard@free-electrons.com> - 2016-06-29 21:20 +0200
Re: [PATCH v3 13/14] clk: sunxi-ng: Add H3 clocks Jean-Francois Moine <moinejf@free.fr> - 2016-06-30 10:40 +0200
Re: [PATCH v3 13/14] clk: sunxi-ng: Add H3 clocks Michael Turquette <mturquette@baylibre.com> - 2016-07-07 04:40 +0200
Re: [PATCH v3 13/14] clk: sunxi-ng: Add H3 clocks Maxime Ripard <maxime.ripard@free-electrons.com> - 2016-07-08 23:40 +0200
csiph-web