]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
x86: coral: Move fsp-m settings to a subnode
authorSimon Glass <sjg@chromium.org>
Wed, 23 Dec 2020 15:11:28 +0000 (08:11 -0700)
committerSimon Glass <sjg@chromium.org>
Tue, 5 Jan 2021 19:24:41 +0000 (12:24 -0700)
At present these settings are in the node for host-bridge and so are
visible in TPL as well as SPL. But they are only used for SPL.

Move them to a subnode so that TPL does not included them.

Signed-off-by: Simon Glass <sjg@chromium.org>
arch/x86/cpu/apollolake/fsp_m.c
arch/x86/dts/chromebook_coral.dts

index cef937573b0cff80214fde87b68f9845ad24a74f..c6be707e4eaf537ca92ae3921bac2902cd10456f 100644 (file)
@@ -32,7 +32,10 @@ int fspm_update_config(struct udevice *dev, struct fspm_upd *upd)
 
        node = dev_ofnode(dev);
        if (!ofnode_valid(node))
-               return log_msg_ret("fsp-m settings", -ENOENT);
+               return log_msg_ret("node", -ENOENT);
+       node = ofnode_find_subnode(node, "fsp-m");
+       if (!ofnode_valid(node))
+               return log_msg_ret("fspm", -ENOENT);
 
        ret = fsp_m_update_config_from_dtb(node, cfg);
        if (ret)
index d66e128ae62d01bb6b5604a365ca3832d1a43cc2..3c8fdf238093fe880cdba398800f5db7e420d0e5 100644 (file)
                         */
                        fsp_s: fsp-s {
                        };
+                       fsp_m: fsp-m {
+                               u-boot,dm-spl;
+                       };
 
                        nhlt {
                                intel,dmic-channels = <4>;
                PAD_CFG_NF(LPC_CLKRUNB, UP_20K, DEEP, NF1) /* LPC_CLKRUN_N */
                PAD_CFG_NF(LPC_FRAMEB, NATIVE, DEEP, NF1) /* LPC_FRAME_N */
                >;
+};
 
+&fsp_m {
        fspm,package = <PACKAGE_BGA>;
        fspm,profile = <PROFILE_LPDDR4_2400_24_22_22>;
        fspm,memory-down = <MEMORY_DOWN_YES>;