Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2AECBC433F5 for ; Mon, 13 Dec 2021 05:00:37 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 975AE83759; Mon, 13 Dec 2021 06:00:35 +0100 (CET) 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="gqzmqKkx"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 7AA9183760; Mon, 13 Dec 2021 06:00:33 +0100 (CET) Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) (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 5B6AB82C7D for ; Mon, 13 Dec 2021 06:00:28 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=microchip.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=Hari.PrasathGE@microchip.com DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1639371628; x=1670907628; h=from:to:cc:subject:date:message-id:mime-version; bh=jpH0L1AQoqXa1+KQLbLSaGjItpS3w2w1WQtlUP3pjGg=; b=gqzmqKkxmBJ7Uhn6khxTxwwJPZrfO0xaufpR+/FNWW0eFmoyvDP6T0HZ FwFP/NOZNfCym+ppIqNenqyR8C3nkPXuWeqwyIPEPDXH1PcWGx60pg9LF uJFjyhY9nbWXckiA0Zk5+tv3LzptLmD0wrcGZAiEio1CBXVvvUZJMACn5 up6s0ZATS+a8DcBENt5nUQhjcjG3/W81FpvKLtonPdaBcRRbIgVSKYyp7 zggT7qWjogom2Re4WjujUPB3BdNig3tdVKy4GIR6avqpp+s/8w5ZPSRKq /GsOGv3wlYyJPQLmWSi8q6QujeqdLjiH+8T6Ow58k7Rw/R0QmogFIboFi A==; IronPort-SDR: cl6cmBBP2f4ruRjTGlvw6M7rres81hSsmt2lCqjTZazN2j+bcF1N6YsQBcymG/lrC4qXICEmGN rLnru99UTYXZUEaI3e3iyO7M/LRVoEMjpKG9th6J8VofmTIVcAOlZrlqTgFBu5WIBUCEP5KfA8 N+CtU7jjHPD2/QmDx34ybiUetUhrWRdhUtW3qI8tlQZ0NcMQSSltCZuwU+z6NPI4Rumbz5EN+n ZMi5ktmW7Mv6+5/x+hKME+7AxjjqcjSBs2+SfIC6QFuVLyFQJ6vzAlHj3OCytu+5cm1tEOpGie dp8DUqqQhkwof072fl2HGqqb X-IronPort-AV: E=Sophos;i="5.88,201,1635231600"; d="scan'208";a="79314801" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa6.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 12 Dec 2021 22:00:10 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.85.144) 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.2375.17; Sun, 12 Dec 2021 22:00:07 -0700 Received: from che-lt-i63539u.microchip.com (10.10.115.15) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server id 15.1.2375.17 via Frontend Transport; Sun, 12 Dec 2021 22:00:05 -0700 From: Hari Prasath To: CC: , , Subject: [PATCH] ARM: mach-at91: Add compile time option to choose proper timer Date: Mon, 13 Dec 2021 10:30:03 +0530 Message-ID: <20211213050003.16109-1-Hari.PrasathGE@microchip.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.38 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 New SoC's of AT91 family with ARM-9 core includes a regular timer and a 64-bit timer.This patch adds a compile time option to the Makefile such that the old timer driver is chosen and compiled as default if none of timer configuration options are explicitly defined in the board configs. Signed-off-by: Hari Prasath --- arch/arm/mach-at91/arm926ejs/Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-at91/arm926ejs/Makefile b/arch/arm/mach-at91/arm926ejs/Makefile index 8de6a2f966..c1904d535b 100644 --- a/arch/arm/mach-at91/arm926ejs/Makefile +++ b/arch/arm/mach-at91/arm926ejs/Makefile @@ -20,8 +20,11 @@ obj-$(CONFIG_AT91_LED) += led.o obj-y += clock.o obj-y += cpu.o obj-y += reset.o -ifeq ($(CONFIG_ATMEL_PIT_TIMER),) -obj-y += timer.o +ifneq ($(CONFIG_ATMEL_PIT_TIMER),y) +ifneq ($(CONFIG_MCHP_PIT64B_TIMER),y) +# old non-DM timer driver +obj-y += timer.o +endif endif ifndef CONFIG_SKIP_LOWLEVEL_INIT -- 2.17.1