From patchwork Tue Nov 13 08:21:50 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bin Meng X-Patchwork-Id: 996888 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="ACaUr84v"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 42vL9r2G9gz9sBZ for ; Tue, 13 Nov 2018 19:18:40 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 18237C22542; Tue, 13 Nov 2018 08:17:58 +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 E6FB2C224BC; Tue, 13 Nov 2018 08:17:18 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id E82E0C224A6; Tue, 13 Nov 2018 08:17:16 +0000 (UTC) Received: from mail-pl1-f195.google.com (mail-pl1-f195.google.com [209.85.214.195]) by lists.denx.de (Postfix) with ESMTPS id 53854C21E45 for ; Tue, 13 Nov 2018 08:17:16 +0000 (UTC) Received: by mail-pl1-f195.google.com with SMTP id x21-v6so2908086pln.9 for ; Tue, 13 Nov 2018 00:17:16 -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=QwZCSvLEtj8GHAhd1bF6OkfdKtihibpPDkSJk3+I228=; b=ACaUr84v3SUHh2poIaf4pkBuqWG5W9gHB4Cx5/0koUUx49bntXVeAvCKKEEeFpBzoi 9w+Thhnaxr8/A2mZVNJgYjDhwP9cf8Gc5LKb2U7TK1sVF44mmAP6qvtLwqM8/Bff3ADO COL58CtD+GPCZyuhMDlE52W+YLvGxOiUA4nhYLFGhuTv7bVALHGjs7ldiet9jCq2Q+fI +BP9fX4qqTE/GsOVmy7wYaRRzGG+UQFqfTe+U3RyeQcCUoR/PTldKf0PmfaalVvDf+0J AcuqAOjLkvK+seIV5rOwpSMzVU/or/GhBSPy5DAbuXVQegjBtBT57ENbQJ05ZtHxBgaK t/UQ== 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=QwZCSvLEtj8GHAhd1bF6OkfdKtihibpPDkSJk3+I228=; b=lPIWfUX7HmYqm5WCLxYDlnUYJwH/WFXgnYSYFBJH7p5hPfS8uME6uMxhoaaAKgCYG/ YH3YbBdNTZgAXpBSfdk8YYJuOvWd8GSf8ciGCuIUQ7nml5d8GHP+QUXZSxJ/v1Wjk7tI PWWnONlLle1CgnmZEcXGDh3WKo/kO0MWgTH4BdqeLEPXn08n0bRd2za+CAuqPDueVwIw jQuxgJslfA8WxI9yklCUrlKopmnkhFV7Ho4e5Wg4XeUz7bEeI5pvithD52zr0KJYLIT7 VW6eN14NsLUJEhOOLdVzF1fKuXfwB5Qd+peEQNKlyFU3oLk/G/YvWe+oqO+FMRNE1kf4 i/Lw== X-Gm-Message-State: AGRZ1gLrP3aKCidFIiQrCt9dGue0FT13JBQy4Y3vRlupuLRMsVvNEoYj EsPqKTVBN8ef2LcwuPHY0I4= X-Google-Smtp-Source: AJdET5fdbPpz+qngkC/0tMatYiUhHPaBET7P0rfpYen6Mr9RlgNBzvPF/9rMetmnji23RCqLlROYoQ== X-Received: by 2002:a17:902:b701:: with SMTP id d1-v6mr3908920pls.29.1542097034977; Tue, 13 Nov 2018 00:17:14 -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 d80sm14990032pfm.146.2018.11.13.00.17.14 (version=TLS1_1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 13 Nov 2018 00:17:14 -0800 (PST) From: Bin Meng To: Rick Chen , Simon Glass , Lukas Auer , U-Boot Mailing List Date: Tue, 13 Nov 2018 00:21:50 -0800 Message-Id: <1542097327-6629-3-git-send-email-bmeng.cn@gmail.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1542097327-6629-1-git-send-email-bmeng.cn@gmail.com> References: <1542097327-6629-1-git-send-email-bmeng.cn@gmail.com> Subject: [U-Boot] [PATCH 02/19] 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 --- include/cpu.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/cpu.h b/include/cpu.h index 367c5f4..176a276 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 */