"Das U-Boot" Source Tree

global_data: Reduce the size of bus_clk and mem_clk

The bus clock and memory clock are unlikely to go above 4GHz for now, so
reduce the field size to 32 bits.

Signed-off-by: Simon Glass <sjg@chromium.org>

authored by

Simon Glass and committed by
Tom Rini
80166ea2 cd4f9eb5

+5 -5
+2 -2
arch/mips/mach-ath79/ar934x/clk.c
··· 327 327 { 328 328 ar934x_update_clock(); 329 329 printf("CPU: %8ld MHz\n", gd->cpu_clk / 1000000); 330 - printf("Memory: %8ld MHz\n", gd->mem_clk / 1000000); 331 - printf("AHB: %8ld MHz\n", gd->bus_clk / 1000000); 330 + printf("Memory: %8d MHz\n", gd->mem_clk / 1000000); 331 + printf("AHB: %8d MHz\n", gd->bus_clk / 1000000); 332 332 return 0; 333 333 } 334 334
+1 -1
arch/mips/mach-octeon/cpu.c
··· 67 67 gd->cpu_clk = ref_clock * FIELD_GET(RST_BOOT_C_MUL, val); 68 68 gd->bus_clk = ref_clock * FIELD_GET(RST_BOOT_PNR_MUL, val); 69 69 70 - debug("%s: cpu: %lu, bus: %lu\n", __func__, gd->cpu_clk, gd->bus_clk); 70 + debug("%s: cpu: %lu, bus: %u\n", __func__, gd->cpu_clk, gd->bus_clk); 71 71 72 72 return 0; 73 73 }
+2 -2
include/asm-generic/global_data.h
··· 66 66 /** 67 67 * @bus_clk: platform clock rate in Hz 68 68 */ 69 - unsigned long bus_clk; 69 + unsigned int bus_clk; 70 70 /** 71 71 * @mem_clk: memory clock rate in Hz 72 72 */ 73 - unsigned long mem_clk; 73 + unsigned int mem_clk; 74 74 /** 75 75 * @env_addr: address of environment structure 76 76 *