Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0-only
0002 /*
0003  * arch/arm/plat-iop/setup.c
0004  *
0005  * Author: Nicolas Pitre <nico@fluxnic.net>
0006  * Copyright (C) 2001 MontaVista Software, Inc.
0007  * Copyright (C) 2004 Intel Corporation.
0008  */
0009 
0010 #include <linux/mm.h>
0011 #include <linux/init.h>
0012 #include <asm/mach/map.h>
0013 #include "iop3xx.h"
0014 
0015 /*
0016  * Standard IO mapping for all IOP3xx based systems.  Note that
0017  * the IOP3xx OCCDR must be mapped uncached and unbuffered.
0018  */
0019 static struct map_desc iop3xx_std_desc[] __initdata = {
0020     {   /* mem mapped registers */
0021         .virtual    = IOP3XX_PERIPHERAL_VIRT_BASE,
0022         .pfn        = __phys_to_pfn(IOP3XX_PERIPHERAL_PHYS_BASE),
0023         .length     = IOP3XX_PERIPHERAL_SIZE,
0024         .type       = MT_UNCACHED,
0025     },
0026 };
0027 
0028 void __init iop3xx_map_io(void)
0029 {
0030     iotable_init(iop3xx_std_desc, ARRAY_SIZE(iop3xx_std_desc));
0031 }