Attention is currently required from: Martin Roth, Rex-BC Chen, Yidi Lin, Yu-Ping Wu.
Hung-Te Lin has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/52541 )
Change subject: soc/mediatek/mt8195: Add timer support
......................................................................
Patch Set 1:
(1 comment)
Patchset:
PS1:
gpt6_clk is no longer used on mt8195 timer. […]
I see. There are a few different ways - for example defining a platform-specific function, or use a #define to override the reg to set. For example
// common/timer.h
enum {
GPT6_CLK_CLK6_SYS = 0,
GPT6_CLK_CLKDIV_DIV1 = 0,
};
// timer_v1.h
#define GPT6_CLOCK_REG(x) x->gpt6_clk
DEFINE_BIT(GPT6_CLK_CLK6, 4)
DEFINE_BITFIELD(GPT6_CLK_CLKDIV, 3, 0)
// timer_v2.h
#define GPT6_CLOCK_REG(x) x->gpt6_con
DEFINE_BITFIELD(GPT6_CLK_CLK6, 3, 2)
DEFINE_BITFIELD(GPT6_CLK_CLKDIV, 13, 0)
Then we can do
SET32_BITFIELDS(&GPT6_CLOCK_REG(mtk_gpt),
GPT6_CLK_SRC, GPT6_CLK_CLK6_SYS,
GPT6_CLK_DIV, GPT6_CLK_CLKDIV_DIV1);
--
To view, visit
https://review.coreboot.org/c/coreboot/+/52541
To unsubscribe, or for help writing mail filters, visit
https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ic6a87e7d5983bf14ad123de82ed670a22a7be1aa
Gerrit-Change-Number: 52541
Gerrit-PatchSet: 1
Gerrit-Owner: Rex-BC Chen
rex-bc.chen@mediatek.corp-partner.google.com
Gerrit-Reviewer: Hung-Te Lin
hungte@chromium.org
Gerrit-Reviewer: Martin Roth
martinroth@google.com
Gerrit-Reviewer: Patrick Georgi
pgeorgi@google.com
Gerrit-Reviewer: Yidi Lin
yidi.lin@mediatek.com
Gerrit-Reviewer: Yu-Ping Wu
yupingso@google.com
Gerrit-Reviewer: build bot (Jenkins)
no-reply@coreboot.org
Gerrit-Attention: Martin Roth
martinroth@google.com
Gerrit-Attention: Rex-BC Chen
rex-bc.chen@mediatek.corp-partner.google.com
Gerrit-Attention: Yidi Lin
yidi.lin@mediatek.com
Gerrit-Attention: Yu-Ping Wu
yupingso@google.com
Gerrit-Comment-Date: Wed, 21 Apr 2021 12:05:34 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Hung-Te Lin
hungte@chromium.org
Comment-In-Reply-To: Yidi Lin
yidi.lin@mediatek.com
Gerrit-MessageType: comment