MIPS: loongson-ls1b: switch to device tree
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
cd8a28dcbf
commit
b7cc37eedf
|
@ -1,2 +1 @@
|
|||
obj-y += ram.o
|
||||
obj-y += serial.o
|
||||
|
|
|
@ -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);
|
|
@ -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);
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
CONFIG_BUILTIN_DTB=y
|
||||
CONFIG_BUILTIN_DTB_NAME="loongson-ls1b"
|
||||
CONFIG_MACH_MIPS_LOONGSON=y
|
||||
CONFIG_PBL_IMAGE=y
|
||||
CONFIG_STACK_SIZE=0x7000
|
||||
|
@ -36,7 +38,11 @@ CONFIG_CMD_IOMEM=y
|
|||
CONFIG_FLEXIBLE_BOOTARGS=y
|
||||
CONFIG_CMD_RESET=y
|
||||
CONFIG_CMD_GO=y
|
||||
CONFIG_CMD_OFTREE=y
|
||||
CONFIG_CMD_OF_PROPERTY=y
|
||||
CONFIG_CMD_OF_NODE=y
|
||||
CONFIG_CMD_TIMEOUT=y
|
||||
CONFIG_OFDEVICE=y
|
||||
# CONFIG_SPI is not set
|
||||
CONFIG_ZLIB=y
|
||||
CONFIG_BZLIB=y
|
||||
|
|
Loading…
Reference in New Issue