Skip to content

Commit e57c36b

Browse files
laklimovkrzk
authored andcommitted
clk: samsung: exynos850: Add APM-to-AP mailbox clock
Add APM mailbox clock for communicating between APM and main application CPUs in CMU_APM unit. This clock is needed to access this mailbox registers. This mailbox is used for ACPM communication between kernel and APM co-processor. Signed-off-by: Alexey Klimov <alexey.klimov@linaro.org> Link: https://patch.msgid.link/20260320-exynos850-ap2apm-mailbox-v1-2-983eb3f296fc@linaro.org Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
1 parent 495920b commit e57c36b

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

drivers/clk/samsung/clk-exynos850.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
/* NOTE: Must be equal to the last clock ID increased by one */
2121
#define CLKS_NR_TOP (CLK_DOUT_CPUCL1_SWITCH + 1)
22-
#define CLKS_NR_APM (CLK_GOUT_SYSREG_APM_PCLK + 1)
22+
#define CLKS_NR_APM (CLK_GOUT_MAILBOX_APM_AP_PCLK + 1)
2323
#define CLKS_NR_AUD (CLK_GOUT_AUD_CMU_AUD_PCLK + 1)
2424
#define CLKS_NR_CMGP (CLK_GOUT_SYSREG_CMGP_PCLK + 1)
2525
#define CLKS_NR_CPUCL0 (CLK_CLUSTER0_SCLK + 1)
@@ -604,6 +604,7 @@ CLK_OF_DECLARE(exynos850_cmu_top, "samsung,exynos850-cmu-top",
604604
#define CLK_CON_GAT_GOUT_APM_APBIF_TOP_RTC_PCLK 0x2028
605605
#define CLK_CON_GAT_GOUT_APM_I3C_APM_PMIC_I_PCLK 0x2034
606606
#define CLK_CON_GAT_GOUT_APM_I3C_APM_PMIC_I_SCLK 0x2038
607+
#define CLK_CON_GAT_GOUT_APM_MAILBOX_APM_AP_PCLK 0x2060
607608
#define CLK_CON_GAT_GOUT_APM_SPEEDY_APM_PCLK 0x20bc
608609
#define CLK_CON_GAT_GOUT_APM_SYSREG_APM_PCLK 0x20c0
609610

@@ -628,6 +629,7 @@ static const unsigned long apm_clk_regs[] __initconst = {
628629
CLK_CON_GAT_GOUT_APM_I3C_APM_PMIC_I_SCLK,
629630
CLK_CON_GAT_GOUT_APM_SPEEDY_APM_PCLK,
630631
CLK_CON_GAT_GOUT_APM_SYSREG_APM_PCLK,
632+
CLK_CON_GAT_GOUT_APM_MAILBOX_APM_AP_PCLK,
631633
};
632634

633635
/* List of parent clocks for Muxes in CMU_APM */
@@ -698,6 +700,9 @@ static const struct samsung_gate_clock apm_gate_clks[] __initconst = {
698700
CLK_CON_GAT_GOUT_APM_APBIF_PMU_ALIVE_PCLK, 21, CLK_IS_CRITICAL, 0),
699701
GATE(CLK_GOUT_SYSREG_APM_PCLK, "gout_sysreg_apm_pclk", "dout_apm_bus",
700702
CLK_CON_GAT_GOUT_APM_SYSREG_APM_PCLK, 21, 0, 0),
703+
GATE(CLK_GOUT_MAILBOX_APM_AP_PCLK, "gout_mailbox_apm_ap_pclk",
704+
"dout_apm_func",
705+
CLK_CON_GAT_GOUT_APM_MAILBOX_APM_AP_PCLK, 21, 0, 0),
701706
};
702707

703708
static const struct samsung_cmu_info apm_cmu_info __initconst = {

0 commit comments

Comments
 (0)