soc: amlogic: clk-measure: Define MSR_CLK's register offset separately
authorChuan Liu <chuan.liu@amlogic.com>
Tue, 15 Apr 2025 02:45:24 +0000 (10:45 +0800)
committerNeil Armstrong <neil.armstrong@linaro.org>
Tue, 22 Apr 2025 12:15:18 +0000 (14:15 +0200)
commit7f1e9e813a82de83ff267d4842db89a825b38675
treea41ca245af1e1475224545e0a48e583c433e7e4b
parentae3e19c2739c231bedb53cec9d38ace4bf5d95bd
soc: amlogic: clk-measure: Define MSR_CLK's register offset separately

Since the MSR_CLK register offset differs between chip variants, we
replace the macro-based definition with chip-specific assignments.

Change the max_register in regmap_config to be retrieved from DTS.

Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: Chuan Liu <chuan.liu@amlogic.com>
Link: https://lore.kernel.org/r/20250415-clk-measure-v3-1-9b8551dd33b4@amlogic.com
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
drivers/soc/amlogic/meson-clk-measure.c