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 31806C433EF for ; Fri, 17 Dec 2021 23:10:14 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 9FC30837DA; Sat, 18 Dec 2021 00:09:55 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id 08EEB837BD; Sat, 18 Dec 2021 00:09:07 +0100 (CET) Received: from mail-qt1-f175.google.com (mail-qt1-f175.google.com [209.85.160.175]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 5EA50837EF for ; Sat, 18 Dec 2021 00:08:55 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=tom.rini@gmail.com Received: by mail-qt1-f175.google.com with SMTP id n15so4300157qta.0 for ; Fri, 17 Dec 2021 15:08:55 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=O4+ZisIUeopzTWu268Ui7Z3BPmfjaNXc3q7XlmebROo=; b=2gOzmeLecjpKhlRFitgL2jP8mSp22NFdVX8rbdMHzgAXecXvBmWqHDR3xIK9wIGGyi Xn0Y0W02AkZ/O067zur3FT82MTVSwUYxWqZNNdWKhHvaOB87xOrBSTwMZCtXrE0dduSu 6IP1rhuuF8jmcZ+UgHpShsE28OkyFWUp4pzsH7a3+LGiKDcCtqFym8MWB86vlOqoopDC PaiNA5h7pO3tztKR1ViVlbGN38zmZI3xPGyCK72pKhkTuh2i/TKByQkazZHR0BPdC1do P371ujir/hzunwqZ2dBEN5HRvqOjx+SQ1EbEZunaKuVo82oqbTTlKW4LahOOWwtb16A5 fVdg== X-Gm-Message-State: AOAM530gJJRyliFQNgCnfZLb0Lqe9d5NnPA2sh+k2azSRPTIABzmMuOT f5guJgn5HvfvWv8GJDyQvwl/cUCg+g== X-Google-Smtp-Source: ABdhPJzKHx/w2I1Wx2KQIO9A7wreLAU4T8lmFjF799n1FaKU+A+Q8kJsDVjSbir3DIWLKqr5q5M6cQ== X-Received: by 2002:ac8:59c7:: with SMTP id f7mr4492549qtf.605.1639782533833; Fri, 17 Dec 2021 15:08:53 -0800 (PST) Received: from bill-the-cat.lan (2603-6081-7b01-cbda-48ff-efe0-fc54-083a.res6.spectrum.com. [2603:6081:7b01:cbda:48ff:efe0:fc54:83a]) by smtp.gmail.com with ESMTPSA id g14sm5661439qko.55.2021.12.17.15.08.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Dec 2021 15:08:53 -0800 (PST) From: Tom Rini To: u-boot@lists.denx.de Cc: Michal Simek Subject: [PATCH 07/12] Convert CONFIG_CPU_FREQ_HZ to Kconfig Date: Fri, 17 Dec 2021 18:08:42 -0500 Message-Id: <20211217230847.1012378-7-trini@konsulko.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211217230847.1012378-1-trini@konsulko.com> References: <20211217230847.1012378-1-trini@konsulko.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 This converts the following to Kconfig: CONFIG_CPU_FREQ_HZ Cc: Michal Simek Signed-off-by: Tom Rini --- arch/arm/mach-zynqmp-r5/Kconfig | 6 ++++++ configs/xilinx_zynqmp_r5_defconfig | 1 + include/configs/xilinx_zynqmp_r5.h | 3 --- include/configs/zynq-common.h | 5 ----- 4 files changed, 7 insertions(+), 8 deletions(-) diff --git a/arch/arm/mach-zynqmp-r5/Kconfig b/arch/arm/mach-zynqmp-r5/Kconfig index 5e0175413395..f14514b3c7c1 100644 --- a/arch/arm/mach-zynqmp-r5/Kconfig +++ b/arch/arm/mach-zynqmp-r5/Kconfig @@ -21,6 +21,12 @@ config SYS_CONFIG_NAME Based on this option include/configs/.h header will be used for board configuration. +config CPU_FREQ_HZ + int "CPU frequency" + default 800000000 + help + The value, in Hz, that the CPU clock is running at. + config SYS_MALLOC_F_LEN default 0x600 diff --git a/configs/xilinx_zynqmp_r5_defconfig b/configs/xilinx_zynqmp_r5_defconfig index a9c3c4a03e81..98f46cf0205a 100644 --- a/configs/xilinx_zynqmp_r5_defconfig +++ b/configs/xilinx_zynqmp_r5_defconfig @@ -9,6 +9,7 @@ CONFIG_ENV_SIZE=0x20000 CONFIG_DEFAULT_DEVICE_TREE="zynqmp-r5" CONFIG_DEBUG_UART_BASE=0xff010000 CONFIG_DEBUG_UART_CLOCK=100000000 +CONFIG_CPU_FREQ_HZ=500000000 CONFIG_DEBUG_UART=y CONFIG_SYS_LOAD_ADDR=0x0 CONFIG_BOOTSTAGE=y diff --git a/include/configs/xilinx_zynqmp_r5.h b/include/configs/xilinx_zynqmp_r5.h index 6d5b81e05e16..3ec99e062df5 100644 --- a/include/configs/xilinx_zynqmp_r5.h +++ b/include/configs/xilinx_zynqmp_r5.h @@ -8,9 +8,6 @@ #define CONFIG_EXTRA_ENV_SETTINGS -/* CPU clock */ -#define CONFIG_CPU_FREQ_HZ 500000000 - /* Serial drivers */ /* The following table includes the supported baudrates */ #define CONFIG_SYS_BAUDRATE_TABLE \ diff --git a/include/configs/zynq-common.h b/include/configs/zynq-common.h index 8f8a9c7479c3..88c6490d81cd 100644 --- a/include/configs/zynq-common.h +++ b/include/configs/zynq-common.h @@ -9,11 +9,6 @@ #ifndef __CONFIG_ZYNQ_COMMON_H #define __CONFIG_ZYNQ_COMMON_H -/* CPU clock */ -#ifndef CONFIG_CPU_FREQ_HZ -# define CONFIG_CPU_FREQ_HZ 800000000 -#endif - #define CONFIG_REMAKE_ELF /* Cache options */ -- 2.25.1