From patchwork Wed Apr 27 08:27:12 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 1622863 X-Patchwork-Delegate: monstr@monstr.eu Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=monstr-eu.20210112.gappssmtp.com header.i=@monstr-eu.20210112.gappssmtp.com header.a=rsa-sha256 header.s=20210112 header.b=sx6/zsTr; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (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 bilbo.ozlabs.org (Postfix) with ESMTPS id 4KpBh55znpz9sBy for ; Wed, 27 Apr 2022 18:27:31 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 340EB8021F; Wed, 27 Apr 2022 10:27:22 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=xilinx.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=monstr-eu.20210112.gappssmtp.com header.i=@monstr-eu.20210112.gappssmtp.com header.b="sx6/zsTr"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 44EB783DC3; Wed, 27 Apr 2022 10:27:20 +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.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,SPF_HELO_NONE,SPF_NONE autolearn=no autolearn_force=no version=3.4.2 Received: from mail-ed1-x534.google.com (mail-ed1-x534.google.com [IPv6:2a00:1450:4864:20::534]) (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 B76728013A for ; Wed, 27 Apr 2022 10:27:17 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=xilinx.com Authentication-Results: phobos.denx.de; spf=none smtp.mailfrom=monstr@monstr.eu Received: by mail-ed1-x534.google.com with SMTP id a1so1065834edt.3 for ; Wed, 27 Apr 2022 01:27:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monstr-eu.20210112.gappssmtp.com; s=20210112; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=8JH7C3n4HFngo/sfTOyAnt0pW5Gu2vR+hJxPNoX8SXE=; b=sx6/zsTrj1ZWarH/PTEwj9ctoT4nJjqR/+8W6b3zdxqHnvjhoAzzr0i68KEyYDn443 +3G0OfGtq0v/HMS0IHIQUqCBcQdhA4PolEUbsyrRLaJrXbgg15CbHxrRI2E087i/qrr6 I3r/lZk0LVWciGFWBDjSXKGQwwA5rN9SDSKdiHLa8wSeUwUIpw70UKyxQlqZItjJnpce nkgy7oxp+PIWvzqfENyDRfuxSJoFAayipD6rWHZdI1/gYHG3R84Vgiex/EazFd6f0e56 SvvVNB33HCf9lFUyFRBjkXsNKvxiDr7gO53Tyqq5XIcp3z3qpxRGbmfVeRuergIHV4I6 1hRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=8JH7C3n4HFngo/sfTOyAnt0pW5Gu2vR+hJxPNoX8SXE=; b=ZMMzgV2FYViWrj7VO+2ocHItKv0A/hyaqJyhwVTInC24XmG+Q//ObIYrJRQivLGFE3 T8aapJOIcgmtQ1XKchsLALo63xF+WFTHn8W2+oJdOVNIjTSqpFryer4rmeeKuZxLam/S 6I0QsQqMKRQLelAt1dI7/08CUQGCv4Fh3KMtXrtO97RE6hN+4kIvSVa20XNe8YKLBsRa OHROvtVQlTp9EcebDkgGOe3aWX5iCAkmnvmH3ENwrMEZvbyI++PmVTgiKLFTtKb1s1yq 3PU45LnwhKgFi6oQnAzB4QTkf5BjXaNUf68iZ6s7OJhxb44fePS4pYxISlj+GRUcLXQt BQEA== X-Gm-Message-State: AOAM533I+7rIT0gb+SuOdvKyJmv2ZE1mgwwNC0hS3nGq6uJA2+HQ2DJA Bqz7gwx9jZIa7VNLADyLwLcgz3xFBaejLg== X-Google-Smtp-Source: ABdhPJxRrxtp5fafxQx2uajtIThL5beRSidFHXdJoQn5/vK6qpIBBQLzvBzQKTr8dG2v6rkcE0Qzuw== X-Received: by 2002:a05:6402:1cc1:b0:413:2cfb:b6ca with SMTP id ds1-20020a0564021cc100b004132cfbb6camr28191837edb.265.1651048037064; Wed, 27 Apr 2022 01:27:17 -0700 (PDT) Received: from localhost ([2a02:768:2307:40d6::f9e]) by smtp.gmail.com with ESMTPSA id u4-20020a1709060b0400b006f391c5b37csm4059627ejg.82.2022.04.27.01.27.16 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 27 Apr 2022 01:27:16 -0700 (PDT) From: Michal Simek To: u-boot@lists.denx.de, git@xilinx.com Cc: T Karthik Reddy , Ashok Reddy Soma , Jaehoon Chung , Michal Simek , Peng Fan Subject: [PATCH] mmc: zynq_sdhci: Add weak function prototype Date: Wed, 27 Apr 2022 10:27:12 +0200 Message-Id: X-Mailer: git-send-email 2.36.0 MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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.5 at phobos.denx.de X-Virus-Status: Clean From: T Karthik Reddy zynqmp_pm_is_function_supported() which checks feature support on som, which is implemented in firmware_zynqmp.c driver. As mini configuration does not use firmware driver, so create a weak function to avoid compilation error on zynqmp mini configuration. Signed-off-by: T Karthik Reddy Acked-by: Ashok Reddy Soma Signed-off-by: Michal Simek Reviewed-by: Jaehoon Chung --- drivers/mmc/zynq_sdhci.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/mmc/zynq_sdhci.c b/drivers/mmc/zynq_sdhci.c index a59d96c6bdad..e978b6798854 100644 --- a/drivers/mmc/zynq_sdhci.c +++ b/drivers/mmc/zynq_sdhci.c @@ -79,6 +79,11 @@ __weak int xilinx_pm_request(u32 api_id, u32 arg0, u32 arg1, u32 arg2, return 0; } +__weak int zynqmp_pm_is_function_supported(const u32 api_id, const u32 id) +{ + return 1; +} + #if defined(CONFIG_ARCH_ZYNQMP) || defined(CONFIG_ARCH_VERSAL) /* Default settings for ZynqMP Clock Phases */ static const u32 zynqmp_iclk_phases[] = {0, 63, 63, 0, 63, 0,