similarity index 92%rename from u-boot/cmd/memtester/ddr_tester_common.crename to u-boot/cmd/ddr_tool/ddr_tool_common.c.. | .. |
---|
5 | 5 | |
---|
6 | 6 | #include <common.h> |
---|
7 | 7 | #include <power/regulator.h> |
---|
8 | | -#include "ddr_tester_common.h" |
---|
| 8 | +#include "ddr_tool_common.h" |
---|
9 | 9 | |
---|
10 | 10 | DECLARE_GLOBAL_DATA_PTR; |
---|
11 | 11 | |
---|
.. | .. |
---|
84 | 84 | for (i = 0; i < max_bank; i++) { |
---|
85 | 85 | start_adr[i] = gd->bd->bi_dram[i].start; |
---|
86 | 86 | length[i] = gd->bd->bi_dram[i].size; |
---|
| 87 | +#if defined(CONFIG_ROCKCHIP_RV1126) |
---|
| 88 | + /* On RV1126, writing data to 0x00600000 will cause a crash. */ |
---|
| 89 | + if (start_adr[i] == 0 && length[i] > 0x00700000) { |
---|
| 90 | + start_adr[i] = 0x00700000; |
---|
| 91 | + length[i] -= 0x00700000; |
---|
| 92 | + } |
---|
| 93 | +#endif |
---|
87 | 94 | } |
---|
88 | 95 | |
---|
89 | 96 | length[max_bank - 1] = (gd->start_addr_sp - RESERVED_SP_SIZE - |
---|