/* * SPDX-License-Identifier: BSD-2-Clause * * Copyright (c) 2020 Western Digital Corporation or its affiliates. * * Authors: * Anup Patel */ #include #include #include #include /* List of FDT timer drivers generated at compile time */ extern const struct fdt_driver *const fdt_timer_drivers[]; int fdt_timer_init(void) { /* * Systems with Sstc might not provide any node in the FDT, * so do not return a failure if no device is found. */ return fdt_driver_init_all(fdt_get_address(), fdt_timer_drivers); }