From patchwork Mon Sep 20 16:14:28 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Ford X-Patchwork-Id: 1530241 X-Patchwork-Delegate: marek.vasut@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=kphpG341; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4HCqQr0kxNz9sPf for ; Tue, 21 Sep 2021 02:15:16 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 6838882D72; Mon, 20 Sep 2021 18:15:04 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="kphpG341"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 4F80682C47; Mon, 20 Sep 2021 18:14:49 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-il1-x12f.google.com (mail-il1-x12f.google.com [IPv6:2607:f8b0:4864:20::12f]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 4B8038048A for ; Mon, 20 Sep 2021 18:14:45 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=aford173@gmail.com Received: by mail-il1-x12f.google.com with SMTP id a20so19265018ilq.7 for ; Mon, 20 Sep 2021 09:14:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=mZukBjJ1382pgfz2SdGvwbY6htuVaIL2tHx3fmanGFI=; b=kphpG3418vsK8gXeX+LwOnBnPTa9LRT43nRQoxY/X8ELCylg8gNCSP/Acz6fnIKpFF fGeF4ov/R8TYbjulJndZW/nPaGI5iFoNOy0yvfMiYIo1ke5mkUB/zccz3CpXeEMowemH lWwPZSlIHaYVQmNYZKXeeT3BJD9I6IhAOHYc6Y1uhs5xRIznwrBuB4GtdteAnkLuIHSb wibs61BcolPCaloe4aOImc/Rd44A+p2bXfHtEqpT47gv4fsQLrmRGu1na+DNIAqEc2CA E+ejxgBjc8HwOHT248c5c6VLPtQjqc4kms1sKo4hAcRWYjlufFD0uCa3xjRJiqzfarj4 XGXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=mZukBjJ1382pgfz2SdGvwbY6htuVaIL2tHx3fmanGFI=; b=CQlBPdbhuC2gGjYcedUKwrXU8AGkPrqPoNFrKscp79lOqD5MwoWDq2Q2zospSgF5By mN8qCpwdmDdOimjDbmvRiZJn/5sjRL43qc/YeieSnXfMzYFB8y0qBIxZpLEqyN+cYinV Q7A6EHyfIRPWO4MDRD51sQndzRCC+GkDUaH9rNG3r51vp/8M6+43bhdYFh2Xzza3jXvl 6xBT8Jr2fgUsgnHW+SpPQjckMyQbd7/Q+sp+tnw88xW3w/MHMxvTUCVQ7gD7S5j4WEMf +h3sgopf5tWzU4EoKXCLDS+rr3IjO3Q+6CkjhoTbjsEdyrTdp/A9gdXer+JuKaHZveMB WJnw== X-Gm-Message-State: AOAM530h46LM0v3Y2I5zWmCR+M+uUlOgxcz8RLFOGDOnHOU5DaDQX9eh T8NL0DY7E30C3PRJ08O+h2CjnaxXmP8= X-Google-Smtp-Source: ABdhPJyUzt9MCzNNVNMHHjuZS902kKOg2F1IGz/IZY9P34nZ58CXdjVTjJCOgqmOOaftBrEzCWvpcg== X-Received: by 2002:a92:c264:: with SMTP id h4mr9939119ild.16.1632154483440; Mon, 20 Sep 2021 09:14:43 -0700 (PDT) Received: from aford-OptiPlex-7050.logicpd.com ([174.46.170.158]) by smtp.gmail.com with ESMTPSA id e13sm8699294iod.36.2021.09.20.09.14.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Sep 2021 09:14:42 -0700 (PDT) From: Adam Ford To: u-boot@lists.denx.de Cc: marek.vasut+renesas@gmail.com, aford@beaconembedded.com, Adam Ford Subject: [PATCH V2 2/6] ARM: rmobile: beacon: Support RZ/G2 [M/N/H] on TARGET_BEACON_RZG2M Date: Mon, 20 Sep 2021 11:14:28 -0500 Message-Id: <20210920161432.13110-2-aford173@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210920161432.13110-1-aford173@gmail.com> References: <20210920161432.13110-1-aford173@gmail.com> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean The three different boards share the same board file and only differ in terms of which SoC is being used. By enabling FIT on TARGET_BEACON_RZG2M, it can support all three boards and elimate duplicate code. Signed-off-by: Adam Ford --- arch/arm/mach-rmobile/Kconfig.64 | 8 ++++++++ configs/r8a774a1_beacon_defconfig | 3 +++ 2 files changed, 11 insertions(+) diff --git a/arch/arm/mach-rmobile/Kconfig.64 b/arch/arm/mach-rmobile/Kconfig.64 index a6dcce180b..2bde898928 100644 --- a/arch/arm/mach-rmobile/Kconfig.64 +++ b/arch/arm/mach-rmobile/Kconfig.64 @@ -80,8 +80,14 @@ config TARGET_BEACON_RZG2H config TARGET_BEACON_RZG2M bool "Beacon EmbeddedWorks RZ/G2M Dev Kit" select R8A774A1 + select R8A774B1 + select R8A774E1 select RZ_G2 select PINCTRL_PFC_R8A774A1 + select PINCTRL_PFC_R8A774B1 + select PINCTRL_PFC_R8A774E1 + imply MULTI_DTB_FIT + imply MULTI_DTB_FIT_USER_DEFINED_AREA config TARGET_BEACON_RZG2N bool "Beacon EmbeddedWorks RZ/G2N Dev Kit" @@ -177,11 +183,13 @@ source "board/hoperun/hihope-rzg2/Kconfig" source "board/silinux/ek874/Kconfig" config MULTI_DTB_FIT_UNCOMPRESS_SZ + default 0x80000 if TARGET_BEACON_RZG2M default 0x80000 if TARGET_HIHOPE_RZG2 default 0x80000 if TARGET_SALVATOR_X default 0x80000 if TARGET_ULCB config MULTI_DTB_FIT_USER_DEF_ADDR + default 0x49000000 if TARGET_BEACON_RZG2M default 0x49000000 if TARGET_HIHOPE_RZG2 default 0x49000000 if TARGET_SALVATOR_X default 0x49000000 if TARGET_ULCB diff --git a/configs/r8a774a1_beacon_defconfig b/configs/r8a774a1_beacon_defconfig index 7ba4ac05f5..11c99d4850 100644 --- a/configs/r8a774a1_beacon_defconfig +++ b/configs/r8a774a1_beacon_defconfig @@ -31,6 +31,9 @@ CONFIG_CMD_EXT4_WRITE=y CONFIG_CMD_FAT=y CONFIG_CMD_FS_GENERIC=y CONFIG_OF_CONTROL=y +CONFIG_OF_LIST="r8a774a1-beacon-rzg2m-kit r8a774b1-beacon-rzg2n-kit r8a774e1-beacon-rzg2h-kit" +CONFIG_MULTI_DTB_FIT_LZO=y +CONFIG_MULTI_DTB_FIT_USER_DEFINED_AREA=y CONFIG_ENV_OVERWRITE=y CONFIG_ENV_IS_IN_MMC=y CONFIG_SYS_MMC_ENV_DEV=1