]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - post/cpu/ppc4xx/cache_4xx.S
Add GPL-2.0+ SPDX-License-Identifier to source files
[karo-tx-uboot.git] / post / cpu / ppc4xx / cache_4xx.S
index d5cb075d6b57074cdf7cf8177664b2be1e27c9d9..15a133cfa8e2b8ad3fbbb9aed33ac7a6fd9bad96 100644 (file)
@@ -4,36 +4,18 @@
  *
  * Author: Igor Lisitsin <igor@emcraft.com>
  *
- * See file CREDITS for list of people who contributed to this
- * project.
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
- * MA 02111-1307 USA
+ * SPDX-License-Identifier:    GPL-2.0+
  */
 
 #include <config.h>
 
-#ifdef CONFIG_POST
-
 #include <post.h>
 #include <ppc_asm.tmpl>
 #include <ppc_defs.h>
 #include <asm/cache.h>
 #include <asm/mmu.h>
 
-#if CONFIG_POST & CFG_POST_CACHE
+#if CONFIG_POST & CONFIG_SYS_POST_CACHE
 
        .text
 
@@ -117,8 +99,8 @@ cache_post_wb:
  */
 cache_post_dinvalidate:
        dcbi    r0, r3
-       addi    r3, r3, CFG_CACHELINE_SIZE
-       subic.  r4, r4, CFG_CACHELINE_SIZE
+       addi    r3, r3, CONFIG_SYS_CACHELINE_SIZE
+       subic.  r4, r4, CONFIG_SYS_CACHELINE_SIZE
        bgt     cache_post_dinvalidate
        sync
        blr
@@ -127,8 +109,8 @@ cache_post_dinvalidate:
  */
 cache_post_dstore:
        dcbst   r0, r3
-       addi    r3, r3, CFG_CACHELINE_SIZE
-       subic.  r4, r4, CFG_CACHELINE_SIZE
+       addi    r3, r3, CONFIG_SYS_CACHELINE_SIZE
+       subic.  r4, r4, CONFIG_SYS_CACHELINE_SIZE
        bgt     cache_post_dstore
        sync
        blr
@@ -137,8 +119,8 @@ cache_post_dstore:
  */
 cache_post_dtouch:
        dcbt    r0, r3
-       addi    r3, r3, CFG_CACHELINE_SIZE
-       subic.  r4, r4, CFG_CACHELINE_SIZE
+       addi    r3, r3, CONFIG_SYS_CACHELINE_SIZE
+       subic.  r4, r4, CONFIG_SYS_CACHELINE_SIZE
        bgt     cache_post_dtouch
        sync
        blr
@@ -488,5 +470,4 @@ cache_post_test_inst:
        li      r3, -1
        blr
 
-#endif /* CONFIG_POST & CFG_POST_CACHE */
-#endif /* CONFIG_POST */
+#endif /* CONFIG_POST & CONFIG_SYS_POST_CACHE */