mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-03 02:03:01 +00:00

When bringing in the series 'arm: dts: am62-beagleplay: Fix Beagleplay Ethernet"' I failed to notice that b4 noticed it was based on next and so took that as the base commit and merged that part of next to master. This reverts commitc8ffd1356d
, reversing changes made to2ee6f3a5f7
. Reported-by: Jonas Karlman <jonas@kwiboo.se> Signed-off-by: Tom Rini <trini@konsulko.com>
35 lines
801 B
C
35 lines
801 B
C
// SPDX-License-Identifier: GPL-2.0+
|
|
/*
|
|
* Copyright (C) 2021, Bin Meng <bmeng.cn@gmail.com>
|
|
*/
|
|
|
|
#include <common.h>
|
|
#include <command.h>
|
|
#include <addr_map.h>
|
|
|
|
static int do_addrmap(struct cmd_tbl *cmdtp, int flag, int argc,
|
|
char *const argv[])
|
|
{
|
|
int i;
|
|
|
|
printf(" vaddr paddr size\n");
|
|
printf("================ ================ ================\n");
|
|
|
|
for (i = 0; i < CONFIG_SYS_NUM_ADDR_MAP; i++) {
|
|
if (address_map[i].size == 0)
|
|
continue;
|
|
|
|
printf("%16.8lx %16.8llx %16.8llx\n",
|
|
address_map[i].vaddr,
|
|
(unsigned long long)address_map[i].paddr,
|
|
(unsigned long long)address_map[i].size);
|
|
}
|
|
|
|
return 0;
|
|
}
|
|
|
|
U_BOOT_CMD(
|
|
addrmap, 1, 1, do_addrmap,
|
|
"List non-identity virtual-physical memory mappings for 32-bit CPUs",
|
|
""
|
|
);
|