clk: lpc32xx: allow peripheral clock selection in device tree

This patch add the support to select the peripheral clock (PERIPH)
as a parent clock source using the "assigned-clock-parents"
parameter in the device tree.

Signed-off-by: Sylvain Lemieux <slemieux@tycoint.com>
Acked-by: Vladimir Zapolskiy <vz@mleia.com>
Signed-off-by: Michael Turquette <mturquette@baylibre.com>
Link: lkml.kernel.org/r/1464982475-24738-1-git-send-email-slemieux.tyco@gmail.com
This commit is contained in:
Sylvain Lemieux 2016-06-03 15:34:35 -04:00 committed by Michael Turquette
parent 1a695a905c
commit 054e273008
2 changed files with 2 additions and 2 deletions

View File

@ -87,7 +87,7 @@ enum {
enum { enum {
/* Start from the last defined clock in dt bindings */ /* Start from the last defined clock in dt bindings */
LPC32XX_CLK_ADC_DIV = LPC32XX_CLK_HCLK_PLL + 1, LPC32XX_CLK_ADC_DIV = LPC32XX_CLK_PERIPH + 1,
LPC32XX_CLK_ADC_RTC, LPC32XX_CLK_ADC_RTC,
LPC32XX_CLK_TEST1, LPC32XX_CLK_TEST1,
LPC32XX_CLK_TEST2, LPC32XX_CLK_TEST2,
@ -99,7 +99,6 @@ enum {
LPC32XX_CLK_HCLK_DIV_PERIPH, LPC32XX_CLK_HCLK_DIV_PERIPH,
LPC32XX_CLK_HCLK_DIV, LPC32XX_CLK_HCLK_DIV,
LPC32XX_CLK_HCLK, LPC32XX_CLK_HCLK,
LPC32XX_CLK_PERIPH,
LPC32XX_CLK_ARM, LPC32XX_CLK_ARM,
LPC32XX_CLK_ARM_VFP, LPC32XX_CLK_ARM_VFP,

View File

@ -48,6 +48,7 @@
#define LPC32XX_CLK_PWM2 33 #define LPC32XX_CLK_PWM2 33
#define LPC32XX_CLK_ADC 34 #define LPC32XX_CLK_ADC 34
#define LPC32XX_CLK_HCLK_PLL 35 #define LPC32XX_CLK_HCLK_PLL 35
#define LPC32XX_CLK_PERIPH 36
/* LPC32XX USB clocks */ /* LPC32XX USB clocks */
#define LPC32XX_USB_CLK_I2C 1 #define LPC32XX_USB_CLK_I2C 1