m68k: M54418TWR: drop board/freescale/m54418twr/config.mk
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Fri, 11 Dec 2015 03:22:25 +0000 (12:22 +0900)
committerTom Rini <trini@konsulko.com>
Wed, 20 Jan 2016 15:19:34 +0000 (10:19 -0500)
The board/freescale/m54418twr/config.mk defined TEXT_BASE, which has
the same value as CONFIG_SYS_TEXT_BASE.  The TEXT_BASE is referenced
by two files:
 - arch/m68k/cpu/mcf5445x/start.S and include/
 - include/configs/M54418TWR.h

Replace the references with CONFIG_SYS_TEXT_BASE and delete
board/freescale/m54418twr/config.mk.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Acked-by: Angelo Dureghello <angelo at sysam.it>
arch/m68k/cpu/mcf5445x/start.S
board/freescale/m54418twr/config.mk [deleted file]
include/configs/M54418TWR.h

index 979eb5a765a8a9ce9860ca0ad1d0d75e5e2b864c..ae261b11329526842e387efd75c6b23284d283f7 100644 (file)
@@ -34,7 +34,7 @@
 
 #if defined(CONFIG_SERIAL_BOOT)
 #define ASM_DRAMINIT   (asm_dram_init - CONFIG_SYS_TEXT_BASE + CONFIG_SYS_INIT_RAM_ADDR)
-#define ASM_DRAMINIT_N (asm_dram_init - TEXT_BASE)
+#define ASM_DRAMINIT_N (asm_dram_init - CONFIG_SYS_TEXT_BASE)
 #define ASM_SBF_IMG_HDR        (asm_sbf_img_hdr - CONFIG_SYS_TEXT_BASE + CONFIG_SYS_INIT_RAM_ADDR)
 #endif
 
@@ -490,7 +490,7 @@ asm_dspi_rd_status:
        /* copy 4 boot pages to dram as soon as possible */
        /* each page is 996 bytes (1056 total with 60 ECC bytes */
        move.l  #0x00000000, %a1        /* src */
-       move.l  #TEXT_BASE, %a2         /* dst */
+       move.l  #CONFIG_SYS_TEXT_BASE, %a2              /* dst */
        move.l  #0x3E0, %d0             /* sz in long */
 
 asm_boot_nand_copy:
@@ -571,7 +571,7 @@ asm_nand_init:
        move.l  #4, %d2                 /* start at 4 */
        move.l  #0xFC0FFF04, %a0        /* cmd2 */
        move.l  #0xFC0FFF0C, %a1        /* rar */
-       move.l  #(TEXT_BASE + 0xF80), %a2       /* dst */
+       move.l  #(CONFIG_SYS_TEXT_BASE + 0xF80), %a2    /* dst */
 
 asm_nand_read:
        move.l  #0x11000000, %d0        /* rar */
@@ -609,7 +609,7 @@ asm_nand_copy:
        bgt     asm_nand_read
 
        /* jump to memory and execute */
-       move.l  #(TEXT_BASE + 0x400), %a0
+       move.l  #(CONFIG_SYS_TEXT_BASE + 0x400), %a0
        jmp     (%a0)
 
 #endif                 /* CONFIG_SYS_NAND_BOOT */
diff --git a/board/freescale/m54418twr/config.mk b/board/freescale/m54418twr/config.mk
deleted file mode 100644 (file)
index 07f52e0..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-# Copyright 2010-2012 Freescale Semiconductor, Inc.
-# TsiChung Liew (Tsi-Chung.Liew@freescale.com)
-#
-# SPDX-License-Identifier:     GPL-2.0+
-#
-
-PLATFORM_CPPFLAGS += -DTEXT_BASE=$(CONFIG_SYS_TEXT_BASE)
index 05ba13b96eaf4d0d9d06ebcac3efddaf6a0d58da..826de5bd3b7d650198a549ddf8b702800681823a 100644 (file)
 #endif
 
 #if defined(CONFIG_SERIAL_BOOT)
-#define CONFIG_SYS_MONITOR_BASE        (TEXT_BASE + 0x400)
+#define CONFIG_SYS_MONITOR_BASE        (CONFIG_SYS_TEXT_BASE + 0x400)
 #else
 #define CONFIG_SYS_MONITOR_BASE        (CONFIG_SYS_FLASH_BASE + 0x400)
 #endif