]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
fsl-lsch2: csu: remove multiple calling function
authorHou Zhiqiang <Zhiqiang.Hou@nxp.com>
Tue, 4 Jul 2017 03:35:43 +0000 (11:35 +0800)
committerYork Sun <york.sun@nxp.com>
Wed, 9 Aug 2017 16:57:32 +0000 (09:57 -0700)
Function enable_layerscape_ns_access() is alreayd called soc-wide.
Remove duplicated calling from individual boards.

Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com>
[YS: Add commit message]
Reviewed-by: York Sun <york.sun@nxp.com>
board/freescale/ls1021aiot/ls1021aiot.c
board/freescale/ls1021atwr/ls1021atwr.c
board/freescale/ls1046aqds/ls1046aqds.c
board/freescale/ls1046ardb/ls1046ardb.c

index 3340e4db80b224514321ff4d435fee870da94659..5854e2dbba50acd9443f4c5fdabdc88d3c034acf 100644 (file)
@@ -201,10 +201,6 @@ int board_init(void)
 
        ls102xa_smmu_stream_id_init();
 
-#ifdef CONFIG_LAYERSCAPE_NS_ACCESS
-       enable_layerscape_ns_access();
-#endif
-
        return 0;
 }
 
index ff32d5cb28ea1c7c1410b9b46a265a2a47dab40e..2da06773c4793b6e6b4db6eb264edeae8cd194ae 100644 (file)
@@ -435,7 +435,6 @@ void board_init_f(ulong dummy)
        /* Allow OCRAM access permission as R/W */
 #ifdef CONFIG_LAYERSCAPE_NS_ACCESS
        enable_layerscape_ns_access();
-       enable_layerscape_ns_access();
 #endif
 
        /*
index 057a11daa85854f7ca6510dd4433e35b4c7613a1..883abf7358a8e295a2f624d045d43d18244de602 100644 (file)
@@ -261,10 +261,6 @@ int board_init(void)
        config_serdes_mux();
 #endif
 
-#ifdef CONFIG_LAYERSCAPE_NS_ACCESS
-       enable_layerscape_ns_access();
-#endif
-
        if (adjust_vdd(0))
                printf("Warning: Adjusting core voltage failed.\n");
 
index 1dd5e698824d47c56c2d4353b31b719be377d9f2..33f1afdc7365f6269b7ad6ea3238719c3831aaf5 100644 (file)
@@ -69,10 +69,6 @@ int board_init(void)
 {
        struct ccsr_scfg *scfg = (struct ccsr_scfg *)CONFIG_SYS_FSL_SCFG_ADDR;
 
-#ifdef CONFIG_LAYERSCAPE_NS_ACCESS
-       enable_layerscape_ns_access();
-#endif
-
 #ifdef CONFIG_SECURE_BOOT
        /*
         * In case of Secure Boot, the IBR configures the SMMU