2019-06-04 16:11:33 +08:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-only
|
2006-09-19 06:12:53 +08:00
|
|
|
/*
|
|
|
|
* arch/arm/plat-iop/setup.c
|
|
|
|
*
|
2009-09-14 15:25:28 +08:00
|
|
|
* Author: Nicolas Pitre <nico@fluxnic.net>
|
2006-09-19 06:12:53 +08:00
|
|
|
* Copyright (C) 2001 MontaVista Software, Inc.
|
|
|
|
* Copyright (C) 2004 Intel Corporation.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <linux/mm.h>
|
|
|
|
#include <linux/init.h>
|
|
|
|
#include <asm/mach/map.h>
|
|
|
|
#include <asm/hardware/iop3xx.h>
|
|
|
|
|
|
|
|
/*
|
2008-11-09 19:18:36 +08:00
|
|
|
* Standard IO mapping for all IOP3xx based systems. Note that
|
|
|
|
* the IOP3xx OCCDR must be mapped uncached and unbuffered.
|
2006-09-19 06:12:53 +08:00
|
|
|
*/
|
|
|
|
static struct map_desc iop3xx_std_desc[] __initdata = {
|
2016-07-08 00:00:20 +08:00
|
|
|
{ /* mem mapped registers */
|
2006-09-19 06:12:53 +08:00
|
|
|
.virtual = IOP3XX_PERIPHERAL_VIRT_BASE,
|
|
|
|
.pfn = __phys_to_pfn(IOP3XX_PERIPHERAL_PHYS_BASE),
|
|
|
|
.length = IOP3XX_PERIPHERAL_SIZE,
|
2008-11-09 19:18:36 +08:00
|
|
|
.type = MT_UNCACHED,
|
2016-07-08 00:00:20 +08:00
|
|
|
},
|
2006-09-19 06:12:53 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
void __init iop3xx_map_io(void)
|
|
|
|
{
|
|
|
|
iotable_init(iop3xx_std_desc, ARRAY_SIZE(iop3xx_std_desc));
|
|
|
|
}
|