From patchwork Fri Jul 16 05:55:36 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: ChiaWei Wang X-Patchwork-Id: 478354 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp1035333jao; Thu, 15 Jul 2021 22:56:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyhNjsLF6wNiqqPxML50KxpH3U7yu+DX+1x93Wwm4IuB5j9q7Vz9+tZgi+AFEDWeYdz8OFu X-Received: by 2002:a17:906:6d0a:: with SMTP id m10mr10116279ejr.106.1626414992521; Thu, 15 Jul 2021 22:56:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626414992; cv=none; d=google.com; s=arc-20160816; b=IXC8zCnnWlmolmEChkDlMBUtx1ZvqDDRYtm13sK86uLXkaEEpTp7Q8YLiRT1XfAzB+ 4AJ2AcrLze7eXuOmCQlQ89PkNkt06r/bewW5b/MCnMhMn/ueKnPujwqBlG/J2Q8UU7NS wvTdxjAN+FJO7XesOcycwrx5A13hvLBcmsjHt5b7xm23aRlfGYrcs707dTeiCJHBn5Lt jyXjwWIF1+7V4fQNQpfeW7YV3Mfu8N1AyDqos5IqERuBPrslojW6HgR4JmojJhAXPzXr HyYZoWUO5cTbU5awJAHDRH3Hujr/d3t9NTsdkZsXUrPlGiKR4s9mJZmQYiC7MJFTsdjw 9hww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from; bh=7FPHxGULImJapf2j0NYdSpTM1MJZ3obV2EZ/LYt8wHQ=; b=kcTj1ti62JRh6MbgJUDtOslwSdMlpD1Ddo1JK2vBMvE5jgjypOEtCTOVADcz7up4DV eAUaQUfb0dbAdStN0mIp6oBkDwYZbMXaJtoL1wHeaLuO1oLFiqx9g21ttd5/g1LDB9dr WJ3/QZyYMNqUzlbPF5dTYTS7r2UiSGDPsaaggwSNwIwNIlW3z0PGvHTTM8D8EAc3hzx8 pADORwIBvwY5HmynpD9MA+ZBaqAhFiW4WZ41KDzQ5Th0wC8t4G6B/jSxS1kbatY81TVD UDAb+9pT+DxcTTcyF6CkyJuWhAsbPLJMPGSZPRfmEaTOsoKkIJMHnBKOQlHe9PvNa890 J0+w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id f21si9634606ejj.567.2021.07.15.22.56.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Jul 2021 22:56:32 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id AF5598297D; Fri, 16 Jul 2021 07:56:24 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=aspeedtech.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id 6028A8296A; Fri, 16 Jul 2021 07:56:16 +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.9 required=5.0 tests=BAYES_00, T_SPF_HELO_TEMPERROR autolearn=unavailable autolearn_force=no version=3.4.2 Received: from twspam01.aspeedtech.com (twspam01.aspeedtech.com [211.20.114.71]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 2D26682999 for ; Fri, 16 Jul 2021 07:56:12 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=aspeedtech.com Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=chiawei_wang@aspeedtech.com Received: from mail.aspeedtech.com ([192.168.0.24]) by twspam01.aspeedtech.com with ESMTP id 16G5dfTp005068; Fri, 16 Jul 2021 13:39:41 +0800 (GMT-8) (envelope-from chiawei_wang@aspeedtech.com) Received: from ChiaWeiWang-PC.aspeed.com (192.168.2.66) by TWMBX02.aspeed.com (192.168.0.24) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 16 Jul 2021 13:55:51 +0800 From: Chia-Wei Wang To: , , , CC: , Subject: [PATCH v2 04/14] ast2600: spl: Add HACE probing Date: Fri, 16 Jul 2021 13:55:36 +0800 Message-ID: <20210716055546.1619-5-chiawei_wang@aspeedtech.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210716055546.1619-1-chiawei_wang@aspeedtech.com> References: <20210716055546.1619-1-chiawei_wang@aspeedtech.com> MIME-Version: 1.0 X-Originating-IP: [192.168.2.66] X-ClientProxiedBy: TWMBX02.aspeed.com (192.168.0.24) To TWMBX02.aspeed.com (192.168.0.24) X-DNSRBL: X-MAIL: twspam01.aspeedtech.com 16G5dfTp005068 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 From: Joel Stanley Probe HACE driver in SPL board init if enabled. Signed-off-by: Joel Stanley Signed-off-by: Chia-Wei Wang --- arch/arm/mach-aspeed/ast2600/spl.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) -- 2.17.1 diff --git a/arch/arm/mach-aspeed/ast2600/spl.c b/arch/arm/mach-aspeed/ast2600/spl.c index 0d8cb29678..a0fc420ff1 100644 --- a/arch/arm/mach-aspeed/ast2600/spl.c +++ b/arch/arm/mach-aspeed/ast2600/spl.c @@ -38,6 +38,20 @@ struct image_header *spl_get_load_buffer(ssize_t offset, size_t size) return (struct image_header *)(CONFIG_SYS_TEXT_BASE); } +#ifdef CONFIG_SPL_BOARD_INIT +void spl_board_init(void) +{ + int rc; + struct udevice *dev; + + rc = uclass_get_device_by_driver(UCLASS_MISC, + DM_DRIVER_GET(aspeed_hace), + &dev); + if (rc) + debug("HACE initialization failure, rc=%d\n", rc); +} +#endif + #ifdef CONFIG_SPL_OS_BOOT int spl_start_uboot(void) {