From 22686a1383c4a4a319eaaa6b16b1a9540114bd66 Mon Sep 17 00:00:00 2001 From: Markos Chandras Date: Tue, 5 Feb 2008 14:51:48 +0000 Subject: Add support for the Meta architecture Meta cores are 32-bit, hardware multithreaded, general purpose, embedded processors which also feature a DSP instruction set, and can be found in many digital radios. They are capable of running different operating systems on different hardware threads, for example a digital radio might run RTOSes for DAB decoding and audio decoding on 3 hardware threads, and run Linux on the 4th hardware thread to manage the user interface, networking etc. HTPs are also capable of running SMP Linux on multiple hardware threads. Signed-off-by: Markos Chandras Signed-off-by: Bernhard Reutner-Fischer --- extra/Configs/Config.in | 10 +++++++++- extra/Configs/Config.metag | 32 ++++++++++++++++++++++++++++++++ extra/Configs/defconfigs/metag/defconfig | 1 + 3 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 extra/Configs/Config.metag create mode 100644 extra/Configs/defconfigs/metag/defconfig (limited to 'extra') diff --git a/extra/Configs/Config.in b/extra/Configs/Config.in index 89b3dd433..ed2cf2458 100644 --- a/extra/Configs/Config.in +++ b/extra/Configs/Config.in @@ -24,6 +24,7 @@ choice default TARGET_i960 if DESIRED_TARGET_ARCH = "i960" default TARGET_ia64 if DESIRED_TARGET_ARCH = "ia64" default TARGET_m68k if DESIRED_TARGET_ARCH = "m68k" + default TARGET_metag if DESIRED_TARGET_ARCH = "metag" default TARGET_microblaze if DESIRED_TARGET_ARCH = "microblaze" default TARGET_mips if DESIRED_TARGET_ARCH = "mips" default TARGET_nios if DESIRED_TARGET_ARCH = "nios" @@ -81,6 +82,9 @@ config TARGET_ia64 config TARGET_m68k bool "m68k" +config TARGET_metag + bool "metag" + config TARGET_microblaze bool "microblaze" @@ -174,6 +178,10 @@ if TARGET_m68k source "extra/Configs/Config.m68k" endif +if TARGET_metag +source "extra/Configs/Config.metag" +endif + if TARGET_nios source "extra/Configs/Config.nios" endif @@ -1491,7 +1499,7 @@ config UCLIBC_BUILD_MINIMAL_LOCALE config UCLIBC_PREGENERATED_LOCALE_DATA bool "Use Pre-generated Locale Data" - depends on UCLIBC_HAS_LOCALE + depends on UCLIBC_HAS_LOCALE && !TARGET_metag help Use pre-built locale data. diff --git a/extra/Configs/Config.metag b/extra/Configs/Config.metag new file mode 100644 index 000000000..e55822281 --- /dev/null +++ b/extra/Configs/Config.metag @@ -0,0 +1,32 @@ +# +# For a description of the syntax of this configuration file, +# see extra/config/Kconfig-language.txt +# +# Copyright (C) 2013, Imagination Technologies Ltd. +# +# Licensed under LGPL v2.1 or later, see the file COPYING.LIB in this tarball. +# + +config TARGET_ARCH + default "metag" + +config FORCE_OPTIONS_FOR_ARCH + bool + default y + select ARCH_LITTLE_ENDIAN + select ARCH_HAS_MMU + +choice + prompt "Target Processor Type" + default CONFIG_META_2_1 + help + This is the processor type of your CPU. This information is used for + optimizing purposes. + +config CONFIG_META_1_2 + bool "Meta 1.2" + +config CONFIG_META_2_1 + bool "Meta 2.1" + +endchoice diff --git a/extra/Configs/defconfigs/metag/defconfig b/extra/Configs/defconfigs/metag/defconfig new file mode 100644 index 000000000..a6f57df72 --- /dev/null +++ b/extra/Configs/defconfigs/metag/defconfig @@ -0,0 +1 @@ +TARGET_metag=y -- cgit v1.2.3