Merge tag 'hyperv-next-signed' of git://git.kernel.org/pub/scm/linux/kernel/git/hyper...
[linux-2.6-block.git] / arch / arm / mach-iop32x / setup.c
CommitLineData
d2912cb1 1// SPDX-License-Identifier: GPL-2.0-only
7ae1f7ec
LB
2/*
3 * arch/arm/plat-iop/setup.c
4 *
2f82af08 5 * Author: Nicolas Pitre <nico@fluxnic.net>
7ae1f7ec
LB
6 * Copyright (C) 2001 MontaVista Software, Inc.
7 * Copyright (C) 2004 Intel Corporation.
7ae1f7ec
LB
8 */
9
10#include <linux/mm.h>
11#include <linux/init.h>
12#include <asm/mach/map.h>
a1f487d7 13#include "iop3xx.h"
7ae1f7ec
LB
14
15/*
ebb4c658
RK
16 * Standard IO mapping for all IOP3xx based systems. Note that
17 * the IOP3xx OCCDR must be mapped uncached and unbuffered.
7ae1f7ec
LB
18 */
19static struct map_desc iop3xx_std_desc[] __initdata = {
6176d8ef 20 { /* mem mapped registers */
7ae1f7ec
LB
21 .virtual = IOP3XX_PERIPHERAL_VIRT_BASE,
22 .pfn = __phys_to_pfn(IOP3XX_PERIPHERAL_PHYS_BASE),
23 .length = IOP3XX_PERIPHERAL_SIZE,
ebb4c658 24 .type = MT_UNCACHED,
6176d8ef 25 },
7ae1f7ec
LB
26};
27
28void __init iop3xx_map_io(void)
29{
30 iotable_init(iop3xx_std_desc, ARRAY_SIZE(iop3xx_std_desc));
31}