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 80B1AC43334 for ; Thu, 7 Jul 2022 12:27:07 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 159138455C; Thu, 7 Jul 2022 14:26:41 +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="OmKsktE7"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 069B98455E; Thu, 7 Jul 2022 13:11:15 +0200 (CEST) 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 894128455E for ; Thu, 7 Jul 2022 13:11:12 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=microchip.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=Durai.ManickamKR@microchip.com DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1657192272; x=1688728272; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=567UUB1z0zoJNUQOr5laqiwJH8qYz5g5CPIGkSiUZ88=; b=OmKsktE78uKC1tbxSmX/n7la6t/lIgp+fDxwviVljX0GeOA3GJIlWdg9 rcZou30PFrT32Cblv4oEmb5epIdLqOUH5PKkNcKJui+SDQ9zmJWUrqfIX B8wyctlkXxFB4PIgWGpzabJGWWByMvilDdZhpAK6N07hyr5yjPJ3QUB/N lWBDfr1vgnA3EKoOh097n+wbFBGnm8Fu320JYGVP99GLeI9o0NHPcsJit bYS5BrpxMkRbC3gaaEguN9PSlwHAouSYll1e5EkG+/nRkypeycs+T3B33 LXkEHvpqtB2NNfk06Nu1bPc3VcUVwjs4v4OcqH4qLUl3FLabAxauiWnLd w==; X-IronPort-AV: E=Sophos;i="5.92,252,1650956400"; d="scan'208";a="166801711" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa2.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 07 Jul 2022 04:11:11 -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; Thu, 7 Jul 2022 04:11:08 -0700 Received: from che-lt-i66125lx.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; Thu, 7 Jul 2022 04:11:06 -0700 From: Durai Manickam KR To: CC: , Durai Manickam KR Subject: [PATCH 2/3] board: sam9x60_curiosity: add pda detect call at init time Date: Thu, 7 Jul 2022 16:40:55 +0530 Message-ID: <20220707111056.186769-3-durai.manickamkr@microchip.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220707111056.186769-1-durai.manickamkr@microchip.com> References: <20220707111056.186769-1-durai.manickamkr@microchip.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Mailman-Approved-At: Thu, 07 Jul 2022 14:26:36 +0200 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.6 at phobos.denx.de X-Virus-Status: Clean Call the PDA detection mechanism at boot time so that we can have the pda environment variable ready for use. Signed-off-by: Durai Manickam KR --- board/atmel/sam9x60_curiosity/sam9x60_curiosity.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/board/atmel/sam9x60_curiosity/sam9x60_curiosity.c b/board/atmel/sam9x60_curiosity/sam9x60_curiosity.c index d8f32c93b5..8cf67d148d 100644 --- a/board/atmel/sam9x60_curiosity/sam9x60_curiosity.c +++ b/board/atmel/sam9x60_curiosity/sam9x60_curiosity.c @@ -19,6 +19,8 @@ #include #include +extern void at91_pda_detect(void); + DECLARE_GLOBAL_DATA_PTR; void at91_prepare_cpu_var(void); @@ -27,6 +29,8 @@ int board_late_init(void) { at91_prepare_cpu_var(); + at91_pda_detect(); + return 0; } -- 2.25.1