From mboxrd@z Thu Jan 1 00:00:00 1970 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=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,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 18F4EC432BE for ; Mon, 30 Aug 2021 15:40:15 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 291C260F25 for ; Mon, 30 Aug 2021 15:40:14 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 291C260F25 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id EA6E2833A5; Mon, 30 Aug 2021 17:40:11 +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="ibeJXqtw"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 31072805DF; Mon, 30 Aug 2021 17:40:09 +0200 (CEST) Received: from mail-io1-xd2f.google.com (mail-io1-xd2f.google.com [IPv6:2607:f8b0:4864:20::d2f]) (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 B7AF58338B for ; Mon, 30 Aug 2021 17:40: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=aford173@gmail.com Received: by mail-io1-xd2f.google.com with SMTP id f6so20583691iox.0 for ; Mon, 30 Aug 2021 08:40:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=FcTf8WttA3nfB4wgrWDs+JXicgXNYSwPhnUXf6umo84=; b=ibeJXqtwFLqb8eBEHw7nutKoVmRObtLLZ3V21wJJqhEoLpLFVRXHjFi+yIe8YRS0Iz W00QcaRgE9tmSgneHdrhScKqMR9NhOImxtLr3pA046Ky5o2GDQozhq1nSnZrlSVGtsNP 1tlNmSjmPXgrYHLydNPjSe3RaE49z13BhqeH2GEIKbnRRlYBfKvZfBMWVIDBd7hgs1W8 MmEWd6J2majLjmm0+lwHn6tdztqEaDkUZWqLj3In9njwqOWnelqMGH52JuH9mMwiHwW5 JnkeLpUGPQIbacq5mxqwZQWBPbrjmoaaHI2qmqnAlWNDsdBiMM5+BFFzRlmXvdLIvTtm +mWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=FcTf8WttA3nfB4wgrWDs+JXicgXNYSwPhnUXf6umo84=; b=BiohJVRnr/cIHsTWjtdE4lG98OOnkKhlDPdFvQ92EAeIQOQA9U6yG0gom9DgMahujh Y3YpoBYwZOSYqgLX9J+3J7Yw73DyaobCa22YazNkN8Pl33cUyFP6rf0V4e1BJER1aADt L2MtygE4r9HjGcx/KoLmQ3ZjkDwMMA99BWeWNbZtVtMFGRhhMzzUAjpsdsr4sfkFjk9W lgWYbBddTjOdPcHXEVwQLmJOkwL6XvQt5mWx7xPc0+edpv+LQsvLk/XnyYrycWj88Cg2 fZv1SlvtdMhfggIEMbjF87JWOBal0kp4nbcCooNX+p5C1thyAYrR6LtquVyX5R8sL4ge tQ/g== X-Gm-Message-State: AOAM533+7Mxp8SltrLuO7ej7EDcecrtvm3OERzon/TYmofFTf0mBiNYN fbbcTOs00z59TEhMD+dfnfjEPnpk5Tytrw== X-Google-Smtp-Source: ABdhPJxV/ofBvsdAkQcqetWlq/N2z1uZs9P1vzifv9p1CRnJv3odp47uveBNqolSNi9jltaBz8NCBg== X-Received: by 2002:a5e:df0d:: with SMTP id f13mr19127085ioq.108.1630338002856; Mon, 30 Aug 2021 08:40:02 -0700 (PDT) Received: from aford-IdeaCentre-A730.lan (c-73-37-219-234.hsd1.mn.comcast.net. [73.37.219.234]) by smtp.gmail.com with ESMTPSA id z15sm8012565ioh.28.2021.08.30.08.40.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Aug 2021 08:40:02 -0700 (PDT) From: Adam Ford To: u-boot@lists.denx.de Cc: biju.das.jz@bp.renesas.com, marek.vasut+renesas@gmail.com, Adam Ford Subject: [PATCH 2/5] ARM: rmobile: beacon: Support RZ/G2 [M/N/H] on TARGET_BEACON_RZG2M Date: Mon, 30 Aug 2021 10:39:49 -0500 Message-Id: <20210830153952.598658-2-aford173@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210830153952.598658-1-aford173@gmail.com> References: <20210830153952.598658-1-aford173@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 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 002b91176f..0956b44c06 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 -- 2.25.1