Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: zx: add basic support for ZTE ZX296702

Add basic code for ZTE ZX296702 platform.

[arnd: removed unused zx296702_init_machine function, and changed
l2c aux val to default]

Signed-off-by: Jun Nie <jun.nie@linaro.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>

authored by

Jun Nie and committed by
Arnd Bergmann
acede515 e8d235d4

+47
+2
arch/arm/Kconfig
··· 989 989 990 990 source "arch/arm/mach-w90x900/Kconfig" 991 991 992 + source "arch/arm/mach-zx/Kconfig" 993 + 992 994 source "arch/arm/mach-zynq/Kconfig" 993 995 994 996 # Definitions to make life easier
+1
arch/arm/Makefile
··· 207 207 machine-$(CONFIG_ARCH_VEXPRESS) += vexpress 208 208 machine-$(CONFIG_ARCH_VT8500) += vt8500 209 209 machine-$(CONFIG_ARCH_W90X900) += w90x900 210 + machine-$(CONFIG_ARCH_ZX) += zx 210 211 machine-$(CONFIG_ARCH_ZYNQ) += zynq 211 212 machine-$(CONFIG_PLAT_SPEAR) += spear 212 213
+18
arch/arm/mach-zx/Kconfig
··· 1 + menuconfig ARCH_ZX 2 + bool "ZTE ZX family" if ARCH_MULTI_V7 3 + help 4 + Support for ZTE ZX-based family of processors. TV 5 + set-top-box processor is supported. More will be 6 + added soon. 7 + 8 + if ARCH_ZX 9 + 10 + config SOC_ZX296702 11 + def_bool y 12 + select ARM_GIC 13 + select ARM_GLOBAL_TIMER 14 + select HAVE_ARM_SCU if SMP 15 + select HAVE_ARM_TWD if SMP 16 + help 17 + Support for ZTE ZX296702 SoC which is a dual core CortexA9MP 18 + endif
+1
arch/arm/mach-zx/Makefile
··· 1 + obj-$(CONFIG_SOC_ZX296702) += zx296702.o
+25
arch/arm/mach-zx/zx296702.c
··· 1 + /* 2 + * Copyright 2014 Linaro Ltd. 3 + * Copyright (C) 2014 ZTE Corporation. 4 + * 5 + * This program is free software; you can redistribute it and/or modify 6 + * it under the terms of the GNU General Public License version 2 as 7 + * published by the Free Software Foundation. 8 + */ 9 + 10 + #include <asm/mach/arch.h> 11 + #include <asm/mach/map.h> 12 + 13 + #include <linux/of_address.h> 14 + #include <linux/of_platform.h> 15 + 16 + static const char *zx296702_dt_compat[] __initconst = { 17 + "zte,zx296702", 18 + NULL, 19 + }; 20 + 21 + DT_MACHINE_START(ZX, "ZTE ZX296702 (Device Tree)") 22 + .dt_compat = zx296702_dt_compat, 23 + .l2c_aux_val = 0, 24 + .l2c_aux_mask = ~0, 25 + MACHINE_END