Lines Matching +full:stop +full:- +full:bits

3 # SPDX-License-Identifier: Apache-2.0
27 # specific SOC anyway), so it really doesn't matter and we hard-code
30 # (For future reference: in /proc/device-tree on current ChromeOS
33 # that device node, and the two dram areas are "memory-region"
35 # nodes under "/reserved-memory").
46 compat = readfile(glob("/proc/device-tree/**/adsp@*/compatible", recursive=True)[0], "r")
47 m = re.match(r'.*(mt\d{4})-dsp', compat)
54 # also refers by reference to reserved-memory regions of system
60 path = glob("/proc/device-tree/**/adsp@*/", recursive=True)[0]
61 rnames = readfile(path + "reg-names", "r").split('\0')[:-1]
64 for i, ph in enumerate(struct.unpack(">II", readfile(path + "memory-region"))):
65 for rmem in glob("/proc/device-tree/reserved-memory/*/"):
82 r.SRAM_POOL_CON = 0x0930 # SRAM power control: low 4 bits (banks?) enable
83 r.EMI_MAP_ADDR = 0x981C # == host SRAM mapping - 0x40000000 (controls MMIO map?)
90 def stop(self): member in MT8195
92 self.cfg.RESET_SW |= 3 # Set low two bits: "BRESET|DRESET"
95 self.stop()
98 self.cfg.RESET_SW &= ~3 # Release reset bits
120 def stop(self): member in MT818x
121 self.cfg.IO_CONFIG |= 1 << 31 # Set RUNSTALL to stop core
125 # Note: 8186 and 8188 use different bits in ALTVECSEC, but
153 def stop(self): member in MT8196
170 # Temporary logging protocol: watch the 1M null-terminated log
171 # stream at 0x60700000 -- the top of the linkable region of
261 # Stop the device and write the regions. Note that we don't
262 # zero-fill SRAM, as that's been observed to reboot the host
265 # pylint: disable=consider-using-enumerate