From patchwork Tue Oct 20 21:05:10 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kevin Hilman X-Patchwork-Id: 11847893 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0F375C4363A for ; Tue, 20 Oct 2020 21:06:38 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 53B2C22283 for ; Tue, 20 Oct 2020 21:06:37 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="i8upA8on"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=baylibre-com.20150623.gappssmtp.com header.i=@baylibre-com.20150623.gappssmtp.com header.b="mNmo5w/r" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 53B2C22283 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=Ldek1YEuRtoteda6SMrX5A8ChsoKETgrnKOXpm3Lis4=; b=i8upA8onznIZYRBYtrtuOxlmQB mMilFxioimLacjNKtNJJaDsZkoSZLU+XVCt/aChO8kHxjvmiPVIuMTnHlFPdUAHWJco/D8fx7j+JX H+FIe5VsAurI9pcFzlauadEQ2L2M0ZWjE2Aasy4H/CC6wPf0M8crsuXHq7eaqlf3NwBZhF381L4rJ L2OdA0vTHo/tJqL/vYUr80CtBuavY5akuNEVQicrUCH+FnY9REGPl/0XgznOYcDp9IoKpOth3rHME tIcx6H/8vdnnusRYCo+BL9kSFyLYapnvv0lXhkTWEo1kmKpSJZXCdeGWQNMOqd6vcZ8JusXnWrYpj 8+lcea1w==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kUyop-0000K7-N3; Tue, 20 Oct 2020 21:05:19 +0000 Received: from mail-pf1-x444.google.com ([2607:f8b0:4864:20::444]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kUyol-0000I6-0N for linux-arm-kernel@lists.infradead.org; Tue, 20 Oct 2020 21:05:16 +0000 Received: by mail-pf1-x444.google.com with SMTP id c20so139091pfr.8 for ; Tue, 20 Oct 2020 14:05:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=KXVypqIvWnOm3B7Hxv3T8P9PLe8J8qEwDDYcpNWBJmI=; b=mNmo5w/rhI4+sCLabieJMsk2bJo93p4+np03ewIAlGzSRYgfdOUl0RtWtyypTrka4i UsEt+XxPuMD+Y7OpZoEXjpXV8ZPhkCrDd80mS3bQI4u4vrXTvDUlknPaEg2uGQoyHTJH ZfY7B1mXby5TgNI7/tDTcufkkMpWv06v9SRgdzFzIJwKQLKD+Q57ynnPMCNfkfzJcA1j GtiVyLNdCgO91hongi2Fcrjbv61wf8T7Zt5m6nL7YY5pPj58L3vNg2HoFl7XQloSMxw+ xpV0AiEMkOn5Fqgp/OX7/hWrB0SZM362D5rIZ8EdstZMMZpH2tTxIt4VO13udbLxRjum vt9w== 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=KXVypqIvWnOm3B7Hxv3T8P9PLe8J8qEwDDYcpNWBJmI=; b=Kq8N4YQLa3Nn+/QH79zV1iodU6vGmPNjvxnNYrcv09lL+THJr9lhiNRwPTfLAqZc5x YoPEQDgiLquaYWU7UBN8/A/NAZ7npIWMwb4LxO9H5bXwPExrZ+rFfuntQCR7vo/0a4Oi OHCD/Cr3+i9xliV3BvRZjDsEI4AtLxOe6oIsf2egseX+ipVvgogOXTRsDCIE6WutRCn0 ZE3/wlnkN4qSlm8nT1DA4Mtq/TWd6YdtOV5kedaTlx08BWNBseFns/qxPbXSdL1tkf9Z F15D/v2J8ehyaA66NrZimtTizGbRd8k4DVjR4MYbe9DXfjHPizvHEeM/R91uxQL9M3rw tjGQ== X-Gm-Message-State: AOAM531jiGVTfZYibsc7yAfOFOQQ6xxPTjb3SWD19TOHQGJRBEBmSwtq BnAFtzY0BRYGhnsWomXqo7plmw== X-Google-Smtp-Source: ABdhPJzovJFB6MxkbHYZQDR/ACXhNqvZVPpvDodify8tAX9jKGWkQGjvmPDNaBMWJcdswgtJyrhtug== X-Received: by 2002:a63:fb50:: with SMTP id w16mr189536pgj.202.1603227912486; Tue, 20 Oct 2020 14:05:12 -0700 (PDT) Received: from localhost (c-71-197-186-152.hsd1.wa.comcast.net. [71.197.186.152]) by smtp.gmail.com with ESMTPSA id 20sm3036811pfh.219.2020.10.20.14.05.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Oct 2020 14:05:11 -0700 (PDT) From: Kevin Hilman To: linux-amlogic@lists.infradead.org Subject: [PATCH v2 1/2] soc: amlogic: socinfo: build for specific arch Date: Tue, 20 Oct 2020 14:05:10 -0700 Message-Id: <20201020210511.20184-1-khilman@baylibre.com> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201020_170515_098900_F41A6F84 X-CRM114-Status: GOOD ( 13.91 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Martin Blumenstingl , linux-arm-kernel@lists.infradead.org, Jerome Brunet Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The MX driver only supports 32-bit ARM SoCs and the GX driver only supports 64-bit SoCs. Only build for the right architecture. Reviewed-by: Jerome Brunet Reviewed-by: Martin Blumenstingl Signed-off-by: Kevin Hilman --- drivers/soc/amlogic/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/soc/amlogic/Kconfig b/drivers/soc/amlogic/Kconfig index 321c5e26a268..08a27d9cbc7f 100644 --- a/drivers/soc/amlogic/Kconfig +++ b/drivers/soc/amlogic/Kconfig @@ -19,7 +19,7 @@ config MESON_CLK_MEASURE config MESON_GX_SOCINFO bool "Amlogic Meson GX SoC Information driver" - depends on ARCH_MESON || COMPILE_TEST + depends on (ARM64 && ARCH_MESON) || COMPILE_TEST default ARCH_MESON select SOC_BUS help @@ -63,7 +63,7 @@ config MESON_SECURE_PM_DOMAINS config MESON_MX_SOCINFO bool "Amlogic Meson MX SoC Information driver" - depends on ARCH_MESON || COMPILE_TEST + depends on (ARM && ARCH_MESON) || COMPILE_TEST default ARCH_MESON select SOC_BUS help