]> git.baikalelectronics.ru Git - uboot.git/commitdiff
k210: dts: Set PLL1 to the same rate as PLL0
authorSean Anderson <seanga2@gmail.com>
Fri, 11 Jun 2021 04:16:15 +0000 (00:16 -0400)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Thu, 17 Jun 2021 01:40:58 +0000 (09:40 +0800)
Linux has had some stability issues when using AISRAM with a different
frequency from SRAM. Mirror their change here now that we relocate into
AISRAM.

Signed-off-by: Sean Anderson <seanga2@gmail.com>
Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
arch/riscv/dts/k210.dtsi
configs/sipeed_maix_bitm_defconfig

index 2492af8038918b6154964d6c37302617008defd1..8bcd3cebdef741ca13c58e153938b6bd7d73d8ce 100644 (file)
                                        #clock-cells = <1>;
                                        compatible = "kendryte,k210-clk";
                                        clocks = <&in0>;
+                                       assigned-clocks = <&sysclk K210_CLK_PLL1>;
+                                       assigned-clock-rates = <390000000>;
                                        u-boot,dm-pre-reloc;
                                };
 
index bd877cd055420bedb3d3f7ae13e37b238c791ea4..6a06f650ea23855b8540a50445fafe487af3f04e 100644 (file)
@@ -13,6 +13,7 @@ CONFIG_HUSH_PARSER=y
 CONFIG_MTDIDS_DEFAULT="nor0=spi3:0"
 CONFIG_MTDPARTS_DEFAULT="nor0:1M(u-boot),0x1000@0xfff000(env)"
 # CONFIG_NET is not set
+CONFIG_CLK_K210_SET_RATE=y
 # CONFIG_INPUT is not set
 CONFIG_SF_DEFAULT_BUS=3
 # CONFIG_DM_ETH is not set