x86: apl: Use the clock driver
authorSimon Glass <sjg@chromium.org>
Thu, 6 Feb 2020 16:54:54 +0000 (09:54 -0700)
committerBin Meng <bmeng.cn@gmail.com>
Fri, 7 Feb 2020 14:41:24 +0000 (22:41 +0800)
Enable the Intel clock driver and modify coral's device tree to use it.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
arch/x86/cpu/apollolake/Kconfig
arch/x86/dts/chromebook_coral.dts

index 145b8cbdf5b947512f770633729c4f52b165612a..8a7481555e23880597c42760867d7d9f0104102b 100644 (file)
@@ -41,6 +41,9 @@ config INTEL_APOLLOLAKE
        imply SMP
        imply HAVE_ITSS
        imply HAVE_P2SB
+       imply CLK
+       imply CMD_CLK
+       imply CLK_INTEL
 
 if INTEL_APOLLOLAKE
 
index a1820fa1870e1c04b66cefeabf3155e428e25b3b..a4a9e949e68a1c07c0886bc2258f593dd37f67f3 100644 (file)
                stdout-path = &serial;
        };
 
+       clk: clock {
+               compatible = "intel,apl-clk";
+               #clock-cells = <1>;
+       };
+
        cpus {
                u-boot,dm-pre-reloc;
                #address-cells = <1>;