From db00b813f04366ca5bacf7d05f64f8860f4b180d Mon Sep 17 00:00:00 2001 From: Kai Vehmanen Date: Mon, 27 May 2024 19:58:15 +0300 Subject: [PATCH] soc: intel_adsp: tools: align code style in maps_regs() Cosmetic change to align code style when initializing DSP registers. The code in intel_is_ace() branch was moved as-is from acetool.py when the two tools were merged to make reviewing easier. Fix the code style to be coherent in the merged cavstool.py. No functional change. Signed-off-by: Kai Vehmanen --- soc/intel/intel_adsp/tools/cavstool.py | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/soc/intel/intel_adsp/tools/cavstool.py b/soc/intel/intel_adsp/tools/cavstool.py index ac9624f744b..15496fba227 100755 --- a/soc/intel/intel_adsp/tools/cavstool.py +++ b/soc/intel/intel_adsp/tools/cavstool.py @@ -270,18 +270,18 @@ def map_regs(): (bar4_mem, bar4_mmap) = bar_map(pcidir, 4) dsp = Regs(bar4_mem) if adsp_is_ace(): - dsp.HFDSSCS = 0x1000 - dsp.HFPWRCTL = 0x1d18 - dsp.HFPWRSTS = 0x1d1c + dsp.HFDSSCS = 0x1000 + dsp.HFPWRCTL = 0x1d18 + dsp.HFPWRSTS = 0x1d1c dsp.DSP2CXCTL_PRIMARY = 0x178d04 - dsp.HFIPCXTDR = 0x73200 - dsp.HFIPCXTDA = 0x73204 - dsp.HFIPCXIDR = 0x73210 - dsp.HFIPCXIDA = 0x73214 - dsp.HFIPCXCTL = 0x73228 - dsp.HFIPCXTDDY = 0x73300 - dsp.HFIPCXIDDY = 0x73380 - dsp.ROM_STATUS = 0x163200 if ace15 else 0x160200 + dsp.HFIPCXTDR = 0x73200 + dsp.HFIPCXTDA = 0x73204 + dsp.HFIPCXIDR = 0x73210 + dsp.HFIPCXIDA = 0x73214 + dsp.HFIPCXCTL = 0x73228 + dsp.HFIPCXTDDY = 0x73300 + dsp.HFIPCXIDDY = 0x73380 + dsp.ROM_STATUS = 0x163200 if ace15 else 0x160200 dsp.SRAM_FW_STATUS = WINDOW_BASE_ACE else: dsp.ADSPCS = 0x00004