Skip to content

Commit adeea85

Browse files
wdfk-progtrini
authored andcommitted
API: system info adds FLASH and clk fetches
Refer to api/api platform-powerpc.c implementation Signed-off-by: Liya Huang <1425075683@qq.com>
1 parent 72bbb64 commit adeea85

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

api/api_platform.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,15 @@ int platform_sys_info(struct sys_info *si)
1717
{
1818
int i;
1919

20+
si->clk_bus = gd->bus_clk;
21+
si->clk_cpu = gd->cpu_clk;
22+
2023
for (i = 0; i < CONFIG_NR_DRAM_BANKS; i++)
2124
platform_set_mr(si, gd->bd->bi_dram[i].start,
2225
gd->bd->bi_dram[i].size, MR_ATTR_DRAM);
2326

27+
platform_set_mr(si, gd->ram_base, gd->ram_size, MR_ATTR_DRAM);
28+
platform_set_mr(si, gd->bd->bi_flashstart, gd->bd->bi_flashsize, MR_ATTR_FLASH);
29+
2430
return 1;
2531
}

0 commit comments

Comments
 (0)