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 11154C433F5 for ; Thu, 21 Apr 2022 03:32:53 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 6012183EB3; Thu, 21 Apr 2022 05:32:51 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=163.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=163.com header.i=@163.com header.b="Lk041EUN"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id BB2FC83EBD; Thu, 21 Apr 2022 05:32:49 +0200 (CEST) Received: from m12-15.163.com (m12-15.163.com [220.181.12.15]) by phobos.denx.de (Postfix) with ESMTP id 6035B83EAA for ; Thu, 21 Apr 2022 05:32:46 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=163.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=qianfanguijin@163.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id:MIME-Version; bh=PriQ2 uWdLmqPwD9hnD+Om6XOI5I2t+fIk2ZaVkNJRX8=; b=Lk041EUNRUicezGiVrXJL SbZJHTcaFRDGBqvXKDkIXBUhR73hKEysonfWFco3UYoKsmfUKUdzgqGVjWqUTnum /LW/bhOs+3WPdmkgzM8CypmPv7Txf6kKoX17/UeIyKrqLWQgCy01Fkb2wVKfPbKh nqMJ+6QP22YCi+lIEvBdwg= Received: from DESKTOP-B1R4FVG.localdomain (unknown [218.201.129.19]) by smtp11 (Coremail) with SMTP id D8CowAAHKrw80GBisuLFCA--.795S2; Thu, 21 Apr 2022 11:32:14 +0800 (CST) From: qianfanguijin@163.com To: u-boot@lists.denx.de Cc: Jagan Teki , Andre Przywara , qianfan Zhao Subject: [PATCH v1] sunxi: Make SYS_VENDOR, SYS_BOARD, SYS_CONFIG_NAME configurable Date: Thu, 21 Apr 2022 11:32:11 +0800 Message-Id: <20220421033211.22469-1-qianfanguijin@163.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: D8CowAAHKrw80GBisuLFCA--.795S2 X-Coremail-Antispam: 1Uf129KBjvJXoW7AF4xZF1rZr47uF4rXFykuFg_yoW8XFykpF nFyw1rGw1IgrnxKa13Zr97WrZYya1DGFW5CrW7Cw10qF98C3409rZ5KwnrArn8Ww4kJws5 Zr93u3Wagw1kXa7anT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x0zEYiiNUUUUU= X-Originating-IP: [218.201.129.19] X-CM-SenderInfo: htld0w5dqj3xxmlqqiywtou0bp/xtbCqRnp7V0De5XLKQACsk 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.5 at phobos.denx.de X-Virus-Status: Clean From: qianfan Zhao The board is not configurable if use sunxi soc. Add Kconfig items and make custom board available. Signed-off-by: qianfan Zhao --- arch/arm/mach-sunxi/Kconfig | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/arch/arm/mach-sunxi/Kconfig b/arch/arm/mach-sunxi/Kconfig index 2c18cf02d1..03460870db 100644 --- a/arch/arm/mach-sunxi/Kconfig +++ b/arch/arm/mach-sunxi/Kconfig @@ -598,6 +598,7 @@ config SYS_CLK_FREQ default 1008000000 if MACH_SUN50I_H616 config SYS_CONFIG_NAME + string "Board configuration name" default "sun4i" if MACH_SUN4I default "sun5i" if MACH_SUN5I default "sun6i" if MACH_SUN6I @@ -607,9 +608,25 @@ config SYS_CONFIG_NAME default "sun50i" if MACH_SUN50I default "sun50i" if MACH_SUN50I_H6 default "sun50i" if MACH_SUN50I_H616 + help + This option contains information about board configuration name. + Based on this option include/configs/.h header + will be used for board configuration. config SYS_BOARD + string "Board name" default "sunxi" + help + This option contains information about board name. + Based on this option board// will + be used. + +config SYS_VENDOR + string "Vendor name" + help + This option contains information about board name. + Based on this option board// will + be used. config SYS_SOC default "sunxi" -- 2.25.1