"Das U-Boot" Source Tree
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

API: system info adds FLASH and clk fetches

Refer to api/api platform-powerpc.c implementation

Signed-off-by: Liya Huang <1425075683@qq.com>

authored by

Liya Huang and committed by
Tom Rini
adeea856 72bbb645

+6
+6
api/api_platform.c
··· 17 17 { 18 18 int i; 19 19 20 + si->clk_bus = gd->bus_clk; 21 + si->clk_cpu = gd->cpu_clk; 22 + 20 23 for (i = 0; i < CONFIG_NR_DRAM_BANKS; i++) 21 24 platform_set_mr(si, gd->bd->bi_dram[i].start, 22 25 gd->bd->bi_dram[i].size, MR_ATTR_DRAM); 26 + 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); 23 29 24 30 return 1; 25 31 }