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