Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2208235pxa; Mon, 3 Aug 2020 10:04:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxYmj6wOinlsczMr2L5LfjMw5hiWelWjVojBN2FzBV7xQBnfPZRdMc/dhDNNfhvtyD3IiE3 X-Received: by 2002:a17:906:a252:: with SMTP id bi18mr17087790ejb.151.1596474262892; Mon, 03 Aug 2020 10:04:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596474262; cv=none; d=google.com; s=arc-20160816; b=GTpSpfFOUGOrCX/CjNDlaXNjmvOt/hfP/NL/UpjgrgC5Cg/xwyn9pIUv4DXsCjH1UY KJsEx1W/kat72nsFOKQE8fQ8xJcSgdLQaeuV+REaEg9DQ/qEi6wB/WFqsRblLEoYx8W0 2MF6XOLJ5YKOfZod1shbaka5J2ewAI6MWbfkga6Fjh6Tk4Jd1vsuHZLMwl+FESKk933I RbOg2R08eFd7vNFTmlymH/w7Lg37SetwdNjMLandwZGDheD6StKkOTbzyoBiV/26rb1n b7krzeO2Ks1Ha5sJlV10R39l2u0RurLn/sZkYfIG20Sew6euBhr22T6kGb6yt6hjA2Fz gIuw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=IHahTxqH5pJQsph2AgIZKKb59G/0qrY+uO1a0r6IFQQ=; b=rj5ZeAMe2doiM4CdNLbMP6o+dPlNZhFfoMWrY61N+Fx4efpHnzzTy1s0o4U1TzuSfb Z+3LP/xJLHkSTRX228xzyYchiFNLoI/cSh06rgj/CS4v3NEfdCwUn8Pwf53h8nUejonO MlYkZRvLFbAHds9RdtLh8c3exoaPdWgrar/VECuUS8Qy4SyZQvbCj5sBevwuN3dFn3z8 KC0JCQDt5z7LOgXmh0ybOt9QlDxYrSubAQRZf7+/GttGrjsygRTMYGrPEtTCgVT7YRAs vGUQGnXM8nDp+zVyOaEeGbzQe/UHRvlZaKGkZfyH24mWuc1I1NLE5Tv8Xa7WpAjmiLWE P8GA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@crapouillou.net header.s=mail header.b=u5qUlejN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u24si10808591ejx.88.2020.08.03.10.04.00; Mon, 03 Aug 2020 10:04:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@crapouillou.net header.s=mail header.b=u5qUlejN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727863AbgHCRBr (ORCPT + 99 others); Mon, 3 Aug 2020 13:01:47 -0400 Received: from crapouillou.net ([89.234.176.41]:36854 "EHLO crapouillou.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726878AbgHCRBr (ORCPT ); Mon, 3 Aug 2020 13:01:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crapouillou.net; s=mail; t=1596474104; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:references; bh=IHahTxqH5pJQsph2AgIZKKb59G/0qrY+uO1a0r6IFQQ=; b=u5qUlejNFsTbId8n+cwzby1MYQsmxrbPl5dEr2QJ6d1qoJetE+odh7OAw7lg3LjTZFTN1c 1kvHDx6jTh8bMHdwXZ+Jkin7/w3hByNV/ioSPNx5PNg5qpNJThsXc2gQqnQwgB+LtR5YwX fsdpkDpDye10wHtF6tBfOk4YM/SJXhw= From: Paul Cercueil To: Thomas Bogendoerfer Cc: Paul Burton , Krzysztof Kozlowski , =?UTF-8?q?=E5=91=A8=E7=90=B0=E6=9D=B0?= , od@zcrc.me, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, Paul Cercueil Subject: [PATCH 00/13] MIPS: Convert Ingenic to a generic board Date: Mon, 3 Aug 2020 19:01:11 +0200 Message-Id: <20200803170124.231110-1-paul@crapouillou.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Thomas & list, Here is a set of patches for 5.10 (no rush) to move Ingenic support from arch/mips/jz4740/ to arch/mips/generic/. There are some Kconfig changes that I think should be reviewed in detail to avoid breakages elsewhere. The idea behind these changes is to allow the Ingenic "generic" code to be built in a non-generic kernel, since generic kernels bring lots of dependencies which result in a +7% size increase. Support for booting the generic kernel with a built-in and/or appended devicetree, as well as support for compressed (vmlinuz) kernels, has been added as well. Cheers, -Paul Paul Cercueil (13): MIPS: cpu-probe: Set Ingenic's writecombine to _CACHE_CACHABLE_WA MIPS: cpu-probe: Mark XBurst CPU as having vtagged caches MIPS: cpu-probe: ingenic: Fix broken BUG_ON MIPS: Kconfig: add MIPS_GENERIC_KERNEL symbol MIPS: machine: Add get_system_type callback MIPS: generic: Call the machine's .get_system_type callback if provided MIPS: generic: Support booting with built-in or appended DTB MIPS: generic: Add support for zboot MIPS: generic: Increase NR_IRQS to 256 MIPS: generic: Add support for Ingenic SoCs MIPS: jz4740: Drop folder MIPS: configs: Regenerate configs of Ingenic boards MAINTAINERS: Update paths to Ingenic platform code MAINTAINERS | 4 +- arch/mips/Kbuild.platforms | 1 - arch/mips/Kconfig | 43 ++++-- arch/mips/configs/ci20_defconfig | 4 +- arch/mips/configs/cu1000-neo_defconfig | 16 +- arch/mips/configs/gcw0_defconfig | 2 +- arch/mips/configs/qi_lb60_defconfig | 5 +- arch/mips/configs/rs90_defconfig | 4 +- arch/mips/generic/Kconfig | 8 +- arch/mips/generic/Makefile | 2 +- arch/mips/generic/Platform | 1 + arch/mips/generic/board-ingenic.c | 108 +++++++++++++ arch/mips/generic/init.c | 28 +++- arch/mips/generic/proc.c | 25 --- arch/mips/include/asm/mach-generic/irq.h | 2 +- .../asm/mach-jz4740/cpu-feature-overrides.h | 50 ------ arch/mips/include/asm/mach-jz4740/irq.h | 13 -- arch/mips/include/asm/machine.h | 1 + arch/mips/include/asm/pgtable-bits.h | 5 - arch/mips/{jz4740 => ingenic}/Kconfig | 16 +- arch/mips/jz4740/Makefile | 9 -- arch/mips/jz4740/Platform | 3 - arch/mips/jz4740/setup.c | 145 ------------------ arch/mips/kernel/cpu-probe.c | 8 +- 24 files changed, 198 insertions(+), 305 deletions(-) create mode 100644 arch/mips/generic/board-ingenic.c delete mode 100644 arch/mips/generic/proc.c delete mode 100644 arch/mips/include/asm/mach-jz4740/cpu-feature-overrides.h delete mode 100644 arch/mips/include/asm/mach-jz4740/irq.h rename arch/mips/{jz4740 => ingenic}/Kconfig (91%) delete mode 100644 arch/mips/jz4740/Makefile delete mode 100644 arch/mips/jz4740/Platform delete mode 100644 arch/mips/jz4740/setup.c -- 2.27.0