soc/mediatek/common: Move SPM_SYSTEM_BASE_OFFSET to soc folders

MT8196's SPM_SYSTEM_BASE_OFFSET has a different offset due to the
hardware design. To avoid adding a new kconfig for differentiation,
migrate this definition into SoC specific value.

BUG=none
TEST=emerge-geralt coreboot && emerge-corsola coreboot

Change-Id: I5df510d5d05a0594d87e7e96e1e03e20a018785f
Signed-off-by: Yidi Lin <yidilin@chromium.org>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/85625
Reviewed-by: Yu-Ping Wu <yupingso@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Yidi Lin 2024-12-17 19:38:21 +08:00
commit 61385c4976
5 changed files with 7 additions and 2 deletions

View file

@ -5,8 +5,6 @@
#include <soc/mcu_common.h>
#define SPM_SYSTEM_BASE_OFFSET 0x40000000
struct pcm_desc {
u32 pmem_words;
u32 total_words;

View file

@ -14,6 +14,7 @@
#include <soc/spm_common.h>
#include <types.h>
#define SPM_SYSTEM_BASE_OFFSET 0x40000000
#define SPM_INIT_DONE_US 20
#define CLK_SCP_CFG_0 (IO_PHYS + 0x200)

View file

@ -9,6 +9,8 @@
#include <soc/spm_common.h>
#include <types.h>
#define SPM_SYSTEM_BASE_OFFSET 0x40000000
/* SPM READ/WRITE CFG */
#define SPM_PROJECT_CODE 0xb16
#define SPM_REGWR_CFG_KEY (SPM_PROJECT_CODE << 16)

View file

@ -9,6 +9,8 @@
#include <soc/spm_common.h>
#include <types.h>
#define SPM_SYSTEM_BASE_OFFSET 0x40000000
/* SPM READ/WRITE CFG */
#define SPM_PROJECT_CODE 0xb16
#define SPM_REGWR_CFG_KEY (SPM_PROJECT_CODE << 16)

View file

@ -9,6 +9,8 @@
#include <soc/spm_common.h>
#include <types.h>
#define SPM_SYSTEM_BASE_OFFSET 0x40000000
/* SPM READ/WRITE CFG */
#define SPM_PROJECT_CODE 0xb16
#define SPM_REGWR_CFG_KEY (SPM_PROJECT_CODE << 16)