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 5781AC433EF for ; Thu, 30 Dec 2021 16:48:53 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 19AF681277; Thu, 30 Dec 2021 17:48:46 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com 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=gmail.com header.i=@gmail.com header.b="D2AxY4a9"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 8D19080FDD; Thu, 30 Dec 2021 17:48:39 +0100 (CET) Received: from mail-ed1-x536.google.com (mail-ed1-x536.google.com [IPv6:2a00:1450:4864:20::536]) (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 6642A811BB for ; Thu, 30 Dec 2021 17:48:35 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=jbx6244@gmail.com Received: by mail-ed1-x536.google.com with SMTP id l5so65527505edj.13 for ; Thu, 30 Dec 2021 08:48:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=thXel/vBJyjNGUDi5N70zmLzfeuT6+xBxfEkXXLahUI=; b=D2AxY4a9KGUaDNGMOxWeFgiEWI1JFZGPf36qFzoATgMlO4b7rwG8n4V+DG6aj1JaUx zGlNc/JBK0QjXoBJZviExc7A/33iDugI90h0RILdUqS27+er9ME0EBrVoAor45Vhl0z9 EBAuRvW2ow5r9jzVxYEoGtvTvRJGnYIro8Jg+8MI59gNS4guRJNoQzAHgakO/LeWZ8qc MdDJGZXJndlTi9mfrGOqbJO94VhClZON3WVmowvZIg/FQ2rmdoD/KZ0LBNwAhINiO9tQ GBJQvTZpbLiMRaQkNcNxxb/i+G/A0dnI2Rs5ZhOuL+BgVs0d/Vznv71RGUK4T73xMVFm 8Ucw== 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=thXel/vBJyjNGUDi5N70zmLzfeuT6+xBxfEkXXLahUI=; b=KmjHrKb/m7R47nRsBYjr2tcHr0U7saDpORTJbfLu33kqLxEhX72rH02KQTTgZJdcdg JyvvrQNhXuMPj5B4xtvGXpg7T0sS15fSTEoIuEJIhz4bWsNNhYldwQM7ZVxcQJPDPhW8 XjzyEzndIpRRIXvj+qX7l3T4qKGIQ8rb7e+PcEyUZ6A6Sf6kpsSZODlBnRmE9cpcOnVF ZAqNQpDxS8/pkpnzsaGfBJUU7X0pH6nBA0CvPRrgfvkZoiwfj83vgfdu10+Lp7L+NA5n F0BlLsnVUFAwkqlWt8v7YrW5wCjyaf/Izy9Xr8WkBvvJQ18uyCz8TQYKd8PukggXnpKJ zg8w== X-Gm-Message-State: AOAM5306QixVfRbULF6s6YvzOo34TyYueTHCX2wuiHWQoFjgU3bdv2eP qaF192Z0hY4SxJZh/jfiTsI= X-Google-Smtp-Source: ABdhPJxhNt/A8KYilJ5NhqWMnRGwHeWGWkPwKbcYB6XDgiiUMmSn1tSbMJY7Dmt0+rI3ZZLuK+F81w== X-Received: by 2002:a05:6402:1c08:: with SMTP id ck8mr31120271edb.32.1640882915057; Thu, 30 Dec 2021 08:48:35 -0800 (PST) Received: from debian.home (81-204-249-205.fixed.kpn.net. [81.204.249.205]) by smtp.gmail.com with ESMTPSA id f27sm7804046ejc.137.2021.12.30.08.48.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Dec 2021 08:48:34 -0800 (PST) From: Johan Jonker To: kever.yang@rock-chips.com Cc: sjg@chromium.org, philipp.tomsich@vrull.eu, u-boot@lists.denx.de Subject: [PATCH v3 2/6] rockchip: move CONFIG_SYS_ARCH_TIMER to Kconfig Date: Thu, 30 Dec 2021 17:48:21 +0100 Message-Id: <20211230164825.6489-2-jbx6244@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20211230164825.6489-1-jbx6244@gmail.com> References: <20211230164825.6489-1-jbx6244@gmail.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 The config item SYS_ARCH_TIMER is default y if ARM64. Move CONFIG_SYS_ARCH_TIMER to Kconfig for the Rockchip CPU_V7A SoCs that have ARM Generic Timer support. Signed-off-by: Johan Jonker --- arch/arm/mach-rockchip/rk3036/Kconfig | 3 +++ arch/arm/mach-rockchip/rk3128/Kconfig | 3 +++ arch/arm/mach-rockchip/rk322x/Kconfig | 3 +++ arch/arm/mach-rockchip/rk3288/Kconfig | 3 +++ include/configs/rk3036_common.h | 1 - include/configs/rk3128_common.h | 1 - include/configs/rk322x_common.h | 1 - include/configs/rk3288_common.h | 1 - 8 files changed, 12 insertions(+), 4 deletions(-) diff --git a/arch/arm/mach-rockchip/rk3036/Kconfig b/arch/arm/mach-rockchip/rk3036/Kconfig index 111531be..99754138 100644 --- a/arch/arm/mach-rockchip/rk3036/Kconfig +++ b/arch/arm/mach-rockchip/rk3036/Kconfig @@ -19,6 +19,9 @@ config ROCKCHIP_BOOT_MODE_REG config ROCKCHIP_STIMER_BASE default 0x200440a0 +config SYS_ARCH_TIMER + default y + config SYS_SOC default "rk3036" diff --git a/arch/arm/mach-rockchip/rk3128/Kconfig b/arch/arm/mach-rockchip/rk3128/Kconfig index 9cc494eb..f6f7de1c 100644 --- a/arch/arm/mach-rockchip/rk3128/Kconfig +++ b/arch/arm/mach-rockchip/rk3128/Kconfig @@ -19,6 +19,9 @@ config ROCKCHIP_BOOT_MODE_REG config ROCKCHIP_STIMER_BASE default 0x200440a0 +config SYS_ARCH_TIMER + default y + config SYS_SOC default "rk3128" diff --git a/arch/arm/mach-rockchip/rk322x/Kconfig b/arch/arm/mach-rockchip/rk322x/Kconfig index 058f848d..7d74b2cc 100644 --- a/arch/arm/mach-rockchip/rk322x/Kconfig +++ b/arch/arm/mach-rockchip/rk322x/Kconfig @@ -11,6 +11,9 @@ config ROCKCHIP_BOOT_MODE_REG config ROCKCHIP_STIMER_BASE default 0x110d0020 +config SYS_ARCH_TIMER + default y + config SYS_SOC default "rk322x" diff --git a/arch/arm/mach-rockchip/rk3288/Kconfig b/arch/arm/mach-rockchip/rk3288/Kconfig index dd8c7826..35d471d5 100644 --- a/arch/arm/mach-rockchip/rk3288/Kconfig +++ b/arch/arm/mach-rockchip/rk3288/Kconfig @@ -151,6 +151,9 @@ config ROCKCHIP_BOOT_MODE_REG config ROCKCHIP_STIMER_BASE default 0xff810020 +config SYS_ARCH_TIMER + default y + config SYS_SOC default "rk3288" diff --git a/include/configs/rk3036_common.h b/include/configs/rk3036_common.h index 10cba727..5905518e 100644 --- a/include/configs/rk3036_common.h +++ b/include/configs/rk3036_common.h @@ -11,7 +11,6 @@ #define CONFIG_SYS_CBSIZE 1024 #define COUNTER_FREQUENCY 24000000 -#define CONFIG_SYS_ARCH_TIMER #define CONFIG_SYS_HZ_CLOCK 24000000 #define CONFIG_SYS_INIT_SP_ADDR 0x60100000 diff --git a/include/configs/rk3128_common.h b/include/configs/rk3128_common.h index 71f66d57..d77a7d7b 100644 --- a/include/configs/rk3128_common.h +++ b/include/configs/rk3128_common.h @@ -12,7 +12,6 @@ #define CONFIG_SYS_CBSIZE 1024 #define COUNTER_FREQUENCY 24000000 -#define CONFIG_SYS_ARCH_TIMER #define CONFIG_SYS_HZ_CLOCK 24000000 #define CONFIG_IRAM_BASE 0x10080000 diff --git a/include/configs/rk322x_common.h b/include/configs/rk322x_common.h index aff24018..3258820f 100644 --- a/include/configs/rk322x_common.h +++ b/include/configs/rk322x_common.h @@ -12,7 +12,6 @@ #define CONFIG_SYS_BOOTM_LEN (64 << 20) /* 64M */ #define COUNTER_FREQUENCY 24000000 -#define CONFIG_SYS_ARCH_TIMER #define CONFIG_SYS_HZ_CLOCK 24000000 #define CONFIG_SYS_INIT_SP_ADDR 0x61100000 diff --git a/include/configs/rk3288_common.h b/include/configs/rk3288_common.h index c781bc7e..e2e0f70a 100644 --- a/include/configs/rk3288_common.h +++ b/include/configs/rk3288_common.h @@ -14,7 +14,6 @@ #define CONFIG_SYS_CBSIZE 1024 #define COUNTER_FREQUENCY 24000000 -#define CONFIG_SYS_ARCH_TIMER #define CONFIG_SYS_HZ_CLOCK 24000000 #ifdef CONFIG_SPL_ROCKCHIP_BACK_TO_BROM -- 2.20.1