Skip to content

Commit

Permalink
clk: sunxi-ng: a64: Export PLL_PERIPH0 clock for the PRCM
Browse files Browse the repository at this point in the history
The PRCM takes PLL_PERIPH0 as one of its parents for the AR100 clock.
As such we need to be able to describe this relationship in the device
tree.

Export the PLL_PERIPH0 clock so we can reference it in the PRCM node.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
  • Loading branch information
Chen-Yu Tsai authored and Maxime Ripard committed May 31, 2017
1 parent c4be8c6 commit d85da22
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/clk/sunxi-ng/ccu-sun50i-a64.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@
#define CLK_PLL_VIDEO0_2X 8
#define CLK_PLL_VE 9
#define CLK_PLL_DDR0 10
#define CLK_PLL_PERIPH0 11

/* PLL_PERIPH0 exported for PRCM */

#define CLK_PLL_PERIPH0_2X 12
#define CLK_PLL_PERIPH1 13
#define CLK_PLL_PERIPH1_2X 14
Expand Down
2 changes: 2 additions & 0 deletions include/dt-bindings/clock/sun50i-a64-ccu.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@
#ifndef _DT_BINDINGS_CLK_SUN50I_A64_H_
#define _DT_BINDINGS_CLK_SUN50I_A64_H_

#define CLK_PLL_PERIPH0 11

#define CLK_BUS_MIPI_DSI 28
#define CLK_BUS_CE 29
#define CLK_BUS_DMA 30
Expand Down

0 comments on commit d85da22

Please sign in to comment.