Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp2029352ybv; Fri, 14 Feb 2020 10:06:42 -0800 (PST) X-Google-Smtp-Source: APXvYqyJuqCHNl9W78ijRzy3rvSJOFtL3k0MwrawtBliePmjRUAoKi94ctSaowc7n/4NBZEiQBkN X-Received: by 2002:aca:5ad5:: with SMTP id o204mr2632636oib.2.1581703602650; Fri, 14 Feb 2020 10:06:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581703602; cv=none; d=google.com; s=arc-20160816; b=Hf9NaMV9mkttbGFm/siTed3ZuSprWicOF/yGo3Bxa5PbXR4ZppZ87AdnF9bcfOIjZO 9oFFAjORIsuF+D0cK6eFH4u1FWjFxs/8mcoNl/sIWgddxfVMg9NL0dafECIyWR79MlKB oZbP773IwKOeR0koZSyLyIR6XkLKV0FU/gzH8fL+/FuogN4uo3WmGOrgKtWjgKwIwVbq e4adiFfxyuIjy7IzGnLmdcAhyg/0Czf4LwKktLAck6cj24EwNewjyr5wJqxsZzJpEbgK lHTmToG5e4vbdyqYo80/z9catMv5i7072ylOotH23Cggltt396OSoekBWxAF6x0NKJzE koVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=GB44AXAu56lYcTjjjD69HMYvEAu7KeEc+OWIgid1WaE=; b=TlzMNv755Gl0BoyUuc7AxogwdxWMMh8aXYsiAA1b/fTENrOIq84fELeRQK3/5fTEpR GCn372h48aQRVUO/bqZV+W/36izNjDHQZjKuG/KlmiULhwQU0xEHWnUWE/5mK1pC4Yrw DbjM2V4NEqt8JyGpDc4l7P2lLFrvA2IhYo8vqN4PNI8Y+b+p6s8ArWek+GhqnZzxRGPV dOAVrH1Pld9pWvNnvZRY8N8Q2z3F0Xh/iOYNC421ZiTUmEZKZ/zCx/6V+dnTibKS8BH8 2MgAyDsvWMlOj4NdhhmJ0aJGFS/gYi6gemoD4jT4a8d+eWyr/1/in8+hX5Chhl3NxHwR hCAg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d10si3158881oti.226.2020.02.14.10.06.30; Fri, 14 Feb 2020 10:06:42 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391142AbgBNSEL (ORCPT + 99 others); Fri, 14 Feb 2020 13:04:11 -0500 Received: from out28-53.mail.aliyun.com ([115.124.28.53]:43634 "EHLO out28-53.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731649AbgBNSDi (ORCPT ); Fri, 14 Feb 2020 13:03:38 -0500 X-Alimail-AntiSpam: AC=CONTINUE;BC=0.1047515|-1;CH=green;DM=CONTINUE|CONTINUE|true|0.631285-0.0601629-0.308552;DS=CONTINUE|ham_system_inform|0.0697978-0.000392505-0.92981;FP=0|0|0|0|0|-1|-1|-1;HT=e02c03311;MF=zhouyanjie@wanyeetech.com;NM=1;PH=DS;RN=27;RT=27;SR=0;TI=SMTPD_---.GoAKeCh_1581703384; Received: from localhost.localdomain(mailfrom:zhouyanjie@wanyeetech.com fp:SMTPD_---.GoAKeCh_1581703384) by smtp.aliyun-inc.com(10.147.42.253); Sat, 15 Feb 2020 02:03:21 +0800 From: =?UTF-8?q?=E5=91=A8=E7=90=B0=E6=9D=B0=20=28Zhou=20Yanjie=29?= To: linux-mips@vger.kernel.org Cc: linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, paul@crapouillou.net, mturquette@baylibre.com, sboyd@kernel.org, robh+dt@kernel.org, mark.rutland@arm.com, ralf@linux-mips.org, paulburton@kernel.org, jiaxun.yang@flygoat.com, chenhc@lemote.com, allison@lohutok.net, tglx@linutronix.de, daniel.lezcano@linaro.org, geert+renesas@glider.be, krzk@kernel.org, keescook@chromium.org, ebiederm@xmission.com, miquel.raynal@bootlin.com, paul@boddie.org.uk, hns@goldelico.com, sernia.zhou@foxmail.com, zhenwenjin@gmail.com, mips-creator-ci20-dev@googlegroups.com, 1326991897@qq.com Subject: [PATCH v4 0/6] Introduce SMP support for JZ4780. Date: Sat, 15 Feb 2020 02:02:34 +0800 Message-Id: <1581703360-112557-2-git-send-email-zhouyanjie@wanyeetech.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1581703360-112557-1-git-send-email-zhouyanjie@wanyeetech.com> References: <1581703360-112557-1-git-send-email-zhouyanjie@wanyeetech.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Introduce SMP support for MIPS Creator CI20, which is based on Ingenic JZ4780 SoC. 周琰杰 (Zhou Yanjie) (6): MIPS: JZ4780: Introduce SMP support. clocksource: Ingenic: Add high resolution timer support for SMP. dt-bindings: MIPS: Document Ingenic SoCs binding. MIPS: Ingenic: Add 'cpus' node for Ingenic SoCs. MIPS: CI20: Modify DTS to support high resolution timer for SMP. MIPS: CI20: Update defconfig to support SMP. .../bindings/mips/ingenic/ingenic,cpu.yaml | 53 ++++ .../bindings/mips/ingenic/ingenic,soc.yaml | 35 +++ arch/mips/boot/dts/ingenic/ci20.dts | 11 +- arch/mips/boot/dts/ingenic/jz4740.dtsi | 14 + arch/mips/boot/dts/ingenic/jz4770.dtsi | 15 +- arch/mips/boot/dts/ingenic/jz4780.dtsi | 23 ++ arch/mips/boot/dts/ingenic/x1000.dtsi | 14 + arch/mips/configs/ci20_defconfig | 2 + arch/mips/include/asm/mach-jz4740/jz4780-smp.h | 91 +++++++ arch/mips/jz4740/Kconfig | 3 + arch/mips/jz4740/Makefile | 5 + arch/mips/jz4740/prom.c | 4 + arch/mips/jz4740/smp-entry.S | 57 ++++ arch/mips/jz4740/smp.c | 286 +++++++++++++++++++++ arch/mips/kernel/idle.c | 14 +- drivers/clk/ingenic/jz4780-cgu.c | 58 ++++- drivers/clocksource/ingenic-timer.c | 200 +++++++++----- 17 files changed, 810 insertions(+), 75 deletions(-) create mode 100755 Documentation/devicetree/bindings/mips/ingenic/ingenic,cpu.yaml create mode 100755 Documentation/devicetree/bindings/mips/ingenic/ingenic,soc.yaml create mode 100644 arch/mips/include/asm/mach-jz4740/jz4780-smp.h create mode 100644 arch/mips/jz4740/smp-entry.S create mode 100644 arch/mips/jz4740/smp.c -- 2.7.4