MIPS: add MIPS Creator CI20 board support
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
11a6204bab
commit
8d9d50f2a6
|
@ -89,6 +89,7 @@ board-$(CONFIG_BOARD_LOONGSON_TECH_LS1B) := loongson-ls1b
|
|||
|
||||
machine-$(CONFIG_MACH_MIPS_XBURST) := xburst
|
||||
board-$(CONFIG_BOARD_RZX50) := ritmix-rzx50
|
||||
board-$(CONFIG_BOARD_CI20) := img-ci20
|
||||
|
||||
machdirs := $(patsubst %,arch/mips/mach-%/,$(machine-y))
|
||||
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
obj-y += board.o
|
|
@ -0,0 +1,27 @@
|
|||
/*
|
||||
* Copyright (C) 2012 Antony Pavlov <antonynpavlov@gmail.com>
|
||||
*
|
||||
* This file is part of barebox.
|
||||
* See file CREDITS for list of people who contributed to this project.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License version 2
|
||||
* as published by the Free Software Foundation.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <init.h>
|
||||
|
||||
static int ci20_hostname_init(void)
|
||||
{
|
||||
barebox_set_hostname("ci20");
|
||||
|
||||
return 0;
|
||||
}
|
||||
console_initcall(ci20_hostname_init);
|
|
@ -0,0 +1,43 @@
|
|||
/*
|
||||
* Startup Code for Imagination Creator CI20 board
|
||||
*
|
||||
* Copyright (C) 2014 Antony Pavlov <antonynpavlov@gmail.com>
|
||||
*
|
||||
* This file is part of barebox.
|
||||
* See file CREDITS for list of people who contributed to this project.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License version 2
|
||||
* as published by the Free Software Foundation.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
*/
|
||||
|
||||
#include <asm/pbl_macros.h>
|
||||
#include <mach/debug_ll.h>
|
||||
#include <asm/pbl_nmon.h>
|
||||
|
||||
.macro board_pbl_start
|
||||
.set push
|
||||
.set noreorder
|
||||
|
||||
mips_disable_interrupts
|
||||
|
||||
/* CPU/SoC specific setup ... */
|
||||
/* ... absent */
|
||||
|
||||
debug_ll_ns16550_init
|
||||
|
||||
debug_ll_ns16550_outc '.'
|
||||
debug_ll_ns16550_outnl
|
||||
|
||||
mips_nmon
|
||||
|
||||
copy_to_link_location pbl_start
|
||||
|
||||
.set pop
|
||||
.endm
|
|
@ -0,0 +1,23 @@
|
|||
/*
|
||||
* Copyright (C) 2014 Antony Pavlov <antonynpavlov@gmail.com>
|
||||
*
|
||||
* This file is part of barebox.
|
||||
* See file CREDITS for list of people who contributed to this project.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License version 2
|
||||
* as published by the Free Software Foundation.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef __INCLUDE_CI20_BOARD_DEBUG_LL_H__
|
||||
#define __INCLUDE_CI20_BOARD_DEBUG_LL_H__
|
||||
|
||||
#include <mach/debug_ll_jz4780.h>
|
||||
|
||||
#endif /* __INCLUDE_CI20_BOARD_DEBUG_LL_H__ */
|
|
@ -0,0 +1,35 @@
|
|||
/*
|
||||
* CI20 device tree
|
||||
*
|
||||
* Copyright (c) 2013 Imagination Technologies
|
||||
* Author: Paul Burton <paul.burton@imgtec.com>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License as
|
||||
* published by the Free Software Foundation; either version 2 of
|
||||
* the License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
*/
|
||||
|
||||
/dts-v1/;
|
||||
|
||||
#include "jz4780.dtsi"
|
||||
|
||||
/ {
|
||||
model = "MIPS Creator CI20";
|
||||
compatible = "img,ci20";
|
||||
|
||||
memory {
|
||||
device_type = "memory";
|
||||
reg = <0x0 0x10000000>;
|
||||
};
|
||||
};
|
||||
|
||||
&uart0 {
|
||||
status = "okay";
|
||||
};
|
|
@ -24,6 +24,10 @@ config BOARD_RZX50
|
|||
select HAS_POWEROFF
|
||||
select CPU_JZ4755
|
||||
|
||||
config BOARD_CI20
|
||||
bool "Imagination Creator CI20"
|
||||
select CPU_JZ4780
|
||||
|
||||
endchoice
|
||||
|
||||
if DEBUG_LL
|
||||
|
|
Loading…
Reference in New Issue