From patchwork Wed May 12 19:56:47 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Vasut X-Patchwork-Id: 1477813 X-Patchwork-Delegate: marek.vasut@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org 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=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=Ib0H7z65; dkim-atps=neutral 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) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4FgQbj36Rwz9vHt for ; Thu, 13 May 2021 05:59:10 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id A462982B7E; Wed, 12 May 2021 21:58:59 +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="Ib0H7z65"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id B0D6A82CA8; Wed, 12 May 2021 21:58:57 +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=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) (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 3C27582B6B for ; Wed, 12 May 2021 21:58:55 +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=marek.vasut@gmail.com Received: by mail-ej1-x630.google.com with SMTP id s20so31246188ejr.9 for ; Wed, 12 May 2021 12:58:55 -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:mime-version :content-transfer-encoding; bh=hRUE7IHiFAU+h7kA1IqxKayWGMUdUfS6gZHzBjI2wk0=; b=Ib0H7z65rwIHhZf3x8p/rdW4yrfunErDQu9w1V4lMLWh/CKJtrYEZcyFnNUrBHp8N7 9jc1fObzUToOHgPbzr3gBdqAdQ+NauK2CVJWN75iT0ZK9mSg5iIMvbg6GS2Yro96/u9r pgHHGER9Mlec/PK2iy8gFhYGTEjaqzGbreS66RRTgnhNG2wNHztuCEtRJ1Ng5gX9eJGI viAOlhCeJ2e19auvr9WMykJVnNkd9NftiUspQPfgvGU6R27gLQGNuJOHj7qTSPRU7pRX TnSyAEo+xkuP6oRl9TrHWjuCxQNB0Ht37CmtsG7Cp5p49c/Uq/FDT7enC4u52RE5ixGS KiDg== 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:mime-version :content-transfer-encoding; bh=hRUE7IHiFAU+h7kA1IqxKayWGMUdUfS6gZHzBjI2wk0=; b=uWJ04Y+iKei8rXX9dxwKnzoFlfiaFBhnGt6sDMwTD9ZGvGZHiWzNPzVowo5ZkwNEBE mEKrXa14DF4efMPY2RmvymhKy8+jX5M4CvUGBE7MLjBTwrfLVcOjLX3d1v8R1UwwbQPc C7gRLvHAUiJbLSf0yB4jCEp/e8ezL7oGIOxi6acLOFwOqyIBLIH3eDMJXIt7yKdaq6bb 1RY5e14qqQ6U4D96e1Q0fNzSIEOL0XeOeMweEJat/TjlNhRS+GkFizeTouokE5YBaLRk sGlxPMNwiIRUvn5g5t7UGE6qGuZbx62sxRAAS2qFornP5PA/EKRJZFy/ioCEPwoTW3DR LseA== X-Gm-Message-State: AOAM532qUSfgZcAATwJ5MXcPDLLqCdps3twA24B4bD6/kHkXaVUTDHwb abRmKLKXx3zTJDxOp6FJ26sHl8qWsrg= X-Google-Smtp-Source: ABdhPJwtG4e4xrMgqSwdWdJa7hZqSTfoveyfwxBqEuoFQetWWGY+k2Bvx7NoKsr4hBP/rSfRYd1gSA== X-Received: by 2002:a17:906:31c6:: with SMTP id f6mr39762473ejf.446.1620849534878; Wed, 12 May 2021 12:58:54 -0700 (PDT) Received: from tr.lan (ip-89-176-112-137.net.upcbroadband.cz. [89.176.112.137]) by smtp.gmail.com with ESMTPSA id ch30sm627123edb.92.2021.05.12.12.58.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 May 2021 12:58:54 -0700 (PDT) From: Marek Vasut X-Google-Original-From: Marek Vasut To: u-boot@lists.denx.de Cc: Marek Vasut , Adam Ford Subject: [PATCH] ARM: rmobile: Add missing rcar-common/common.c to Beacon RZG2M kit Date: Wed, 12 May 2021 21:56:47 +0200 Message-Id: <20210512195647.69336-1-marek.vasut+renesas@gmail.com> X-Mailer: git-send-email 2.30.2 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.102.4 at phobos.denx.de X-Virus-Status: Clean The rcar-common/common.c contains various common board functions shared by all R-Car and RZG boards. This board is not compiling the file in, so add it. This way, part of the board code can be de-duplicated too. Signed-off-by: Marek Vasut Cc: Adam Ford Reviewed-by: Adam Ford --- board/beacon/beacon-rzg2m/Makefile | 2 +- board/beacon/beacon-rzg2m/beacon-rzg2m.c | 15 --------------- 2 files changed, 1 insertion(+), 16 deletions(-) diff --git a/board/beacon/beacon-rzg2m/Makefile b/board/beacon/beacon-rzg2m/Makefile index 439f3199aa..9131a92efa 100644 --- a/board/beacon/beacon-rzg2m/Makefile +++ b/board/beacon/beacon-rzg2m/Makefile @@ -6,4 +6,4 @@ # SPDX-License-Identifier: GPL-2.0+ # -obj-y := beacon-rzg2m.o +obj-y := beacon-rzg2m.o ../../renesas/rcar-common/common.o diff --git a/board/beacon/beacon-rzg2m/beacon-rzg2m.c b/board/beacon/beacon-rzg2m/beacon-rzg2m.c index 0c7f8e54e9..c12ff77fb2 100644 --- a/board/beacon/beacon-rzg2m/beacon-rzg2m.c +++ b/board/beacon/beacon-rzg2m/beacon-rzg2m.c @@ -28,21 +28,6 @@ int board_init(void) return 0; } -int dram_init(void) -{ - if (fdtdec_setup_mem_size_base() != 0) - return -EINVAL; - - return 0; -} - -int dram_init_banksize(void) -{ - fdtdec_setup_memory_banksize(); - - return 0; -} - #define RST_BASE 0xE6160000 #define RST_CA57RESCNT (RST_BASE + 0x40) #define RST_CODE 0xA5A5000F