]> Pileus Git - ~andy/linux/commitdiff
metag: minimal TZ1090 (Comet) SoC infrastructure
authorJames Hogan <james.hogan@imgtec.com>
Wed, 5 Dec 2012 16:32:10 +0000 (16:32 +0000)
committerJames Hogan <james.hogan@imgtec.com>
Thu, 13 Jun 2013 11:14:07 +0000 (12:14 +0100)
Add really minimal support for Toumaz Xenif TZ1090 SoC (A.K.A. Comet).
This consists of minimal build infrastructure, device tree files, and a
defconfig based on meta2_defconfig.

This SoC contains a 2-threaded HTP (Meta 2) as the main application
processor, and is found in a number of development boards and digital
radios, such as the Minimorph Development Platform.

Signed-off-by: James Hogan <james.hogan@imgtec.com>
Cc: Grant Likely <grant.likely@secretlab.ca>
Cc: Rob Herring <rob.herring@calxeda.com>
Cc: Rob Landley <rob@landley.net>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: linux-doc@vger.kernel.org
Cc: devicetree-discuss@lists.ozlabs.org
Documentation/devicetree/bindings/vendor-prefixes.txt
arch/metag/Kconfig.soc
arch/metag/Makefile
arch/metag/boot/dts/Makefile
arch/metag/boot/dts/tz1090.dtsi [new file with mode: 0644]
arch/metag/boot/dts/tz1090_generic.dts [new file with mode: 0644]
arch/metag/configs/tz1090_defconfig [new file with mode: 0644]

index 6931c4348d240ed9f8bf6b21a0d75f9c520edf1d..be8099206d8dc25d3d71bee60bf66fd45c444c99 100644 (file)
@@ -57,6 +57,7 @@ snps  Synopsys, Inc.
 st     STMicroelectronics
 ste    ST-Ericsson
 stericsson     ST-Ericsson
+toumaz Toumaz
 ti     Texas Instruments
 toshiba        Toshiba Corporation
 via    VIA Technologies, Inc.
index ec079cfb7c6afc657f4b5f68dc96b0c47deecbf2..653b47917cafb79868a4837da5bc936f522a80ab 100644 (file)
@@ -14,6 +14,15 @@ config META21_FPGA
        help
          This is a Meta 2.1 FPGA bitstream, just a bare CPU.
 
+config SOC_TZ1090
+       bool "Toumaz Xenif TZ1090 SoC (Comet)"
+       select METAG_LNKGET_AROUND_CACHE
+       select METAG_META21
+       select METAG_SMP_WRITE_REORDERING
+       help
+         This is a Toumaz Technology Xenif TZ1090 (A.K.A. Comet) SoC containing
+         a 2-threaded HTP.
+
 endchoice
 
 menu "SoC configuration"
index b566116b171b6564756d139eb179d3bcc0186fc2..9739857bdedcb89fe6847d26fdef70041a70228d 100644 (file)
@@ -20,7 +20,7 @@ checkflags-$(CONFIG_METAG_META12)     += -DMETAC_1_2
 checkflags-$(CONFIG_METAG_META21)      += -DMETAC_2_1
 CHECKFLAGS                             += -D__metag__ $(checkflags-y)
 
-KBUILD_DEFCONFIG                       := meta2_defconfig
+KBUILD_DEFCONFIG                       := tz1090_defconfig
 
 sflags-$(CONFIG_METAG_META12)          += -mmetac=1.2
 ifeq ($(CONFIG_METAG_META12),y)
index dbd95217733abaef14feac1cca54c3af3cf5969a..72c12187942606316950775222df89e332b885b0 100644 (file)
@@ -1,7 +1,9 @@
 dtb-y  += skeleton.dtb
+dtb-y  += tz1090_generic.dtb
 
 # Built-in dtb
 builtindtb-y                           := skeleton
+builtindtb-$(CONFIG_SOC_TZ1090)                := tz1090_generic
 
 ifneq ($(CONFIG_METAG_BUILTIN_DTB_NAME),"")
        builtindtb-y                    := $(patsubst "%",%,$(CONFIG_METAG_BUILTIN_DTB_NAME))
diff --git a/arch/metag/boot/dts/tz1090.dtsi b/arch/metag/boot/dts/tz1090.dtsi
new file mode 100644 (file)
index 0000000..ca057f0
--- /dev/null
@@ -0,0 +1,29 @@
+/*
+ * Copyright (C) 2012 Imagination Technologies Ltd.
+ *
+ * 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.
+ */
+
+/include/ "skeleton.dtsi"
+
+/ {
+       compatible = "toumaz,tz1090", "img,meta";
+
+       interrupt-parent = <&intc>;
+
+       intc: interrupt-controller {
+               compatible = "img,meta-intc";
+               interrupt-controller;
+               #interrupt-cells = <2>;
+               num-banks = <2>;
+       };
+
+       soc {
+               compatible = "simple-bus";
+               #address-cells = <1>;
+               #size-cells = <1>;
+               ranges;
+       };
+};
diff --git a/arch/metag/boot/dts/tz1090_generic.dts b/arch/metag/boot/dts/tz1090_generic.dts
new file mode 100644 (file)
index 0000000..aa826cb
--- /dev/null
@@ -0,0 +1,10 @@
+/*
+ * Copyright (C) 2012 Imagination Technologies Ltd.
+ *
+ * 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.
+ */
+/dts-v1/;
+
+/include/ "tz1090.dtsi"
diff --git a/arch/metag/configs/tz1090_defconfig b/arch/metag/configs/tz1090_defconfig
new file mode 100644 (file)
index 0000000..9f9316a
--- /dev/null
@@ -0,0 +1,42 @@
+# CONFIG_LOCALVERSION_AUTO is not set
+# CONFIG_SWAP is not set
+CONFIG_SYSVIPC=y
+CONFIG_SYSFS_DEPRECATED=y
+CONFIG_SYSFS_DEPRECATED_V2=y
+CONFIG_KALLSYMS_ALL=y
+# CONFIG_ELF_CORE is not set
+CONFIG_SLAB=y
+# CONFIG_BLK_DEV_BSG is not set
+CONFIG_PARTITION_ADVANCED=y
+# CONFIG_MSDOS_PARTITION is not set
+# CONFIG_IOSCHED_DEADLINE is not set
+# CONFIG_IOSCHED_CFQ is not set
+CONFIG_FLATMEM_MANUAL=y
+CONFIG_SOC_TZ1090=y
+CONFIG_METAG_HALT_ON_PANIC=y
+# CONFIG_METAG_FPU is not set
+CONFIG_METAG_DA=y
+CONFIG_HZ_100=y
+CONFIG_DEVTMPFS=y
+# CONFIG_STANDALONE is not set
+# CONFIG_PREVENT_FIRMWARE_BUILD is not set
+# CONFIG_FW_LOADER is not set
+CONFIG_BLK_DEV_RAM=y
+CONFIG_BLK_DEV_RAM_COUNT=1
+CONFIG_BLK_DEV_RAM_SIZE=16384
+# CONFIG_INPUT is not set
+# CONFIG_SERIO is not set
+# CONFIG_VT is not set
+# CONFIG_LEGACY_PTYS is not set
+CONFIG_DA_TTY=y
+CONFIG_DA_CONSOLE=y
+# CONFIG_DEVKMEM is not set
+# CONFIG_HW_RANDOM is not set
+CONFIG_GPIOLIB=y
+# CONFIG_HWMON is not set
+# CONFIG_USB_SUPPORT is not set
+# CONFIG_DNOTIFY is not set
+CONFIG_TMPFS=y
+# CONFIG_MISC_FILESYSTEMS is not set
+# CONFIG_SCHED_DEBUG is not set
+CONFIG_DEBUG_INFO=y