]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
MIPS: move mips_io_port_base out of board.c
authorPaul Burton <paul.burton@imgtec.com>
Mon, 7 Apr 2014 09:11:18 +0000 (10:11 +0100)
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
Sun, 20 Apr 2014 11:16:42 +0000 (13:16 +0200)
Move the definition of this variable out of arch/mips/lib/board.c in
preparation for allowing use of generic board on MIPS, which will lead
to this file not being compiled.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
arch/mips/lib/Makefile
arch/mips/lib/board.c
arch/mips/lib/io.c [new file with mode: 0644]

index fabeb83f7e9fd910c340c2abefaef94abf361451..88ef1c59ab59bf6081dd43a61c6631bcaf12f460 100644 (file)
@@ -6,6 +6,8 @@
 #
 
 obj-y  += board.o
+obj-y  += io.o
+
 obj-$(CONFIG_CMD_BOOTM) += bootm.o
 
 lib-$(CONFIG_USE_PRIVATE_LIBGCC) += ashldi3.o ashrdi3.o lshrdi3.o
index 9e6ba15acab5a0401e28614a12192083b99378dd..317c8258de9998ca459fccd9b80feae5d629208e 100644 (file)
@@ -27,12 +27,6 @@ ulong monitor_flash_len;
 
 static char *failed = "*** failed ***\n";
 
-/*
- * mips_io_port_base is the begin of the address space to which x86 style
- * I/O ports are mapped.
- */
-const unsigned long mips_io_port_base = -1;
-
 int __board_early_init_f(void)
 {
        /*
diff --git a/arch/mips/lib/io.c b/arch/mips/lib/io.c
new file mode 100644 (file)
index 0000000..b2d4a09
--- /dev/null
@@ -0,0 +1,12 @@
+/*
+ * (C) Copyright 2003
+ * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
+ *
+ * SPDX-License-Identifier:    GPL-2.0+
+ */
+
+/*
+ * mips_io_port_base is the begin of the address space to which x86 style
+ * I/O ports are mapped.
+ */
+const unsigned long mips_io_port_base = -1;