summaryrefslogtreecommitdiffstats
path: root/arch/mips/boards
diff options
context:
space:
mode:
authorAntony Pavlov <antonynpavlov@gmail.com>2014-04-07 11:38:49 +0400
committerSascha Hauer <s.hauer@pengutronix.de>2014-04-08 08:03:45 +0200
commitb7cc37eedf1663edd62179715ad1deb44421444a (patch)
treebd870ec2c398c9974fbc1b9f366286e624ceb31b /arch/mips/boards
parentcd8a28dcbf874fc795de8eb1587e3b664768b6e1 (diff)
downloadbarebox-b7cc37eedf1663edd62179715ad1deb44421444a.tar.gz
barebox-b7cc37eedf1663edd62179715ad1deb44421444a.tar.xz
MIPS: loongson-ls1b: switch to device tree
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/mips/boards')
-rw-r--r--arch/mips/boards/loongson-ls1b/Makefile1
-rw-r--r--arch/mips/boards/loongson-ls1b/ram.c12
-rw-r--r--arch/mips/boards/loongson-ls1b/serial.c12
3 files changed, 0 insertions, 25 deletions
diff --git a/arch/mips/boards/loongson-ls1b/Makefile b/arch/mips/boards/loongson-ls1b/Makefile
index a21952b737..31c062987f 100644
--- a/arch/mips/boards/loongson-ls1b/Makefile
+++ b/arch/mips/boards/loongson-ls1b/Makefile
@@ -1,2 +1 @@
-obj-y += ram.o
obj-y += serial.o
diff --git a/arch/mips/boards/loongson-ls1b/ram.c b/arch/mips/boards/loongson-ls1b/ram.c
deleted file mode 100644
index 9e655aba50..0000000000
--- a/arch/mips/boards/loongson-ls1b/ram.c
+++ /dev/null
@@ -1,12 +0,0 @@
-#include <common.h>
-#include <init.h>
-#include <sizes.h>
-#include <asm/memory.h>
-
-static int mem_init(void)
-{
- mips_add_ram0(SZ_64M);
-
- return 0;
-}
-mem_initcall(mem_init);
diff --git a/arch/mips/boards/loongson-ls1b/serial.c b/arch/mips/boards/loongson-ls1b/serial.c
index d8e0f7c28a..a9453ede28 100644
--- a/arch/mips/boards/loongson-ls1b/serial.c
+++ b/arch/mips/boards/loongson-ls1b/serial.c
@@ -1,22 +1,10 @@
#include <common.h>
#include <init.h>
-#include <ns16550.h>
-
-#include <mach/loongson1.h>
-
-static struct NS16550_plat serial_plat = {
- .clock = 83000000,
- .shift = 0,
-};
static int console_init(void)
{
- barebox_set_model("Loongson Tech LS1B Demo Board");
barebox_set_hostname("ls1b");
- add_ns16550_device(DEVICE_ID_DYNAMIC, KSEG1ADDR(LS1X_UART2_BASE),
- 8, IORESOURCE_MEM_8BIT, &serial_plat);
-
return 0;
}
console_initcall(console_init);