From: Daniel Schwierzeck Date: Mon, 10 Feb 2020 17:14:43 +0100 Subject: [PATCH v3 08/20] mips: add a mtmips-specific field to architecture-specific global data In-Reply-To: <1579594730-6982-1-git-send-email-weijie.gao@mediatek.com> References: <1579594730-6982-1-git-send-email-weijie.gao@mediatek.com> Message-ID: <83e1aaa4-011f-c5a0-c233-e204ba1eaf38@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Am 21.01.20 um 09:18 schrieb Weijie Gao: > SoCs of mtmips can use different CPU frequencies depending on the HW/SW > configurations. For example mt7628 uses 580MHz clock if the input xtal > frequency is 40MHz, and 575MHz clock if the xtal is 25MHz. Upon cold boot > the CPU uses the xtal frequency directly. > > So hardcoding the timer frequency (half of the CPU frequency) in > CONFIG_SYS_MIPS_TIMER_FREQ is not a good idea for this case. > > This patch adds a mtmips-specific field timer_freq to arch_global_data. > This field will be used later in mtmips-specific get_tbclk() to provide > accurate timer frequency in different boot stage. > > Reviewed-by: Daniel Schwierzeck > Signed-off-by: Weijie Gao > --- > Changes since v2: none > --- > arch/mips/include/asm/global_data.h | 3 +++ > 1 file changed, 3 insertions(+) > applied to u-boot-mips, thanks. -- - Daniel