From mboxrd@z Thu Jan 1 00:00:00 1970 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 0B211C19F2A for ; Thu, 11 Aug 2022 20:29:27 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 38B4A82A60; Thu, 11 Aug 2022 22:29:24 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.b="SMe6Q14e"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 96BFC84027; Thu, 11 Aug 2022 22:29:23 +0200 (CEST) Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) (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 5E81880E94 for ; Thu, 11 Aug 2022 22:29:20 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=pali@kernel.org Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 5B31361314; Thu, 11 Aug 2022 20:29:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 955EAC433D6; Thu, 11 Aug 2022 20:29:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1660249758; bh=4zDqYSczaDo1jhhtlr5nDDZFPZ+0AUfMH2qOCbnBQak=; h=From:To:Subject:Date:From; b=SMe6Q14ei47rq26IhRtKLiXgLn+MHP1Q2XUlKLbOCdSiXkWCuqVFSA1602X/X4bsp THEnvZAt2QDfn4jZB1vs3RJcrXDA5ozSOBQ/qDKmhtd23ZpIgHMEakOkBQ20wuOtf4 dEbpVuDYQGNC5yk4TUk+xdkkB2k15tN9vDD23UL17x6CzKKRafMwJ0mb9BCsToqzq8 5Q7DtH1VQLFuUyszcINxYllvnQhxclUCCEzDIkBtXodup1xEAnJe7asIFKazJCY14U TYeZZgcz62GR2ypktW6w/jaslmPxGV+y5dNd0+NZKe3A1tUB9Mf6gUNnsSFsU7ZKU7 zpdTo+ZXFihOg== Received: by pali.im (Postfix) id 56952C06; Thu, 11 Aug 2022 22:29:16 +0200 (CEST) From: =?UTF-8?q?Pali=20Roh=C3=A1r?= To: u-boot@lists.denx.de, Bharat Gooty , Rayagonda Kokatanur Subject: [PATCH] arm: Set default MACH_TYPE in Kconfig Date: Thu, 11 Aug 2022 22:29:03 +0200 Message-Id: <20220811202903.24886-1-pali@kernel.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 For boards which requires correct MACH_TYPE, set their correct default values directly in Kconfig. Signed-off-by: Pali Rohár --- arch/arm/Kconfig | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 9898c7d68e1b..f78726f7c1be 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -2119,6 +2119,7 @@ config SERIAL_TAG config STATIC_MACH_TYPE bool "Statically define the Machine ID number" + default y if TARGET_DS109 || TARGET_NOKIA_RX51 || TARGET_DS414 || DEFAULT_DEVICE_TREE = "sun7i-a20-icnova-swac" help When booting via ATAGs, enable this option if we know the correct machine ID number to use at compile time. Some systems will be @@ -2127,6 +2128,10 @@ config STATIC_MACH_TYPE config MACH_TYPE int "Machine ID number" depends on STATIC_MACH_TYPE + default 527 if TARGET_DS109 + default 1955 if TARGET_NOKIA_RX51 + default 3036 if TARGET_DS414 + default 4283 if DEFAULT_DEVICE_TREE = "sun7i-a20-icnova-swac" help When booting via ATAGs, the machine type must be passed as a number. For the full list see https://www.arm.linux.org.uk/developer/machines -- 2.20.1