From patchwork Wed Dec 12 07:11:03 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bin Meng X-Patchwork-Id: 1011610 X-Patchwork-Delegate: uboot@andestech.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=fail (p=none dis=none) header.from=gmail.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="JCSS7oFQ"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 43F7FY6HM8z9s47 for ; Wed, 12 Dec 2018 18:08:33 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 8B1D5C2264C; Wed, 12 Dec 2018 07:07: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=FREEMAIL_FROM, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, 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 18D69C22689; Wed, 12 Dec 2018 07:06:32 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 53C64C222C4; Wed, 12 Dec 2018 07:06:29 +0000 (UTC) Received: from mail-pf1-f193.google.com (mail-pf1-f193.google.com [209.85.210.193]) by lists.denx.de (Postfix) with ESMTPS id 25ABBC21DDC for ; Wed, 12 Dec 2018 07:06:28 +0000 (UTC) Received: by mail-pf1-f193.google.com with SMTP id u6so8416089pfh.11 for ; Tue, 11 Dec 2018 23:06:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references; bh=wKaslTc2ZDdC4c5wg7S3Sj2L65rCMfqz/0iXrk30gLQ=; b=JCSS7oFQjToX+T6Nk4Xq5F73wRdWNwy2Isg5pZ8vUJVlEeOag+yX9XurUqi6I6lQVP gwzfO9T3Orxa+7BR1g/5vYnJLMe/rjC8oyNAYcTG0/lIgN2jg8Yhta2PV9+j6Vb4wVUJ x9o7cXLhEV5jJRoZOlYAaIapdmBn8EmjbfT/mvPDS/N6g8fuIvfead6NVr/RMVFcSeSc 5HecUoSLb2SRzqBklqfrv0y8+jTZFYQ7xB9+BjRbWidkdj9itLAjKbk1NPymknegNVfL OaW0GIWK5Wgz52/7SEC2YkFRq7To4Nt1wH0sEBiEofzGwIx/e5yjN++uqj7lR4M1e8lf 9EUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=wKaslTc2ZDdC4c5wg7S3Sj2L65rCMfqz/0iXrk30gLQ=; b=c2qYX+HEEREjUfr9v4ArrM2KDPnV2S4i3eGYk1q6cFhLScjLnqgrRi1nBUHafCqlaG tLJPqwqjulT1KRJ1IG189dDtQhak6EoqKsoc6Uo3tdQP9AmWC4Lnsg833kI94QDowGRZ DLwubGFC1wDw6aG64G8NVelV4BkkHTDw71NgpqZEFe/DWEeCtkTBPTkM1Nny44LcfdOw GVuNSXyDcUOXEd3vSQ/v35HQqhuxEYbjYit9IF1mc1AcTo0Zp7qIXQoMWoVzIGB89D2T 5h8H7W2eAUPRIAjA+3v8RZCA2gYIE/Y7g1uopxdD4xx+IvR6GK0KkM+C6SAHDtMgqo1p mrjg== X-Gm-Message-State: AA+aEWa0rrWDLVhptZ3+hpWpG5iDPM76+KJxSDztRNc6ikS0/1HA3KVH TePT6uyIOoMFuhIFicQHH/w= X-Google-Smtp-Source: AFSGD/UTUnwBgTmUvtATuf95Xt+Pa3dwfWhIde76Z+yBUvMjhkNh1RoglYtdmIDMX64PcHSFsV5NMw== X-Received: by 2002:a63:2222:: with SMTP id i34mr15894898pgi.83.1544598386845; Tue, 11 Dec 2018 23:06:26 -0800 (PST) Received: from ala-d2121-lx1.wrs.com (unknown-156-139.windriver.com. [147.11.156.139]) by smtp.gmail.com with ESMTPSA id z9sm37330096pfd.99.2018.12.11.23.06.25 (version=TLS1_1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 11 Dec 2018 23:06:26 -0800 (PST) From: Bin Meng To: Rick Chen , Simon Glass , Lukas Auer , Anup Patel , U-Boot Mailing List Date: Tue, 11 Dec 2018 23:11:03 -0800 Message-Id: <1544598686-14130-3-git-send-email-bmeng.cn@gmail.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1544598686-14130-1-git-send-email-bmeng.cn@gmail.com> References: <1544598686-14130-1-git-send-email-bmeng.cn@gmail.com> Subject: [U-Boot] [PATCH v4 02/25] dm: cpu: Add timebase frequency to the platdata 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" This adds a timebase_freq member to the 'struct cpu_platdata', to hold the "timebase-frequency" value in the cpu or /cpus node. Signed-off-by: Bin Meng Reviewed-by: Simon Glass Reviewed-by: Lukas Auer --- Changes in v4: None Changes in v3: None Changes in v2: - Use 'Hz' instead of 'HZ' include/cpu.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/cpu.h b/include/cpu.h index 367c5f4..28dd48f 100644 --- a/include/cpu.h +++ b/include/cpu.h @@ -14,6 +14,8 @@ * @device_id: Driver-defined device identifier * @family: DMTF CPU Family identifier * @id: DMTF CPU Processor identifier + * @timebase_freq: the current frequency at which the cpu timer timebase + * registers are updated (in Hz) * * This can be accessed with dev_get_parent_platdata() for any UCLASS_CPU * device. @@ -24,6 +26,7 @@ struct cpu_platdata { ulong device_id; u16 family; u32 id[2]; + u32 timebase_freq; }; /* CPU features - mostly just a placeholder for now */