ot_zhenguo.li | 6bd9d95 | 2023-02-24 13:55:27 +0800 | [diff] [blame^] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
| 2 | |
| 3 | #include <console/console.h> |
| 4 | #include <device/mmio.h> |
| 5 | #include <soc/addressmap.h> |
| 6 | #include <soc/lastbus_v2.h> |
| 7 | |
| 8 | const struct lastbus_config lastbus_cfg = { |
| 9 | .latch_platform = "MT8188", |
| 10 | .timeout_ms = 200, |
| 11 | .timeout_type = 0, |
| 12 | .num_used_monitors = 6, |
| 13 | .monitors = { |
| 14 | { |
| 15 | .name = "debug_ctrl_ao_INFRA_AO", |
| 16 | .base = INFRA_AO_DBUG_BASE, |
| 17 | .num_ports = 34, |
| 18 | .num_idle_mask = 2, |
| 19 | .idle_masks = { |
| 20 | { |
| 21 | .reg_offset = 0x04, |
| 22 | .reg_value = 0x2, |
| 23 | }, |
| 24 | { |
| 25 | .reg_offset = 0x08, |
| 26 | .reg_value = 0x10000, |
| 27 | }, |
| 28 | }, |
| 29 | .bus_freq_mhz = 78, |
| 30 | }, |
| 31 | { |
| 32 | .name = "debug_ctrl_ao_INFRA2_AO", |
| 33 | .base = INFRA2_AO_DBUG_BASE, |
| 34 | .num_ports = 9, |
| 35 | .num_idle_mask = 0, |
| 36 | .bus_freq_mhz = 78, |
| 37 | }, |
| 38 | { |
| 39 | .name = "debug_ctrl_ao_PERI_AO", |
| 40 | .base = PERI_AO_BASE, |
| 41 | .num_ports = 25, |
| 42 | .num_idle_mask = 1, |
| 43 | .idle_masks = { |
| 44 | { |
| 45 | .reg_offset = 0x04, |
| 46 | .reg_value = 0x20000, |
| 47 | }, |
| 48 | }, |
| 49 | .bus_freq_mhz = 78, |
| 50 | }, |
| 51 | { |
| 52 | .name = "debug_ctrl_ao_PERI_AO2", |
| 53 | .base = PERI_AO2_BASE, |
| 54 | .num_ports = 20, |
| 55 | .num_idle_mask = 0, |
| 56 | .bus_freq_mhz = 78, |
| 57 | }, |
| 58 | { |
| 59 | .name = "debug_ctrl_ao_PERI_PAR_AO", |
| 60 | .base = PERI_PAR_AO_BASE, |
| 61 | .num_ports = 18, |
| 62 | .num_idle_mask = 0, |
| 63 | .bus_freq_mhz = 78, |
| 64 | }, |
| 65 | { |
| 66 | .name = "debug_ctrl_ao_FMEM_AO", |
| 67 | .base = FMEM_AO_BASE, |
| 68 | .num_ports = 28, |
| 69 | .num_idle_mask = 1, |
| 70 | .idle_masks = { |
| 71 | { |
| 72 | .reg_offset = 0x14, |
| 73 | .reg_value = 0x204, |
| 74 | }, |
| 75 | }, |
| 76 | .bus_freq_mhz = 78, |
| 77 | }, |
| 78 | }, |
| 79 | }; |