~ubuntu-branches/ubuntu/trusty/linux-armadaxp/trusty

« back to all changes in this revision

Viewing changes to arch/arm/mach-imx/mm-imx31.c

  • Committer: Package Import Robot
  • Author(s): Michael Casadevall, Bryan Wu, Dann Frazier, Michael Casadeall
  • Date: 2012-03-10 15:00:54 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20120310150054-flugb39zon8vvgwe
Tags: 3.2.0-1600.1
[ Bryan Wu ]
* UBUNTU: import debian/debian.env and debian.armadaxp

[ Dann Frazier ]
* ARM: Armada XP: remove trailing '/' in dirnames in mvRules.mk

[ Michael Casadeall ]
* tools: add some tools for Marvell Armada XP processor
* kernel: timer tick hacking from Marvell
* kernel: Sheeva Errata: add delay on Sheeva when powering down
* net: add Marvell NFP netfilter
* net: socket and skb modifications made by Marvell
* miscdevice: add minor IDs for some Marvell Armada drivers
* fs: introduce memory pool for splice()
* video: EDID detection updates from Marvell Armada XP patchset
* video: backlight: add Marvell Dove LCD backlight driver
* video: display: add THS8200 display driver
* video: framebuffer: add Marvell Dove and Armada XP processor onchip LCD controller driver
* usbtest: add Interrupt transfer testing by Marvell Armada XP code
* usb: ehci: add support for Marvell EHCI controler
* tty/serial: 8250: add support for Marvell Armada XP processor and DeviceTree work
* rtc: add support for Marvell Armada XP onchip RTC controller
* net: pppoe: add Marvell ethernet NFP hook in PPPoE networking driver
* mtd: nand: add support for Marvell Armada XP Nand Flash Controller
* mtd: maps: add Marvell Armada XP specific map driver
* mmc: add support for Marvell Armada XP MMC/SD host controller
* i2c: add support for Marvell Armada XP onchip i2c bus controller
* hwmon: add Kconfig option for Armada XP onchip thermal sensor driver
* dmaengine: add Net DMA support for splice and update Marvell XOR DMA engine driver
* ata: add support for Marvell Armada XP SATA controller and update some quirks
* ARM: add Marvell Armada XP machine to mach-types
* ARM: oprofile: add support for Marvell PJ4B core
* ARM: mm: more ARMv6 switches for Marvell Armada XP
* ARM: remove static declaration to allow compilation
* ARM: alignment access fault trick
* ARM: mm: skip some fault fixing when run on NONE SMP ARMv6 mode during early abort event
* ARM: mm: add Marvell Sheeva CPU Architecture for PJ4B
* ARM: introduce optimized copy operation for Marvell Armada XP
* ARM: SAUCE: hardware breakpoint trick for Marvell Armada XP
* ARM: big endian and little endian tricks for Marvell Armada XP
* ARM: SAUCE: Add Marvell Armada XP build rules to arch/arm/kernel/Makefile
* ARM: vfp: add special handling for Marvell Armada XP
* ARM: add support for Marvell U-Boot
* ARM: add mv_controller_num for ARM PCI drivers
* ARM: add support for local PMUs, general SMP tweaks and cache flushing
* ARM: add Marvell device identifies in glue-proc.h
* ARM: add IPC driver support for Marvell platforms
* ARM: add DMA mapping for Marvell platforms
* ARM: add Sheeva errata and PJ4B code for booting
* ARM: update Kconfig and Makefile to include Marvell Armada XP platforms
* ARM: Armada XP: import LSP from Marvell for Armada XP 3.2 kernel enablement

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 *  Copyright (C) 1999,2000 Arm Limited
3
 
 *  Copyright (C) 2000 Deep Blue Solutions Ltd
4
 
 *  Copyright (C) 2002 Shane Nay (shane@minirl.com)
5
 
 *  Copyright 2005-2007 Freescale Semiconductor, Inc. All Rights Reserved.
6
 
 *    - add MX31 specific definitions
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 as published by
10
 
 * the Free Software Foundation; either version 2 of the License, or
11
 
 * (at your option) any later version.
12
 
 *
13
 
 * This program is distributed in the hope that it will be useful,
14
 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
 
 * GNU General Public License for more details.
17
 
 */
18
 
 
19
 
#include <linux/mm.h>
20
 
#include <linux/init.h>
21
 
#include <linux/err.h>
22
 
 
23
 
#include <asm/pgtable.h>
24
 
#include <asm/mach/map.h>
25
 
 
26
 
#include <mach/common.h>
27
 
#include <mach/hardware.h>
28
 
#include <mach/iomux-v3.h>
29
 
#include <mach/gpio.h>
30
 
#include <mach/irqs.h>
31
 
 
32
 
static struct map_desc mx31_io_desc[] __initdata = {
33
 
        imx_map_entry(MX31, X_MEMC, MT_DEVICE),
34
 
        imx_map_entry(MX31, AVIC, MT_DEVICE_NONSHARED),
35
 
        imx_map_entry(MX31, AIPS1, MT_DEVICE_NONSHARED),
36
 
        imx_map_entry(MX31, AIPS2, MT_DEVICE_NONSHARED),
37
 
        imx_map_entry(MX31, SPBA0, MT_DEVICE_NONSHARED),
38
 
};
39
 
 
40
 
/*
41
 
 * This function initializes the memory map. It is called during the
42
 
 * system startup to create static physical to virtual memory mappings
43
 
 * for the IO modules.
44
 
 */
45
 
void __init mx31_map_io(void)
46
 
{
47
 
        iotable_init(mx31_io_desc, ARRAY_SIZE(mx31_io_desc));
48
 
}
49
 
 
50
 
void __init imx31_init_early(void)
51
 
{
52
 
        mxc_set_cpu_type(MXC_CPU_MX31);
53
 
        mxc_arch_reset_init(MX31_IO_ADDRESS(MX31_WDOG_BASE_ADDR));
54
 
}
55
 
 
56
 
static struct mxc_gpio_port imx31_gpio_ports[] = {
57
 
        DEFINE_IMX_GPIO_PORT_IRQ(MX31, 0, 1, MX31_INT_GPIO1),
58
 
        DEFINE_IMX_GPIO_PORT_IRQ(MX31, 1, 2, MX31_INT_GPIO2),
59
 
        DEFINE_IMX_GPIO_PORT_IRQ(MX31, 2, 3, MX31_INT_GPIO3),
60
 
};
61
 
 
62
 
void __init mx31_init_irq(void)
63
 
{
64
 
        mxc_init_irq(MX31_IO_ADDRESS(MX31_AVIC_BASE_ADDR));
65
 
        mxc_gpio_init(imx31_gpio_ports, ARRAY_SIZE(imx31_gpio_ports));
66
 
}