blob: 8151bde990e6b90add652870b8e34e772cc927ce [file] [log] [blame]
Lennert Buytenhek7ae1f7e2006-09-18 23:12:53 +01001/*
2 * arch/arm/plat-iop/setup.c
3 *
Nicolas Pitre2f82af02009-09-14 03:25:28 -04004 * Author: Nicolas Pitre <nico@fluxnic.net>
Lennert Buytenhek7ae1f7e2006-09-18 23:12:53 +01005 * Copyright (C) 2001 MontaVista Software, Inc.
6 * Copyright (C) 2004 Intel Corporation.
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License version 2 as
10 * published by the Free Software Foundation.
11 */
12
13#include <linux/mm.h>
14#include <linux/init.h>
15#include <asm/mach/map.h>
16#include <asm/hardware/iop3xx.h>
17
18/*
Russell Kingebb4c652008-11-09 11:18:36 +000019 * Standard IO mapping for all IOP3xx based systems. Note that
20 * the IOP3xx OCCDR must be mapped uncached and unbuffered.
Lennert Buytenhek7ae1f7e2006-09-18 23:12:53 +010021 */
22static struct map_desc iop3xx_std_desc[] __initdata = {
Jungseung Lee6176d8e2016-07-07 18:00:20 +020023 { /* mem mapped registers */
Lennert Buytenhek7ae1f7e2006-09-18 23:12:53 +010024 .virtual = IOP3XX_PERIPHERAL_VIRT_BASE,
25 .pfn = __phys_to_pfn(IOP3XX_PERIPHERAL_PHYS_BASE),
26 .length = IOP3XX_PERIPHERAL_SIZE,
Russell Kingebb4c652008-11-09 11:18:36 +000027 .type = MT_UNCACHED,
Jungseung Lee6176d8e2016-07-07 18:00:20 +020028 },
Lennert Buytenhek7ae1f7e2006-09-18 23:12:53 +010029};
30
31void __init iop3xx_map_io(void)
32{
33 iotable_init(iop3xx_std_desc, ARRAY_SIZE(iop3xx_std_desc));
34}