summaryrefslogtreecommitdiffstats
path: root/arch/mips
diff options
context:
space:
mode:
authorAntony Pavlov <antonynpavlov@gmail.com>2014-01-18 19:12:51 +0400
committerSascha Hauer <s.hauer@pengutronix.de>2014-01-21 07:59:37 +0100
commita3528064bce19b3bbc9c5dff3b67c2f5f0ddd1b1 (patch)
tree3af42b02b0dd1d499604678b119a7d38c548ed96 /arch/mips
parentd9a08d8bc5da4f06a2c96f4a4c4591c01d5b5d44 (diff)
downloadbarebox-a3528064bce19b3bbc9c5dff3b67c2f5f0ddd1b1.tar.gz
barebox-a3528064bce19b3bbc9c5dff3b67c2f5f0ddd1b1.tar.xz
MIPS: add initial Loongson-based boards support
Loongson (simplified Chinese: 龙芯; pinyin: Lóngxīn; literally: "Dragon Core") is a family of general-purpose MIPS CPUs developed at the Institute of Computing Technology (ICT), Chinese Academy of Sciences (CAS) in the People's Republic of China. See http://en.wikipedia.org/wiki/Loongson for details. Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/mips')
-rw-r--r--arch/mips/Kconfig4
-rw-r--r--arch/mips/Makefile2
-rw-r--r--arch/mips/mach-loongson/Kconfig7
3 files changed, 13 insertions, 0 deletions
diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig
index ca240d2f57..8cea076d4a 100644
--- a/arch/mips/Kconfig
+++ b/arch/mips/Kconfig
@@ -63,6 +63,9 @@ config MACH_MIPS_BCM47XX
select SYS_SUPPORTS_LITTLE_ENDIAN
select HAS_DEBUG_LL
+config MACH_MIPS_LOONGSON
+ bool "Loongson-based boards"
+
config MACH_MIPS_XBURST
bool "Ingenic XBurst-based boards"
select SYS_HAS_CPU_MIPS32_R1
@@ -78,6 +81,7 @@ endchoice
source arch/mips/mach-malta/Kconfig
source arch/mips/mach-ar231x/Kconfig
source arch/mips/mach-bcm47xx/Kconfig
+source arch/mips/mach-loongson/Kconfig
source arch/mips/mach-xburst/Kconfig
endmenu
diff --git a/arch/mips/Makefile b/arch/mips/Makefile
index 62e1acf658..7a6d6c093c 100644
--- a/arch/mips/Makefile
+++ b/arch/mips/Makefile
@@ -78,6 +78,8 @@ board-$(CONFIG_BOARD_NETGEAR_WG102) := netgear-wg102
machine-$(CONFIG_MACH_MIPS_BCM47XX) := bcm47xx
board-$(CONFIG_BOARD_DLINK_DIR320) := dlink-dir-320
+machine-$(CONFIG_MACH_MIPS_LOONGSON) := loongson
+
machine-$(CONFIG_MACH_MIPS_XBURST) := xburst
board-$(CONFIG_BOARD_RZX50) := rzx50
diff --git a/arch/mips/mach-loongson/Kconfig b/arch/mips/mach-loongson/Kconfig
new file mode 100644
index 0000000000..b5942886a3
--- /dev/null
+++ b/arch/mips/mach-loongson/Kconfig
@@ -0,0 +1,7 @@
+if MACH_MIPS_LOONGSON
+
+config ARCH_TEXT_BASE
+ hex
+ default 0xa0800000
+
+endif