]> git.sur5r.net Git - u-boot/blobdiff - board/freescale/t102xrdb/law.c
Merge git://git.denx.de/u-boot-sunxi
[u-boot] / board / freescale / t102xrdb / law.c
index 1c9235fa3b76ff4b09dabb77d7298e609256f4f2..04a4239797c5c83750eb349fecba507c181ab4c9 100644 (file)
@@ -1,7 +1,6 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * Copyright 2014 Freescale Semiconductor, Inc.
- *
- * SPDX-License-Identifier:    GPL-2.0+
  */
 
 #include <common.h>
@@ -9,7 +8,7 @@
 #include <asm/mmu.h>
 
 struct law_entry law_table[] = {
-#ifndef CONFIG_SYS_NO_FLASH
+#ifdef CONFIG_MTD_NOR_FLASH
        SET_LAW(CONFIG_SYS_FLASH_BASE_PHYS, LAW_SIZE_256M, LAW_TRGT_IF_IFC),
 #endif
 #ifdef CONFIG_SYS_BMAN_MEM_PHYS