From patchwork Mon Aug 3 06:09:03 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bin Meng X-Patchwork-Id: 1340139 X-Patchwork-Delegate: uboot@andestech.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; dmarc=pass (p=none dis=none) header.from=gmail.com 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=nrC3N3wf; 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)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4BKnZN6YvHz9sRN for ; Mon, 3 Aug 2020 16:11:08 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id BF952821EE; Mon, 3 Aug 2020 08:10:49 +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="nrC3N3wf"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 168DF82189; Mon, 3 Aug 2020 08:10:44 +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,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) (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 AE09D81BD7 for ; Mon, 3 Aug 2020 08:10:40 +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=bmeng.cn@gmail.com Received: by mail-wm1-x342.google.com with SMTP id k20so14299462wmi.5 for ; Sun, 02 Aug 2020 23:10:40 -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; bh=hzc4CWvlWbSW1KdgyNserWykjQNzb1ggPKvr7uuAPQI=; b=nrC3N3wf0tNfMwGKz2hcKTchdiOASCkydUUSEWrWCSZzpSLmvi8Q9U3tZ1I5RNxO/6 33BDgaEOJ0sdZDS05A97QBb7ois0VT4jse/ut2mlVCwaTUu9GcqGYunIC+cgUuvxIRSc ktLNVVHQdwe4DKSNws+iCPQ52qZYv1M4knIE+IZ2JOtcyXqx9Wohxv7p33SGuY+XfdIn w1Z4QD5JWQYE8JKPPc/iUhxomPEIw7X8K2fNkx7FBfusMPIMONq+Dv1bj4CSzCavp89t /oPXaFpXbXv79d4KK9IQ2jqnfm46hcbR5GsAjrsOm8NkyRjdIzilm3ibO0l0q0Zmt15e Ip2A== 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; bh=hzc4CWvlWbSW1KdgyNserWykjQNzb1ggPKvr7uuAPQI=; b=Y/XZprHGtgbGI8hJqmHHE0YC94dc2ASk+DBC4R2D9fZ3qVkfaEX4WRS/TUm+me/tyX 9J+OL7pS45mwcrRGtPRjqWwHukPaFunFm5OwUGHt5wYAOUXH76ZvBBrC6WC/kMgNVQ71 B2A4Tm5y0ah+AclKQVbw07AWSWGmdDwkERvTk/+Z3FE/Lwodj5mHMu+KloypRrtc/lx0 v7QofnrMz8ECD/JlVcmfh7fGnCUi0O0ZNVK7iYhJGLh08Y//8Y5RGihI74LOglxQ1tgt FR1bJLowtTo68SLV4vfRq98y6RxpAjw1lrWsTINl+KQyRPPG8jWEf9uws5iS7OyFo4p4 zMjQ== X-Gm-Message-State: AOAM530ll45YXILMBjNyo4pSgyi1PPo5T2z0OkRK96lIwvc0TegyLnZy a07g8Zw8w1ePwETWiCvxkp+5Q14X X-Google-Smtp-Source: ABdhPJx7KaISx9WnyFqXR1dpEFPbSrQaJNA9fXiIqYj6tmIESKHyKYIsMSKe+qam+vh3fAM6aSd4DQ== X-Received: by 2002:a05:600c:21c2:: with SMTP id x2mr14897926wmj.142.1596435040383; Sun, 02 Aug 2020 23:10:40 -0700 (PDT) Received: from localhost.localdomain (unknown-224-80.windriver.com. [147.11.224.80]) by smtp.gmail.com with ESMTPSA id 32sm23363811wrn.86.2020.08.02.23.10.38 (version=TLS1 cipher=AES128-SHA bits=128/128); Sun, 02 Aug 2020 23:10:39 -0700 (PDT) From: Bin Meng To: Rick Chen , Pragnesh Patel , U-Boot Mailing List Cc: Bin Meng Subject: [PATCH 3/6] riscv: sifive/fu540: spl: Rename soc_spl_init() Date: Sun, 2 Aug 2020 23:09:03 -0700 Message-Id: <1596434946-12630-3-git-send-email-bmeng.cn@gmail.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1596434946-12630-1-git-send-email-bmeng.cn@gmail.com> References: <1596434946-12630-1-git-send-email-bmeng.cn@gmail.com> 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.3 at phobos.denx.de X-Virus-Status: Clean From: Bin Meng spl_soc_init() seems to be a better name, as all SPL functions names start from the spl_ prefix. Signed-off-by: Bin Meng Reviewed-by: Rick Chen Reviewed-by: Pragnesh Patel Tested-by: Pragnesh Patel --- arch/riscv/cpu/fu540/spl.c | 2 +- arch/riscv/include/asm/arch-fu540/spl.h | 2 +- board/sifive/fu540/spl.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/riscv/cpu/fu540/spl.c b/arch/riscv/cpu/fu540/spl.c index a2034e9..45657b7 100644 --- a/arch/riscv/cpu/fu540/spl.c +++ b/arch/riscv/cpu/fu540/spl.c @@ -7,7 +7,7 @@ #include #include -int soc_spl_init(void) +int spl_soc_init(void) { int ret; struct udevice *dev; diff --git a/arch/riscv/include/asm/arch-fu540/spl.h b/arch/riscv/include/asm/arch-fu540/spl.h index 0c188be..4697279 100644 --- a/arch/riscv/include/asm/arch-fu540/spl.h +++ b/arch/riscv/include/asm/arch-fu540/spl.h @@ -9,6 +9,6 @@ #ifndef _SPL_SIFIVE_H #define _SPL_SIFIVE_H -int soc_spl_init(void); +int spl_soc_init(void); #endif /* _SPL_SIFIVE_H */ diff --git a/board/sifive/fu540/spl.c b/board/sifive/fu540/spl.c index 31d315d..135e118 100644 --- a/board/sifive/fu540/spl.c +++ b/board/sifive/fu540/spl.c @@ -21,7 +21,7 @@ int spl_board_init_f(void) { int ret; - ret = soc_spl_init(); + ret = spl_soc_init(); if (ret) { debug("FU540 SPL init failed: %d\n", ret); return ret;