| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * This file contains common code that is intended to be used across |
|---|
| 3 | 4 | * boards so that it's not replicated. |
|---|
| 4 | 5 | * |
|---|
| 5 | 6 | * Copyright (C) 2011 Xilinx |
|---|
| 6 | | - * |
|---|
| 7 | | - * This software is licensed under the terms of the GNU General Public |
|---|
| 8 | | - * License version 2, as published by the Free Software Foundation, and |
|---|
| 9 | | - * may be copied, distributed, and modified under those terms. |
|---|
| 10 | | - * |
|---|
| 11 | | - * This program is distributed in the hope that it will be useful, |
|---|
| 12 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 13 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 14 | | - * GNU General Public License for more details. |
|---|
| 15 | 7 | */ |
|---|
| 16 | 8 | |
|---|
| 17 | 9 | #include <linux/init.h> |
|---|
| 10 | +#include <linux/io.h> |
|---|
| 18 | 11 | #include <linux/kernel.h> |
|---|
| 19 | 12 | #include <linux/cpumask.h> |
|---|
| 20 | 13 | #include <linux/platform_device.h> |
|---|
| 21 | 14 | #include <linux/clk.h> |
|---|
| 22 | | -#include <linux/clk-provider.h> |
|---|
| 23 | 15 | #include <linux/clk/zynq.h> |
|---|
| 24 | 16 | #include <linux/clocksource.h> |
|---|
| 25 | 17 | #include <linux/of_address.h> |
|---|
| 18 | +#include <linux/of_clk.h> |
|---|
| 26 | 19 | #include <linux/of_irq.h> |
|---|
| 27 | 20 | #include <linux/of_platform.h> |
|---|
| 28 | 21 | #include <linux/of.h> |
|---|
| .. | .. |
|---|
| 31 | 24 | #include <linux/irqchip/arm-gic.h> |
|---|
| 32 | 25 | #include <linux/slab.h> |
|---|
| 33 | 26 | #include <linux/sys_soc.h> |
|---|
| 27 | +#include <linux/pgtable.h> |
|---|
| 34 | 28 | |
|---|
| 35 | 29 | #include <asm/mach/arch.h> |
|---|
| 36 | 30 | #include <asm/mach/map.h> |
|---|
| 37 | 31 | #include <asm/mach/time.h> |
|---|
| 38 | 32 | #include <asm/mach-types.h> |
|---|
| 39 | 33 | #include <asm/page.h> |
|---|
| 40 | | -#include <asm/pgtable.h> |
|---|
| 41 | 34 | #include <asm/smp_scu.h> |
|---|
| 42 | 35 | #include <asm/system_info.h> |
|---|
| 43 | 36 | #include <asm/hardware/cache-l2x0.h> |
|---|
| .. | .. |
|---|
| 84 | 77 | } |
|---|
| 85 | 78 | |
|---|
| 86 | 79 | zynq_devcfg_base = of_iomap(np, 0); |
|---|
| 80 | + of_node_put(np); |
|---|
| 87 | 81 | if (!zynq_devcfg_base) { |
|---|
| 88 | 82 | pr_err("%s: Unable to map I/O memory\n", __func__); |
|---|
| 89 | 83 | return -1; |
|---|