Lines Matching +full:1000 +full:base +full:- +full:t
1 // SPDX-License-Identifier: GPL-2.0
5 * Copyright (C) 2001-2014 Yoshinori Sato <ysato@users.sourceforge.jp>
9 * This file handles the architecture-dependent parts of system setup
27 #include <linux/clk-provider.h>
88 memblock_reserve(__pa(_stext), _end - _stext); in bootmem_init()
131 seq_printf(m, "CPU:\t\t%s\n" in show_cpuinfo()
132 "Clock:\t\t%lu.%1luMHz\n" in show_cpuinfo()
133 "BogoMips:\t%lu.%02lu\n" in show_cpuinfo()
134 "Calibration:\t%lu loops\n", in show_cpuinfo()
136 freq/1000, freq%1000, in show_cpuinfo()
168 #define get_wait(base, addr) ({ \ argument
171 w *= (readw((base) + 2) & (3 << baddr)) + 1; \
175 #define get_wait(base, addr) ({ \ argument
178 w *= (readl((base) + 2) & (7 << baddr)) + 1; \
185 void __iomem *base; in access_timing() local
190 bsc = of_find_compatible_node(NULL, NULL, "renesas,h8300-bsc"); in access_timing()
191 base = of_iomap(bsc, 0); in access_timing()
192 w = (readb(base + 0) & bit)?2:1; in access_timing()
193 if (readb(base + 1) & bit) in access_timing()
194 w *= get_wait(base, addr); in access_timing()
206 of_property_read_s32(cpu, "clock-frequency", &freq); in calibrate_delay()