soc/mediatek/common: Move dsi0 definition to dsi_register_v*.h
Move dsi0 variable definition to dsi_register_v*.h to be closer to the register struct definition. This also allows us to define dsi1 for mt8196 at the same place as dsi0 in a future patch. The dsi1 variable cannot be defined in dsi_common.h because not all MediaTek SoCs using the header have the DSI1_BASE register. BUG=b:424782827 TEST=util/abuild/abuild -x -t GOOGLE_SAPPHIRE -a BRANCH=none Change-Id: I643f8d0317d0fb8bd8ea7bf8870ec99051c35c1b Signed-off-by: Yu-Ping Wu <yupingso@chromium.org> Reviewed-on: https://review.coreboot.org/c/coreboot/+/90452 Reviewed-by: Yidi Lin <yidilin@google.com> Reviewed-by: Chen-Tsung Hsieh <chentsung@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
3607024944
commit
a3317182ff
3 changed files with 4 additions and 2 deletions
|
|
@ -10,8 +10,6 @@
|
|||
#include <soc/addressmap.h>
|
||||
#include <soc/display_dsi.h>
|
||||
|
||||
static struct dsi_regs *const dsi0 = (void *)DSI0_BASE;
|
||||
|
||||
/* DSI_INTSTA */
|
||||
enum {
|
||||
LPRX_RD_RDY_INT_FLAG = BIT(0),
|
||||
|
|
|
|||
|
|
@ -53,4 +53,6 @@ check_member(dsi_regs, dsi_vm_cmd_con, 0x130);
|
|||
check_member(dsi_regs, dsi_force_commit, 0x190);
|
||||
check_member(dsi_regs, dsi_cmdq, 0x200);
|
||||
|
||||
static struct dsi_regs *const dsi0 = (void *)DSI0_BASE;
|
||||
|
||||
#endif /* DSI_REGISTER_V1_H */
|
||||
|
|
|
|||
|
|
@ -58,4 +58,6 @@ check_member(dsi_regs, dsi_vm_cmd_con, 0x130);
|
|||
check_member(dsi_regs, dsi_force_commit, 0x190);
|
||||
check_member(dsi_regs, dsi_cmdq, 0xd00);
|
||||
|
||||
static struct dsi_regs *const dsi0 = (void *)DSI0_BASE;
|
||||
|
||||
#endif /* DSI_REGISTER_V2_H */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue