From patchwork Thu Aug 20 13:11:52 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eugen Hristev X-Patchwork-Id: 1348370 X-Patchwork-Delegate: eugen.hristev@microchip.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=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=quarantine dis=none) header.from=microchip.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=microchip.com header.i=@microchip.com header.a=rsa-sha256 header.s=mchp header.b=ZcW26i+I; dkim-atps=neutral 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)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4BXQ6V6k0dz9sR4 for ; Thu, 20 Aug 2020 23:12:18 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id F3CF581B45; Thu, 20 Aug 2020 15:12:15 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=quarantine dis=none) header.from=microchip.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=microchip.com header.i=@microchip.com header.b="ZcW26i+I"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 986EF822E5; Thu, 20 Aug 2020 15:12:14 +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,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from esa2.microchip.iphmx.com (esa2.microchip.iphmx.com [68.232.149.84]) (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 0E3A3812FE for ; Thu, 20 Aug 2020 15:12:05 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=microchip.com Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=Eugen.Hristev@microchip.com DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1597929126; x=1629465126; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=6+RyptLVPtkPu7DpihrmwVVALr00er5qjcUPUf6f+qM=; b=ZcW26i+Iw6OuapgGyw7kM2Pzn15Nu7DixZtuphnrvTGvSthyP3Qzi/bs ygWM0mcXSbj0mXlwviKxbNbdbVamD5gYUYlOU9mXvr/sdtwDfPvompZkh coVqX2aYiakXS3CvFEmv9xWpL2SRkyhX9+yVOTiEXEjEgT0rU4J0PsDdN sAQ+bhOm0BzPl71GJk7WQpBiRo9HnPv72TzpkZRVpskUw7OsY7obkg1HD GcAYxxXbi4ewYoSq9SS0KaCkGs5DaVypTNzFYf8ypbWDL7Onv4aqwDaDY KEhm+Ga4oIOlXI7dq2FgCDImbJC/+xWXZRioSd10i5Jhxp2pwkjSJzevn Q==; IronPort-SDR: p01wjubKxrLPjFZ9Wy9vjThEMwFlxvyyycFR/TlgqzAVFG3e6THh3z6L3OMebddI2PgyIsrP8W oYv4Duk3vdEIywLxa+lJlIdn7mxjLcOaJDxvwtWl5PZipsXH7CmTv6U/UPqi1AcUCytNPCN6j2 lCPBzYLYzSbjr/jryg5u8iEFP9lPXIAGwYJu/1nVSbQQFBF5K/8sJils/Gk46Hsi2L2BM3/Smv nRVRRrlkzP/iD/drkyIw8BWZoLD0PLf1SOW8fu2GoU8k3rF7+0IOFHhOKcxq+eeoyMt4mQ4t2I afM= X-IronPort-AV: E=Sophos;i="5.76,332,1592895600"; d="scan'208";a="86316123" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa2.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 20 Aug 2020 06:12:04 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1979.3; Thu, 20 Aug 2020 06:12:01 -0700 Received: from ROB-ULT-M18282.microchip.com (10.10.115.15) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server id 15.1.1979.3 via Frontend Transport; Thu, 20 Aug 2020 06:12:00 -0700 From: Eugen Hristev To: CC: , Eugen Hristev Subject: [PATCH] ARM: at91: common: guard ATMEL_PIT code by ifdef Date: Thu, 20 Aug 2020 16:11:52 +0300 Message-ID: <20200820131152.207427-1-eugen.hristev@microchip.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 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 Atmel PIT timer is not available for next products that have another timer hardware block. To be able to use the common at91 code, guard the code that uses PIT by ifdefs. Signed-off-by: Eugen Hristev --- arch/arm/mach-at91/armv7/cpu.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/mach-at91/armv7/cpu.c b/arch/arm/mach-at91/armv7/cpu.c index a8f4356ce9..8b7355042b 100644 --- a/arch/arm/mach-at91/armv7/cpu.c +++ b/arch/arm/mach-at91/armv7/cpu.c @@ -29,6 +29,7 @@ int arch_cpu_init(void) void arch_preboot_os(void) { +#if (IS_ENABLED(CONFIG_ATMEL_PIT_TIMER)) ulong cpiv; at91_pit_t *pit = (at91_pit_t *)ATMEL_BASE_PIT; @@ -40,6 +41,7 @@ void arch_preboot_os(void) * without waiting for wrapping back to 0 */ writel(cpiv + 0x1000, &pit->mr); +#endif } #if defined(CONFIG_DISPLAY_CPUINFO)