Skip to content

Commit

Permalink
clk: sunxi-ng: sun6i: Export video PLLs
Browse files Browse the repository at this point in the history
The 2x outputs of the 2 video PLL clocks are directly used by the
HDMI controller block.

Export them so they can be referenced in the device tree.

Fixes: c6e6c96 ("clk: sunxi-ng: Add A31/A31s clocks")
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
  • Loading branch information
Chen-Yu Tsai authored and Maxime Ripard committed Sep 29, 2017
1 parent 5da672c commit 8081500
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
8 changes: 6 additions & 2 deletions drivers/clk/sunxi-ng/ccu-sun6i-a31.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,19 @@
#define CLK_PLL_AUDIO_4X 4
#define CLK_PLL_AUDIO_8X 5
#define CLK_PLL_VIDEO0 6
#define CLK_PLL_VIDEO0_2X 7

/* The PLL_VIDEO0_2X clock is exported */

#define CLK_PLL_VE 8
#define CLK_PLL_DDR 9

/* The PLL_PERIPH clock is exported */

#define CLK_PLL_PERIPH_2X 11
#define CLK_PLL_VIDEO1 12
#define CLK_PLL_VIDEO1_2X 13

/* The PLL_VIDEO1_2X clock is exported */

#define CLK_PLL_GPU 14
#define CLK_PLL_MIPI 15
#define CLK_PLL9 16
Expand Down
4 changes: 4 additions & 0 deletions include/dt-bindings/clock/sun6i-a31-ccu.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,12 @@
#ifndef _DT_BINDINGS_CLK_SUN6I_A31_H_
#define _DT_BINDINGS_CLK_SUN6I_A31_H_

#define CLK_PLL_VIDEO0_2X 7

#define CLK_PLL_PERIPH 10

#define CLK_PLL_VIDEO1_2X 13

#define CLK_CPU 18

#define CLK_AHB1_MIPIDSI 23
Expand Down

0 comments on commit 8081500

Please sign in to comment.