From patchwork Tue Feb 9 12:30:13 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Damien Le Moal X-Patchwork-Id: 12077923 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.3 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,UPPERCASE_50_75, URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3B16DC433DB for ; Tue, 9 Feb 2021 12:31:01 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 8626A64E88 for ; Tue, 9 Feb 2021 12:31:00 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8626A64E88 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=wdc.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=49s2ocOjAFFXGEb12If+26nMjeWWX+TH+opECnSP6N0=; b=lpcnrlFlcFTuKi1F7V6YlVeF5 NQpKie9489Rywa6VuXLT90cPanNfpvfhXmR2Zf+RqyRo/iEoMiEK72oIRQ8y/KvjzF2Uf4FWDvrZB 8NMpZcp4g2KM6PHQ6yO2/JGjOhU4bp8M6A8GfbD4HMVBKHJlDbSqzlA2uGkJRQ2+Sk/+nPDlZiLrX C+yQMGVuQGwwEM3Fz7tPkZLzlQCN4jiLGkqG/GIVtx9J8D2hNyYua3vtoVo+epR5tHj53fnzegLby HPyO/Abr2uSbd01CmPy+6DrNnGUy97zKYOaSe0SOEhrjpyUGW5GgwWRnflGXVEQDtOYFrBKRUmjPr MEIs7QgCg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1l9SAO-0008LA-HB; Tue, 09 Feb 2021 12:30:52 +0000 Received: from esa6.hgst.iphmx.com ([216.71.154.45]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1l9SAF-0008FL-IV for linux-riscv@lists.infradead.org; Tue, 09 Feb 2021 12:30:46 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1612873843; x=1644409843; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=bLTp7TEh7haEii+R1cR3cRVOJJN7cYqZvqMyNXTVOyE=; b=czFYvNylDcc/uC+ARzDRwugBn5MjMFnYLWQEF6zE/VO7HP9SH5A7oCYw ZV7odTnFluMlFWz/NKz3766LYlrUIXDJ9mfAIATGLWfIzr09kHa9+e1aE N7b2DLItLQ6u9LB5QC1JACaYrg89kCl95huRvBOikV7b4P6EcbIk3obq/ LNv8f/nWoBhYyV3E8jXhoGIctbWiTaImIvKDCHqhH/cNBPVHeM1FecV0x 5WtEhuGOZtG0YJlnl9K9k7Srxeh7zqyUYid6Mt+w1uIeo4MKU7EHOcPmk gVe1Np8yn63dfpvSvaYxsYG40HkJ+BgU84GtsXdNTicFpdzJlfTaIbWW2 A==; IronPort-SDR: YA/3Uw5/7qV3W+SDidyrpNs+4J1MsziPXn3jsowpJn2O2gEMkZk04R1sdlW9eKze6OlV+15CZV n9gW5vleej4hUbTv73HM1Tew27inE5u3LMdEvAO0e9lKYrXEnmpcButVWUHFXKKRpDEWtvM19G 21Oqsa+w1gmvhuZT0nB6rZyc4PGzo+YubaQoogoFDXqJbMPrd7DQgAFsq4fPMqh2baRDObVVgp +twxJRwVRvGCP4YbjHYGWLT/HXzKRelCp83ihp8DF9EfYWauBPaengWBYsDe+XVkyrT3wTAdEW K/c= X-IronPort-AV: E=Sophos;i="5.81,164,1610380800"; d="scan'208";a="160707585" Received: from h199-255-45-15.hgst.com (HELO uls-op-cesaep02.wdc.com) ([199.255.45.15]) by ob1.hgst.iphmx.com with ESMTP; 09 Feb 2021 20:30:42 +0800 IronPort-SDR: kk1xqT7ls2p9VS8fk+VbzadlYR4rGS+W2+ieqSp1dc9HfALujtwZUTrmpgVGSzucetH1gdC/Br JMHpN/OMPP3Aq4nCxoyrx18vd/7vC9V0oZB40XAeAJW3maq6UGVnoBNQ8CpGg+jiUjP0KqIm84 VZm2kgQCU+PC6kAZrNN0TPaKRIIGwQkoHDmHBlhvvhj64N2x8CcSNqM09nWqusC77WdsgVhYHk 96kyw/yAowct0vCurd6Yb4xbtXWfx9z2Mb7UYjIBVmtoWT+1UfwmRmFjGNWiVse381XUbJIbkr pMkCw+BfHrVUYpLxFZAII9Jf Received: from uls-op-cesaip01.wdc.com ([10.248.3.36]) by uls-op-cesaep02.wdc.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Feb 2021 04:12:36 -0800 IronPort-SDR: NYem0xvJ62Uf5m73IHIjzFD7PzCzk08U+LbkNkFeONhISDfWBtmVBFWfb4f3+wQH4kGSV2fmk5 IdUkUzntK59AwShtRCZbf55srUTf3AO777htdI2qmcT8Mj6Z1EnhhrRPY5wlzceJnjKiDiqC2N hWDwHFuHWF5wrl8bgiT5x3XUZoq6vmnF2/1BSZMcMuIUSKknK+DESvs5X9rEaCGpwM/8U2fAM3 7PGAW7nXjrsltu6CB9ATGPSGeSnwK3lqH4uNCEmtoEyELyq4ZTvcF8ryNGuz+Ot9BUJABixbUA Jw8= WDCIronportException: Internal Received: from phd004806.ad.shared (HELO twashi.fujisawa.hgst.com) ([10.84.71.69]) by uls-op-cesaip01.wdc.com with ESMTP; 09 Feb 2021 04:30:42 -0800 From: Damien Le Moal To: Palmer Dabbelt , linux-riscv@lists.infradead.org Subject: [PATCH v18 15/16] riscv: Update Canaan Kendryte K210 defconfig Date: Tue, 9 Feb 2021 21:30:13 +0900 Message-Id: <20210209123014.165928-16-damien.lemoal@wdc.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210209123014.165928-1-damien.lemoal@wdc.com> References: <20210209123014.165928-1-damien.lemoal@wdc.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210209_073043_855693_28597510 X-CRM114-Status: GOOD ( 14.39 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Atish Patra , Anup Patel , Sean Anderson Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org Update the Kendryte k210 nommu default configuration file (nommu_k210_defconfig) to include device drivers for reset, reboot, I2C, SPI, gpio and LEDs support. Virtual Terminal support is also disabled as no terminal devices are supported and enabled. Disabling CONFIG_VT (removing the no longer needed override for CONFIG_VGA_CONSOLE) reduces the kernel image size by about 65 KB. This default configuration remains suitable for a system using an initramfs cpio file linked into the kernel image. Signed-off-by: Damien Le Moal Reviewed-by: Anup Patel Reviewed-by: Atish Patra --- arch/riscv/configs/nommu_k210_defconfig | 44 ++++++++++++++++++++----- 1 file changed, 36 insertions(+), 8 deletions(-) diff --git a/arch/riscv/configs/nommu_k210_defconfig b/arch/riscv/configs/nommu_k210_defconfig index 368a28cf1467..b16a2a12c82a 100644 --- a/arch/riscv/configs/nommu_k210_defconfig +++ b/arch/riscv/configs/nommu_k210_defconfig @@ -1,17 +1,19 @@ # CONFIG_CPU_ISOLATION is not set -CONFIG_LOG_BUF_SHIFT=15 +CONFIG_LOG_BUF_SHIFT=13 CONFIG_PRINTK_SAFE_LOG_BUF_SHIFT=12 CONFIG_BLK_DEV_INITRD=y -CONFIG_INITRAMFS_FORCE=y +# CONFIG_RD_GZIP is not set # CONFIG_RD_BZIP2 is not set # CONFIG_RD_LZMA is not set # CONFIG_RD_XZ is not set # CONFIG_RD_LZO is not set # CONFIG_RD_LZ4 is not set +# CONFIG_RD_ZSTD is not set CONFIG_CC_OPTIMIZE_FOR_SIZE=y # CONFIG_SYSFS_SYSCALL is not set # CONFIG_FHANDLE is not set # CONFIG_BASE_FULL is not set +# CONFIG_FUTEX is not set # CONFIG_EPOLL is not set # CONFIG_SIGNALFD is not set # CONFIG_TIMERFD is not set @@ -25,15 +27,17 @@ CONFIG_EMBEDDED=y # CONFIG_VM_EVENT_COUNTERS is not set # CONFIG_COMPAT_BRK is not set CONFIG_SLOB=y -# CONFIG_SLAB_MERGE_DEFAULT is not set # CONFIG_MMU is not set CONFIG_SOC_CANAAN=y +CONFIG_SOC_CANAAN_K210_DTB_SOURCE="k210_generic" CONFIG_MAXPHYSMEM_2GB=y CONFIG_SMP=y CONFIG_NR_CPUS=2 CONFIG_CMDLINE="earlycon console=ttySIF0" CONFIG_CMDLINE_FORCE=y -CONFIG_JUMP_LABEL=y +# CONFIG_SECCOMP is not set +# CONFIG_STACKPROTECTOR is not set +# CONFIG_GCC_PLUGINS is not set # CONFIG_BLOCK is not set CONFIG_BINFMT_FLAT=y # CONFIG_COREDUMP is not set @@ -41,23 +45,47 @@ CONFIG_DEVTMPFS=y CONFIG_DEVTMPFS_MOUNT=y # CONFIG_FW_LOADER is not set # CONFIG_ALLOW_DEV_COREDUMP is not set -# CONFIG_INPUT_KEYBOARD is not set -# CONFIG_INPUT_MOUSE is not set +# CONFIG_INPUT is not set # CONFIG_SERIO is not set +# CONFIG_VT is not set +# CONFIG_UNIX98_PTYS is not set # CONFIG_LEGACY_PTYS is not set # CONFIG_LDISC_AUTOLOAD is not set # CONFIG_HW_RANDOM is not set # CONFIG_DEVMEM is not set +CONFIG_I2C=y +# CONFIG_I2C_COMPAT is not set +CONFIG_I2C_CHARDEV=y +# CONFIG_I2C_HELPER_AUTO is not set +CONFIG_I2C_DESIGNWARE_PLATFORM=y +CONFIG_SPI=y +# CONFIG_SPI_MEM is not set +CONFIG_SPI_DESIGNWARE=y +CONFIG_SPI_DW_MMIO=y +# CONFIG_GPIO_CDEV_V1 is not set +CONFIG_GPIO_DWAPB=y +CONFIG_GPIO_SIFIVE=y +CONFIG_POWER_RESET=y +CONFIG_POWER_RESET_SYSCON=y # CONFIG_HWMON is not set -# CONFIG_VGA_CONSOLE is not set -# CONFIG_HID is not set # CONFIG_USB_SUPPORT is not set +CONFIG_NEW_LEDS=y +CONFIG_LEDS_CLASS=y +CONFIG_LEDS_GPIO=y +CONFIG_LEDS_USER=y # CONFIG_VIRTIO_MENU is not set +# CONFIG_VHOST_MENU is not set +# CONFIG_SURFACE_PLATFORMS is not set +# CONFIG_FILE_LOCKING is not set # CONFIG_DNOTIFY is not set # CONFIG_INOTIFY_USER is not set # CONFIG_MISC_FILESYSTEMS is not set CONFIG_LSM="[]" CONFIG_PRINTK_TIME=y +# CONFIG_SYMBOLIC_ERRNAME is not set +# CONFIG_DEBUG_BUGVERBOSE is not set +# CONFIG_SECTION_MISMATCH_WARN_ONLY is not set +# CONFIG_FRAME_POINTER is not set # CONFIG_DEBUG_MISC is not set CONFIG_PANIC_ON_OOPS=y # CONFIG_SCHED_DEBUG is not set