From patchwork Tue Mar 27 09:28:56 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kever Yang X-Patchwork-Id: 891442 X-Patchwork-Delegate: philipp.tomsich@theobroma-systems.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=rock-chips.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="SUSdwIZ8"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 409Qkq1QKCz9s1P for ; Tue, 27 Mar 2018 20:31:47 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id E2245C22006; Tue, 27 Mar 2018 09:30:32 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H2, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 06B7EC21F80; Tue, 27 Mar 2018 09:30:17 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 6CD6CC21F9B; Tue, 27 Mar 2018 09:29:55 +0000 (UTC) Received: from mail-pf0-f196.google.com (mail-pf0-f196.google.com [209.85.192.196]) by lists.denx.de (Postfix) with ESMTPS id 76984C21F80 for ; Tue, 27 Mar 2018 09:29:51 +0000 (UTC) Received: by mail-pf0-f196.google.com with SMTP id g14so2116530pfh.3 for ; Tue, 27 Mar 2018 02:29:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=eMkZO4ByXVC9yEnA8EwkUaY0C2+b9KOrn2l9V51ZlEE=; b=SUSdwIZ8VdL99BigDxI3Nd9HZCfD6c8b/jj4P/faUacIuvV/+8eVhuYDzvsGxSoxqz YmvJO//rF6M1mk01ixffxj6nP8Z6EjqoccowS8zP49K89Y16CawaW8GP+n5pLB00goIw 7vbLzarjSq8ROnbF1BnRcnTsgE3l62r7w032LU+AZsVyF2mbGw3uqPQOCNtGI03tzF9s B69S2UTJplH81ICtFhEOK5LXm2HYNUJDftr1AH/w6FRptF07usscoFK1L/y8/9BINGmq qPa9X/bC6DoxMQaAUebdd5QoqPOScHTbEhf6wqL8bhRnLWs7XQe7caqVzZ4aZh5KP+bV T1hQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=eMkZO4ByXVC9yEnA8EwkUaY0C2+b9KOrn2l9V51ZlEE=; b=N+59G/SSSnSkzJhyPy1gLEJphWCPjgx+BsW7qLP8gizoAHfY73qme1hIzAsoW/xCyc XFaLZn8ByJpGPPGt2e3pG0+x80royzeIkf+Lp/OP3jLE3/Qcm7nLpDi8TFl1jmFOk52H TQNHltA4j1cYKUf5IVgZTMTsurIV5+PQWdi+hCdJZw4ApU6q9/d+aPzfR0vnPTgT69Fi hUkBkTUdvlw/wgmga54BEDZVYsiMp3TOW8HJzaWoBg5QlvyohsanuCShnqEWpM7AFCHl 9sNEu6d4UvZT9OFCC5h2aed5mQBF97C7TWv5RnqFJcoUby+tNXb90qgoelCYDPcHWnbU NwTw== X-Gm-Message-State: AElRT7Eq6qDppT3hZ/g1XJ4sgPtU4kPkeMxULgygwUDVT8wYMlcupz9V U9eolEm/iqySxIBYwBJKf6SHnw== X-Google-Smtp-Source: AG47ELtf/b+Y4U7jBf6Z1h88xaMVu+c/D2YwORLdJc4/EEdUozenXcDt7wZ4z5fZnc6VqRf9LdhAHg== X-Received: by 10.98.50.130 with SMTP id y124mr36019763pfy.147.1522142989398; Tue, 27 Mar 2018 02:29:49 -0700 (PDT) Received: from localhost.localdomain ([103.29.142.67]) by smtp.gmail.com with ESMTPSA id j83sm2171561pfj.18.2018.03.27.02.29.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 27 Mar 2018 02:29:48 -0700 (PDT) From: Kever Yang To: u-boot@lists.denx.de Date: Tue, 27 Mar 2018 17:28:56 +0800 Message-Id: <1522142971-20739-3-git-send-email-kever.yang@rock-chips.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1522142971-20739-1-git-send-email-kever.yang@rock-chips.com> References: <1522142971-20739-1-git-send-email-kever.yang@rock-chips.com> Cc: Thomas Petazzoni , Chris Packham , Klaus Goger , Andy Yan , Maxime Ripard , =?utf-8?q?Andreas_F=C3=A4rber?= Subject: [U-Boot] [PATCH 02/36] rockchip: add common MACRO to enable sys arch timer X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" All rockchip SoCs can use ARM arch timer, let's enable it in common header file Signed-off-by: Kever Yang Acked-by: Philipp Tomsich --- include/configs/rk3368_common.h | 2 -- include/configs/rk3399_common.h | 2 -- include/configs/rockchip-common.h | 4 ++++ 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/configs/rk3368_common.h b/include/configs/rk3368_common.h index 10f643f..a7fe4ca 100644 --- a/include/configs/rk3368_common.h +++ b/include/configs/rk3368_common.h @@ -22,8 +22,6 @@ #define CONFIG_SYS_CBSIZE 1024 #define CONFIG_SKIP_LOWLEVEL_INIT -#define COUNTER_FREQUENCY 24000000 - #define CONFIG_SYS_NS16550_MEM32 #define CONFIG_SYS_INIT_SP_ADDR 0x00300000 diff --git a/include/configs/rk3399_common.h b/include/configs/rk3399_common.h index d700bf2..fe8c675 100644 --- a/include/configs/rk3399_common.h +++ b/include/configs/rk3399_common.h @@ -17,8 +17,6 @@ #define CONFIG_SPL_SPI_LOAD #endif -#define COUNTER_FREQUENCY 24000000 - #define CONFIG_SYS_NS16550_MEM32 #define CONFIG_SYS_INIT_SP_ADDR 0x00300000 diff --git a/include/configs/rockchip-common.h b/include/configs/rockchip-common.h index 26d41b5..24651ce 100644 --- a/include/configs/rockchip-common.h +++ b/include/configs/rockchip-common.h @@ -8,6 +8,10 @@ #define _ROCKCHIP_COMMON_H_ #include +#define COUNTER_FREQUENCY 24000000 +#define CONFIG_SYS_ARCH_TIMER +#define CONFIG_SYS_HZ_CLOCK 24000000 + #ifndef CONFIG_SPL_BUILD /* First try to boot from SD (index 0), then eMMC (index 1) */