From patchwork Tue Jul 20 06:38:29 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: ChiaWei Wang X-Patchwork-Id: 481493 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp4838073jao; Mon, 19 Jul 2021 23:40:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw/O3hBnAXmwwwaAQ6sKIYi3lWgeazwcWhQk9h+V5C0Ci4fAR93G7N6gyq15fYnH/eDXwf3 X-Received: by 2002:a05:6402:17d7:: with SMTP id s23mr39114304edy.305.1626763205763; Mon, 19 Jul 2021 23:40:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626763205; cv=none; d=google.com; s=arc-20160816; b=usznA6BbI7CTgHz1al0mTpnmyXwvwtcWu04aFelLwZxXf2TFGr0mz2m8kYqgFO378H 8RgTtKizMgQlJfOPDkVnzh2WnXD/8plV7AoQP+ZyJJG/p+DMiJP0QE6JDK55DOrh2HBn How8aL3hzVC6wg6huVSXhb5lVUrB3ED2Utld+ekV52HbgJrEbWBFxZ6KUQNaadAGPEU+ 2/d3iwwYyXVXKnDSzIZpnfd8GFwJUu+vXCFiTHlBD1EOHp+42YLWC/eL7nzrMvrob26Z 1Ex3qV3jENfR3EnoF2rXrPHE0Xm/sECaXhbPZCWpodz1wS8jjWBhD22jW4YauVa8rLEi rbNg== 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=vpsxnTt1deUC7YV+eRX2p1Po+J8Mg5Jweo/JokSGBdyCluxGHRKwUd+BgAufjFfaXC UmGyHeIvOD6cRx6X3eevTL1SThJ5Ai9R6tPlqRg0UEjv1uRJFaXBxujKAHKleDrX8pqR d1h3eaGb8EIim6p0kwQdakeTgA8Do3b02sVr/KXNPwJGHQZj23qjmTBpXNJTBKCMikVW K1VPTZKF22s0o8el6lnJ76g/4Urr8yRUATV3oNV6898rzgjABjPIp9lbmjD2yKsKbZxI plr9t/X1O9+TDm9alyq4y9mupZKZNQmTy0q7u6D01ydxHaCRLXj1J6yeTifBPGjxYhok l40w== 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 qc25si15517818ejb.324.2021.07.19.23.40.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Jul 2021 23:40:05 -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 3B78882C44; Tue, 20 Jul 2021 08:39:45 +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 30ADB82C24; Tue, 20 Jul 2021 08:39:22 +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,SPF_HELO_NONE 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 B6C55829F8 for ; Tue, 20 Jul 2021 08:39:09 +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 16K6M66V039585; Tue, 20 Jul 2021 14:22:06 +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; Tue, 20 Jul 2021 14:38:32 +0800 From: Chia-Wei Wang To: , , , CC: , Subject: [PATCH v3 04/14] ast2600: spl: Add HACE probing Date: Tue, 20 Jul 2021 14:38:29 +0800 Message-ID: <20210720063839.1518-5-chiawei_wang@aspeedtech.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210720063839.1518-1-chiawei_wang@aspeedtech.com> References: <20210720063839.1518-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 16K6M66V039585 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) {