Skip to content

Commit acede51

Browse files
niejarndb
authored andcommitted
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>
1 parent e8d235d commit acede51

5 files changed

Lines changed: 47 additions & 0 deletions

File tree

‎arch/arm/Kconfig‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -989,6 +989,8 @@ source "arch/arm/mach-vt8500/Kconfig"
989989

990990
source "arch/arm/mach-w90x900/Kconfig"
991991

992+
source "arch/arm/mach-zx/Kconfig"
993+
992994
source "arch/arm/mach-zynq/Kconfig"
993995

994996
# Definitions to make life easier

‎arch/arm/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@ machine-$(CONFIG_ARCH_VERSATILE) += versatile
207207
machine-$(CONFIG_ARCH_VEXPRESS) += vexpress
208208
machine-$(CONFIG_ARCH_VT8500) += vt8500
209209
machine-$(CONFIG_ARCH_W90X900) += w90x900
210+
machine-$(CONFIG_ARCH_ZX) += zx
210211
machine-$(CONFIG_ARCH_ZYNQ) += zynq
211212
machine-$(CONFIG_PLAT_SPEAR) += spear
212213

‎arch/arm/mach-zx/Kconfig‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
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

‎arch/arm/mach-zx/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
obj-$(CONFIG_SOC_ZX296702) += zx296702.o

‎arch/arm/mach-zx/zx296702.c‎

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
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

0 commit comments

Comments
 (0)