Lines Matching +full:timer +full:- +full:secure

1 // SPDX-License-Identifier: GPL-2.0
3 * R-Car Generation 2 support
12 #include <linux/dma-map-ops.h>
23 #include "rcar-gen2.h"
26 { .compatible = "renesas,r8a7742-cpg-mssr", .data = "extal" },
27 { .compatible = "renesas,r8a7743-cpg-mssr", .data = "extal" },
28 { .compatible = "renesas,r8a7744-cpg-mssr", .data = "extal" },
29 { .compatible = "renesas,r8a7790-cpg-mssr", .data = "extal" },
30 { .compatible = "renesas,r8a7791-cpg-mssr", .data = "extal" },
31 { .compatible = "renesas,r8a7793-cpg-mssr", .data = "extal" },
46 if (match->data) in get_extal_freq()
47 idx = of_property_match_string(cpg, "clock-names", match->data); in get_extal_freq()
53 of_property_read_u32(extal, "clock-frequency", &freq); in get_extal_freq()
68 * If PSCI is available then most likely we are running on PSCI-enabled in rcar_gen2_timer_init()
69 * U-Boot which, we assume, has already taken care of resetting CNTVOFF in rcar_gen2_timer_init()
70 * and updating counter module before switching to non-secure mode in rcar_gen2_timer_init()
89 /* At Linux boot time the r8a7790 arch timer comes up in rcar_gen2_timer_init()
102 * Update the timer if it is either not running, or is not at the in rcar_gen2_timer_init()
103 * right frequency. The timer is only configurable in secure mode in rcar_gen2_timer_init()
104 * so this avoids an abort if the loader started the timer and in rcar_gen2_timer_init()
105 * entered the kernel in non-secure mode. in rcar_gen2_timer_init()
114 /* make sure arch timer is started by setting bit 0 of CNTCR */ in rcar_gen2_timer_init()
143 reg = of_get_flat_dt_prop(node, "linux,usable-memory", &l); in rcar_gen2_scan_mem()
150 while ((endp - reg) >= (dt_root_addr_cells + dt_root_size_cells)) { in rcar_gen2_scan_mem()
160 size = lpae_start - base; in rcar_gen2_scan_mem()
162 if (size < mrc->reserved) in rcar_gen2_scan_mem()
165 if (base < mrc->base) in rcar_gen2_scan_mem()
168 /* keep the area at top near the 32-bit legacy limit */ in rcar_gen2_scan_mem()
169 mrc->base = base + size - mrc->reserved; in rcar_gen2_scan_mem()
170 mrc->size = mrc->reserved; in rcar_gen2_scan_mem()
180 /* reserve 256 MiB at the top of the physical legacy 32-bit space */ in rcar_gen2_reserve()
204 DT_MACHINE_START(RCAR_GEN2_DT, "Generic R-Car Gen2 (Flattened Device Tree)")