* Decode windows helper routines **************************************************************************/
| 1084 | * Decode windows helper routines |
| 1085 | **************************************************************************/ |
| 1086 | void |
| 1087 | soc_dump_decode_win(void) |
| 1088 | { |
| 1089 | int i; |
| 1090 | |
| 1091 | for (i = 0; i < soc_decode_win_spec->mv_win_cpu_max; i++) { |
| 1092 | printf("CPU window#%d: c 0x%08x, b 0x%08x", i, |
| 1093 | win_cpu_cr_read(i), |
| 1094 | win_cpu_br_read(i)); |
| 1095 | |
| 1096 | if (win_cpu_can_remap(i)) |
| 1097 | printf(", rl 0x%08x, rh 0x%08x", |
| 1098 | win_cpu_remap_l_read(i), |
| 1099 | win_cpu_remap_h_read(i)); |
| 1100 | |
| 1101 | printf("\n"); |
| 1102 | } |
| 1103 | printf("Internal regs base: 0x%08x\n", |
| 1104 | bus_space_read_4(fdtbus_bs_tag, MV_INTREGS_BASE, 0)); |
| 1105 | |
| 1106 | for (i = 0; i < MV_WIN_DDR_MAX; i++) |
| 1107 | printf("DDR CS#%d: b 0x%08x, s 0x%08x\n", i, |
| 1108 | ddr_br_read(i), ddr_sz_read(i)); |
| 1109 | } |
| 1110 | |
| 1111 | /************************************************************************** |
| 1112 | * CPU windows routines |
no test coverage detected